ssfmalloc: New module.
[gnulib.git] / ChangeLog
blob4925dfefc553452aa3ff93f9aa1fafd8fcd9deec
1 2020-10-18  Bruno Haible  <bruno@clisp.org>
3         ssfmalloc: New module.
4         * lib/ssfmalloc.h: New file.
5         * lib/ssfmalloc-bitmap.h: New file.
6         * modules/ssfmalloc: New file.
8 2020-10-18  Bruno Haible  <bruno@clisp.org>
10         wchar: Fix configure test result on some versions of AIX.
11         Reported by Clément Chigot <clement.chigot@atos.net> in
12         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
13         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
14         systems.
16 2020-10-18  Bruno Haible  <bruno@clisp.org>
18         time: Fix warning about asctime when asctime is not used.
19         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
20         invocation.
22 2020-10-18  Bruno Haible  <bruno@clisp.org>
24         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
25         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
26         '_GL_ATTRIBUTE_CONST'.
27         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
28         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
29         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
30         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
31         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
32         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
33         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
35 2020-10-18  Bruno Haible  <bruno@clisp.org>
37         obstack: Fix a clang warning.
38         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
40 2020-10-16  Bruno Haible  <bruno@clisp.org>
42         hash: Rename hash_delete to hash_remove.
43         * lib/hash.h (hash_remove): Renamed from hash_delete.
44         (hash_delete): New declaration.
45         * lib/hash.c (hash_remove): Renamed from hash_delete.
46         (hash_delete): New function.
47         * tests/test-hash.c (main): Update.
48         * lib/fts-cycle.c (leave_dir): Likewise.
49         * NEWS: Mention the change.
51 2020-10-16  Bruno Haible  <bruno@clisp.org>
53         hash, xhash: Make usable from C++.
54         * lib/hash.h: Add extern "C".
56 2020-10-16  Bruno Haible  <bruno@clisp.org>
58         hash, xhash: Move comments to the .h file.
59         * lib/hash.c: Move comments meant for the user from here...
60         * lib/xhash.c: ... and here...
61         * lib/hash.h: ... to here.
63 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
65         Don't declare an intention to modify the return value of strerror.
66         * tests/test-perror2.c (main): Assign the return value of strerror to a
67         'const char *' variable.
69 2020-10-11  Bruno Haible  <bruno@clisp.org>
71         *printf: Avoid "expanded before it was required" warning.
72         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
73         AC_DEFUN_ONCE.
75 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
77         getprogname: Add support for OpenServer 6 and UnixWare 7.
78         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
79         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
81 2020-10-11  Bruno Haible  <bruno@clisp.org>
83         tests: Avoid a name clash on UnixWare.
84         Reported by Tim Rice <tim@multitalents.net> in
85         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
86         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
88 2020-10-11  Bruno Haible  <bruno@clisp.org>
90         stdioext: Update comments regarding UnixWare.
91         Reported by Tim Rice <tim@multitalents.net> in
92         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
93         * lib/fbufmode.c: Update comments.
94         * lib/fflush.c: Likewise.
95         * lib/fpending.c: Likewise.
96         * lib/fpurge.c: Likewise.
97         * lib/freadable.h: Likewise.
98         * lib/freadable.c: Likewise.
99         * lib/freadahead.c: Likewise.
100         * lib/freading.h: Likewise.
101         * lib/freading.c: Likewise.
102         * lib/freadptr.c: Likewise.
103         * lib/freadseek.c: Likewise.
104         * lib/fseeko.c: Likewise.
105         * lib/fseterr.c: Likewise.
106         * lib/fwritable.h: Likewise.
107         * lib/fwritable.c: Likewise.
108         * lib/fwriting.h: Likewise.
109         * lib/fwriting.c: Likewise.
111 2020-10-11  Bruno Haible  <bruno@clisp.org>
113         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
114         Reported by Tim Rice <tim@multitalents.net> in
115         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
116         Uses the info from
117         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
118         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
120 2020-10-11  Bruno Haible  <bruno@clisp.org>
122         stdioext: Avoid compilation errors on UnixWare 7.
123         Reported by Tim Rice <tim@multitalents.net> in
124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
125         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
126         * lib/fpurge.c: Likewise.
127         * lib/freadable.h: Likewise.
128         * lib/freading.h: Likewise.
129         * lib/fwritable.h: Likewise.
130         * lib/fwriting.h: Likewise.
131         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
132         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
133         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
134         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
135         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
136         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
138 2020-10-11  Bruno Haible  <bruno@clisp.org>
140         stdioext: Update comments regarding Cygwin.
141         * lib/fpending.c: Update comments.
142         * lib/fpurge.c: Likewise.
143         * lib/freadable.h: Likewise.
144         * lib/freadable.c: Likewise.
145         * lib/freading.h: Likewise.
146         * lib/freading.c: Likewise.
147         * lib/fwritable.h: Likewise.
148         * lib/fwritable.c: Likewise.
149         * lib/fwriting.h: Likewise.
150         * lib/fwriting.c: Likewise.
152 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
154         Fix "warning: implicit declaration of function 'pthread_sigmask'".
155         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
156         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
158 2020-10-10  Bruno Haible  <bruno@clisp.org>
160         *-list, *-oset, *-omap: Avoid possible compiler warnings.
161         Reported by Marc Nieper-Wißkirchen in
162         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
163         * lib/gl_anylinked_list2.h (gl_linked_iterator,
164         gl_linked_iterator_from_to): Mark as 'pure'.
165         (gl_linked_iterator_free): Mark as 'const'.
166         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
167         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
168         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
169         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
170         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
171         (gl_tree_iterator_free): Mark as 'const'.
172         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
173         'pure'.
174         (gl_tree_iterator_free): Mark as 'const'.
175         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
176         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
177         (gl_tree_iterator_free): Mark as 'const'.
178         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
179         compare_position_threshold): Mark as 'pure'.
180         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
181         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
182         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
183         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
184         'pure'.
185         (gl_array_iterator_free): Mark as 'const'.
186         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
187         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
188         (gl_array_iterator_free): Mark as 'const'.
189         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
190         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
191         gl_array_iterator_atleast): Mark as 'pure'.
192         (gl_array_iterator_free): Mark as 'const'.
193         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
194         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
195         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
196         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
197         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
198         gl_carray_sortedlist_search): Mark as 'pure'.
199         (gl_carray_iterator_free): Mark as 'const'.
201 2020-10-10  Bruno Haible  <bruno@clisp.org>
203         rbtree-list: Avoid possible compiler warnings.
204         This mirrors the change of avltree-list on 2014-09-16.
205         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
206         declaration. Add cast to void for ignored value of check_invariants.
208 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
210         stack: New module.
211         * MODULES.html.sh: Add entry for the stack module.
212         * modules/stack: New file.
213         * modules/stack-tests: New file.
214         * lib/stack.h: New file.
215         * tests/test-stack.c: New file.
217 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
219         attribute: improve const, pure doc
220         Problem reported by Marc Nieper-Wißkirchen in:
221         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
222         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
223         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
225 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
227         thread: pacify GCC on Solaris 10
228         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
229         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
230         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
231         where pthread_t is unsigned int.
233 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
235         c-stack: avoid AS_IF
236         Problem reported by Bruno Haible in:
237         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
238         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
240         c-stack: pacify GCC 9.3.1 when using libsigsegv
241         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
243 2020-10-04  Bruno Haible  <bruno@clisp.org>
245         localename: Fix a couple of "unused parameter" warnings.
246         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
247         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
248         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
249         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
250         parameter list.
252 2020-10-04  Bruno Haible  <bruno@clisp.org>
254         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
255         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
256         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
258         HAVE_SNPRINTF_TRUNCATION_C99.
259         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
260         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
262 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
264         c-stack: streamline Solaris configuration
265         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
266         the code is used only if a test for sigaltstack worked
267         in some other way.
268         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
269         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
270         heuristic does not work).
271         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
272         we no longer require the libsigsegv module.
273         (Depends-on): Depend on havelib, not libsigsegv.
275         c-stack: stop using SIGSTKSZ
276         It’s been proposed to stop making SIGSTKSZ an integer constant:
277         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
278         Also, using SIGSTKSZ in #if did not conform to current POSIX.
279         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
280         * lib/c-stack.c (SIGSTKSZ): Remove.
281         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
282         All uses changed.
284         c-stack: fix libsigsegv typo
285         Problem reported by Bruno Haible in:
286         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
287         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
288         to be used only on Solaris (exactly where it is not needed!).
290 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
292         MODULES.html.sh: Fix typo.
293         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
295 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
297         version-etc: pacify Oracle Studio 12.6
298         Without this patch, it complains: "version-etc.h", line 64:
299         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
300         pedantic mode.
301         * lib/version-etc.h (version_etc): Port to C89 macro rules.
303 2020-09-27  Bruno Haible  <bruno@clisp.org>
305         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
306         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
307         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
308         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
309         ourselves; don't use AC_DECL_SYS_SIGLIST.
311 2020-09-27  Bruno Haible  <bruno@clisp.org>
313         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
314         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
315         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
316         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
317         instead of _AC_COMPUTE_INT.
319 2020-09-27  Bruno Haible  <bruno@clisp.org>
321         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
322         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
323         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
324         Based on a patch by Paul Eggert.
325         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
326         test STDC_HEADERS. Assume <stdlib.h> exists.
327         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
329 2020-09-27  Bruno Haible  <bruno@clisp.org>
331         Enable testing of prereleases of Autoconf 2.70.
332         Suggested by Paul Eggert in
333         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
334         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
335         >= 2.70.
336         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
337         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
338         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
340 2020-09-27  Bruno Haible  <bruno@clisp.org>
342         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
343         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
344         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
345         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
346         AC_PROG_CC, depending on the Autoconf version.
348 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
350         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
351         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
352         of AC_HELP_STRING.
353         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
355 2020-09-27  Bruno Haible  <bruno@clisp.org>
357         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
358         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
359         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
360         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
362 2020-09-27  Bruno Haible  <bruno@clisp.org>
364         extensions: Simplify last commit.
365         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
366         AC_GNU_SOURCE ever.
368 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
370         extensions: require AC_GNU_SOURCE only for <=2.63
371         Problem reported by Gavin Smith in:
372         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
373         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
374         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
375         shouldn’t be needed after that, and Autoconf 2.70 complains about
376         it being obsolete.
378 2020-09-26  Bruno Haible  <bruno@clisp.org>
380         regex-tests: Make test more robust.
381         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
382         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
384 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
386         regex-tests: fix possible Turkish false-alarm
387         * modules/regex-tests (Depends-on): Add wctype-h.
388         * tests/test-regex.c: Include wctype.h.
389         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
390         as the Turkish regex test assumes this.
392         regex-tests: fix test and add debug output
393         Perhaps this will fix the recent grep test failure reported at:
394         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
395         At least, the debug output should help narrow down the failure.
396         * tests/test-regex.c: Include stdarg.h, stdio.h.
397         (exit_status): New var.
398         (report_error): New function.
399         (main): Use it to report failures to stdout instead of merely
400         exiting with some nonzero status.  The status info alone isn’t
401         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
402         regex before calling re_compile_pattern, fixing a portability bug.
404         regex: no longer match glibc
405         * config/srclist.txt: Comment out regex_internal.c for now.
407 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
409         regex: fix ignore-case Turkish bug
410         * lib/regex_internal.c (build_wcs_upper_buffer):
411         Do not assume that converting single-byte character to upper
412         yields a single-byte character.  This is not true for Turkish,
413         where towupper (L'i') yields L'İ', which is not single-byte.
414         * tests/test-regex.c (main): Test for this bug.
416         regex: port to weird isascii platforms
417         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
419 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
421         dfa: make dfasupported a global function
422         * lib/dfa.c (dfasupported): Rename, and make it global.
423         Update caller.
424         * lib/dfa.h (dfasupported): Add prototype.
426 2020-09-20  Bruno Haible  <bruno@clisp.org>
428         canonicalize: Add support for UNC file names on native Windows.
429         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
430         <https://savannah.gnu.org/bugs/?59079>.
431         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
432         extend the prefix to include the server.
434 2020-09-20  Bruno Haible  <bruno@clisp.org>
436         supersede: Fix test failures on native Windows.
437         * lib/supersede.c (open_supersede): Handle non-regular files on native
438         Windows like on Solaris.
439         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
441 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
443         test-stdalign: test Oracle Studio better
444         * doc/posix-headers/stdalign.texi (stdalign.h):
445         * tests/test-stdalign.c (main):
446         Sun Studio Bug #2125432 seems to be fixed.
448         c-stack: output diagnostic in single 'write'
449         * lib/c-stack.c (die): In the typical case, use just one 'write'
450         syscall to output the diagnostic, as this lessens interleaving.
451         (die, c_stack_action): Assume C99.
452         * modules/c-stack (Depends-on): Add c99, mempcpy.
454         c-stack: improve checking if !libsigsegv
455         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
456         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
457         unlikely pointer overflow.  Also, fix some obsolete code and typos.
458         I found these problems while looking into this bug report:
459         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
460         * lib/c-stack.c: Include c-stack.h first, to test interface.
461         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
462         max_align_t, intprops.h for INT_ADD_WRAPV.
463         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
464         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
465         for libsigsegv 2.8 and earlier since the bug should be fixed
466         after that.
467         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
468         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
469         Assume sprintf returns byte count; this assumption is safe now.
470         (page_size): New static volatile variable, since sysconf isn’t
471         documented to be async-signal-safe on Solaris.  This variable is
472         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
473         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
474         SIGINFO_WORKS).
475         (segv_handler): Use it if present.  Never report null pointer
476         dereference as a stack overflow.  Check for (unlikely) unsigned
477         and/or pointer overflow.
478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
479         Rename cache variables to gl_cv_sys_stack_overflow_works
480         and gl_cv_sys_xsi_stack_overflow_heuristic.
481         All uses changed.
482         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
483         c-stack no longer uses STACK_DIRECTION.
484         Do not check for unistd.h, since we depend on unistd.
485         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
486         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
487         stdbool, stddef.
489 2020-09-20  Bruno Haible  <bruno@clisp.org>
491         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
492         * m4/musl.m4: Revert 2020-09-19 patch.
493         * m4/setlocale_null.m4: Likewise.
494         * modules/setlocale-null: Likewise.
496 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
497             Bruno Haible  <bruno@clisp.org>
499         relocatable-prog: Fix for multiple relocatable library directories.
500         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
501         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
502         being attached to a single one.
504 2020-09-19  Jim Meyering  <meyering@fb.com>
506         test-verify.c: avoid -Wshadow warnings
507         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
508         (enum): Capitalize member names. Adjust uses.
510 2020-09-19  Bruno Haible  <bruno@clisp.org>
512         havelib: Avoid linking with libc.a on GNU systems.
513         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
514         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
516         dependency_libs value of a .la file, ignore '-lc' options on GNU
517         systems.
519 2020-09-19  Bruno Haible  <bruno@clisp.org>
521         Fix recognition of musl libc on Alpine Linux 3.10.
522         Reported by Jeffrey Walton <noloader@gmail.com> in
523         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
524         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
525         (gl_MUSL_LIBC): Require it.
526         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
527         * modules/setlocale-null (Files): Add m4/musl.m4.
529 2020-09-19  Bruno Haible  <bruno@clisp.org>
531         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
532         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
533         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
534         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
535         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
536         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
537         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
538         or <threads.h>.
539         (ITEMS, MAX_RESULT_LEN): New macros.
540         (nl_langinfo_unlocked): New function.
541         (gl_get_nl_langinfo_lock): New declaration.
542         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
543         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
544         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
545         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
546         REPLACE_NL_LANGINFO.
547         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
548         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
549         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
550         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
551         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
553 2020-09-18  Bruno Haible  <bruno@clisp.org>
555         fsusage, getaddrinfo: Produce more regular configure output.
556         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
557         corresponding AC_MSG_RESULT.
558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
560 2020-09-18  Bruno Haible  <bruno@clisp.org>
562         Add back gl_SILENT.
563         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
565 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
567         c-stack-tests: fix -fsanitize=undefined false alarm
568         * tests/test-c-stack2.sh: Skip the test-harness self-test
569         if ‘gcc -fsanitize=undefined’ is in use.
571 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
573         signalblocking: simplify and remove gl_SILENT
574         gl_SILENT was problematic because if a trap was sprung, stderr
575         generated during the trap was lost.  Avoid the problem by
576         removing the need for gl_SILENT.
577         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
578         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
579         Simplify, avoiding the need for gl_SILENT while preserving the
580         ability of the user to override the value of the cache variable,
581         now ac_cv_func_sigprocmask.
583 2020-09-17  Bruno Haible  <bruno@clisp.org>
585         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
586         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
587         (gl_SILENT): Use 'exec', not a compound statement, to redirect
588         AS_MESSAGE_FD.
590 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
592         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
593         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
594         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
595         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
596         Define to 0.
597         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
598         Do not use __builtin_mul_overflow_p.
600         libc-config: port __THROW to Ubuntu 4
601         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
602         for GCC 3.3.  Problem reported by Jeffrey Walton in:
603         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
604         The GCC 3.3.4 documentation says the attribute should work, but
605         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
606         little point or desire to research this circa-2004 platform further,
607         so just avoid the attribute there.
609 2020-09-17  Jim Meyering  <meyering@fb.com>
611         test-dfa-match.sh: port timeout work-around to newer Busybox
612         * tests/test-dfa-match.sh: Update timeout -t portability test to
613         accommodate Busybox 1.30.0 and newer.
615 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
617         fnmatch: adjust to match glibc fix
618         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
619         This does not affect Gnulib; it merely keeps Gnulib and glibc
620         closer together, to help with any eventual merge, by incorporating
621         a recent glibc patch.  The patch and the following commentary is
622         by Andreas Schwab.
623         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
624         contains the index into the extra array, whereas wextra points
625         into the extra array at this index, containing the length of the
626         following collating sequence in the wide character representation.
628 2020-09-16  Bruno Haible  <bruno@clisp.org>
630         stat, fstat: Fix compilation error with old mingw headers.
631         Reported by Eli Zaretskii <eliz@gnu.org> in
632         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
633         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
634         define it.
636 2020-09-16  Bruno Haible  <bruno@clisp.org>
638         stat, fstat: Fix when compiling for versions older than Windows Vista.
639         Reported by Eli Zaretskii <eliz@gnu.org> in
640         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
641         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
642         that was originally set before we redefined it.
643         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
644         (gl_PREREQ_STAT): Require it.
645         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
647 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
649         dfa: remove dfa-heap-overrun workaround
650         * lib/dfa.c (reorder_tokens): Go back to a single pass that
651         both sets map[*] and does other things.  This reverts
652         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
653         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
654         fixed the underlying problem.
656 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
658         dfa: avoid use of uninitialized constraint
659         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
660         to zero here.
661         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
662         use of an uninitialized constraint by later code when ! (flags[i]
663         & OPT_QUEUED) means merge_nfa_state was not called to initialize
664         the constraint.  Problem found by running 'valgrind src/grep -E
665         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
667         dfa: assume C99 in reorder_tokens
668         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
670         dfa: fix dfa-heap-overrun failure
671         * lib/dfa.c (reorder_tokens): When setting
672         map[d->follows[i].elems[j].index], instead of incorrectly assuming
673         that (i < d->follows[i].elems[j].index), use two loops, one to set
674         the map array and the other to use it.  The incorrect assumption
675         caused some elements to be missed, and this in turn caused grep's
676         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
677         with GCC.  I found this bug while investigating
678         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
679         and I think the bug also occurs on GNU/Linux but with more-subtle
680         symptoms.  The bug predates the recent dfa.c changes; perhaps the
681         recent changes make the bug more likely.
683 2020-09-13  Bruno Haible  <bruno@clisp.org>
685         parse-datetime: Make the build rule work with parallel 'make'.
686         Reported by Daiki Ueno <ueno@gnu.org> in
687         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
688         * modules/parse-datetime (Makefile.am): Use a phony target and the
689         general idiom for rules that produce multiple files.
691 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
693         getpass: Check for nonnull prompt argument while avoiding warnings.
694         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
695         (getpass) [!_WIN32]: Print prompt only if nonnull.
697 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
699         dfa: epsilon-closure tweaks (Bug#40634)
700         Rename BACKWORD to BACKWARD consistently.
701         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
702         (addtok_mb): Redo slightly to make it act more like a state machine.
703         Check depth only when it increases.
704         (epsclosure): Let the switch test the tokens.
705         (dfaanalyze): Cache tindex.  Simplify position loops.
706         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
707         only if it is not null, since we're testing that anyway.
708         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
710 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
712         dfa: use backward set in removal of epsilon closure
713         When removing in epsilon closure, the code searched all nodes
714         sequentially, and this was slow for some cases.  Build a backward
715         set before search, and only check previous position with the set.
716         Problem reported in <https://bugs.gnu.org/40634>.
717         * lib/dfa.c (struct dfa): New member 'epsilon'.
718         (addtok_mb): Check whether a pattern has epsilon node or not.
719         (epsclosure): New arg BACKWORD; caller changed.  When removing
720         epsilon node and reconnecting, check only previous positions.
721         Treat BEG as if it were character.
722         (dfaanalyze): Build backward set.
724 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
726         canonicalize: fix pointer indexing bugs
727         Problem reported by Florian Weimer in:
728         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
729         * lib/canonicalize-lgpl.c (__realpath):
730         * lib/canonicalize.c (canonicalize_filename_mode):
731         Do not generate a pointer past the end of the array.
732         * lib/canonicalize.c (canonicalize_filename_mode):
733         Do not use a pointer after passing it to realloc.
735 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
737         tempname: help merge with glibc
738         Inspired by draft patches by Adhemerval Zanella in:
739         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
740         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
741         * lib/tempname.c: Include stdalign.h, time.h.
742         If _LIBC, do not include random-bits.h.
743         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
744         (RANDOM_BITS): Remove, replacing with ...
745         (random_bits): ... this new static function.  All uses changed.
746         Add entropy each time if getrandom is not supported.
747         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
748         Assume 64-bit support a la C99.
749         (try_tempname_len): Take advantage of ASLR when initializing
750         random value.
751         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
753         getcwd: merge recent glibc changes
754         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
755         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
757 2020-09-06  Bruno Haible  <bruno@clisp.org>
759         attribute: Clarify which file to include.
760         * modules/attribute (Include): Add "attribute.h".
762 2020-09-06  Bruno Haible  <bruno@clisp.org>
764         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
765         * lib/pipe-filter-ii.c: Include <process.h>.
766         * lib/pipe-filter-gi.c: Likewise.
768 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
770         verify: avoid __builtin_assume
771         Our latest attempt to use Clang’s __builtin_assume caused a crash
772         in GNU Emacs that we spent quite some time tracking down as being
773         caused by the switch to __builtin_assume.  It’s not known whether
774         the crash is due is a Clang bug or a portability bug in GNU Emacs.
775         For now, play it safe and avoid __builtin_assume.
776         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
777         (assume): Simplify by not trying to use Clang’s __builtin_assume.
779 2020-09-05  Bruno Haible  <bruno@clisp.org>
781         Fix several "warning: no previous prototype for function".
782         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
783         in front of the declaration of the lookup function in
784         unicase/locale-languages.h.
785         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
786         unictype/bidi_byname.h.
787         * modules/unictype/category-byname (Makefile.am): Likewise in
788         unictype/categ_byname.h.
789         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
790         unictype/combiningclass_byname.h.
791         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
792         unictype/joininggroup_byname.h.
793         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
794         unictype/joiningtype_byname.h.
795         * modules/unictype/property-byname (Makefile.am): Likewise in
796         unictype/pr_byname.h.
797         * modules/unictype/scripts (Makefile.am): Likewise in
798         unictype/scripts_byname.h.
799         * modules/uninorm/composition (Makefile.am): Likewise in
800         uninorm/composition-table.h.
802 2020-09-05  Bruno Haible  <bruno@clisp.org>
804         select: Fix "warning: no previous prototype for function".
805         * lib/select.c: Include <sys/select.h>.
807 2020-09-05  Bruno Haible  <bruno@clisp.org>
809         Use module 'c99' when needed for variadic macros with '...' syntax.
810         * modules/crypto/sm3 (Depends-on): Add c99.
812 2020-09-05  Bruno Haible  <bruno@clisp.org>
814         Use module 'c99' when needed for subobject initializer syntax.
815         * modules/tempname (Depends-on): Add c99.
816         * modules/nstrftime-tests (Depends-on): Likewise.
818 2020-09-05  Bruno Haible  <bruno@clisp.org>
820         Use module 'c99' when needed for declaration-after-statement syntax.
821         * modules/backup-rename (Depends-on): Add c99.
822         * modules/backupfile (Depends-on): Likewise.
823         * modules/bitset-tests (Depends-on): Likewise.
824         * modules/bitsetv (Depends-on): Likewise.
825         * modules/c-strtod (Depends-on): Likewise.
826         * modules/c-strtold (Depends-on): Likewise.
827         * modules/clean-temp (Depends-on): Likewise.
828         * modules/copy-file (Depends-on): Likewise.
829         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
830         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
831         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
832         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
833         * modules/crypto/md5-buffer (Depends-on): Likewise.
834         * modules/crypto/md5-tests (Depends-on): Likewise.
835         * modules/crypto/sha1-buffer (Depends-on): Likewise.
836         * modules/crypto/sha1-tests (Depends-on): Likewise.
837         * modules/crypto/sha256-buffer (Depends-on): Likewise.
838         * modules/crypto/sha256-tests (Depends-on): Likewise.
839         * modules/crypto/sha512-buffer (Depends-on): Likewise.
840         * modules/crypto/sha512-tests (Depends-on): Likewise.
841         * modules/diffseq (Depends-on): Likewise.
842         * modules/fatal-signal (Depends-on): Likewise.
843         * modules/fchmodat (Depends-on): Likewise.
844         * modules/fstrcmp (Depends-on): Likewise.
845         * modules/fsusage (Depends-on): Likewise.
846         * modules/fts (Depends-on): Likewise.
847         * modules/fts-tests (Depends-on): Likewise.
848         * modules/getumask (Depends-on): Likewise.
849         * modules/git-merge-changelog (Depends-on): Likewise.
850         * modules/hash-map (Depends-on): Likewise.
851         * modules/hash-set (Depends-on): Likewise.
852         * modules/lchmod (Depends-on): Likewise.
853         * modules/libgmp-tests (Depends-on): Likewise.
854         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
855         * modules/linkedhash-map (Depends-on): Likewise.
856         * modules/linkedhash-set (Depends-on): Likewise.
857         * modules/long-options (Depends-on): Likewise.
858         * modules/mbrtoc32 (Depends-on): Likewise.
859         * modules/memchr2-tests (Depends-on): Likewise.
860         * modules/memmem-tests (Depends-on): Likewise.
861         * modules/memrchr-tests (Depends-on): Likewise.
862         * modules/mktime-internal (Depends-on): Likewise.
863         * modules/nstrftime (Depends-on): Likewise.
864         * modules/opendirat (Depends-on): Likewise.
865         * modules/parse-datetime (Depends-on): Likewise.
866         * modules/quotearg-simple-tests (Depends-on): Likewise.
867         * modules/same (Depends-on): Likewise.
868         * modules/supersede (Depends-on): Likewise.
869         * modules/supersede-tests (Depends-on): Likewise.
870         * modules/time_rz (Depends-on): Likewise.
871         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
872         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
873         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
874         * modules/xalloc (Depends-on): Likewise.
875         * modules/xnanosleep (Depends-on): Likewise.
877 2020-09-05  Bruno Haible  <bruno@clisp.org>
879         Fix "warning: array initialized from parenthesized string constant".
880         * tests/test-memmem.c (main): Remove parentheses around string constant.
881         * tests/test-c-strcasestr.c (main): Likewise.
882         * tests/test-strcasestr.c (main): Likewise.
884 2020-09-05  Bruno Haible  <bruno@clisp.org>
886         argmatch tests: Fix ISO C compliance warning.
887         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
888         invocation.
890 2020-09-05  Bruno Haible  <bruno@clisp.org>
892         uniname/uniname: Fix -Wshadow warning.
893         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
894         * modules/uniname/uniname (Depends-on): Add c99.
896 2020-09-05  Bruno Haible  <bruno@clisp.org>
898         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
899         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
900         argument to size_t.
901         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
902         n to size_t.
904 2020-09-05  Bruno Haible  <bruno@clisp.org>
906         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
907         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
908         u32_uctomb): Change type of last argument to ptrdiff_t.
909         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
910         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
911         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
912         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
913         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
915 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
917         manywarnings: remove -Wchkp and -Wabi from C++ too
918         Suggested by Reuben Thomas in:
919         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
920         At some point somebody should merge the many other manywarnings-c.m4
921         changes into manywarnings-c++.m4 too, e.g.,
922         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
923         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
924         Remove -Wchkp, -Wabi.
926 2020-08-30  Bruno Haible  <bruno@clisp.org>
928         strerrorname_np: Add tests.
929         * tests/test-strerrorname_np.c: New file.
930         * modules/strerrorname_np-tests: New file.
932         strerrorname_np: New module.
933         * lib/string.in.h (strerrorname_np): New declaration.
934         * lib/strerrorname_np.c: New file.
935         * m4/strerrorname_np.m4: New file.
936         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
937         is declared.
938         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
939         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
940         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
941         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
942         * modules/strerrorname_np: New file.
943         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
944         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
945         the glibc 2.32 bug.
947 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
949         perror, strerror_r: remove unportable tests
950         Problem reported by Florian Weimer in:
951         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
952         * tests/test-perror2.c (main):
953         * tests/test-strerror_r.c (main): Omit unportable tests.
955 2020-08-26  Bruno Haible  <bruno@clisp.org>
957         stdint, wchar, wctype-h: Change configure message.
958         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
959         enough..." instead of "checking whether wint_t is too small...".
961 2020-08-26  Bruno Haible  <bruno@clisp.org>
963         time_rz: Change configure message.
964         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
965         near extrema..." instead of "checking whether localtime loops forever
966         near extrema...".
968 2020-08-26  Bruno Haible  <bruno@clisp.org>
970         stdint: Change configure message.
971         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
972         without ISO C predefines..." instead of "checking whether stdint.h
973         predates C++11...".
975 2020-08-26  Bruno Haible  <bruno@clisp.org>
977         socketlib: Change configure message.
978         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
979         instead of "checking if we need to call WSAStartup in winsock2.h and
980         -lws2_32...".
982 2020-08-26  Bruno Haible  <bruno@clisp.org>
984         include_next: Change configure message.
985         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
986         code line length is unlimited..." instead of "checking whether system
987         header files limit the line length...".
989 2020-08-26  Bruno Haible  <bruno@clisp.org>
991         getcwd: Change configure message.
992         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
993         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
994         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
996 2020-08-26  Bruno Haible  <bruno@clisp.org>
998         chdir-long: Change configure message.
999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
1000         system supports file names of any length..." instead of "checking
1001         whether this system has an arbitrary file name length limit...".
1002         Set gl_cv_have_unlimited_file_name_length instead of
1003         gl_cv_have_arbitrary_file_name_length_limit.
1004         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
1006 2020-08-26  Bruno Haible  <bruno@clisp.org>
1008         ceill: Change configure message.
1009         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
1010         instead of "checking whether ceill() breaks with small values...".
1012 2020-08-26  Bruno Haible  <bruno@clisp.org>
1014         iconv: Change configure message.
1015         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
1016         with its POSIX signature..." instead of "checking for iconv
1017         declaration...". Remove K&R C support.
1019 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
1021         getcwd: help the merge back into glibc
1022         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
1023         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
1024         The idea is to make it easier for Gnulib lib/getcwd.c to match
1025         glibc io/getcwd-generic.c.
1026         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
1027         Include not-cancel.h.
1028         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
1029         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
1030         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
1031         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
1032         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
1033         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
1034         (__getcwd_generic): Rename from __getcwd.
1035         Use the abovementioned macros for consistency with glibc.
1036         (weak_alias): Remove.
1038 2020-08-25  Bruno Haible  <bruno@clisp.org>
1040         verify: Avoid warnings when assume(0) is used.
1041         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
1042         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
1043         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
1044         the constant 0.
1045         * tests/test-verify.c (f): New function.
1046         (state): New type.
1047         (test_assume_expressions, test_assume_optimization,
1048         test_assume_noreturn): New functions.
1050 2020-08-25  Bruno Haible  <bruno@clisp.org>
1052         fstrcmp: Clarification regarding NOTE_ORDERED.
1053         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
1055 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1057         diffseq: new option NOTE_ORDERED
1058         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
1059         * NEWS: Mention this.
1060         * lib/diffseq.h (NOTE_ORDERED): New macro.
1061         (IF_LINT2): Remove; no longer needed.
1062         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
1063         subproblem and iterate to do the larger.
1065 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1067         sys_types: let Autoconf 2.70 do pid_t
1068         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
1069         only for Autoconf versions 2.69 and earlier, since 2.70
1070         will be fixed.
1072 2020-08-23  Bruno Haible  <bruno@clisp.org>
1074         tests: Don't assume that pid_t fits in an 'int'.
1075         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
1076         of 'int'.
1077         * tests/test-nonblocking-socket-main.c (main): Likewise.
1079         sys_types: Fix definition of pid_t on 64-bit MSVC.
1080         * m4/pid_t.m4: New file.
1081         * modules/sys_types (Files): Add it.
1082         * modules/dirent (Files): Likewise.
1083         * modules/fcntl-h (Files): Likewise.
1084         * modules/sched (Files): Likewise.
1085         * modules/signal-h (Files): Likewise.
1086         * modules/spawn (Files): Likewise.
1087         * modules/sys_stat (Files): Likewise.
1088         * modules/sys_wait (Files): Likewise.
1089         * modules/termios (Files): Likewise.
1090         * modules/unistd (Files): Likewise.
1092 2020-08-23  Bruno Haible  <bruno@clisp.org>
1094         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
1095         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
1096         program.
1098 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1100         intprops: be consistent about +X vs X+0
1101         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
1103         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
1104         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
1105         is a bit-field, on older GCC or non-GCC compilers where we do
1106         things ourselves instead of using __builtin_mul_overflow.
1107         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
1108         to applying sizeof to a bit-field.
1109         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
1110         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
1112 2020-08-23  Bruno Haible  <bruno@clisp.org>
1114         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
1115         Reported by Jörg Sonnenberger <joerg@netbsd.org>
1116         via Thomas Klausner <tk@giga.or.at> in
1117         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
1118         * lib/supersede.c (open_supersede): When opening an existing non-regular
1119         file on Solaris, use O_CREAT although it should not be necessary.
1121 2020-08-23  Bruno Haible  <bruno@clisp.org>
1123         verify: Make assume work on bit field expressions (regr. 2020-08-22).
1124         Reported by Benno Schulenberg <bensberg@telfort.nl> in
1125         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
1126         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
1127         variable.
1129 2020-08-23  Bruno Haible  <bruno@clisp.org>
1131         libc-config: Improve comments.
1132         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
1133         cannot use clang's __diagnose_if__ here.
1135 2020-08-22  Bruno Haible  <bruno@clisp.org>
1137         verify: Do use __builtin_assume on clang.
1138         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
1139         variable in a statement expression.
1141 2020-08-22  Bruno Haible  <bruno@clisp.org>
1143         sig2str: Add more signals.
1144         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
1146 2020-08-22  Bruno Haible  <bruno@clisp.org>
1148         doc: Update for OpenBSD 6.0, 6.7.
1149         * doc/*/*.texi: Update.
1150         * m4/printf.m4: Update comments and cross-compilation guesses.
1151         * m4/ceill.m4: Update comments.
1152         * m4/getcwd-abort-bug.m4: Likewise.
1153         * m4/ilogb.m4: Likewise.
1154         * m4/ilogbf.m4: Likewise.
1155         * m4/langinfo_h.m4: Likewise.
1156         * m4/modf.m4: Likewise.
1157         * m4/modff.m4: Likewise.
1159 2020-08-22  Bruno Haible  <bruno@clisp.org>
1161         doc: Mention sig2str module.
1162         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
1164 2020-08-21  Bruno Haible  <bruno@clisp.org>
1166         sigdescr_np: Add tests.
1167         * tests/test-sigdescr_np.c: New file.
1168         * modules/sigdescr_np-tests: New file.
1170         sigdescr_np: New module.
1171         * lib/string.in.h (sigdescr_np): New declaration.
1172         * lib/sigdescr_np.c: New file.
1173         * m4/sigdescr_np.m4: New file.
1174         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
1175         declared.
1176         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
1177         HAVE_SIGDESCR_NP.
1178         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
1179         HAVE_SIGDESCR_NP.
1180         * modules/sigdescr_np: New file.
1181         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
1182         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
1184 2020-08-20  Bruno Haible  <bruno@clisp.org>
1186         sigabbrev_np: Add tests.
1187         * tests/test-sigabbrev_np.c: New file.
1188         * modules/sigabbrev_np-tests: New file.
1190         sigabbrev_np: New module.
1191         * lib/string.in.h (sigabbrev_np): New declaration.
1192         * lib/sigabbrev_np.c: New file.
1193         * m4/sigabbrev_np.m4: New file.
1194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
1195         declared.
1196         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
1197         HAVE_SIGABBREV_NP.
1198         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
1199         HAVE_SIGABBREV_NP.
1200         * modules/sigabbrev_np: New file.
1201         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
1202         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
1204 2020-08-20  Bruno Haible  <bruno@clisp.org>
1206         stdalign tests: Skip test with AIX xlclang.
1207         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
1209 2020-08-20  Bruno Haible  <bruno@clisp.org>
1211         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
1212         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
1213         workaround as for GCC versions < 4.9.
1215 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1217         Sync up ProjectQuirks comments and documentation
1218         Transform the ProjectQuirks comments into a docstring so that it can
1219         be accessed from python as ProjectQuirks.__doc__ and harmonize
1220         descriptions with the documentation.
1221         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
1222         Transform comments into a docstring.
1223         * doc/vcs-to-changelog.texi: Sync up description with comments.
1225         Split ProjectQuirks out into its own file
1226         ProjectQuirks is used by external quirks files and importing it from
1227         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
1228         is cleaner to put it in its own file anyway.
1229         * build-aux/vcstocl/projectquirks.py: A new file...
1230         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
1231         we move ProjectQuirks and import the file.
1233 2020-08-19  Bruno Haible  <bruno@clisp.org>
1235         uchar: Fix compilation errors in C++ mode on macOS.
1236         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
1237         system header file before attempting to use 'char16_t' and 'char32_t'.
1239 2020-08-19  Bruno Haible  <bruno@clisp.org>
1241         ansi-c++-opt: Work around an autoconf macro reordering problem.
1242         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
1243         section.
1245 2020-08-19  Bruno Haible  <bruno@clisp.org>
1247         math C++ tests: Fix compilation error in with GCC 10.
1248         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
1249         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
1250         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1252 2020-08-19  Bruno Haible  <bruno@clisp.org>
1254         uchar: Fix compilation errors in C++ mode on OpenBSD.
1255         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
1256         CXX_HAS_UCHAR_TYPES is 1.
1257         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
1258         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
1259         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
1261 2020-08-19  Bruno Haible  <bruno@clisp.org>
1263         Fix compilation errors in C++ mode on OpenBSD.
1264         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
1265         OpenBSD with clang, use the approach without C preprocessor macro.
1267 2020-08-18  Bruno Haible  <bruno@clisp.org>
1269         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
1270         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
1271         AC_LANG_POP.
1273 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1275         verify: avoid __built_assume on Clang
1276         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
1277         Clang 9 incorrectly diagnoses arguments as having side effects
1278         even when they do not.  I guess Clang 9 considers any function
1279         call as if it had a side effect here.
1281         libc-config: avoid Clang’s __diagnose_if__
1282         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
1283         For now, do not use __diagnose_if__ here, as this fails
1284         on Fedora 31 with Clang 9.0.1, with diagnostic
1285         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
1286         size than length of destination buffer
1287         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
1288         for functions that are not called?
1290         careadlinkat: speedup for GCC 10 with GCC_LINT
1291         Inspired by a suggestion by Bruno Haible in:
1292         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
1293         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
1294         (readlink_stk): New function, with most of the old careadlinkat
1295         contents and with a new STACK_BUF arg.  Inline it in GCC 10
1296         if GCC_LINT.
1297         (careadlinkat): Use the new function for everything but the
1298         stack buffer.
1300         * build-aux/gcc-warning.spec: Update comments.
1302 2020-08-17  Bruno Haible  <bruno@clisp.org>
1304         Assume autoconf >= 2.64.
1305         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
1307 2020-08-17  Bruno Haible  <bruno@clisp.org>
1309         Revert autoupdate's revert.
1310         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
1312 2020-08-17  Bruno Haible  <bruno@clisp.org>
1314         uchar C++ tests: Fix build error on FreeBSD 12.
1315         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
1316         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
1317         <cuchar> does not exist.
1319 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
1321         time_rz: remove unused functions
1322         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
1324         time_rz: fix issues with mktime_z failures
1325         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
1326         Use a cheaper tm_yday test for failed mktime.
1328 2020-08-16  Bruno Haible  <bruno@clisp.org>
1330         intprops test: Strengthen on clang.
1331         * tests/test-intprops.c (VERIFY): Use verify_stmt.
1333 2020-08-16  Bruno Haible  <bruno@clisp.org>
1335         nstrftime: Guide inlining also on clang.
1336         * lib/nstrftime.c (iso_week_days): Inline also on clang.
1338 2020-08-16  Bruno Haible  <bruno@clisp.org>
1340         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
1341         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
1343 2020-08-16  Bruno Haible  <bruno@clisp.org>
1345         log2l: Disable MSVC workaround on clang.
1346         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
1348 2020-08-16  Bruno Haible  <bruno@clisp.org>
1350         argp: Emit a warning also with clang.
1351         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
1352         clang.
1354 2020-08-16  Bruno Haible  <bruno@clisp.org>
1356         libc-config: Enable __REDIRECT macro also on clang.
1357         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
1358         __ASMNAME2): Define on clang like on GCC.
1360 2020-08-16  Bruno Haible  <bruno@clisp.org>
1362         regex: Use initializer shorthand syntax also with clang.
1363         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
1364         with clang.
1366 2020-08-16  Bruno Haible  <bruno@clisp.org>
1368         regex: Use space optimization also with clang.
1369         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
1370         with clang.
1372 2020-08-16  Bruno Haible  <bruno@clisp.org>
1374         Use _Static_assert and static_assert primitives when present on clang.
1375         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
1376         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
1377         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
1379 2020-08-16  Bruno Haible  <bruno@clisp.org>
1381         Use 'throw ()' for optimization in C++ mode also on clang.
1382         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
1383         * lib/getopt-cdefs.in.h (__THROW): Likewise.
1384         * lib/md5.h (__THROW): Likewise.
1386 2020-08-16  Bruno Haible  <bruno@clisp.org>
1388         absolute-header: Add support for clang.
1389         * modules/absolute-header (Makefile.am): Include '__clang__' in the
1390         HAVE_INCLUDE_NEXT expression.
1392 2020-08-16  Bruno Haible  <bruno@clisp.org>
1394         Fix "warning: implicitly declaring library function 'strcasecmp'".
1395         * lib/argp-help.c: Include <strings.h>.
1397 2020-08-16  Bruno Haible  <bruno@clisp.org>
1399         stdio: Don't break attribute 'scanf' on clang.
1400         * lib/stdio.in.h (scanf): Treat clang like GCC.
1402 2020-08-16  Bruno Haible  <bruno@clisp.org>
1404         Use __restrict also on clang.
1405         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
1406         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
1407         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
1409 2020-08-16  Bruno Haible  <bruno@clisp.org>
1411         pthread-spin: Use GCC built-ins also on clang.
1412         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1413         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
1414         also on clang.
1416 2020-08-16  Bruno Haible  <bruno@clisp.org>
1418         asyncsafe-spin tests: Update.
1419         * tests/test-asyncsafe-spin2.c: Update to match the change in
1420         lib/asyncsafe-spin.c from 2020-08-11.
1422 2020-08-16  Bruno Haible  <bruno@clisp.org>
1424         setenv: Use tree code also with clang.
1425         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
1427 2020-08-16  Bruno Haible  <bruno@clisp.org>
1429         math: Optimize signbit also on clang.
1430         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
1431         on clang.
1433 2020-08-16  Bruno Haible  <bruno@clisp.org>
1435         avltreehash-list, rbtreehash-list: Optimize also on clang.
1436         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
1437         __builtin_expect also on clang.
1439 2020-08-16  Bruno Haible  <bruno@clisp.org>
1441         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
1442         * lib/socket.c: Use WSASocketW, not WSASocketA.
1444         Fix "warning: format specifies type 'unsigned long'".
1445         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
1446         argument to match the format directive.
1448         Fix "warning: no case matching constant switch condition '0'".
1449         * tests/test-fcntl.c (check_flags): Add a 'default' case.
1451         Fix "warning: integer overflow in expression".
1452         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
1453         remove a 'long' overflow.
1455         Fix "warning: "getpagesize" redefined".
1456         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
1457         macro.
1459         Fix "warning: implicitly declaring library function 'strncasecmp'".
1460         * lib/strptime.c: Include <strings.h>.
1462         Fix "warning: 'snprintf' macro redefined".
1463         * lib/strerror_r.c (snprintf): Undefine before redefining.
1465         Fix "warning: address of array 'locale' will always evaluate to 'true'".
1466         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
1468         Fix "warning: '__stat64' macro redefined".
1469         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
1471         Fix "warning: 'format' attribute argument not supported: rpl_printf".
1472         * lib/stdio.in.h (printf): Treat clang like GCC.
1474         Fix "warning: attribute declaration must precede definition" with clang.
1475         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
1476         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
1477         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
1478         on non-glibc systems.
1479         * lib/netdb.in.h (gai_strerror): Likewise.
1480         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
1481         * lib/sys_stat.in.h (fstat): Likewise.
1482         * lib/utime.in.h (utime): Likewise.
1484         Fix undesired warnings.
1485         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
1486         clang.
1488 2020-08-16  Bruno Haible  <bruno@clisp.org>
1490         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
1491         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
1492         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
1493         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
1494         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
1496 2020-08-16  Bruno Haible  <bruno@clisp.org>
1498         Don't use Autoconf quadrigraphs.
1499         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
1500         Autoconf quadrigraph.
1501         * m4/free.m4 (gl_FUNC_FREE): Likewise.
1502         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
1503         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
1504         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
1505         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
1506         * m4/math_h.m4 (gl_MATH_H): Likewise.
1507         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1509 2020-08-16  Bruno Haible  <bruno@clisp.org>
1511         Fix quoting of AC_LANG_PROGRAM arguments.
1512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
1513         arguments through [[...]].
1514         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1515         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1517         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
1518         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
1519         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1520         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
1521         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1522         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1523         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1524         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1525         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1526         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1528 2020-08-16  Bruno Haible  <bruno@clisp.org>
1530         Assume autoconf >= 2.64.
1531         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
1532         * DEPENDENCIES: Require Autoconf 2.64 or newer.
1533         * NEWS: Mention the changed requirement.
1534         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
1535         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
1536         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
1537         variables.
1538         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1539         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1540         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1541         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
1542         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
1543         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
1544         Likewise.
1545         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
1546         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
1547         * m4/configmake.m4: Update comment.
1549 2020-08-16  Bruno Haible  <bruno@clisp.org>
1551         sys_ioctl: Simplify.
1552         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
1553         AC_INCLUDES_DEFAULT.
1555 2020-08-16  Bruno Haible  <bruno@clisp.org>
1557         Fix quoting of AC_LANG_SOURCE arguments.
1558         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
1559         GL_NOCRASH expansion.
1560         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
1561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1562         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1563         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1566 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1568         nstrftime: be more predictable about errno
1569         This aligns nstrftime better with draft POSIX 202x strftime.
1570         * lib/nstrftime.c: Include errno.h.
1571         (width_add, __strftime_internal): Set errno on failure,
1572         and preserve it on success.  Check for mktime_z failure.
1573         * modules/nstrftime (Depends-on): Add errno.
1574         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
1575         * tests/test-nstrftime.c: Include intprops.h, limits.h.
1576         (errno_test): New test function.
1577         (main): Call it.
1579 2020-08-15  Bruno Haible  <bruno@clisp.org>
1581         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
1582         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
1583         from dependency analysis first.
1585 2020-08-15  Bruno Haible  <bruno@clisp.org>
1587         Determine asm output option and filename suffix for MSVC/clang.
1588         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
1589         clang-cl.
1591 2020-08-15  Bruno Haible  <bruno@clisp.org>
1593         doc: Update for MSVC/clang.
1594         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
1595         that MSVC 14 does not have.
1597 2020-08-15  Bruno Haible  <bruno@clisp.org>
1599         Revert autoupdate's revert.
1600         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
1602 2020-08-15  Bruno Haible  <bruno@clisp.org>
1604         frexpl: Fix configuration test result on MSVC.
1605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
1606         zero.
1608 2020-08-15  Bruno Haible  <bruno@clisp.org>
1610         Support compiling without -loldnames on native Windows.
1611         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
1612         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
1613         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1614         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1615         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1617         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
1618         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
1619         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1620         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
1621         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1622         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
1623         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1624         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
1625         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
1626         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
1627         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1629         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
1630         Likewise.
1631         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
1632         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1633         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
1634         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1635         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1636         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
1637         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
1638         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1640         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
1641         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1642         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
1643         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1644         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1645         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
1646         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1647         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1649         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1650         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1651         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
1652         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1653         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1654         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1655         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1657         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1658         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
1659         test for getcwd.
1660         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
1661         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
1662         with GL_MDA_DEFINES.
1663         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
1664         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
1665         prefixed symbol.
1666         * lib/search.in.h (lfind, lsearch): Likewise.
1667         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1668         Likewise.
1669         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1670         * lib/string.in.h (memccpy, strdup): Likewise.
1671         * lib/sys_stat.in.h (chmod, umask): Likewise.
1672         * lib/time.in.h (tzset): Likewise.
1673         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1674         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1675         read, rmdir, swab, unlink, write): Likewise.
1676         * lib/utime.in.h (utime): Likewise.
1677         * lib/wchar.in.h (wcsdup): Likewise.
1678         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
1679         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
1680         rpl_-prefixed macro.
1681         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
1682         * lib/close.c (close_nothrow): On native Windows, use _close.
1683         * lib/creat.c (orig_creat): On native Windows, use _creat.
1684         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
1685         * lib/dup2.c (dup2_nothrow): Use _dup2.
1686         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
1687         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
1688         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
1689         * lib/open.c (orig_open): On native Windows, use _open.
1690         * lib/read.c (read_nothrow): Use _read.
1691         * lib/rmdir.c: On native Windows, use _rmdir.
1692         * lib/unlink.c: On native Windows, use _unlink.
1693         * lib/write.c (write_nothrow): Use _write.
1694         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
1695         undefined symbol.
1696         * lib/sys_socket.in.h (close): Likewise.
1697         * lib/sys_time.in.h (close): Likewise.
1698         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
1700 2020-08-15  Bruno Haible  <bruno@clisp.org>
1702         Fix "unknown pragma ignored" warnings with clang on native Windows.
1703         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
1704         * lib/cbrtf.c: Likewise.
1705         * lib/ceil.c: Likewise.
1706         * lib/floor.c: Likewise.
1707         * lib/fma.c: Likewise.
1708         * lib/fmod.c: Likewise.
1709         * lib/rint.c: Likewise.
1710         * lib/round.c: Likewise.
1711         * lib/trunc.c: Likewise.
1712         * tests/test-ceil2.c: Likewise.
1713         * tests/test-ceilf2.c: Likewise.
1714         * tests/test-floor2.c: Likewise.
1715         * tests/test-floorf2.c: Likewise.
1716         * tests/test-trunc2.c: Likewise.
1717         * tests/test-truncf2.c: Likewise.
1718         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1719         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1721 2020-08-15  Bruno Haible  <bruno@clisp.org>
1723         Fix compilation errors in C++ mode with clang on native Windows.
1724         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
1725         non-glibc systems.
1726         * lib/sched.in.h (sched_yield): Likewise.
1728 2020-08-14  Bruno Haible  <bruno@clisp.org>
1730         stdnoreturn: Work around problem with MSVC/clang.
1731         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
1732         system header after <stdnoreturn.h>.
1733         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
1735 2020-08-14  Bruno Haible  <bruno@clisp.org>
1737         utime-h: Generate an utime.h file always.
1738         * modules/utime-h (Makefile.am): Generate utime.h always.
1739         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
1740         GL_GENERATE_UTIME_H.
1742 2020-08-14  Bruno Haible  <bruno@clisp.org>
1744         mktime, mktime-internal: Remove obsolete code.
1745         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
1747 2020-08-14  Bruno Haible  <bruno@clisp.org>
1749         getcwd: Remove obsolete code.
1750         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
1751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1753 2020-08-14  Bruno Haible  <bruno@clisp.org>
1755         tzset: Assume the function exists.
1756         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
1757         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
1758         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
1759         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
1760         HAVE_TZSET.
1761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
1762         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
1764         nstrftime: Assume tzset exists.
1765         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
1766         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
1767         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
1769         mktime, mktime-internal: Assume tzset exists.
1770         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
1771         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
1773 2020-08-14  Bruno Haible  <bruno@clisp.org>
1775         strdup: Assume the function exists.
1776         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
1777         whether strdup exists.
1778         * modules/strdup (Files): Remove lib/strdup.c.
1779         (configure.ac): Don't compile strdup.c.
1780         * modules/strdup-posix (Depends-on, configure.ac): Don't test
1781         ac_cv_func_strdup.
1782         * doc/posix-functions/strdup.texi: Update.
1783         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
1784         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
1785         (Depends-on): Remove unistr/u8-strlen.
1787 2020-08-13  Bruno Haible  <bruno@clisp.org>
1789         sys_random: Work around an uClibc bug.
1790         Reported by akater <nuclearspace@gmail.com>
1791         via Stefan Kangas <stefan@marxist.se>
1792         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
1793         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
1794         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
1795         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
1796         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
1798 2020-08-12  Bruno Haible  <bruno@clisp.org>
1800         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
1801         Reported by Florian Weimer in
1802         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
1803         * lib/gen-uni-tables.c (output_predicate): Change the element type of
1804         the level3 array to 'unsigned int'.
1805         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
1806         * lib/unictype/categ_*.h: Regenerated.
1807         * lib/unictype/ctype_*.h: Regenerated.
1808         * lib/unictype/pr_*.h: Regenerated.
1809         * lib/unictype/sy_*.h: Regenerated.
1810         * lib/unicase/cased.h: Regenerated.
1811         * lib/unicase/ignorable.h: Regenerated.
1813 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1815         stdint: port intptr_t to more-recent MinGW
1816         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
1817         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
1818         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
1819         Apparently those two macros were removed in mingwrt-3.22
1820         dated 2016-07-14.
1822 2020-08-12  Bruno Haible  <bruno@clisp.org>
1824         thread-optim: Export function-like macros only.
1825         Suggested by Paul Eggert.
1826         * lib/thread-optim.h (gl_multithreaded): New macro.
1827         (IF_MT_DECL, IF_MT): Remove macros.
1828         * doc/multithread.texi (Multithreading Optimizations): Add a small
1829         example.
1830         * lib/fatal-signal.c: Update all uses.
1831         * lib/clean-temp.c: Likewise.
1832         * lib/localename.c: Likewise.
1833         * modules/localename (Depends-on): Add stdbool.
1835 2020-08-12  Bruno Haible  <bruno@clisp.org>
1837         Revert autoupdate's revert.
1838         * config/srclist.txt: Mark regex.h as needing sync with glibc.
1840 2020-08-11  Bruno Haible  <bruno@clisp.org>
1842         thread-optim: Fix a compiler warning.
1843         * lib/thread-optim.h (IF_MT_DECL): Define differently.
1845 2020-08-11  Bruno Haible  <bruno@clisp.org>
1847         Use __restrict also on clang.
1848         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
1849         (__restrict_arr): On clang, define like on GCC.
1850         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
1851         (_Restrict_arr_): Use _Restrict_ also on clang.
1852         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
1853         (_Restrict_arr_): Use _Restrict_ also on clang.
1855 2020-08-11  Bruno Haible  <bruno@clisp.org>
1857         Use flexible array syntax also on clang.
1858         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
1859         define like for GCC 3.
1861 2020-08-11  Bruno Haible  <bruno@clisp.org>
1863         fcntl: On native Windows, use _setmode, not setmode.
1864         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
1865         * lib/binary-io.h: Update comment.
1866         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
1867         * tests/test-dup2.c: Likewise.
1868         * tests/test-dup-safer.c: Likewise.
1869         * tests/test-fcntl.c: Likewise.
1871 2020-08-11  Bruno Haible  <bruno@clisp.org>
1873         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
1874         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
1875         * lib/spawn-pipe.c (create_pipe): Likewise.
1876         * tests/test-nonblocking-pipe-main.c (main): Likewise.
1877         * tests/test-nonblocking-socket-main.c (main): Likewise.
1878         * lib/wait-process.c: Update comment.
1879         * doc/posix-functions/fork.texi: Update.
1881 2020-08-11  Bruno Haible  <bruno@clisp.org>
1883         asyncsafe-spin: Use GCC built-ins also on clang.
1884         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
1885         the newer GCC built-ins also on clang.
1887 2020-08-11  Bruno Haible  <bruno@clisp.org>
1889         Use expression statements also on clang.
1890         * lib/cdefs.h (__extension__): Don't define to empty on clang.
1891         * lib/obstack.h (__extension__): Likewise.
1892         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
1893         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
1894         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1895         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1896         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1897         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1899 2020-08-10  Bruno Haible  <bruno@clisp.org>
1901         Use many __attribute__s with clang.
1902         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1903         on clang.
1904         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1905         New macros.
1906         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1907         on clang.
1908         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1909         also on older clang versions.
1910         (__attribute__): Don't define to empty on clang.
1911         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1912         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1913         (__attribute_const__): Use __attribute__ __const__ also on clang.
1914         (__attribute_used__): Use __attribute__ __used__ also on clang.
1915         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1916         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1917         clang.
1918         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1919         clang.
1920         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1921         also on clang.
1922         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1923         (__attribute_warn_unused_result__): Use __attribute__
1924         __warn_unused_result__ also on clang.
1925         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1926         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1927         clang >= 7.
1928         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1929         clang versions.
1930         (_Noreturn): Don't redefine on clang >= 3.5.
1931         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1932         also on clang.
1933         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1934         on clang.
1935         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1936         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1937         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1938         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1939         also on clang.
1940         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1941         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1942         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1943         also on clang.
1944         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1945         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1946         __attribute__ __noreturn__ also on clang.
1947         * lib/obstack.h (__attribute_noreturn__): Likewise.
1948         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1949         clang.
1950         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1951         always_inline also on clang.
1952         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1953         clang.
1955 2020-08-10  Bruno Haible  <bruno@clisp.org>
1957         c-ldtoastr tests: Fix test failure.
1958         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1959         is longer than 'double'.
1961 2020-08-10  Bruno Haible  <bruno@clisp.org>
1963         Revert autoupdate's revert.
1964         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1966 2020-08-09  Bruno Haible  <bruno@clisp.org>
1968         string: Fix build error in C++ mode with clang (regression from today).
1969         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1970         parameters, one for GCC, one for clang.
1971         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1972         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1973         as return type.
1975 2020-08-09  Bruno Haible  <bruno@clisp.org>
1977         ftruncate: Use _chsize, not chsize.
1978         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1979         * lib/ftruncate.c: Test HAVE__CHSIZE.
1980         (chsize_nothrow): Use _chsize, not chsize.
1982 2020-08-09  Bruno Haible  <bruno@clisp.org>
1984         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1985         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1986         clang >= 10.
1987         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1988         * lib/fts.c (FALLTHROUGH): Likewise.
1989         * tests/macros.h (FALLTHROUGH): Likewise.
1990         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1991         * config/srclist.txt: Mark it as needing sync with glibc.
1993 2020-08-09  Bruno Haible  <bruno@clisp.org>
1995         stdbool tests: Enable the stricter tests also on clang.
1996         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1997         (e): Enable the address-to-bool conversion test also on clang.
1999 2020-08-09  Bruno Haible  <bruno@clisp.org>
2001         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
2002         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
2004 2020-08-09  Bruno Haible  <bruno@clisp.org>
2006         Use attribute __aligned__ with clang.
2007         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
2008         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
2010 2020-08-09  Bruno Haible  <bruno@clisp.org>
2012         Use __alignof__ with clang.
2013         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
2014         on clang.
2015         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
2016         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
2017         clang.
2018         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
2019         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
2020         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
2021         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
2023 2020-08-09  Bruno Haible  <bruno@clisp.org>
2025         ignore-value: Simplify on clang.
2026         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
2027         workaround.
2029 2020-08-09  Bruno Haible  <bruno@clisp.org>
2031         Use __typeof__ with clang.
2032         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
2033         "clang -std=gnu99".
2034         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
2035         * tests/test-stdint.c (verify_same_types): Enable the check also on
2036         clang.
2038 2020-08-09  Bruno Haible  <bruno@clisp.org>
2040         Add ability to emit user-defined warnings and errors with clang.
2041         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
2042         _GL_ATTRIBUTE_WARNING using an attribute for clang.
2043         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
2044         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
2045         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
2046         attribute for clang.
2048 2020-08-09  Bruno Haible  <bruno@clisp.org>
2050         intprops: Fix typo in comment.
2051         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
2053 2020-08-09  Bruno Haible  <bruno@clisp.org>
2055         Use __builtin_signbit* with clang.
2056         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
2057         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
2058         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
2059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
2060         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
2061         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
2062         not REPLACE_SIGNBIT_USING_GCC.
2064 2020-08-09  Bruno Haible  <bruno@clisp.org>
2066         Use __builtin_isnan with clang.
2067         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
2068         not __builtin_isnanf. Also on clang.
2069         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
2070         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
2071         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
2072         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
2073         built-in.
2074         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
2075         not __builtin_isnanl. Also on clang.
2076         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
2077         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
2078         * lib/math.in.h (__has_builtin): Remove macro.
2079         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
2080         __builtin_isnanf. Also on clang.
2081         (isnand, gl_isnan_d): With clang, use the GCC built-in.
2082         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
2083         __builtin_isnanl. Also on clang.
2084         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
2085         on clang.
2087 2020-08-09  Bruno Haible  <bruno@clisp.org>
2089         thread-optim: Fix logic error.
2090         Reported by Paul Eggert.
2091         * lib/thread-optim.h (IF_MT): Fix logic error.
2093 2020-08-08  Bruno Haible  <bruno@clisp.org>
2095         localename: Use module 'thread-optim'.
2096         * lib/localename.c: Include thread-optim.h.
2097         (struniq): Use IF_MT macro.
2098         * modules/localename (Depends-on): Add thread-optim.
2100         clean-temp: Use module 'thread-optim'.
2101         * lib/clean-temp.c: Include thread-optim.h.
2102         (register_temporary_file, unregister_temporary_file, create_temp_dir,
2103         register_temp_file, unregister_temp_file, register_temp_subdir,
2104         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
2105         close_temp, fclose_variant_temp): Use IF_MT macro.
2106         * modules/clean-temp (Depends-on): Add thread-optim.
2108         fatal-signal: Use module 'thread-optim'.
2109         * lib/fatal-signal.c: Include thread-optim.h.
2110         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
2111         macro.
2112         * modules/fatal-signal (Depends-on): Add thread-optim.
2114 2020-08-08  Bruno Haible  <bruno@clisp.org>
2116         New module 'thread-optim'.
2117         * lib/thread-optim.h: New file.
2118         * modules/thread-optim: New file.
2119         * doc/multithread.texi (Multithreading Optimizations): New section.
2121 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
2123         doc: more updates for glibc 2.32
2124         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
2125         * doc/posix-functions/fchmodat.texi: Update.
2127 2020-08-07  Bruno Haible  <bruno@clisp.org>
2129         doc: Update for glibc 2.32.
2130         * doc/glibc-functions/__libc_single_threaded.texi: New file.
2131         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
2132         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
2133         * doc/glibc-functions/sigabbrev_np.texi: New file.
2134         * doc/glibc-functions/sigdescr_np.texi: New file.
2135         * doc/glibc-functions/strerrordesc_np.texi: New file.
2136         * doc/glibc-functions/strerrorname_np.texi: New file.
2137         * doc/gnulib.texi: Include them.
2138         (Glibc sys/single_threaded.h): New section.
2139         * doc/pastposix-functions/h_errno.texi: Update.
2140         * doc/posix-functions/*.texi: Likewise.
2141         * doc/glibc-functions/*.texi: Likewise.
2143 2020-08-07  Bruno Haible  <bruno@clisp.org>
2145         alloca: No need to compile alloca.c with clang.
2146         * lib/alloca.c: Skip all code with clang.
2148         Use __builtin_alloca with clang.
2149         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
2151 2020-08-06  Bruno Haible  <bruno@clisp.org>
2153         Use __builtin_assume with clang.
2154         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
2155         (assume): Use __builtin_assume when available.
2157 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
2159         libgmp: add <gmp/gmp.h> support
2160         * m4/libgmp.m4 (gl_LIBGMP):
2161         * modules/libgmp (configure.ac, Makefile.am):
2162         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
2163         ‘#include <gmp.h>’.
2165 2020-08-06  Bruno Haible  <bruno@clisp.org>
2167         Consider that clang defines __OPTIMIZE__ like GCC does.
2168         * lib/streq.h: Define the inline functions also on clang.
2169         * lib/c-strcaseeq.h: Likewise.
2170         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
2171         the GCC workaround to clang.
2173 2020-08-06  Bruno Haible  <bruno@clisp.org>
2175         safe-alloc: Remove unused code.
2176         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
2178 2020-08-06  Bruno Haible  <bruno@clisp.org>
2180         Use __builtin_expect with clang everywhere.
2181         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
2182         also on clang.
2184 2020-08-05  Bruno Haible  <bruno@clisp.org>
2186         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
2187         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
2188         built-in also on clang.
2189         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
2190         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
2192 2020-08-05  Bruno Haible  <bruno@clisp.org>
2194         Use __builtin_clz{,l,ll} with clang, also on Windows.
2195         * lib/integer_length.c: With clang, use the GCC built-in, not
2196         <intrin.h>.
2197         * lib/integer_length_l.c: Likewise.
2198         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
2199         also on clang.
2200         * lib/vasnprintf.c (divide): Likewise.
2202 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
2204         Update srclist.txt as per recent glibc changes
2205         * config/srclist.txt: Uncomment lines to reflect recent merges
2206         from Gnulib to glibc.
2208 2020-08-03  Bruno Haible  <bruno@clisp.org>
2210         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
2211         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
2213 2020-08-03  Bruno Haible  <bruno@clisp.org>
2215         integer_length_ll: Optimize for MSVC in 64-bit mode.
2216         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
2217         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
2219 2020-08-03  Bruno Haible  <bruno@clisp.org>
2221         integer_length_ll: Optimize for MSVC in 32-bit mode.
2222         * lib/integer_length_l.c: Include <intrin.h>.
2223         (integer_length): Define as inline function, like in
2224         lib/integer_length.c.
2226 2020-08-03  Bruno Haible  <bruno@clisp.org>
2228         integer_length: Optimize for MSVC.
2229         * lib/integer_length.c: Include <intrin.h>.
2230         (integer_length): With MSVC, use the _BitScanReverse built-in.
2232 2020-08-03  Bruno Haible  <bruno@clisp.org>
2234         ffsll: Optimize for MSVC in 64-bit mode.
2235         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
2236         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
2237         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
2239 2020-08-03  Bruno Haible  <bruno@clisp.org>
2241         ffsll: Optimize for MSVC in 32-bit mode.
2242         * lib/ffsl.h: Include <intrin.h>.
2243         (ffs): Define as inline function, like in lib/ffs.c.
2245 2020-08-03  Bruno Haible  <bruno@clisp.org>
2247         ffs: Optimize for MSVC.
2248         * lib/ffs.c: Include <intrin.h>.
2249         (ffs): With MSVC, use the _BitScanForward built-in.
2251 2020-08-03  Bruno Haible  <bruno@clisp.org>
2253         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
2254         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
2255         variable.
2257 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
2259         fopen: Avoid undesired interactions with glibc headers.
2260         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
2261         __need_FILE, as the latter does not work with glibc.
2263 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2265         fcntl: document some F_SETLK errno variations
2266         * doc/posix-functions/fcntl.texi (fcntl): Document
2267         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
2269 2020-08-02  Bruno Haible  <bruno@clisp.org>
2271         oset: Add an 'iterator_atleast' operation.
2272         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
2273         extracted from gl_array_search_atleast.
2274         (gl_array_search_atleast): Use it.
2275         (gl_array_iterator_atleast): New function.
2276         (gl_array_oset_implementation): Use it.
2277         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
2278         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
2279         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
2280         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
2281         member.
2282         (gl_oset_iterator_atleast): New function.
2283         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
2284         (gl_OSet::iterator): Add another auxiliary constructor.
2285         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
2286         New functions.
2287         (main): Test also gl_oset_iterator_atleast.
2288         * tests/test-avltree_oset.c (is_at_least): New function.
2289         (main): Test also gl_oset_iterator_atleast.
2290         * tests/test-rbtree_oset.c (is_at_least): New function.
2291         (main): Test also gl_oset_iterator_atleast.
2292         * tests/test-oset-c++.cc (is_at_most): New function.
2293         (main): Test also gl_OSet::begin_atleast.
2295 2020-08-02  Bruno Haible  <bruno@clisp.org>
2297         oset-c++, omap-c++: Remove restriction for search_atleast method.
2298         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
2299         a different type than the element.
2300         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
2301         a different type than the key.
2303 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2305         gnumakefile: say ‘$(MAKE)’ not ‘make’
2306         * top/GNUmakefile (abort-due-to-no-makefile):
2307         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
2308         This change is backported from Autoconf.
2310 2020-08-01  Bruno Haible  <bruno@clisp.org>
2312         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
2313         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
2314         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2315         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
2316         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
2317         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
2319 2020-08-01  Bruno Haible  <bruno@clisp.org>
2321         libtextstyle-optional: Update tests.
2322         * modules/libtextstyle-optional-tests (configure.ac): Invoke
2323         gl_LIBTEXTSTYLE_OPTIONAL.
2325 2020-08-01  Bruno Haible  <bruno@clisp.org>
2327         parse-datetime: Fix wrong #line statements.
2328         * modules/parse-datetime (Makefile.am): Correct #line statements also in
2329         parse-datetime-gen.h.
2331 2020-08-01  Bruno Haible  <bruno@clisp.org>
2333         libtextstyle[-optional]: Allow requesting a minimum version.
2334         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
2335         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
2336         gl_LIBTEXTSTYLE_SEARCH): New macros.
2337         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
2338         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
2339         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
2340         * modules/libtextstyle-optional (configure.ac): Don't invoke
2341         gl_LIBTEXTSTYLE_OPTIONAL.
2342         * NEWS: Mention the changes.
2344 2020-07-31  Bruno Haible  <bruno@clisp.org>
2346         _GL_CMP: Improve documentation.
2347         Reported by Paul Eggert in
2348         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
2349         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
2350         passed.
2352 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2354         largefile: sync with Autoconf master
2355         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
2356         Avoid undefined behavior on platforms where off_t is 32 bits.
2357         See: https://bugs.debian.org/742780
2359         alloca: sync with Autoconf master
2360         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2361         Do not define if Autoconf 2.70 or later, since Autoconf master
2362         now matches us.
2364 2020-07-30  Bruno Haible  <bruno@clisp.org>
2366         unicodeio: Add comment.
2367         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
2368         different iconv behaviours.
2370 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
2372         Work around some Oracle Studio attribute bugs
2373         These were discovered when building bleeding-edge Emacs with
2374         Oracle Studio.
2375         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
2376         Port to Oracle Studio 12.6, which mishandles __attribute__
2377         ((__cold__)) and __attribute__ ((__may_alias__)) even though
2378         __has_attribute says they work.
2380 2020-07-29  Bruno Haible  <bruno@clisp.org>
2382         unicodeio: Fix wrong result on musl libc.
2383         Reported by A. Wilcox <awilfox@adelielinux.org> in
2384         <https://www.openwall.com/lists/musl/2020/07/29/2>.
2385         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
2386         on musl libc.
2387         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
2388         * modules/unicodeio (Files): Add m4/musl.m4.
2390 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
2392         fsusage, regex, stat-size: remove Cray support
2393         As near as I can make out this is actually support for UNICOS/mp,
2394         last released 2005, and Cray hasn’t supported that for years.
2395         * config/srclist.txt: Comment out regex.h for now.
2396         * lib/fsusage.c (get_fs_usage):
2397         * lib/regex.h (re_comp, re_exec):
2398         * lib/stat-size.h (ST_NBLOCKSIZE):
2399         Don’t worry about _CRAY.
2401 2020-07-29  Bruno Haible  <bruno@clisp.org>
2403         parse-datetime: Fix compilation error with bison 3.7.
2404         * modules/parse-datetime (Makefile.am): Create a generated header file
2405         parse-datetime-gen.h in the source directory. Correct #include and
2406         #line statements during preprocessing.
2408 2020-07-28  Bruno Haible  <bruno@clisp.org>
2410         fopen-gnu: Create files correctly (regression from 2020-05-24).
2411         * lib/fopen.c (rpl_open): Pass a third argument to open().
2413 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
2415         xalloc-die: don’t depend on xalloc
2416         This removes a circular dependency, as xalloc depends on xalloc-die.
2417         * modules/xalloc-die (Files): Add lib/xalloc.h.
2418         (Depends-on): Remove xalloc.
2419         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
2421         dfa-tests: port to MSVC
2422         Problem reported by Gisle Vanem in:
2423         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
2424         Also, remove an unnecessary dependency on getprogname.
2425         * modules/dfa-tests (Depends-on): Remove getprogname.
2426         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
2427         (exit_status): New static var.
2428         (dfawarn): Set it instead of exiting.
2429         Do not declare as _Noreturn, to pacify MSVC.
2430         (main): Return exit_status.
2432 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2434         argz: pacify MSVC
2435         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
2436         Problem reported by Gisle Vanem.
2438         libgmp: remove dependency on havelib
2439         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
2440         use the more-traditional AC_SEARCH_LIBS approach.
2441         This should work better with GNU Emacs configuration,
2442         which uses pkg-config instead of a havelib-style approach.
2443         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
2444         * modules/libgmp (Depends-on): Remove havelib.
2446         libgmp: remove HAVE_GMP, LIB_GMP
2447         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
2448         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
2450 2020-07-26  Bruno Haible  <bruno@clisp.org>
2452         inttypes: Remove support for AIX 4.
2453         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
2454         * m4/inttypes-pri.m4: Remove file.
2455         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
2456         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
2457         * modules/inttypes-incomplete (Makefile.am): Don't substitute
2458         PRI_MACROS_BROKEN.
2459         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
2461 2020-07-26  Bruno Haible  <bruno@clisp.org>
2463         gettimeofday: Remove workaround for Mac OS X 10.0.
2464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
2465         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
2466         * lib/gettimeofday.c: Don't include localtime-buffer.h.
2467         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2468         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2469         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
2470         * modules/localtime-buffer: Remove file.
2471         * lib/localtime-buffer.h: Remove file.
2472         * lib/localtime-buffer.c: Remove file.
2473         * m4/localtime-buffer.m4: Remove file.
2474         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
2476 2020-07-26  Bruno Haible  <bruno@clisp.org>
2478         tzset: Remove workaround for Solaris 2.6.
2479         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
2480         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
2481         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
2482         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
2483         * lib/localtime-buffer.c: Likewise.
2484         * lib/localtime.c: Likewise.
2485         * lib/tzset.c: Don't include localtime-buffer.h.
2486         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
2487         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
2488         is 1.
2489         * modules/tzset (Depends-on): Remove localtime-buffer.
2491 2020-07-26  Bruno Haible  <bruno@clisp.org>
2493         expl: Simplify autoconf test.
2494         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
2495         with small values..." test into the "checking whether expl works..."
2496         test.
2498 2020-07-26  Bruno Haible  <bruno@clisp.org>
2500         alloca: Remove Cray-2 and Cray Y-MP support.
2501         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
2502         Enable also on Autoconf >= 2.69.
2503         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
2504         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
2505         i00afunc): Remove.
2507 2020-07-25  Bruno Haible  <bruno@clisp.org>
2509         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
2510         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
2512 2020-07-25  Bruno Haible  <bruno@clisp.org>
2514         sigprocmask: Small autoconf macro improvement.
2515         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
2516         user to override the value of gl_cv_func_sigprocmask.
2517         * m4/gnulib-common.m4 (gl_SILENT): New macro.
2519 2020-07-25  Bruno Haible  <bruno@clisp.org>
2521         Small autoconf macro improvements.
2522         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
2523         override the value of gl_cv_func_working_mktime.
2524         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
2525         compiler produces multi-arch binaries..." in the configure output.
2526         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
2527         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
2529 2020-07-25  Bruno Haible  <bruno@clisp.org>
2531         doc: Update for NetBSD 7.1, 8.0, 9.0.
2532         * doc/*/*.texi: Update.
2533         * m4/exp2l.m4: Update comments.
2534         * m4/expl.m4: Likewise.
2535         * m4/ilogb.m4: Likewise.
2536         * m4/ilogbf.m4: Likewise.
2537         * m4/log10l.m4: Likewise.
2538         * m4/logl.m4: Likewise.
2539         * m4/printf.m4: Likewise.
2540         * m4/rintl.m4: Likewise.
2541         * m4/wcwidth.m4: Likewise.
2543 2020-07-24  Bruno Haible  <bruno@clisp.org>
2545         doc: Update for Mac OS X 10.13.
2546         * doc/*/*.texi: Update.
2547         * m4/expm1l.m4: Update comments.
2548         * m4/getgroups.m4: Likewise.
2549         * m4/getlogin_r.m4: Likewise.
2550         * m4/linkat.m4: Likewise.
2551         * m4/printf.m4: Likewise.
2553 2020-07-24  Bruno Haible  <bruno@clisp.org>
2555         doc: Update for Cygwin 2.9.0.
2556         * doc/*/*.texi: Update.
2558 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2560         parse-datetime: modernize doc
2561         * doc/parse-datetime.texi: Use more-current examples.
2562         Don’t lead with 32-bit time_t, as it’s on its way out.
2563         Capitalize “Epoch” to be consistent with POSIX.
2565         timespec: remove dependence on ‘verify’
2566         * lib/timespec.h: Do not include verify.h; no longer needed.
2567         * modules/timespec (Depends-on): Remove ‘verify’.
2569         Optimize a few more three-valued comparisons
2570         * lib/timespec.h (timespec_cmp, timespec_sign):
2571         * lib/utimecmp.c (utimecmpat):
2572         Avoid conditional branches by using _GL_CMP.
2574         Fix _GL_CMP parenthesization typo
2575         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
2577 2020-07-24  Bruno Haible  <bruno@clisp.org>
2579         dfa: Revert breaking gawk.
2580         Reported by Arnold Robbins <arnold@skeeve.com>.
2581         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
2583 2020-07-23  Bruno Haible  <bruno@clisp.org>
2585         Optimize three-valued comparison between integers.
2586         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
2587         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
2588         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
2589         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
2590         * lib/dfa.c (compare): Likewise.
2591         * lib/fts.c (fts_compare_ino): Likewise.
2592         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
2593         * lib/mbscasecmp.c (mbscasecmp): Likewise.
2594         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
2595         * lib/memcasecmp.c (memcasecmp): Likewise.
2596         * lib/memcmp2.c (memcmp2): Likewise.
2597         * lib/savedir.c (direntry_cmp_inode): Likewise.
2598         * lib/strcasecmp.c (strcasecmp): Likewise.
2599         * lib/strncasecmp.c (strncasecmp): Likewise.
2600         * lib/unistr/u-cmp2.h (FUNC): Likewise.
2602 2020-07-23  Bruno Haible  <bruno@clisp.org>
2604         lchmod: Use /proc on Cygwin.
2605         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
2607 2020-07-23  Ken Brown  <kbrown@cornell.edu>
2609         fchmodat: Use /proc on Cygwin
2610         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
2612 2020-07-21  Bruno Haible  <bruno@clisp.org>
2614         aligned-malloc: Optionally use aligned_alloc.
2615         * lib/aligned-malloc.h: Verify the alignment.
2616         (aligned_malloc): Use aligned_alloc as an alternative.
2617         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
2618         * doc/posix-functions/aligned_alloc.texi: Mention the modules
2619         'aligned-malloc' and 'pagealign_alloc'.
2621 2020-07-21  Bruno Haible  <bruno@clisp.org>
2623         aligned-malloc: Add tests.
2624         * tests/test-aligned-malloc.c: New file.
2625         * modules/aligned-malloc-tests: New file.
2627         aligned-malloc: New module.
2628         * lib/aligned-malloc.h: New file.
2629         * m4/malloc-align.m4: New file.
2630         * modules/aligned-malloc: New file.
2631         * doc/posix-functions/posix_memalign.texi: Mention the new module.
2632         * doc/glibc-functions/memalign.texi: Likewise.
2634 2020-07-21  Bruno Haible  <bruno@clisp.org>
2636         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
2637         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
2638         sure PRIPTR_PREFIX is defined to "ll", not "l".
2640 2020-07-21  Bruno Haible  <bruno@clisp.org>
2642         printf-posix: Make an autoconf test more future-proof.
2643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
2644         using uintptr_t.
2646 2020-07-20  Bruno Haible  <bruno@clisp.org>
2648         list, oset, omap: Relicense some of the container modules under LGPLv2+.
2649         * modules/list (License): Change to LGPLv2+.
2650         * modules/array-list (License): Likewise.
2651         * modules/carray-list (License): Likewise.
2652         * modules/linked-list (License): Likewise.
2653         * modules/avltree-list (License): Likewise.
2654         * modules/rbtree-list (License): Likewise.
2655         * modules/oset (License): Likewise.
2656         * modules/array-oset (License): Likewise.
2657         * modules/avltree-oset (License): Likewise.
2658         * modules/rbtree-oset (License): Likewise.
2659         * modules/omap (License): Likewise.
2660         * modules/array-omap (License): Likewise.
2661         * modules/avltree-omap (License): Likewise.
2662         * modules/rbtree-omap (License): Likewise.
2664 2020-07-20  Bruno Haible  <bruno@clisp.org>
2666         oset: Add an 'update' operation.
2667         * lib/gl_array_oset.c (gl_array_update): New function.
2668         (gl_array_oset_implementation): Use it.
2669         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2670         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2671         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
2672         extracted from gl_tree_nx_add_before.
2673         (gl_tree_nx_add_before): Invoke it.
2674         (gl_tree_add_node_after): New function, extracted from
2675         gl_tree_nx_add_after.
2676         (gl_tree_nx_add_after): Invoke it.
2677         (gl_tree_remove_node_no_free): New function, extracted from
2678         gl_tree_remove_node.
2679         (gl_tree_remove_node): Invoke it.
2680         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
2681         extracted from gl_tree_nx_add_before.
2682         (gl_tree_nx_add_before): Invoke it.
2683         (gl_tree_add_node_after): New function, extracted from
2684         gl_tree_nx_add_after.
2685         (gl_tree_nx_add_after): Invoke it.
2686         (gl_tree_remove_node_no_free): New function, extracted from
2687         gl_tree_remove_node.
2688         (gl_tree_remove_node): Invoke it.
2689         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
2690         from gl_tree_iterator_next.
2691         (gl_tree_iterator_next): Invoke it.
2692         (gl_tree_prev_node, gl_tree_update): New functions.
2693         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2694         (gl_avltree_oset_implementation): Use gl_tree_update.
2695         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2696         (gl_rbtree_oset_implementation): Use gl_tree_update.
2697         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
2698         (gl_oset_update): New function.
2699         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
2700         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
2701         * modules/rbtree-oset (configure.ac): Likewise.
2702         * tests/test-oset-update.h: New file.
2703         * tests/test-array_oset.c: Include test-oset-update.h.
2704         (main): Invoke test_update.
2705         * tests/test-avltree_oset.c: Likewise.
2706         * tests/test-rbtree_oset.c: Likewise.
2707         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
2708         * modules/avltree-oset-tests (Files): Likewise.
2709         * modules/rbtree-oset-tests (Files): Likewise.
2710         * tests/test-oset-c++.cc (action): New function.
2711         (main): Test the 'update' member function.
2713 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2715         md5, sha1, sha256, sha512: pacify Autoconf 2.70
2716         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
2717         shell if, so that the argument to AC_CHECK_HEADERS is
2718         a simple string that does not require shell evaluation.
2719         This fixes a warning generated by Autoconf 2.69b.
2721 2020-07-12  Bruno Haible  <bruno@clisp.org>
2723         libgmp: Avoid warning when --without-libgmp is used.
2724         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
2725         GCC >= 8, not for GCC >= 4.6.
2727 2020-07-12  Bruno Haible  <bruno@clisp.org>
2729         libgmp: Link to the correct shared library.
2730         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
2731         * modules/libgmp (Depends-on): Add havelib.
2732         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
2733         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
2735 2020-07-12  Bruno Haible  <bruno@clisp.org>
2737         libgmp tests: Add some safety checks.
2738         * modules/libgmp-tests (Depends-on): Add verify.
2739         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
2740         (main): Verify that gmp.h and libgmp versions match.
2742 2020-07-10  Bruno Haible  <bruno@clisp.org>
2744         unicodeio: Fix wrong result on NetBSD.
2745         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2746         characters also on NetBSD.
2748 2020-07-09  Bruno Haible  <bruno@clisp.org>
2750         unicodeio: Fix wrong result on Solaris 11.
2751         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
2752         via Akim Demaille <akim.demaille@gmail.com> in
2753         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
2754         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2755         characters on Solaris.
2756         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
2757         UTF-8 output or the specified fallback.
2759 2020-07-08  Bruno Haible  <bruno@clisp.org>
2761         unicodeio: Add tests.
2762         * tests/test-unicodeio.c: New file.
2763         * tests/test-unicodeio1.sh: New file.
2764         * tests/test-unicodeio2.sh: New file.
2765         * tests/test-unicodeio3.sh: New file.
2766         * modules/unicodeio-tests: New file.
2768 2020-07-08  Bruno Haible  <bruno@clisp.org>
2770         unicodeio: Document link requirements.
2771         * modules/unicodeio (Link): New section.
2773 2020-07-07  Bruno Haible  <bruno@clisp.org>
2775         doc: Remove support for some very old platforms.
2776         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
2777         * doc/posix-functions/memcpy.texi: Likewise.
2778         * doc/posix-functions/memmove.texi: Likewise.
2779         * doc/posix-functions/memset.texi: Likewise.
2780         * doc/posix-functions/getcwd.texi: Likewise.
2782         memchr: Remove support for some very old platforms.
2783         * m4/memchr-obsolete.m4: Remove file.
2784         * modules/memchr-obsolete: Remove file.
2785         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
2786         absent. Don't define HAVE_MEMCHR.
2787         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
2788         * modules/memchr (Depends-on): Remove memchr-obsolete.
2789         (configure.ac): Assume HAVE_MEMCHR is 1.
2790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2791         HAVE_MEMCHR.
2792         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
2793         * doc/posix-functions/memchr.texi: Don't mention module
2794         'memchr-obsolete'.
2795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2796         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2797         * modules/strnlen (Depends-on): Remove memchr-obsolete.
2799         dup2: Remove support for some very old platforms.
2800         * m4/dup2-obsolete.m4: Remove file.
2801         * modules/dup2-obsolete: Remove file.
2802         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
2803         Don't define HAVE_DUP2.
2804         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
2805         * lib/dup2.c: Likewise.
2806         * modules/dup2 (Depends-on, configure.ac): Likewise.
2807         (Depends-on): Remove dup2-obsolete.
2808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
2809         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
2810         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
2812 2020-07-07  Bruno Haible  <bruno@clisp.org>
2814         canonicalize: Trim module dependencies.
2815         * lib/hash-triple.h: Group declarations.
2816         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
2817         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
2818         (STREQ): Remove macro.
2819         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
2820         * modules/hash-triple-simple: New file, based on modules/hash-triple.
2821         * modules/hash-triple (Files): Remove lib/hash-triple.h.
2822         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
2823         * modules/canonicalize (Depends-on): Remove hash-triple. Add
2824         hash-triple-simple.
2825         * modules/file-set (Depends-on): Likewise.
2827 2020-07-07  Bruno Haible  <bruno@clisp.org>
2829         Clarify dependencies to double-slash-root.
2830         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
2831         (Depends-on): Add double-slash-root.
2832         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
2833         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
2835 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2837         libgmp: new module
2838         The idea is to let programs simply include <gmp.h>, and
2839         so long as they live within the mini-gmp subset they need
2840         not worry about whether the GMP libraries are installed.
2841         * MODULES.html.sh: Mention it.
2842         * config/srclist.txt: Mention files copied from GMP source.
2843         * config/srclistvars.sh (GMP): New var.
2844         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
2845         * modules/libgmp-tests, tests/test-libgmp.c: New files.
2846         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
2848 2020-07-05  Bruno Haible  <bruno@clisp.org>
2850         mkancesdirs: Trim module dependencies.
2851         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
2852         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
2854 2020-07-05  Bruno Haible  <bruno@clisp.org>
2856         getprogname: Trim module dependencies.
2857         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
2858         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
2859         basename-lgpl.
2861 2020-07-05  Bruno Haible  <bruno@clisp.org>
2863         filenamecat-lgpl: Trim module dependencies.
2864         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
2865         dirname.h.
2866         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
2867         basename-lgpl, filename.
2869 2020-07-05  Bruno Haible  <bruno@clisp.org>
2871         backupfile, backup-rename: Trim module dependencies.
2872         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
2873         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
2874         basename-lgpl.
2875         * modules/backup-rename (Depends-on): Likewise.
2877 2020-07-05  Bruno Haible  <bruno@clisp.org>
2879         argp: Trim module dependencies.
2880         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
2881         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
2883 2020-07-05  Bruno Haible  <bruno@clisp.org>
2885         basename-lgpl: New module.
2886         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
2887         lib/basename-lgpl.c.
2888         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
2889         <stdbool.h>, filename.h.
2890         (last_component): Rename a local variable.
2891         * lib/dirname.h: Include basename-lgpl.h.
2892         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
2893         (last_component, base_len): Remove declarations.
2894         * modules/basename-lgpl: New file.
2895         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2896         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2897         (Makefile.am): Don't compile basename-lgpl.c.
2898         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2899         not 'dirname'.
2901 2020-07-05  Bruno Haible  <bruno@clisp.org>
2903         dirname, dirname-lgpl: Simplify.
2904         * m4/dirname.m4: Remove file.
2905         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2906         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2907         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2909 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2911         tests: avoid shadowing warning
2912         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2914 2020-07-05  Bruno Haible  <bruno@clisp.org>
2916         supersede: Add tests.
2917         * tests/test-supersede.c: New file.
2918         * tests/test-supersede-open.h: New file.
2919         * tests/test-supersede-fopen.h: New file.
2920         * modules/supersede-tests: New file.
2922         supersede: New module.
2923         * lib/supersede.h: New file.
2924         * lib/supersede.c: New file.
2925         * m4/supersede.m4: New file.
2926         * modules/supersede: New file.
2928 2020-07-05  Bruno Haible  <bruno@clisp.org>
2930         Add some copyright headers.
2931         * lib/dev-ino.h: Add copyright header.
2932         * lib/di-set.h: Likewise.
2933         * lib/fchown-stub.c: Likewise.
2934         * lib/file-set.h: Likewise.
2935         * lib/hash-triple.h: Likewise.
2936         * lib/idcache.h: Likewise.
2937         * lib/ino-map.h: Likewise.
2938         * lib/mkancesdirs.h: Likewise.
2939         * lib/scratch_buffer.h: Likewise.
2940         * lib/se-context.in.h: Likewise.
2941         * lib/stdopen.h: Likewise.
2942         * lib/userspec.h: Likewise.
2944 2020-07-04  Bruno Haible  <bruno@clisp.org>
2946         getrandom: Relicense under LGPLv2+.
2947         Paul Eggert's approval is in
2948         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2949         * modules/getrandom (License): Change to LGPLv2+.
2951 2020-07-04  Bruno Haible  <bruno@clisp.org>
2953         getumask: Add tests.
2954         * tests/test-getumask.c: New file.
2955         * modules/getumask-tests: New file.
2957         getumask: New module.
2958         * lib/sys_stat.in.h (getumask): New declaration.
2959         * lib/getumask.c: New file.
2960         * m4/getumask.m4: New file.
2961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2962         declared.
2963         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2964         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2965         HAVE_GETUMASK.
2966         * modules/getumask: New file.
2967         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2968         * doc/glibc-functions/getumask.texi: New file.
2969         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2971 2020-07-04  Bruno Haible  <bruno@clisp.org>
2973         clean-temp: Add support for temporary files with given mode.
2974         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2975         * lib/clean-temp.c (struct try_create_file_params): New type.
2976         (try_create_file): New function.
2977         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2978         gen_tempname.
2980 2020-07-04  Bruno Haible  <bruno@clisp.org>
2982         clean-temp: Document limitations.
2983         * lib/clean-temp.h: Document limitations.
2985 2020-07-04  Bruno Haible  <bruno@clisp.org>
2987         clean-temp: Add support for temporary files with unpredictable names.
2988         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2989         * lib/clean-temp.c: Include tempname.h.
2990         (gen_register_open_temp): New function.
2991         * modules/tempname (configure.ac): Define a module indicator.
2993 2020-07-04  Bruno Haible  <bruno@clisp.org>
2995         clean-temp: Add support for temporary files anywhere in the file system.
2996         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2997         cleanup_temporary_file): New declarations.
2998         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2999         variables.
3000         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
3001         (dir_cleanup_list): Renamed from cleanup_list.
3002         (cleanup_action): Process the file_cleanup_list as well.
3003         (do_init_clean_temp): New function.
3004         (clean_temp_once): New variable.
3005         (init_clean_temp): New function.
3006         (create_temp_dir): Invoke it.
3007         (register_temporary_file, unregister_temporary_file,
3008         cleanup_temporary_file): New functions.
3009         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
3010         argument.
3012 2020-07-04  Bruno Haible  <bruno@clisp.org>
3014         clean-temp: Improve comments.
3015         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3016         fwriteerror_temp, close_stream_temp): Clarify intended use.
3017         * lib/clean-temp.c: Likewise.
3019 2020-07-04  Bruno Haible  <bruno@clisp.org>
3021         clean-temp: Make multithread-safe, part 2.
3022         * lib/fatal-signal.h: Include <signal.h>.
3023         (get_fatal_signal_set): New declaration.
3024         * lib/fatal-signal.c (get_fatal_signal_set): New function.
3025         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
3026         (struct closeable_fd): New type.
3027         (fatal_signal_set): New variable.
3028         (init_fatal_signal_set): New function.
3029         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
3030         (cleanup_action): Invoke asyncsafe_close instead of close.
3031         (create_temp_dir): Invoke init_fatal_signal_set.
3032         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
3033         element.
3034         (unregister_fd): Remove function.
3035         (close_temp): Cleanup descriptors list on the fly. Invoke
3036         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
3037         (fclose_variant_temp): New function.
3038         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
3039         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
3041 2020-07-04  Bruno Haible  <bruno@clisp.org>
3043         clean-temp: Make multithread-safe, part 1.
3044         * lib/clean-temp.c: Include glthread/lock.h.
3045         (cleanup_list_lock): New variable.
3046         (register_temp_file, unregister_temp_file, register_temp_subdir,
3047         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
3048         (create_temp_dir): Likewise. Don't free the old array.
3049         (descriptors_lock): New variable.
3050         (register_fd, unregister_fd): Use it.
3051         * modules/clean-temp (Depends-on): Add lock.
3053 2020-07-04  Bruno Haible  <bruno@clisp.org>
3055         fatal-signal: Make multithread-safe.
3056         * lib/fatal-signal.c (init_fatal_signals): Add comment.
3057         (do_init_fatal_signal_set): New function, extracted from
3058         init_fatal_signal_set.
3059         (fatal_signal_set_once): New variable.
3060         (init_fatal_signal_set): Use gl_once.
3062 2020-07-03  Bruno Haible  <bruno@clisp.org>
3064         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
3065         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
3066         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
3067         <bcrypt.h>.
3069 2020-07-03  Bruno Haible  <bruno@clisp.org>
3071         dfa tests: Follow common file naming conventions.
3072         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
3073         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
3074         * tests/test-dfa-invalid-char-class.sh: Renamed from
3075         tests/dfa-invalid-char-class.sh. Update.
3076         * modules/dfa-tests (Files, Makefile.am): Update.
3078 2020-07-03  Bruno Haible  <bruno@clisp.org>
3080         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
3081         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
3082         the GCC extended asm syntax also for the Sun Studio 12 compilers.
3084 2020-07-03  Bruno Haible  <bruno@clisp.org>
3086         asyncsafe-spin: Reduce code duplication.
3087         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
3088         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
3089         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
3091 2020-07-03  Bruno Haible  <bruno@clisp.org>
3093         lchmod: Simplify after 2020-02-22 change.
3094         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
3096 2020-07-03  Bruno Haible  <bruno@clisp.org>
3098         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
3099         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
3101 2020-07-03  Bruno Haible  <bruno@clisp.org>
3103         dfa: Make sure the compiler does not barf on 'inline'.
3104         * modules/dfa (configure.ac): Require AC_C_INLINE.
3106 2020-07-03  Bruno Haible  <bruno@clisp.org>
3108         bitset: Make sure the compiler does not barf on 'inline'.
3109         * modules/bitset (configure.ac): New section.
3111 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
3113         manywarnings: improve port to GCC 10.1
3114         * build-aux/gcc-warning.spec: Also list warnings that are default
3115         or are enabled by already-given flags.  This lets us speed up
3116         checking for attributes, and makes the generated compilation
3117         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
3118         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
3119         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
3120         to shell variables that may have long values.
3121         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
3122         consequences of other flags, to speed up checking and
3123         shorten commands.
3125         tests: pacify gcc -fanalyzer on zerosize_ptr
3126         * tests/test-memcasecmp.c (main):
3127         * tests/test-memchr.c (main):
3128         * tests/test-memchr2.c (main):
3129         * tests/test-memcmp.c (main):
3130         * tests/test-memmem.c (main):
3131         * tests/test-memrchr.c (main):
3132         * tests/unistr/test-chr.h (main):
3133         * tests/unistr/test-cmp.h (test_cmp):
3134         Check whether zerosize_ptr returns NULL before using it.
3135         This pacifies GCC 10.1’s new fanalyzer option, and matches
3136         other uses of zerosize_ptr.
3138 2020-07-01  Bruno Haible  <bruno@clisp.org>
3140         asyncsafe-spin: Add tests.
3141         * tests/test-asyncsafe-spin1.c: New file.
3142         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
3143         tests/test-pthread-spin.c.
3144         * modules/asyncsafe-spin-tests: New file.
3146 2020-07-01  Bruno Haible  <bruno@clisp.org>
3148         asyncsafe-spin: New module.
3149         * lib/asyncsafe-spin.h: New file.
3150         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
3151         * modules/asyncsafe-spin: New file.
3153 2020-07-01  Bruno Haible  <bruno@clisp.org>
3155         windows-spin: Fix race condition on multiprocessor systems.
3156         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
3158 2020-07-01  Bruno Haible  <bruno@clisp.org>
3160         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
3161         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3162         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
3163         an implementation based on other GCC built-ins.
3165 2020-07-01  Bruno Haible  <bruno@clisp.org>
3167         pthread-spin: Optimize fallback for GCC versions >= 4.7.
3168         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3169         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
3170         lock byte.
3172 2020-07-01  Bruno Haible  <bruno@clisp.org>
3174         pthread-spin: Add error checking.
3175         * lib/pthread-spin.c: Include <stdbool.h>.
3176         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
3177         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
3178         the unlocks.
3179         * modules/pthread-spin (Depends-on): Add stdbool.
3181 2020-07-01  Bruno Haible  <bruno@clisp.org>
3183         pthread-spin: Add tests.
3184         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
3185         * modules/pthread-spin-tests: New file.
3187 2020-07-01  Bruno Haible  <bruno@clisp.org>
3189         tests: Reduce code duplication.
3190         * tests/atomic-int-posix.h: New file, extracted from
3191         tests/test-pthread-mutex.c.
3192         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
3193         * tests/test-pthread-rwlock.c: Likewise.
3194         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
3195         * modules/pthread-rwlock-tests (Files): Likewise.
3197 2020-07-01  Bruno Haible  <bruno@clisp.org>
3199         tests: Refactor.
3200         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
3201         * tests/test-mtx.c: Include it. Remove the corresponding code.
3202         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
3204 2020-07-01  Bruno Haible  <bruno@clisp.org>
3206         tests: Refactor.
3207         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
3208         * tests/test-lock.c: Include it. Remove the corresponding code.
3209         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
3211 2020-06-29  Bruno Haible  <bruno@clisp.org>
3213         sys_socket: Don't define socklen_t if it is already defined on mingw.
3214         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
3215         <https://savannah.gnu.org/bugs/?57725>,
3216         by Rahul Das <bokul_4u@yahoo.com> in
3217         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
3218         and by Eli Zaretskii <eliz@gnu.org> in
3219         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
3220         * lib/sys_socket.in.h (socklen_t): Remove definition.
3222 2020-06-29  Bruno Haible  <bruno@clisp.org>
3224         alloca-opt: Fix warning on mingw.
3225         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
3226         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
3227         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
3228         whether alloca is defined.
3230 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
3232         getrandom: do not depend on ‘open’ on mingw
3233         Similarly for at-internal, getloadavg.  These modules do not call
3234         the ‘open’ function when they are compiled on mingw.  On mingw,
3235         this avoids having to compile open.c when building Emacs, which
3236         does its own thing with ‘open’.
3237         * modules/at-internal, modules/getloadavg, modules/getrandom:
3238         (Depends-on): Don’t depend on ‘open’ on mingw.
3239         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
3240         * modules/getloadavg (Depends-on):
3241         Depend on intprops, open, stdbool, stdlib only if compiling
3242         getloadavg.c.
3244 2020-06-28  Bruno Haible  <bruno@clisp.org>
3246         doc: Add a note about sigprocmask vs. pthread_sigmask.
3247         * doc/posix-functions/sigprocmask.texi: Add note.
3249 2020-06-28  Bruno Haible  <bruno@clisp.org>
3251         getrandom: Fix compilation errors on older versions of mingw.
3252         Reported by Eli Zaretskii <eliz@gnu.org> in
3253         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
3254         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
3255         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
3256         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
3257         BCryptGenRandom ourselves.
3259 2020-06-28  Bruno Haible  <bruno@clisp.org>
3261         clean-temp: Fix wrong errno in error message.
3262         * lib/clean-temp.c (create_temp_dir): Save errno around
3263         unblock_fatal_signals call.
3265 2020-06-27  Bruno Haible  <bruno@clisp.org>
3267         fatal-signal: Make multithread-safe.
3268         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
3270 2020-06-27  Bruno Haible  <bruno@clisp.org>
3272         clean-temp: Don't force deletion of temporary files on native Windows.
3273         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
3274         argument.
3275         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
3276         * NEWS: Mention the change.
3277         * lib/javacomp.c (write_temp_file): Update.
3279 2020-06-27  Bruno Haible  <bruno@clisp.org>
3281         fatal-signal: Make multithread-safe.
3282         * lib/fatal-signal.c: Include glthread/lock.h.
3283         (at_fatal_signal_lock): New variable.
3284         (at_fatal_signal): Use it.
3285         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
3286         (block_fatal_signals, unblock_fatal_signals): Use them.
3287         * modules/fatal-signal (Depends-on): Add lock.
3289 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
3291         getloadavg: don’t depend on fopen-gnu
3292         This is for Emacs, which does not need fopen-gnu for anything else,
3293         and which would need it only on a NetBSD platform where getloadavg
3294         does not work (does that even happen?).
3295         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
3296         * modules/getloadavg (Depends-on): Remove fopen-gnu.
3298         * tests/test-getloadavg.c (main): Fix typo.
3300 2020-06-27  Bruno Haible  <bruno@clisp.org>
3302         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
3303         * modules/tempname (Link): New section.
3304         * modules/mkdtemp (Link): Likewise.
3305         * modules/clean-temp (Link): Likewise.
3306         * modules/mkstemp (Link): Likewise.
3307         * modules/stdlib-safer (Link): Likewise.
3308         * modules/mkstemps (Link): Likewise.
3309         * modules/mkostemp (Link): Likewise.
3310         * modules/mkostemps (Link): Likewise.
3311         * modules/tmpfile (Link): Likewise.
3312         * modules/tmpfile-safer (Link): Likewise.
3313         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
3314         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
3315         $(LIB_GETRANDOM).
3316         * NEWS: Mention the changes.
3318 2020-06-27  Bruno Haible  <bruno@clisp.org>
3320         fopen-gnu: Simplify code.
3321         * lib/fopen.c: Include <stdbool.h>.
3322         (rpl_fopen): Use a single variable open_flags instead of
3323         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
3324         * modules/fopen (Depends-on): Add stdbool.
3326 2020-06-26  Bruno Haible  <bruno@clisp.org>
3328         canonicalize: Improve documentation.
3329         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
3330         return convention.
3332 2020-06-26  Bruno Haible  <bruno@clisp.org>
3334         xgetcwd: Improve documentation.
3335         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
3337 2020-06-26  Bruno Haible  <bruno@clisp.org>
3339         getcwd: Improve documentation.
3340         * lib/getcwd.c (__getcwd): Document the failure return convention.
3342 2020-06-26  Bruno Haible  <bruno@clisp.org>
3344         fchdir: Improve documentation.
3345         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
3346         convention.
3348 2020-06-26  Bruno Haible  <bruno@clisp.org>
3350         filenamecat-lgpl: Set errno upon failure.
3351         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
3352         return convention.
3353         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
3355 2020-06-26  Bruno Haible  <bruno@clisp.org>
3357         areadlink-with-size: Set errno upon failure.
3358         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
3359         fails.
3360         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
3362 2020-06-26  Bruno Haible  <bruno@clisp.org>
3364         copy-file: Shrink dependencies.
3365         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
3366         qcopy-acl.
3368 2020-06-26  Bruno Haible  <bruno@clisp.org>
3370         doc: Mention declaration fixes implemented by some modules.
3371         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
3372         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
3373         declaration appear in <unistd.h>.
3374         * doc/posix-functions/dup.texi: Likewise.
3375         * doc/posix-functions/dup2.texi: Likewise.
3376         * doc/posix-functions/gethostname.texi: Likewise.
3377         * doc/posix-functions/isatty.texi: Likewise.
3378         * doc/posix-functions/lseek.texi: Likewise.
3379         * doc/posix-functions/unlink.texi: Likewise.
3380         * doc/posix-functions/read.texi: Mention the module 'read'.
3381         * doc/posix-functions/write.texi: Mention the effects of the module
3382         'write'.
3384 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3386         c-dtoastr, c-ldtoastr: new modules
3387         These modules provide the same functionality as the modules
3388         dtoastr and ldtoastr except for the formatting taking place in the
3389         C locale.
3390         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
3391         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
3392         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
3393         defined.  Use c_snprintf and c_strtod/c_strtold instead of
3394         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
3395         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
3396         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
3397         modules/c-ldtoastr-tests: New files.
3398         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
3399         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
3401 2020-06-21  Bruno Haible  <bruno@clisp.org>
3403         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
3404         * lib/tzset.c: Include <stdlib.h>, <string.h>.
3406 2020-06-16  Bruno Haible  <bruno@clisp.org>
3408         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
3409         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
3411 2020-06-16  Bruno Haible  <bruno@clisp.org>
3413         thread, thrd: Avoid a compiler warning.
3414         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
3416 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
3418         windows-thread: Avoid a compiler warning.
3419         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
3420         void.
3421         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
3423 2020-06-15  Bruno Haible  <bruno@clisp.org>
3425         unictype/joininggroup-name: Fix warning on 64-bit mingw.
3426         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
3427         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
3428         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
3429         first.
3431 2020-06-06  Bruno Haible  <bruno@clisp.org>
3433         calloc-gnu tests: Avoid a test failure with clang.
3434         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
3435         'volatile', to defeat compiler optimizations.
3437 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3439         getloadavg: fix double-increment bug
3440         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
3441         Linux without glibc, Android, Cygwin.  This fixes a bug I
3442         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
3443         Problem and fix reported by Semen Verchenko in:
3444         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
3446         tempname: use getrandom, not getentropy
3447         This removes a dependency, as getentropy depends on getrandom.
3448         * lib/tempname.c: Include sys/random.h instead of unistd.h.
3449         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
3450         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
3452 2020-06-01  Bruno Haible  <bruno@clisp.org>
3454         doc: New chapter 'Multithreading'.
3455         * doc/multithread.texi: New file.
3456         * doc/gnulib.texi: Include it.
3458 2020-06-01  Bruno Haible  <bruno@clisp.org>
3460         doc: Move 'Running self-tests under valgrind' section.
3461         * doc/gnulib.texi (Build Infrastructure Modules): Include
3462         valgrind-tests.texi here...
3463         (Miscellaneous Notes): ... not here.
3465 2020-06-01  Bruno Haible  <bruno@clisp.org>
3467         doc: Move 'Visual Studio Compatibility' section.
3468         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
3469         here...
3470         (Build Infrastructure Modules): ... not here.
3472 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3474         doc: improve randomness discussion
3475         Inspired by comments from Jeffrey Walton in:
3476         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
3477         * doc/glibc-functions/getentropy.texi (getentropy):
3478         * doc/glibc-functions/getrandom.texi (getrandom):
3479         Improve discussion of problems with "random" data,
3480         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
3482 2020-06-01  Bruno Haible  <bruno@clisp.org>
3484         doc: Fix Texinfo syntax error.
3485         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
3487 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
3489         doc: Change '.' to '@.' where appropriate.
3490         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
3491         * doc/glibc-functions/fstatfs.texi: Likewise.
3492         * doc/glibc-functions/fts_children.texi: Likewise.
3493         * doc/glibc-functions/fts_read.texi: Likewise.
3494         * doc/glibc-functions/getdirentries.texi: Likewise.
3495         * doc/glibc-functions/mkostemp.texi: Likewise.
3496         * doc/glibc-functions/mkostemps.texi: Likewise.
3497         * doc/glibc-functions/mkstemps.texi: Likewise.
3498         * doc/glibc-functions/preadv.texi: Likewise.
3499         * doc/glibc-functions/pwritev.texi: Likewise.
3500         * doc/glibc-functions/sendfile.texi: Likewise.
3501         * doc/glibc-functions/statfs.texi: Likewise.
3502         * doc/gnulib-intro.texi: Likewise.
3503         * doc/gnulib-tool.texi: Likewise.
3504         * doc/intprops.texi: Likewise.
3505         * doc/lib-symbol-visibility.texi: Likewise.
3506         * doc/licenses-texi.texi: Likewise.
3507         * doc/pastposix-functions/bcmp.texi: Likewise.
3508         * doc/pastposix-functions/bcopy.texi: Likewise.
3509         * doc/pastposix-functions/bzero.texi: Likewise.
3510         * doc/pastposix-functions/ecvt.texi: Likewise.
3511         * doc/pastposix-functions/fcvt.texi: Likewise.
3512         * doc/pastposix-functions/ftime.texi: Likewise.
3513         * doc/pastposix-functions/gcvt.texi: Likewise.
3514         * doc/pastposix-functions/getwd.texi: Likewise.
3515         * doc/pastposix-functions/index.texi: Likewise.
3516         * doc/pastposix-functions/mktemp.texi: Likewise.
3517         * doc/pastposix-functions/rindex.texi: Likewise.
3518         * doc/pastposix-functions/wcswcs.texi: Likewise.
3519         * doc/posix-functions/aio_cancel.texi: Likewise.
3520         * doc/posix-functions/aio_error.texi: Likewise.
3521         * doc/posix-functions/aio_fsync.texi: Likewise.
3522         * doc/posix-functions/aio_read.texi: Likewise.
3523         * doc/posix-functions/aio_return.texi: Likewise.
3524         * doc/posix-functions/aio_suspend.texi: Likewise.
3525         * doc/posix-functions/aio_write.texi: Likewise.
3526         * doc/posix-functions/creat.texi: Likewise.
3527         * doc/posix-functions/ctime.texi: Likewise.
3528         * doc/posix-functions/daylight.texi: Likewise.
3529         * doc/posix-functions/fgetpos.texi: Likewise.
3530         * doc/posix-functions/fopen.texi: Likewise.
3531         * doc/posix-functions/freopen.texi: Likewise.
3532         * doc/posix-functions/fseeko.texi: Likewise.
3533         * doc/posix-functions/fsetpos.texi: Likewise.
3534         * doc/posix-functions/fstatat.texi: Likewise.
3535         * doc/posix-functions/fstatvfs.texi: Likewise.
3536         * doc/posix-functions/ftello.texi: Likewise.
3537         * doc/posix-functions/ftruncate.texi: Likewise.
3538         * doc/posix-functions/getrlimit.texi: Likewise.
3539         * doc/posix-functions/lio_listio.texi: Likewise.
3540         * doc/posix-functions/localtime.texi: Likewise.
3541         * doc/posix-functions/lseek.texi: Likewise.
3542         * doc/posix-functions/mkstemp.texi: Likewise.
3543         * doc/posix-functions/mktime.texi: Likewise.
3544         * doc/posix-functions/open.texi: Likewise.
3545         * doc/posix-functions/openat.texi: Likewise.
3546         * doc/posix-functions/opendir.texi: Likewise.
3547         * doc/posix-functions/pread.texi: Likewise.
3548         * doc/posix-functions/pwrite.texi: Likewise.
3549         * doc/posix-functions/readdir.texi: Likewise.
3550         * doc/posix-functions/readdir_r.texi: Likewise.
3551         * doc/posix-functions/scandir.texi: Likewise.
3552         * doc/posix-functions/seekdir.texi: Likewise.
3553         * doc/posix-functions/setrlimit.texi: Likewise.
3554         * doc/posix-functions/statvfs.texi: Likewise.
3555         * doc/posix-functions/strftime.texi: Likewise.
3556         * doc/posix-functions/telldir.texi: Likewise.
3557         * doc/posix-functions/timezone.texi: Likewise.
3558         * doc/posix-functions/tmpfile.texi: Likewise.
3559         * doc/posix-functions/truncate.texi: Likewise.
3560         * doc/posix-functions/tzname.texi: Likewise.
3561         * doc/posix-functions/wcsftime.texi: Likewise.
3562         * doc/windows-sockets.texi: Likewise.
3564 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3566         getrandom-tests: do not assume GRND_RANDOM yields short read
3567         * tests/test-getrandom.c (main): Omit assertion that
3568         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
3569         when b’s size is 100000.  This assertion fails with Linux kernel
3570         5.6.13, as that kernel ignores the GRND_RANDOM flag.
3571         The separate blocking pool is going away in the Linux kernel, and
3572         they’ve added a flag GRND_INSECURE instead; see:
3573         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
3574         The assertion was iffy anyway; what’s to prevent a kernel from
3575         lazily filling a large buffer with random bytes?
3577         read-file-test: pacify --enable-gcc-warnings
3578         * tests/test-read-file.c (test_read_file): Now static.
3580         tempname: merge from glibc and coreutils
3581         Also, merge in Gnulib’s more-recent methods of making it easier
3582         to share between Gnulib and glibc, and fix a few randomness
3583         glitches.
3584         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
3585         (__set_errno): Remove; libc-config.h does that for us.
3586         Do not include <sys/time.h>.
3587         (__secure_getenv) [_LIBC]: New macro.
3588         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
3589         (RANDOM_BITS): Rewrite.
3590         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
3591         (random_value): New typedef.
3592         (try_file, try_dir, try_nocreate): Move up.
3593         (gen_tempname_len, try_tempname_len): New functions.
3594         (gen_tempname_len): Use a constant array rather than a switch.
3595         (try_tempname_len): Don’t assume string length fits in int.
3596         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
3597         has enough entropy (it’s a bit short).
3598         (__gen_tempname): Rewrite in terms of gen_tempname_len.
3599         (__try_tempname): Rewrite in terms of try_tempname_len.
3600         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
3601         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
3602         Add getentropy, libc-config.
3604 2020-05-31  Bruno Haible  <bruno@clisp.org>
3606         getrandom, getentropy: Mention the crypto/gc-random module.
3607         Suggested by Simon Josefsson in
3608         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
3609         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
3610         crypto/gc-random module.
3611         * doc/glibc-functions/getentropy.texi: Likewise.
3613 2020-05-31  Bruno Haible  <bruno@clisp.org>
3615         getentropy: Enhance tests.
3616         * tests/test-getentropy.c (main): Add one more test.
3617         * tests/test-unistd-c++.cc: Check the signature of getentropy.
3619 2020-05-31  Bruno Haible  <bruno@clisp.org>
3621         getentropy: Work around a macOS and Solaris problem.
3622         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
3623         'getentropy' module.
3624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3625         UNISTD_H_HAVE_SYS_RANDOM_H.
3626         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
3627         UNISTD_H_HAVE_SYS_RANDOM_H.
3628         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
3629         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
3630         problem. List more platforms.
3632 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3634         fnmatch: merge from glibc
3635         Also, merge in Gnulib’s more-recent methods of making it easier
3636         to share between Gnulib and glibc.
3637         * lib/fnmatch.c: Reorder includes to match glibc better.
3638         Include libc-config.h instead of config.h.
3639         Include alloca.h only if _LIBC || HAVE_ALLOCA.
3640         Do not include "../locale/elem-hash.h" if _LIBC.
3641         Define macros for btowc, etc. if _LIBC.  All uses simplified.
3642         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
3643         Include intprops.h, since glibc has it now.
3644         (SIZE_MAX): Remove; use (size_t) -1 instead.
3645         Omit the "Comment out all this code" ifdef, since Gnulib
3646         has never really needed it.
3647         (STREQ): Remove; no longer used.
3648         (__libc_use_alloca, alloca, alloca_account): Define as
3649         needed if !_LIBC.
3650         (ISWCTYPE): Remove; all uses replaced by iswctype.
3651         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
3652         (internal_function): Remove.  All uses removed.
3653         (STRUCT): New macro.
3654         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
3655         (WMEMCMP): New macro.
3656         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
3657         and <locale/weightwc.h>.
3658         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
3659         __builtin_expect.  Check for integer overflow more
3660         systematically.  Account for alloca storage better when
3661         recursive.  Use strnlen instead of strlen for efficiency.
3662         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
3663         (struct STRUCT): New type.
3664         (FCT, EXT): New ENDS and ALLOCA_USED args.
3665         All callers changed.
3666         (FCT): Prefer __glibc_unlikely to __builtin_expect.
3667         Simplify by assuming WIDE_CHAR_SUPPORT.
3668         Copy _LIBC code from glibc without worrying Gnulib compatibility.
3669         Cast cold to UCHAR to avoid signedness warning.
3670         (END): Check for invalid pattern.
3671         (EXT): Improve alloca/malloc checking (taken from glibc),
3672         and improve it some more by using intprops.h and checking
3673         for integer overflow and using bool for booleans.
3674         * lib/libc-config.h (compat_symbol): New macro.
3675         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
3676         acceptable to non-GCC when a trailing semicolon is added.
3677         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
3678         libc-config, strnlen.  Remove alloca.
3680 2020-05-31  Bruno Haible  <bruno@clisp.org>
3682         getrandom: Doc and test tweaks.
3683         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
3684         it sets errno when failing.
3685         * tests/test-getrandom.c (main): Disable the high-quality check on those
3686         platforms on which it fails.
3687         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
3688         Cygwin to the list of platforms that don't have the function. Add a note
3689         about the quality of the result.
3690         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
3691         declaration; this is fixed by module 'getrandom'.
3693 2020-05-31  Bruno Haible  <bruno@clisp.org>
3695         getrandom: Add support for native Windows.
3696         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
3697         <wincrypt.h>.
3698         (CRYPT_VERIFY_CONTEXT): New macro.
3699         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
3700         'A'.
3701         (GetProcAddress): New macro.
3702         (BCryptGenRandomFuncType): New type.
3703         (BCryptGenRandomFunc, initialized): New variables.
3704         (initialize): New function.
3705         (getrandom): On native Windows, use <bcrypt.h> API when available, and
3706         <wincrypt.h> API as fallback.
3707         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
3708         * modules/getrandom (Link): New section.
3709         * modules/getentropy (Link): Likewise.
3710         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
3711         $(LIB_GETRANDOM).
3712         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
3713         $(LIB_GETRANDOM).
3714         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
3715         against $(LIB_GETRANDOM).
3716         * doc/glibc-functions/getrandom.texi: Mention the native Windows
3717         support.
3719 2020-05-31  Bruno Haible  <bruno@clisp.org>
3721         getrandom: Simplify the determination of the random number devices.
3722         Suggested by Paul Eggert in
3723         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
3724         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
3725         macros.
3726         * modules/getrandom (Depends-on): Remove crypto/gc-random.
3728 2020-05-31  Bruno Haible  <bruno@clisp.org>
3730         crypto/gc-random: Fix list of crypto devices for Solaris.
3731         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
3733 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
3735         list: fix GCC warnings
3736         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
3737         (gl_tree_next_node, gl_tree_node_nx_set_value)
3738         (gl_tree_previous_node, gl_tree_next_node):
3739         Mark unused arguments.
3740         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3741         * lib/gl_anylinked_list2.h (gl_linked_node_value)
3742         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
3744         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
3745         the same variable name in nested scopes.
3747 2020-05-31  Bruno Haible  <bruno@clisp.org>
3749         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
3750         Reported by Akim Demaille in
3751         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
3752         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
3753         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
3754         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
3755         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
3756         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
3758 2020-05-30  Bruno Haible  <bruno@clisp.org>
3760         wmemchr: Relicense under LGPLv2+.
3761         * modules/wmemchr (License): Set to LGPLv2+.
3763 2020-05-30  Bruno Haible  <bruno@clisp.org>
3765         wmempcpy: New module.
3766         Reported by Paul Eggert in
3767         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
3768         * lib/wchar.in.h (wmempcpy): New declaration.
3769         * lib/wmempcpy.c: New file.
3770         * m4/wmempcpy.m4: New file.
3771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
3772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
3773         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
3774         HAVE_WMEMPCPY.
3775         * modules/wmempcpy: New file.
3776         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
3777         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
3778         * modules/mempcpy (Description): Fix typo.
3780 2020-05-30  Bruno Haible  <bruno@clisp.org>
3782         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
3783         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
3785 2020-05-30  Bruno Haible  <bruno@clisp.org>
3787         sys_random: Work around macOS bug.
3788         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
3789         <stdlib.h> before <sys/random.h>.
3790         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3791         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
3792         first.
3793         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
3795 2020-05-30  Bruno Haible  <bruno@clisp.org>
3797         getrandom: Override incompatible system function on Solaris 11.
3798         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
3799         * lib/getrandom.c (getrandom): When the system has getrandom, just
3800         invoke it.
3801         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
3802         system's getrandom function's prototype is not the expected one.
3803         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
3804         REPLACE_GETRANDOM.
3805         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
3806         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
3807         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
3808         EAGAIN.
3809         * doc/glibc-functions/getrandom.texi: Mention the new module and the
3810         Solaris problem.
3812 2020-05-30  Bruno Haible  <bruno@clisp.org>
3814         sys_random: Add C++ tests.
3815         * tests/test-sys_random-c++.cc: New file.
3816         * modules/sys_random-c++-tests: New file.
3817         * modules/sys_random-tests (Depends-on): Depend on it.
3819         sys_random: Add tests.
3820         * tests/test-sys_random.c: New file.
3821         * modules/sys_random-tests: New file.
3823         sys_random: New module.
3824         * lib/sys_random.in.h: Use the common idioms for overridable header
3825         files.
3826         * m4/sys_random_h.m4: New file.
3827         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
3828         * modules/sys_random: New file.
3829         * modules/getrandom (Files): Remove lib/sys_random.in.h.
3830         (Depends-on): Add sys_random.
3831         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
3832         gl_UNISTD_MODULE_INDICATOR.
3833         (Makefile.am): Don't generate sys/random.h here.
3834         * doc/glibc-headers/sys_random.texi: New file.
3835         * doc/gnulib.texi: Include it.
3837 2020-05-30  Bruno Haible  <bruno@clisp.org>
3839         unistd: Remove conflicting declaration of getrandom().
3840         * lib/unistd.in.h (getrandom): Remove declaration.
3841         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
3842         declared.
3843         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
3844         HAVE_GETRANDOM.
3845         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
3846         HAVE_GETRANDOM.
3848 2020-05-30  Bruno Haible  <bruno@clisp.org>
3850         getrandom: Add tests.
3851         * tests/test-getrandom.c: New file.
3852         * modules/getrandom-tests: New file.
3854 2020-05-30  Bruno Haible  <bruno@clisp.org>
3856         crypto/gc-random: Fix link error on MSVC.
3857         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
3858         * modules/crypto/gc-random (Link): New section.
3859         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
3860         $(LIB_GC_RANDOM).
3862 2020-05-30  Bruno Haible  <bruno@clisp.org>
3864         Don't assume that UNICODE is not defined.
3865         Many Windows API functions are defined differently (redirecting to a
3866         function with suffix 'W') if the application defines the macro UNICODE
3867         than by default (redirecting to a function with suffix 'A').
3868         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
3869         variant with suffix 'A'.
3870         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
3871         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
3872         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
3873         * lib/getlogin.c (GetUserName): Likewise.
3874         * lib/getlogin_r.c (GetUserName): Likewise.
3875         * lib/gettimeofday.c (LoadLibrary): Likewise.
3876         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
3877         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
3878         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
3879         * lib/mountlist.c (GetDriveType): Likewise.
3880         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
3881         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
3882         Likewise.
3883         * lib/physmem.c (GetModuleHandle): Likewise.
3884         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3885         PeekMessage, DispatchMessage): Likewise.
3886         * lib/progreloc.c (GetModuleFileName): Likewise.
3887         * lib/putenv.c (SetEnvironmentVariable): Likewise.
3888         * lib/read.c (GetNamedPipeHandleState): Likewise.
3889         * lib/readdir.c (FindNextFile): Likewise.
3890         * lib/relocatable.c (GetModuleFileName): Likewise.
3891         * lib/rename.c (MoveFileEx): Likewise.
3892         * lib/rewinddir.c (FindFirstFile): Likewise.
3893         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3894         PeekMessage, DispatchMessage): Likewise.
3895         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3896         * lib/socket.c (WSASocket): Likewise.
3897         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3898         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3899         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3900         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3901         * lib/tmpdir.c (GetTempPath): Likewise.
3902         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3903         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3904         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3905         * lib/windows-cond.c (CreateEvent): Likewise.
3906         * lib/windows-rwlock.c (CreateEvent): Likewise.
3907         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3908         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3909         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3910         * lib/write.c (GetNamedPipeHandleState): Likewise.
3912 2020-05-30  Bruno Haible  <bruno@clisp.org>
3914         physmem: Fix compilation errors on MSVC.
3915         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3916         * modules/physmem (Depends-on): Add unistd.
3918 2020-05-29  Bruno Haible  <bruno@clisp.org>
3920         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3921         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3922         LDADD a second time, after the second occurrence of libtests.a.
3923         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3925 2020-05-29  Bruno Haible  <bruno@clisp.org>
3927         fnmatch: Rely on more gnulib modules.
3928         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3929         wmempcpy, mempcpy.
3930         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3931         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3932         HAVE_MEMPCPY are all 1.
3933         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3934         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3936 2020-05-29  Bruno Haible  <bruno@clisp.org>
3938         Avoid dynamic lookup of Windows API functions when possible.
3939         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3940         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3941         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3942         (use_win32_p): Define differently.
3943         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3944         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3945         for Windows XP or higher.
3947 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3949         read-file: disable buffering if RF_SENSITIVE is set
3950         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3951         Suggested by Glenn Strauss.
3952         (fread_file): Suggest calling setvbuf before calling this
3953         function.  Suggested by Bruno Haible.
3955 2020-05-29  Bruno Haible  <bruno@clisp.org>
3957         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3958         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3959         program.
3960         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3961         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3962         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3963         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3965 2020-05-29  Bruno Haible  <bruno@clisp.org>
3967         Fix compilation error on native Windows (regression from 2020-05-28).
3968         Reported by Daiki Ueno.
3969         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3970         macro when not using dynamic loading.
3971         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3972         QueryFullProcessImageNameFunc): Likewise.
3973         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3974         GetFinalPathNameByHandleFunc): Likewise.
3976 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3978         fopen-gnu-tests: fix "\x" escape usage
3979         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3981 2020-05-28  Bruno Haible  <bruno@clisp.org>
3983         Avoid dynamic loading of Windows API functions when possible.
3984         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3985         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3986         * lib/gettimeofday.c (GetProcAddress,
3987         GetSystemTimePreciseAsFileTimeFuncType,
3988         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3989         define in a build for Windows 8 or higher.
3990         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3991         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3992         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3993         in a build for Windows Vista or higher.
3994         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3995         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3996         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3998 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
4000         explicit_bzero-tests: improve -Wmissing-declarations pacification
4001         * tests/test-explicit_bzero.c: Now noinline.
4002         Suggested by Bruno Haible in:
4003         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
4005 2020-05-28  Bruno Haible  <bruno@clisp.org>
4007         Fix build errors due to read-file changes (regression from 2020-05-27).
4008         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
4009         invocation.
4010         * tests/test-sameacls.c (main): Likewise.
4011         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
4012         read_binary_file.
4013         * tests/test-pipe-filter-ii1.c (main): Likewise.
4015 2020-05-28  Bruno Haible  <bruno@clisp.org>
4017         fts: Make more robust in multithreaded applications.
4018         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
4019         * modules/fts (Depends-on): Add 'open'.
4021 2020-05-28  Bruno Haible  <bruno@clisp.org>
4023         relocatable-prog: Make more robust in multithreaded applications.
4024         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
4025         relocatable-prog-wrapper.
4026         (find_executable): Pass an O_CLOEXEC flag to open().
4027         * modules/relocatable-prog (Depends-on): Add 'open'.
4029 2020-05-28  Bruno Haible  <bruno@clisp.org>
4031         getloadavg: Make more robust in multithreaded applications.
4032         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
4033         Simplify use of O_CLOEXEC.
4034         * modules/getloadavg (Depends-on): Add 'open'.
4036 2020-05-28  Bruno Haible  <bruno@clisp.org>
4038         vma-iter: Make more robust in multithreaded applications.
4039         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
4040         open().
4041         * modules/vma-iter (Depends-on): Add 'open'.
4043 2020-05-28  Bruno Haible  <bruno@clisp.org>
4045         truncate: Make more robust in multithreaded applications.
4046         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
4048 2020-05-28  Bruno Haible  <bruno@clisp.org>
4050         pagealign_alloc: Make more robust in multithreaded applications.
4051         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
4052         open().
4053         * modules/pagealign_alloc (Depends-on): Add 'open'.
4055 2020-05-28  Bruno Haible  <bruno@clisp.org>
4057         openat: Make more robust in multithreaded applications.
4058         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
4060 2020-05-28  Bruno Haible  <bruno@clisp.org>
4062         at-internal: Make more robust in multithreaded applications.
4063         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
4064         open().
4066 2020-05-28  Bruno Haible  <bruno@clisp.org>
4068         mountlist: Make more robust in multithreaded applications.
4069         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
4070         open().
4071         * modules/mountlist (Depends-on): Add 'open'.
4073 2020-05-28  Bruno Haible  <bruno@clisp.org>
4075         login_tty: Make more robust in multithreaded applications.
4076         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
4077         * modules/login_tty (Depends-on): Add 'open'.
4079 2020-05-28  Bruno Haible  <bruno@clisp.org>
4081         javacomp: Make more robust in multithreaded applications.
4082         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
4083         open().
4084         * modules/javacomp (Depends-on): Add 'open'.
4086 2020-05-28  Bruno Haible  <bruno@clisp.org>
4088         getprogname: Make more robust in multithreaded applications.
4089         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
4090         * modules/getprogname (Depends-on): Add 'open'.
4092 2020-05-28  Bruno Haible  <bruno@clisp.org>
4094         get_progname_of: Make more robust in multithreaded applications.
4095         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
4096         open().
4097         * modules/get_progname_of (Depends-on): Add 'open'.
4099 2020-05-28  Bruno Haible  <bruno@clisp.org>
4101         get_ppid_of: Make more robust in multithreaded applications.
4102         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
4103         * modules/get_ppid_of (Depends-on): Add 'open'.
4105 2020-05-28  Bruno Haible  <bruno@clisp.org>
4107         get-rusage-as: Make more robust in multithreaded applications.
4108         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
4109         flag to open().
4110         * modules/get-rusage-as (Depends-on): Add 'open'.
4112 2020-05-28  Bruno Haible  <bruno@clisp.org>
4114         crypto/gc: Make more robust in multithreaded applications.
4115         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
4116         * modules/crypto/gc (Depends-on): Add 'open'.
4118 2020-05-28  Bruno Haible  <bruno@clisp.org>
4120         copy-file: Make more robust in multithreaded applications.
4121         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
4122         open().
4124 2020-05-28  Bruno Haible  <bruno@clisp.org>
4126         chown: Make more robust in multithreaded applications.
4127         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
4129 2020-05-28  Bruno Haible  <bruno@clisp.org>
4131         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
4132         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
4134 2020-05-28  Daiki Ueno  <ueno@gnu.org>
4136         fopen-gnu: make 'b' flag can be used with 'e' on Windows
4137         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
4138         specified on Windows.
4139         * tests/test-fopen-gnu.c (DATA): New define.
4140         (main): Add test for reading binary files with an 'e' flag.
4142 2020-05-27  Bruno Haible  <bruno@clisp.org>
4144         Don't assume that UNICODE is not defined.
4145         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
4146         differently if the application defines the macro UNICODE.
4147         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
4148         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
4149         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
4150         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
4151         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
4153 2020-05-27  Bruno Haible  <bruno@clisp.org>
4155         Improve pattern for defining _WIN32_WINNT.
4156         Newer versions of the Windows API may not only add, but also remove API
4157         functions. Therefore, when the user is e.g. building for Windows 10, we
4158         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
4159         use of APIs that were present in Windows 8 but removed in Windows 10.
4160         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
4161         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
4162         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
4163         * lib/sethostname.c (_WIN32_WINNT): Likewise.
4164         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
4166 2020-05-27  Bruno Haible  <bruno@clisp.org>
4168         javacomp: Make more robust in multithreaded applications.
4169         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
4170         * modules/javacomp (Depends-on): Add fopen-gnu.
4172 2020-05-27  Bruno Haible  <bruno@clisp.org>
4174         mountlist: Make more robust in multithreaded applications.
4175         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
4176         to fopen.
4177         * modules/mountlist (Depends-on): Add fopen-gnu.
4179 2020-05-27  Bruno Haible  <bruno@clisp.org>
4181         sethostname: Make more robust in multithreaded applications.
4182         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
4183         * modules/sethostname (Depends-on): Add fopen-gnu.
4185 2020-05-27  Bruno Haible  <bruno@clisp.org>
4187         readutmp: Make more robust in multithreaded applications.
4188         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
4189         * modules/readutmp (Depends-on): Add fopen-gnu.
4191 2020-05-27  Bruno Haible  <bruno@clisp.org>
4193         getpass: Make more robust in multithreaded applications.
4194         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
4195         * modules/getpass (Depends-on): Add fopen-gnu.
4197 2020-05-27  Bruno Haible  <bruno@clisp.org>
4199         getloadavg: Make more robust in multithreaded applications.
4200         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
4201         * modules/getloadavg (Depends-on): Add fopen-gnu.
4203 2020-05-27  Bruno Haible  <bruno@clisp.org>
4205         exclude: Make more robust in multithreaded applications.
4206         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
4207         * modules/exclude (Depends-on): Add fopen-gnu.
4209 2020-05-27  Bruno Haible  <bruno@clisp.org>
4211         bitset: Make more robust in multithreaded applications.
4212         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
4213         'e' flag to fopen.
4214         * modules/bitset (Depends-on): Add fopen-gnu.
4216 2020-05-27  Daiki Ueno  <ueno@gnu.org>
4218         read-file: add RF_SENSITIVE flag
4219         * lib/read-file.h (RF_SENSITIVE): New define.
4220         * lib/read-file.c (fread_file, read_file): Take into account of
4221         RF_SENSITIVE flag.
4222         * modules/read-file (Depends-on): Add explicit_bzero.
4223         This adds an alternative behavior of those functions to explicitly
4224         clear the internal memory block when it becomes unused.  This is
4225         useful for reading sensitive information from a file.
4227 2020-05-27  Daiki Ueno  <ueno@gnu.org>
4229         read-file: add flags to modify reading behavior
4230         * lib/read-file.h (RF_BINARY): New define.
4231         (fread_file, read_file): Take FLAGS argument.
4232         (read_binary_file): Remove.
4233         * lib/read-file.c (internal_read_file): Merge into ...
4234         (read_file): ... here.
4235         * modules/read-file-tests (Files): Add "tests/macros.h".
4236         * tests/test-read-file.c (main): Refactor using ASSERT macro.
4237         * NEWS: Mention this change.
4239 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
4241         doc/gnulib-intro.texi: add missing "to" in sentence
4242         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
4243         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
4244         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
4246 2020-05-26  Bruno Haible  <bruno@clisp.org>
4248         count-one-bits: Fix MSVC specific code.
4249         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4250         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
4251         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
4252         using GCC.
4253         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
4254         (__popcnt64): In 32-bit mode, define as an inline function.
4255         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
4257 2020-05-26  Bruno Haible  <bruno@clisp.org>
4259         argz: Avoid name clashes through argz.h.
4260         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
4261         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
4262         * lib/argz.h: Don't use __ prefixed identifiers.
4263         (const): Remove definition.
4264         (argz_next): Remove inline definitions.
4266 2020-05-26  Daiki Ueno  <ueno@gnu.org>
4268         read-file: make use of fopen-gnu
4269         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
4270         (read_binary_file): Likewise.
4271         * modules/read-file (Depends-on): Add fopen-gnu.
4273 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4275         getentropy, getrandom: new modules
4276         * MODULES.html.sh (func_all_modules):
4277         * lib/unistd.in.h (getentropy, getrandom):
4278         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
4279         * modules/unistd (unistd.h):
4280         Add support for getentropy, getrandom.
4281         * doc/glibc-functions/getentropy.texi (getentropy):
4282         * doc/glibc-functions/getrandom.texi (getrandom):
4283         These are now fixed on some platforms.
4284         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
4285         * m4/getentropy.m4, m4/getrandom.m4:
4286         * modules/getentropy, modules/getentropy-tests:
4287         * modules/getrandom, modules/getrandom-tests:
4288         * tests/test-getentropy.c, tests/test-getrandom.c:
4289         New files.
4291 2020-05-25  Bruno Haible  <bruno@clisp.org>
4293         Add missing C99 dependencies.
4294         Reported by Paul Smith <psmith@gnu.org> in
4295         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
4296         * modules/assert (Depends-on): Add c99.
4297         * modules/filenamecat-lgpl (Depends-on): Likewise.
4298         * modules/libc-config (Depends-on): Likewise.
4299         * modules/mktime (Depends-on): Likewise.
4300         * modules/random_r (Depends-on): Likewise.
4301         * modules/regex (Depends-on): Likewise.
4302         * modules/scratch_buffer (Depends-on): Likewise.
4303         * modules/timespec-add (Depends-on): Likewise.
4304         * modules/timespec-sub (Depends-on): Likewise.
4305         * modules/verify (Depends-on): Likewise.
4307 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4309         explicit_bzero-tests: pacify -Wmissing-declarations
4310         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
4311         Now static.
4313 2020-05-24  Bruno Haible  <bruno@clisp.org>
4315         fopen-gnu: Add tests.
4316         * tests/test-fopen-gnu.c: New file.
4317         * modules/fopen-gnu-tests: New file.
4319         fopen-gnu: New module.
4320         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
4321         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
4322         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
4323         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
4324         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
4325         * modules/fopen-gnu: New file.
4326         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
4328 2020-05-24  Bruno Haible  <bruno@clisp.org>
4330         open, openat: Really support O_CLOEXEC.
4331         * lib/open.c (open): When have_cloexec is still undecided, do pass a
4332         O_CLOEXEC flag to orig_open.
4333         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
4334         pass a O_CLOEXEC flag to orig_openat.
4335         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
4336         * modules/open-tests (Depends-on): Add fcntl.
4337         * modules/openat-tests (Depends-on): Likewise.
4338         * modules/fcntl-safer-tests (Depends-on): Likewise.
4340 2020-05-24  Bruno Haible  <bruno@clisp.org>
4342         fopen: Fix the trailing slash workaround.
4343         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
4344         write access. Pass the right flags to open().
4345         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
4347 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4349         assure: new macro ‘affirm’
4350         * lib/assure.h: Include verify.h.
4351         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
4352         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
4353         and commentary by Bruno Haible in:
4354         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
4355         * modules/assure (Depends-on:): Add verify.
4357 2020-05-23  Bruno Haible  <bruno@clisp.org>
4359         calloc-gnu: Make test work in non-flat address spaces.
4360         Uses code by Paul Eggert.
4361         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
4362         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
4364 2020-05-23  Bruno Haible  <bruno@clisp.org>
4366         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
4367         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
4368         AC_RUN_IFELSE invocations.
4370 2020-05-23  Bruno Haible  <bruno@clisp.org>
4372         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
4373         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
4374         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
4375         don't have it.
4376         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
4377         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
4378         don't have it.
4379         * lib/isnanf-nolibm.h (__has_builtin): New macro.
4380         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
4381         it.
4382         * lib/isnanl-nolibm.h (__has_builtin): New macro.
4383         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
4384         it.
4385         * lib/math.in.h (__has_builtin): New macro.
4386         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
4387         it.
4388         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
4389         it.
4390         (isnan): Don't use the builtins on clang versions that don't have
4391         __builtin_isnanf and __builtin_isnanl.
4393 2020-05-23  Bruno Haible  <bruno@clisp.org>
4395         calloc-gnu: Avoid wrong configure results with clang.
4396         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
4397         'volatile', to defeat compiler optimizations.
4399 2020-05-23  Bruno Haible  <bruno@clisp.org>
4401         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
4402         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
4403         'long double' values by reference, with values taken from a statically
4404         allocated array.
4406 2020-05-23  Bruno Haible  <bruno@clisp.org>
4408         findprog-in: Ignore directories.
4409         Reported by Frederick Eaton via Dmitry Goncharov in
4410         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4411         * lib/findprog-in.c (find_in_given_path): When the file found is a
4412         directory, set errno to EACCES and, during a PATH search, continue
4413         searching.
4414         * modules/findprog-in (Depends-on): Add sys_stat, stat.
4416 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4418         verify: document ‘assume’ better
4419         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
4421 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
4423         gendocs: Clarify licenses for templates.
4424         * doc/gendocs_template: Add a GNU All-Permissive license notice
4425         and bump Parent-Version.
4426         * doc/gendocs_template_min: Add a GNU All-Permissive license
4427         notice and copy the explanatory comment about the license notice
4428         at the bottom from gendocs_template.
4430 2020-05-21  Bruno Haible  <bruno@clisp.org>
4432         group-member: Relicense under LGPLv2+.
4433         Jim Meyering's approval is in
4434         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
4435         Paul Eggert's approval is in
4436         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
4437         Eric Blake's approval is in
4438         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
4439         * modules/group-member (License): Change to LGPLv2+.
4441 2020-05-21  Bruno Haible  <bruno@clisp.org>
4443         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
4444         Reported by Tim Rühsen in
4445         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4446         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
4448 2020-05-21  Bruno Haible  <bruno@clisp.org>
4450         regex: Avoid wrong configure results with "clang -fsanitize=leak".
4451         Reported by Tim Rühsen in
4452         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4453         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
4454         before returning with status 0.
4456 2020-05-21  Bruno Haible  <bruno@clisp.org>
4458         glob: Avoid wrong configure results with "clang -fsanitize=leak".
4459         Reported by Tim Rühsen in
4460         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4461         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
4463 2020-05-21  Bruno Haible  <bruno@clisp.org>
4465         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
4466         Reported by Tim Rühsen in
4467         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4468         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
4469         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
4470         respectively.
4472 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
4474         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
4475         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
4477 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4479         ftoastr: fix ifndef typo
4480         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
4482 2020-05-19  Bruno Haible  <bruno@clisp.org>
4484         havelib: Tweak documentation.
4485         * doc/havelib.texi (Searching for Libraries): Fix typo.
4487 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4489         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
4490         This was needed earlier because modules had to import the main script,
4491         but that is no longer true.  Rename the script so that it is
4492         consistent with all other scripts in gnulib and uses hyphens.
4493         * build-aux/vcs_to_changelog.py: Rename to...
4494         * build-aux/vcs-to-changelog.py: ... this.
4495         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
4496         * modules/vcs-to-changelog: Likewise.
4498 2020-05-17  Bruno Haible  <bruno@clisp.org>
4500         Clarify intended usage of the license file modules.
4501         Reported by Asher Gordon <AsDaGo@posteo.net> in
4502         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
4503         * doc/licenses-texi.texi (License Texinfo sources): Mention the
4504         GNU AGPL. Explain the intended usage of the modules.
4505         * modules/fdl (Notice): Discourage use as a module.
4506         * modules/fdl-1.3 (Notice): Likewise.
4508 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
4510         hash: add hash_xinsert
4511         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
4513 2020-05-16  Bruno Haible  <bruno@clisp.org>
4515         findprog-lgpl: Fix link error (existing since 2008-09-02).
4516         * modules/findprog-lgpl (Makefile.am): Arrange to compile
4517         findprog-lgpl.c, not findprog.c.
4518         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
4519         XNMALLOC.
4521 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
4523         c-stack: pacify -Wunused-result when DEBUG
4524         Problem reported by Marc Nieper-Wißkirchen in:
4525         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
4526         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
4527         Explicitly ignore write failures.
4529 2020-05-13  Jim Meyering  <meyering@fb.com>
4531         announce-gen: improve a comment
4532         * build-aux/announce-gen: Improve comment.
4534 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
4536         xalloc: pacify -Wanalyzer-possible-null-argument
4537         Problem reported for GCC 10.1.0 by Bruno Haible in:
4538         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
4539         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
4540         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
4541         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
4543 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4545         careadlinkat: fix GCC 10 workaround
4546         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4547         Massage the code so that it’s closer to what it was before
4548         the GCC 10.1.0 workaround was introduced.  This fixes
4549         a loop when !buffer and the bug workaround is in effect.
4550         Remove unnecessary casts.  Defend in a different way
4551         against (buffer && !buffer_size), by adding at least 1
4552         to buf_size each time through the loop.
4554 2020-05-10  Bruno Haible  <bruno@clisp.org>
4556         doc: Mark HP-UX as unsupported.
4557         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
4559 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4561         careadlinkat: limit GCC workaround
4562         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
4563         10.1.0 and later, since the workaround is pretty bad and the GCC
4564         bug should get fixed.
4566 2020-05-10  Bruno Haible  <bruno@clisp.org>
4568         havelib: Enhance documentation.
4569         * doc/havelib.texi (Searching for Libraries): Mention the bad
4570         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
4572 2020-05-10  Bruno Haible  <bruno@clisp.org>
4574         attribute: Clarify list of attributes.
4575         * lib/attribute.h: Reorder the list of attributes, and group them by
4576         purpose.
4578 2020-05-10  Bruno Haible  <bruno@clisp.org>
4580         string: Fix compilation error in C++ mode.
4581         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
4582         _GL_WARN_ON_USE.
4583         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
4584         instead of _GL_WARN_ON_USE.
4586 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
4588         announce-gen: add support for dist-lzip
4589         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
4591 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4593         manywarnings: port to GCC 10.1
4594         * build-aux/gcc-warning.spec:
4595         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
4596         Add GCC 10.1.0 warnings.
4598         careadlinkat: pacify -Wreturn-local-addr
4599         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4600         Pacify gcc 10’s -Wreturn-local-addr option.
4601         Simplify some of the later code.
4603 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4605         attribute: remove ATTRIBUTE_DEPRECATED
4606         * lib/attribute.h: Improve recently-added comments, mostly
4607         by shortening them (use active voice, etc.).
4608         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
4609         Problem reported by Bruno Haible in:
4610         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
4612 2020-05-09  Bruno Haible  <bruno@clisp.org>
4614         attribute: Add comments.
4615         * lib/attribute.h: Document each macro.
4617 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
4619         bitset: use the attribute module
4620         * modules/bitset: Depend on 'attribute'.
4621         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
4622         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
4623         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
4624         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
4626 2020-05-09  Bruno Haible  <bruno@clisp.org>
4628         c-stack: Fix warning when DEBUG is enabled.
4629         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4630         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
4631         * lib/c-stack.c: Include <stdio.h>.
4633 2020-05-09  Bruno Haible  <bruno@clisp.org>
4635         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
4636         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
4637         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4638         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4639         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4640         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4641         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4642         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4643         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4644         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
4645         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4646         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4647         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4649 2020-05-09  Bruno Haible  <bruno@clisp.org>
4651         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
4652         Reported by Akim Demaille in
4653         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
4654         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
4655         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4656         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4658 2020-05-09  Bruno Haible  <bruno@clisp.org>
4660         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
4661         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
4662         that usually comes from m4/gnulib-common.m4.
4663         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4665 2020-05-09  Bruno Haible  <bruno@clisp.org>
4667         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
4668         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
4669         that usually comes from m4/gnulib-common.m4.
4670         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4671         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4672         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4674 2020-05-09  Bruno Haible  <bruno@clisp.org>
4676         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
4677         * lib/uchar.in.h (char16_t): Define as macro if
4678         GNULIB_OVERRIDES_CHAR16_T.
4679         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
4680         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
4681         (gl_UCHAR_H): Invoke them.
4682         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
4683         GNULIB_OVERRIDES_CHAR32_T.
4684         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
4685         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
4686         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
4687         GNULIB_OVERRIDES_CHAR32_T.
4689 2020-05-09  Bruno Haible  <bruno@clisp.org>
4691         Macro tweaks.
4692         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
4693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
4695 2020-05-08  Bruno Haible  <bruno@clisp.org>
4697         c32rtomb: Avoid compilation failure on Haiku.
4698         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
4699         inline definitions.
4700         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
4702 2020-05-08  Bruno Haible  <bruno@clisp.org>
4704         mbrtoc32: Avoid compilation failure on Haiku.
4705         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
4706         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
4707         AC_CHECK_FUNCS_ONCE.
4708         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
4710 2020-05-08  Bruno Haible  <bruno@clisp.org>
4712         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
4713         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
4715 2020-05-08  Bruno Haible  <bruno@clisp.org>
4717         list: Update documentation.
4718         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4719         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
4720         * doc/containers.texi (Container data types): Document the new list
4721         operations and their complexity.
4723 2020-05-08  Bruno Haible  <bruno@clisp.org>
4725         ignore-value tests: Use module 'attribute'.
4726         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
4727         * tests/test-ignore-value.c: Include attribute.h.
4728         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
4729         * modules/ignore-value-tests (Depends-on): Add attribute.
4731 2020-05-08  Bruno Haible  <bruno@clisp.org>
4733         uniname/uniname: Use module 'attribute'.
4734         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
4735         * lib/uniname/uninames.h: Regenerated.
4736         * lib/uniname/uniname.c: Include attribute.h.
4737         * modules/uniname/uniname (Depends-on): Add attribute.
4739 2020-05-08  Bruno Haible  <bruno@clisp.org>
4741         c32rtomb: Use module 'attribute'.
4742         * lib/c32rtomb.c: Include attribute.h.
4743         (FALLTHROUGH): Remove macro.
4744         * modules/c32rtomb (Depends-on): Add attribute.
4746 2020-05-08  Bruno Haible  <bruno@clisp.org>
4748         xsize: Use module 'attribute'.
4749         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
4750         * modules/xsize (Depends-on): Add attribute.
4752 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
4756         * lib/attribute.h: Minor style fixes.
4758         Fix version-etc glitch on OpenIndiana
4759         Problem reported by Mats Erik Andersson in:
4760         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
4761         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
4762         that now clashes with gnulib-common.h.  All uses changed.
4764 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4766         attribute: new module
4767         This simplifies use of GCC and C2X attributes like ‘deprecated’.
4768         * MODULES.html.sh: Add attribute.
4769         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
4770         * doc/gnulib.texi (Particular Modules): Add Attributes.
4771         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
4772         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
4773         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
4774         * lib/vasnprintf.c:
4775         Include attribute.h, and let it define FALLTHROUGH.
4776         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
4777         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
4778         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
4779         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
4780         This is a copy since Gawk doesn’t use Gnulib.
4781         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
4782         is incompatible with gl_COMMON_BODY’s.  All uses changed.
4783         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
4784         Keep the existing FALLTHROUGH definition since Glibc might use it,
4785         and it does no harm to Gnulib’s FALLTHROUGH.
4786         * lib/fts_.h, lib/inttostr.h:
4787         (__GNUC_PREREQ): Remove; no longer needed.
4788         (__attribute_warn_unused_result__): Remove.  All uses
4789         replaced by _GL_ATTRIBUTE_NODISCARD.
4790         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
4791         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
4792         __attribute__ ((__warn_unused_result__)), for forward
4793         compatibility to C2X.
4794         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
4795         _GL_ATTRIBUTE_NODISCARD.
4796         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
4797         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
4798         replaced by gl_COMMON_BODY’s implementation, which has a
4799         slightly different signature.
4800         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
4801         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
4802         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
4803         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
4804         No doubt all uses should be replaced, at some point.
4805         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
4806         (_Noreturn): Use it.
4807         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
4808         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
4809         (_GL_ATTRIBUTE_COLD)
4810         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
4811         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
4812         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
4813         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
4814         (_GL_ATTRIBUTE_MAYBE_UNUSED)
4815         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
4816         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
4817         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
4818         (_GL_ATTRIBUTE_RETURNS_NONNULL)
4819         (_GL_ATTRIBUTE_SENTINEL): New macros.
4820         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
4821         * modules/fnmatch, modules/freopen-safer, modules/fts:
4822         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
4823         * modules/quotearg, modules/savewd:
4824         * modules/unistdio/u16-u16-vasnprintf:
4825         * modules/unistdio/u16-vasnprintf:
4826         * modules/unistdio/u32-u32-vasnprintf:
4827         * modules/unistdio/u32-vasnprintf:
4828         * modules/unistdio/u8-u8-vasnprintf:
4829         * modules/unistdio/u8-vasnprintf:
4830         * modules/unistdio/ulc-vasnprintf:
4831         * modules/unistr/u8-uctomb, modules/vasnprintf:
4832         (Depends-on:): Add attribute module.
4834 2020-05-03  Bruno Haible  <bruno@clisp.org>
4836         bison: Fix today's commit.
4837         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
4839 2020-05-03  Bruno Haible  <bruno@clisp.org>
4841         list-c++: Add get_first, get_last, set_first, set_last operations.
4842         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
4843         set_first, set_last.
4844         * lib/gl_list.h: Tweak comments.
4846 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
4848         bison: rely on bison's %require to check a version requirement
4849         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
4850         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
4851         enough of not.
4852         So far it is the only know Yacc tool that supports '%require'.
4853         Other yaccs will actually even choke on seeing the -o option after the
4854         input file name.
4855         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
4857 2020-05-02  Bruno Haible  <bruno@clisp.org>
4859         list: Add get_first, get_last, set_first, set_last operations.
4860         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
4861         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
4862         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
4864 2020-05-02  Bruno Haible  <bruno@clisp.org>
4866         list: Remove redundant code for remove_first and remove_last operations.
4867         * lib/gl_list.h (struct gl_list_implementation): Remove fields
4868         remove_first, remove_last.
4869         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
4870         * lib/gl_array_list.c: Revert last change.
4871         * lib/gl_carray_list.c: Likewise.
4872         * lib/gl_anylinked_list2.h: Likewise.
4873         * lib/gl_linked_list.c: Likewise.
4874         * lib/gl_linkedhash_list.c: Likewise.
4875         * lib/gl_anytree_list2.h: Likewise.
4876         * lib/gl_avltree_list.c: Likewise.
4877         * lib/gl_avltreehash_list.c: Likewise.
4878         * lib/gl_rbtree_list.c: Likewise.
4879         * lib/gl_rbtreehash_list.c: Likewise.
4880         * lib/gl_sublist.c: Likewise.
4882 2020-05-02  Bruno Haible  <bruno@clisp.org>
4884         bison-i18n: Add support for cross-compilation.
4885         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
4886         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
4887         via Akim Demaille <akim@lrde.epita.fr>.
4888         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
4889         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
4890         Don't use bison's --print-localedir option when cross-compiling.
4891         Also, fix an error message and a comment.
4893 2020-05-01  Bruno Haible  <bruno@clisp.org>
4895         list: Add remove_first and remove_last operations.
4896         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4897         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4898         * lib/gl_list.h (struct gl_list_implementation): Add fields
4899         remove_first, remove_last.
4900         (gl_list_remove_first, gl_list_remove_last): New functions.
4901         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4902         functions, based on gl_array_remove_at.
4903         (gl_array_list_implementation): Implement the new operations.
4904         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4905         New functions, based on gl_carray_remove_at.
4906         (gl_carray_list_implementation): Implement the new operations.
4907         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4908         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4909         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4910         new operations.
4911         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4912         Likewise.
4913         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4914         New functions, based on gl_tree_remove_at.
4915         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4916         new operations.
4917         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4918         Likewise.
4919         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4920         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4921         Likewise.
4922         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4923         New functions, based on gl_sublist_remove_at.
4924         (gl_sublist_list_implementation): Implement the new operations.
4925         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4926         remove_last.
4927         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4928         gl_list_remove_last.
4929         * tests/test-avltree_list.c (main): Likewise.
4930         * tests/test-avltreehash_list.c (main): Likewise.
4931         * tests/test-carray_list.c (main): Likewise.
4932         * tests/test-linked_list.c (main): Likewise.
4933         * tests/test-linkedhash_list.c (main): Likewise.
4934         * tests/test-rbtree_list.c (main): Likewise.
4935         * tests/test-rbtreehash_list.c (main): Likewise.
4937 2020-05-01  Bruno Haible  <bruno@clisp.org>
4939         parse-datetime: Fix a build failure with an older bison version.
4940         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4941         parse-datetime.tab.c if a suitable version of bison was not found.
4943 2020-05-01  Bruno Haible  <bruno@clisp.org>
4945         bison: New module.
4946         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4947         m4/parse-datetime.m4.
4948         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4949         * modules/bison: New file.
4950         * modules/parse-datetime (Files): Remove m4/bison.m4.
4951         (Depends-on): Add bison.
4953 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4955         Update users.txt.
4956         * users.txt: Add poke.
4958 2020-04-28  Bruno Haible  <bruno@clisp.org>
4960         posix_spawn_file_actions_addfchdir tests: Enhance test.
4961         * tests/test-posix_spawn5.c: Include findprog.h.
4962         (test): New function, extracted from main.
4963         (main): Invoke it. Also, invoke it with a program name such as
4964         "bin/pwd".
4965         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4966         findprog.
4968 2020-04-28  Bruno Haible  <bruno@clisp.org>
4970         posix_spawn_file_actions_addchdir tests: Enhance test.
4971         * tests/test-posix_spawn4.c: Include findprog.h.
4972         (test): New function, extracted from main.
4973         (main): Invoke it. Also, invoke it with a program name such as
4974         "bin/pwd".
4975         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4976         findprog.
4978 2020-04-28  Bruno Haible  <bruno@clisp.org>
4980         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4981         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4982         access elements of the wrong union member.
4984 2020-04-27  Bruno Haible  <bruno@clisp.org>
4986         getdate: Remove deprecated module.
4987         * modules/getdate: Remove file.
4988         * doc/getdate.texi: Remove file.
4989         * lib/getdate.h: Remove file.
4990         * NEWS: Mention the removal.
4992 2020-04-27  Bruno Haible  <bruno@clisp.org>
4994         realloc: Remove deprecated module.
4995         * modules/realloc: Remove file.
4996         * NEWS: Mention the removal.
4998 2020-04-27  Bruno Haible  <bruno@clisp.org>
5000         calloc: Remove deprecated module.
5001         * modules/calloc: Remove file.
5002         * NEWS: Mention the removal.
5004 2020-04-27  Bruno Haible  <bruno@clisp.org>
5006         malloc: Remove deprecated module.
5007         * modules/malloc: Remove file.
5008         * NEWS: Mention the removal.
5010 2020-04-27  Bruno Haible  <bruno@clisp.org>
5012         fnmatch-posix: Remove deprecated module.
5013         * modules/fnmatch-posix: Remove file.
5014         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
5015         * NEWS: Mention the removal.
5017 2020-04-27  Bruno Haible  <bruno@clisp.org>
5019         pipe: Remove deprecated module.
5020         * modules/pipe: Remove file.
5021         * lib/pipe.h: Remove file.
5022         * NEWS: Mention the removal.
5024 2020-04-27  Bruno Haible  <bruno@clisp.org>
5026         getopt: Remove deprecated module.
5027         * modules/getopt: Remove file.
5028         * NEWS: Mention the removal.
5030 2020-04-27  Bruno Haible  <bruno@clisp.org>
5032         remove-dest-slash: Remove deprecated module.
5033         * modules/rename-dest-slash: Remove file.
5034         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
5035         Update.
5036         * NEWS: Mention the removal.
5038 2020-04-27  Bruno Haible  <bruno@clisp.org>
5040         unictype/bidicategory-*: Remove deprecated modules.
5041         * modules/unictype/bidicategory-all: Remove file.
5042         * modules/unictype/bidicategory-byname: Remove file.
5043         * modules/unictype/bidicategory-name: Remove file.
5044         * modules/unictype/bidicategory-of: Remove file.
5045         * modules/unictype/bidicategory-test: Remove file.
5046         * MODULES.html.sh (Unicode string functions): Update.
5047         * NEWS: Mention the removals.
5049 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5051         Tune fts for FTS_LOGICAL+FTS_NOSTAT
5052         From a suggestion by Askar Safin in:
5053         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
5054         * lib/fts.c (fts_build): If file types are known, optimize
5055         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
5056         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
5057         non-directories.
5059 2020-04-19  Bruno Haible  <bruno@clisp.org>
5061         vasnprintf: Add support for printing wide characters using escapes.
5062         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
5063         (wctomb_fallback): New function.
5064         (local_wctomb): New function.
5065         (local_wcrtomb): New function or macro.
5066         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
5067         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
5068         %lc.
5070 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
5072         fts: remove NOSTAT_LEAF_OPTIMIZATION
5073         It caused ‘find’ and ‘du’ to dump core, and it was useful
5074         only for obsolescent Linux filesystems anyway.  Problem reported in:
5075         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
5076         Quite possibly there is still a serious underlying fts bug with
5077         tight-loop-check and mutating file systems, but if so this patch
5078         should cause the bug to be triggered less often.
5079         * lib/fts.c (enum leaf_optimization): Remove
5080         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
5081         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
5082         (leaf_optimization): Remove special cases for ReiserFS and XFS.
5083         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
5084         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
5085         Remove.  All uses removed.
5087 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5089         explicit_bzero: Improve code style.
5090         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
5092 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5094         explicit_bzero: On native Windows, use SecureZeroMemory().
5095         * lib/explicit_bzero.c: Include <windows.h>.
5096         (explicit_bzero): On native Windows, use SecureZeroMemory.
5098 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5100         explicit_bzero: Use memset_s() when available.
5101         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
5102         (explicit_bzero): Use memset_s when available.
5103         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
5105 2020-04-13  Bastien Roucariès  <rouca@debian.org>
5107         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
5108         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
5109         free() that overwrite the memory with canaries.
5111 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
5113         bootstrap: recommend git submodule update --init
5114         Reported by Bruno Haible.
5115         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
5116         * build-aux/bootstrap: recommand "git submodule update --init"
5117         rather than "git submodule init".
5119 2020-04-12  Bruno Haible  <bruno@clisp.org>
5121         explicit_bzero: Add tests.
5122         * tests/test-explicit_bzero.c: New file.
5123         * modules/explicit_bzero-tests: New file.
5125 2020-04-11  Bruno Haible  <bruno@clisp.org>
5127         explicit_bzero: Relicense under LGPLv2+.
5128         Approved by Paul Eggert.
5129         * modules/explicit_bzero (License): Change to LGPLv2+.
5131 2020-04-10  Bruno Haible  <bruno@clisp.org>
5133         findprog, relocatable-prog: Ignore directories during PATH search.
5134         Reported by Frederick Eaton via Dmitry Goncharov in
5135         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
5137         * lib/findprog.c (find_in_path): When the file found in a PATH element
5138         is a directory, continue searching.
5139         * modules/findprog (Depends-on): Add sys_stat, stat.
5140         * modules/findprog-lgpl (Depends-on): Likewise.
5142         * lib/progreloc.c (maybe_executable): When the file found in a PATH
5143         element is a directory, continue searching.
5144         * lib/relocwrapper.c: Update comments.
5145         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
5146         (configure.ac-early): New section.
5148 2020-04-10  Bruno Haible  <bruno@clisp.org>
5150         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
5151         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
5152         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
5153         * MODULES.html.sh: In a git-less tarball, use the date of the first
5154         ChangeLog entry.
5156 2020-04-04  Bruno Haible  <bruno@clisp.org>
5158         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
5159         * m4/gettext.m4: Fix comments regarding the gettext library.
5160         * m4/intl-thread-locale.m4: Likewise.
5161         * m4/intlmacosx.m4: Likewise.
5162         * m4/lcmessage.m4: Likewise.
5163         * m4/nls.m4: Likewise.
5164         * m4/po.m4: Likewise.
5165         * m4/progtest.m4: Likewise.
5167 2020-04-04  Jim Meyering  <meyering@fb.com>
5169         maint: remove a stray inter-word space in a 6x-repeated comment
5170         Induce the changes by running this:
5171           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
5172         * build-aux/announce-gen: Change "by  perl" to "by perl".
5173         * build-aux/gitlog-to-changelog: Likewise.
5174         * build-aux/prefix-gnulib-mk: Likewise.
5175         * build-aux/update-copyright: Likewise.
5176         * build-aux/useless-if-before-free: Likewise.
5177         * tests/test-update-copyright.sh: Likewise.
5179 2020-03-28  Bruno Haible  <bruno@clisp.org>
5181         Use module 'filename' instead of module 'dosname'.
5183         * lib/at-func.c: Include filename.h instead of dosname.h.
5184         * lib/unlinkat.c: Likewise.
5185         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
5186         * modules/areadlinkat-with-size (Depends-on): Likewise.
5187         * modules/faccessat (Depends-on): Likewise.
5188         * modules/fchmodat (Depends-on): Likewise.
5189         * modules/fchownat (Depends-on): Likewise.
5190         * modules/fstatat (Depends-on): Likewise.
5191         * modules/mkdirat (Depends-on): Likewise.
5192         * modules/mkfifoat (Depends-on): Likewise.
5193         * modules/readlinkat (Depends-on): Likewise.
5194         * modules/selinux-at (Depends-on): Likewise.
5195         * modules/symlinkat (Depends-on): Likewise.
5196         * modules/unlinkat (Depends-on): Likewise.
5197         * modules/utimensat (Depends-on): Likewise.
5199         * lib/at-func2.c: Include filename.h instead of dosname.h.
5200         * modules/linkat (Depends-on): Add filename. Remove dosname.
5201         * modules/renameatu (Depends-on): Likewise.
5203         * lib/canonicalize.c: Include filename.h instead of dosname.h.
5204         * lib/canonicalize-lgpl.c: Likewise.
5205         * modules/canonicalize (Depends-on): Add filename.
5206         * modules/canonicalize-lgpl (Depends-on): Likewise.
5208         * lib/dirname.h: Include filename.h instead of dosname.h.
5209         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
5211         * lib/fchdir.c: Include filename.h instead of dosname.h.
5212         * modules/fchdir (Depends-on): Add filename. Remove dosname.
5214         * lib/openat.c: Include filename.h instead of dosname.h.
5215         * modules/openat (Depends-on): Add filename. Remove dosname.
5217         * lib/rmdir.c: Include filename.h instead of dosname.h.
5218         * modules/rmdir (Depends-on): Add filename. Remove dosname.
5220         * lib/savewd.c: Include filename.h instead of dosname.h.
5221         * modules/savewd (Depends-on): Add filename. Remove dosname.
5223         * lib/unlink.c: Include filename.h instead of dosname.h.
5224         * modules/unlink (Depends-on): Add filename. Remove dosname.
5226         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
5227         * lib/relocwrapper.c: Update comments.
5229         * modules/lstat (Depends-on): Remove dosname.
5231 2020-03-28  Bruno Haible  <bruno@clisp.org>
5233         dosname: Redirect to 'filename'.
5234         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
5236         * lib/dosname.h: Remove all definitions. Just include filename.h.
5237         * modules/dosname (Status, Notice): Mark as deprecated.
5238         (Depends-on): Add 'filename'.
5240 2020-03-28  Bruno Haible  <bruno@clisp.org>
5242         dosname: Change IS_RELATIVE_FILE_NAME.
5243         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
5244         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
5245         * NEWS: Mention the change.
5247 2020-03-28  Bruno Haible  <bruno@clisp.org>
5249         filename: Copy some definitions from module 'dosname'.
5250         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
5251         (HAS_DEVICE): Document macro.
5252         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
5253         (IS_ABSOLUTE_FILE_NAME): Consider
5254         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
5255         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
5256         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
5257         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
5258         IS_PATH_WITH_DIR.
5259         (DllMain): Update.
5260         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
5261         IS_PATH_WITH_DIR.
5262         (find_executable): Update.
5263         * NEWS: Document the deprecations.
5265 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5267         getopt-posix: port __GETOPT_PREFIX to macOS
5268         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
5269         Define to work around a problem with asm on macOS (Bug#40205).
5271 2020-03-22  Bruno Haible  <bruno@clisp.org>
5273         MODULES.html.sh: Add support for reproducible builds.
5274         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
5275         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
5276         * MODULES.html.sh: Print the date of the last gnulib commit, not the
5277         current date.
5279 2020-03-22  Bruno Haible  <bruno@clisp.org>
5281         Several modules: Depend on stat.
5282         * modules/acl-permissions (Depends-on): Add stat.
5283         * modules/canonicalize (Depends-on): Likewise.
5284         * modules/file-has-acl (Depends-on): Likewise.
5285         * modules/fstat (Depends-on): Likewise.
5286         * modules/fstatat (Depends-on): Likewise.
5287         * modules/glob (Depends-on): Likewise.
5288         * modules/javacomp (Depends-on): Likewise.
5289         * modules/linkat (Depends-on): Likewise.
5290         * modules/mkdir (Depends-on): Likewise.
5291         * modules/pt_chown (Depends-on): Likewise.
5292         * modules/ptsname_r (Depends-on): Likewise.
5293         * modules/readlinkat (Depends-on): Likewise.
5294         * modules/rename (Depends-on): Likewise.
5295         * modules/renameatu (Depends-on): Likewise.
5296         * modules/tmpdir (Depends-on): Likewise.
5297         * modules/utimens (Depends-on): Likewise.
5298         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
5299         * modules/same (Depends-on): Remove stat.
5301 2020-03-22  Bruno Haible  <bruno@clisp.org>
5303         acl-permissions: Improve autoconf macro.
5304         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
5305         more reliably.
5307 2020-03-22  Bruno Haible  <bruno@clisp.org>
5309         file-has-acl: Fix module description.
5310         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
5311         (Depends-on): Depend on acl-permissions unconditionally.
5313 2020-03-21  Bruno Haible  <bruno@clisp.org>
5315         unlink: Ensure errno also on native Windows.
5316         * modules/unlink (Depends-on): Add malloc-posix.
5318 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
5320         unlink: fix malloc errno typo
5321         Problem reported by Tim Rühsen in:
5322         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
5323         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
5325 2020-03-16  Bruno Haible  <bruno@clisp.org>
5327         *printf-posix: Fix m4 error (regression from 2020-03-08).
5328         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
5329         brackets in AC_COMPILE_IFELSE invocation.
5331 2020-03-08  Bruno Haible  <bruno@clisp.org>
5333         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
5334         * modules/crypto/af_alg (Depends-on): Add fstat.
5335         * modules/renameatu (Depends-on): Likewise.
5336         * modules/same (Depends-on): Likewise.
5337         * modules/term-style-control (Depends-on): Likewise.
5339 2020-03-08  Bruno Haible  <bruno@clisp.org>
5341         *printf-posix: Document why it's overridden on some glibc systems.
5342         Reported by Adrian Bunk <bunk@stusta.de> in
5343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
5344         * doc/posix-functions/*printf.texi: Document the problem with the %n
5345         directive on some glibc systems.
5346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
5347         the cross-compilation guesses accordingly.
5349 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
5351         open, openat: port to (O_RDWR | O_RDONLY) != 0
5352         Potential portability problem reported by Dan Gohman in:
5353         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
5354         * lib/open.c (open):
5355         * lib/openat.c (rpl_openat):
5356         Don’t assume O_RDONLY is disjoint from O_RDWR.
5358 2020-03-07  Bruno Haible  <bruno@clisp.org>
5360         openat: Fix theoretically possible issue on GNU/Hurd.
5361         Reported by Dan Gohman <sunfish@mozilla.com> in
5362         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
5363         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
5364         ignore the bits that are also set in O_RDONLY.
5366 2020-02-24  Bruno Haible  <bruno@clisp.org>
5368         getloadavg: Don't use /usr/local when cross-compiling on AIX.
5369         Reported by Jens Rehsack <sno@netbsd.org> in
5370         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
5371         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
5372         cross-compiling.
5374 2020-02-24  Bruno Haible  <bruno@clisp.org>
5376         fcntl: Add witness of gnulib override.
5377         Reported by Jens Rehsack <sno@netbsd.org> in
5378         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
5379         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
5380         macros.
5382 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
5384         Update users.txt.
5385         * users.txt: Add datamash, time.
5387 2020-02-23  Bruno Haible  <bruno@clisp.org>
5389         uni*/base: Use 'restrict'.
5390         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
5391         from lib/regex.h.
5392         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
5393         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
5394         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
5395         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
5396         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
5397         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
5398         '_UC_RESTRICT'.
5399         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
5400         u32_conv_to_encoding): Use '_UC_RESTRICT'.
5401         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
5402         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
5403         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
5404         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
5405         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
5406         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
5407         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
5408         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
5409         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
5410         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
5411         '_UC_RESTRICT'.
5412         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
5413         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
5414         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
5415         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
5416         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
5417         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
5418         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
5419         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
5421 2020-02-23  Bruno Haible  <bruno@clisp.org>
5423         glob, spawn: Use improved '_Restrict_' definition.
5424         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
5425         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
5427 2020-02-23  Bruno Haible  <bruno@clisp.org>
5429         crypto/gc: Use 'restrict'.
5430         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
5431         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
5433         crypto/hmac-*: Use 'restrict'.
5434         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
5435         'restrict'.
5436         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
5437         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
5438         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
5439         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
5441         crypto/sm3: Use 'restrict'.
5442         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
5443         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
5445         crypto/*-buffer: Use 'restrict'.
5446         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
5447         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
5449         crypto/sha512-buffer: Use 'restrict'.
5450         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
5451         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
5452         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
5454         crypto/sha256-buffer: Use 'restrict'.
5455         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
5456         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
5457         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
5459         crypto/sha1-buffer: Use 'restrict'.
5460         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
5461         'restrict'.
5462         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
5464         crypto/md5-buffer: Use 'restrict'.
5465         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
5466         'restrict'.
5467         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
5469         crypto/md4: Use 'restrict'.
5470         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
5471         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
5473         crypto/md2: Use 'restrict'.
5474         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
5475         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
5477         crypto/rijndael: Use 'restrict'.
5478         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
5479         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
5480         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
5482         crypto/arctwo: Use 'restrict'.
5483         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
5484         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
5486         crypto/arcfour: Use 'restrict'.
5487         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
5488         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
5490         careadlinkat: Use 'restrict'.
5491         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
5492         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
5493         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
5495         regex-quote: Use 'restrict'.
5496         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
5497         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
5499         system-quote: Use 'restrict'.
5500         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
5501         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
5503         sh-quote: Use 'restrict'.
5504         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
5505         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
5507         quotearg: Use 'restrict'.
5508         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
5509         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
5511         parse-datetime: Use 'restrict'.
5512         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
5513         'restrict'.
5514         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
5516         nstrftime: Use 'restrict'.
5517         * lib/strftime.h (nstrftime): Use 'restrict'.
5518         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
5520         mbstok_r: Use 'restrict'.
5521         * lib/string.in.h (mbstok_r): Use 'restrict'.
5523         xmemcoll: Use 'restrict'.
5524         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
5525         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
5527         memcoll: Use 'restrict'.
5528         * lib/memcoll.h (memcoll): Use 'restrict'.
5529         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
5531         vasnprintf: Use 'restrict'.
5532         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
5533         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
5535         c-vasnprintf: Use 'restrict'.
5536         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
5537         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
5539         c-vsnprintf: Use 'restrict'.
5540         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
5541         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
5543         c-snprintf: Use 'restrict'.
5544         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
5545         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
5547         astrxfrm: Use 'restrict'.
5548         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
5549         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
5551         amemxfrm: Use 'restrict'.
5552         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
5553         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
5555 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5557         fchmodat, lchmod: simplify
5558         It appears that we may have overengineered lchmod and fchmodat,
5559         in that the code was prepared for some hypothetical platforms but
5560         was so complicated that it was hard to understand.  I attempted to
5561         improve the situation by simplifying the code when this
5562         simplification should not hurt on real platforms; we can re-add
5563         complexity later to port to platforms I didn’t know about.
5564         * lib/fchmodat.c (fchmodat):
5565         * lib/lchmod.c (lchmod):
5566         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
5567         around the /proc code that needs it.
5568         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
5569         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
5570         Do not include <config.h> twice.
5571         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
5572         lchmod on any known hosts.
5573         (lchmod): Do not defer to fchmodat, so that the lchmod module
5574         need not depend on the fchmodat module (which is a circular
5575         dependency).  Do not use openat, since ‘open’ suffices.
5576         Coalesce calls to lchmod/chmod.
5577         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
5578         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
5579         * modules/lchmod (Depends-on, configure.ac):
5580         * modules/sys_stat (Depends-on):
5581         Do not worry about replacing lchmod, since that shouldn’t happen.
5582         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
5583         Do not worry about whether lchmod works on non-symlinks,
5584         since every known lchmod works on non-symlinks.
5585         * modules/lchmod (Depends-on):
5586         Remove circular dependency on fchmodat.
5588 2020-02-22  Bruno Haible  <bruno@clisp.org>
5590         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
5591         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
5592         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
5594 2020-02-22  Bruno Haible  <bruno@clisp.org>
5596         Use 'restrict' in all POSIX function declarations.
5597         * lib/iconv.in.h (iconv): Use 'restrict'.
5598         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
5599         * lib/monetary.in.h (strfmon_l): Likewise.
5600         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
5601         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
5602         pthread_mutex_timedlock, pthread_rwlock_init,
5603         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5604         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
5605         * lib/search.in.h (tdelete): Likewise.
5606         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
5607         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
5608         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
5609         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
5610         Likewise.
5611         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
5612         strtoull): Likewise.
5613         * lib/string.in.h (strncat): Likewise.
5614         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
5615         recvfrom): Likewise.
5616         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
5617         * lib/time.in.h (strftime): Likewise.
5618         * lib/unistd.in.h (readlink, readlinkat): Likewise.
5619         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
5620         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
5621         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
5622         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
5623         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
5624         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
5625         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5626         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5627         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5628         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5630         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5631         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5632         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5633         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
5634         other *_h.m4 files.
5635         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
5637 2020-02-22  Bruno Haible  <bruno@clisp.org>
5639         Update NEWS.
5640         * NEWS: Mention the last change.
5642 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5644         chmodat, chownat: new modules
5645         These are split from fchmodat, fchownat.  GNU Emacs needs the
5646         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
5647         lchmodat.  Split the latter two into a new module chmodat.
5648         Similarly for fchownat.  This the same basic idea for why statat
5649         was split from fstatat on 2013-01-23.
5650         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
5651         Rename from FCHMODAT_INLINE.  All uses changed.
5652         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
5653         Rename from FCHOWNAT_INLINE.  All uses changed.
5654         * lib/openat.h:
5655         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
5656         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
5657         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
5658         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
5659         (configure.ac): Remove fchmodat module indicator.
5660         (Makefile.am): Omit chmodat.c.
5661         (Maintainer): Add self.
5662         * modules/fchownat: Similarly, but for chown.
5663         * tests/test-fchownat.c (BASE): Don't define if already defined.
5664         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
5666 2020-02-22  Bruno Haible  <bruno@clisp.org>
5668         users.txt: Add groff.
5669         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
5670         * users.txt: Add groff.
5672 2020-02-22  Bruno Haible  <bruno@clisp.org>
5674         gnulib-tool: Ensure copied files are writable.
5675         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
5676         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
5677         * gnulib-tool (func_ensure_writable): New function.
5678         (func_ln_s, func_hardlink, func_lookup_file, func_import,
5679         func_create_testdir, copy-file): Invoke it after copying a file.
5681 2020-02-22  Bruno Haible  <bruno@clisp.org>
5683         users.txt: Update.
5684         * users.txt: Update URLs to projects that have moved or switched to git.
5685         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
5686         over the summary view. Add gawk.
5688 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5690         largefile: remove _DARWIN_USE_64_BIT_INODE
5691         It’s not needed in currently-supported macOS versions, and was
5692         problematic anyway in MacOS X 10.5 which was the only version that
5693         could use it.  Problem reported by Peter Eisentraut in:
5694         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
5695         * m4/largefile.m4 (AC_SYS_LARGEFILE):
5696         Don’t define _DARWIN_USE_64_BIT_INODE.
5697         This syncs with Autoconf master.
5699         Add ‘extern "C"’ to count-one-bits.h etc.
5700         This ports these .h files to C++.
5701         Problem reported by Simon Marchi in:
5702         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
5703         * lib/count-leading-zeros.h, lib/count-one-bits.h:
5704         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
5706 2020-02-19  Bruno Haible  <bruno@clisp.org>
5708         uninorm/decompose-internal: Avoid "no previous prototype" warning.
5709         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5710         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
5711         * lib/array-mergesort.h: Accept an optional macro definition
5712         STATIC_FROMTO.
5713         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
5715 2020-02-16  Bruno Haible  <bruno@clisp.org>
5717         fchmodat: Make more future-proof.
5718         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
5719         NEED_FCHMODAT_NONSYMLINK_FIX.
5720         (gl_PREREQ_FCHMODAT): New macro.
5721         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
5722         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
5723         without lchmod function.
5724         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
5726 2020-02-16  Bruno Haible  <bruno@clisp.org>
5728         lchmod: Make more future-proof.
5729         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
5730         (gl_PREREQ_LCHMOD): New macro.
5731         * lib/lchmod.c (orig_lchmod): New function.
5732         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
5733         Return EOPNOTSUPP only on Linux and on platforms without lchmod
5734         function.
5735         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
5737         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
5738         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
5740 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5742         xnanosleep: prefer pause, and get remaining time
5743         Problem reported by Vladimir Panteleev in:
5744         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
5745         * lib/xnanosleep.c: Include intprops.h, unistd.h.
5746         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
5747         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
5748         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
5749         * modules/xnanosleep (Depends-on): Add intprops, unistd.
5751 2020-02-16  Bruno Haible  <bruno@clisp.org>
5753         lchmod: Improve cross-compilation guess.
5754         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
5755         cross-compiling, guess depending on the platform.
5757 2020-02-16  Bruno Haible  <bruno@clisp.org>
5759         fstrcmp: Add API to clean up resources.
5760         Reported by Akim Demaille <akim@lrde.epita.fr> in
5761         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
5762         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
5763         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
5765 2020-02-14  Bruno Haible  <bruno@clisp.org>
5767         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
5768         Reported by Christian Biesinger in
5769         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
5770         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
5771         corresponding module is not enabled.
5772         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
5773         prototype if the corresponding module is not enabled.
5775 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
5777         fchmodat, lchmod: port to buggy Linux filesystems
5778         Problem reported by Florian Weimer in:
5779         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
5780         * lib/fchmodat.c (fchmodat):
5781         * lib/lchmod.c (lchmod):
5782         Don’t assume that chmod on the O_PATH-opened fd will do
5783         the right thing on a symbolic link.
5784         * lib/fchmodat.c (fchmodat):
5785         Don’t attempt to special-case
5786         any flag value other than AT_SYMLINK_NOFOLLOW.
5788 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
5790         lchmod: pacify Coverity CID 1491216
5791         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
5792         not complain about unreachable code at the ‘struct stat st;’
5793         declaration.
5795 2020-02-10  Bruno Haible  <bruno@clisp.org>
5797         copysignf: Fix link error on HP-UX with cc.
5798         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
5799         HP-UX, set COPYSIGNF_LIBM to -lm.
5801 2020-02-10  Bruno Haible  <bruno@clisp.org>
5803         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
5804         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
5805         with $(LIB_SEMAPHORE).
5806         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
5807         with $(LIB_SEMAPHORE).
5809 2020-02-10  Bruno Haible  <bruno@clisp.org>
5811         ptsname_r-tests: Avoid unused function warning.
5812         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
5814 2020-02-08  Bruno Haible  <bruno@clisp.org>
5816         lchmod: Add tests.
5817         * tests/test-lchmod.c: New file.
5818         * modules/lchmod-tests: New file.
5820 2020-02-08  Bruno Haible  <bruno@clisp.org>
5822         lchmod: Ensure declaration on HP-UX.
5823         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
5824         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
5826 2020-02-08  Bruno Haible  <bruno@clisp.org>
5828         fchmodat: Strengthen tests.
5829         * tests/test-fchmodat.c (BASE): New macro.
5830         (main): Use it, to avoid conflicts with other unit tests. Verify that
5831         fchmodat changed the file permission bits.
5833 2020-02-08  Bruno Haible  <bruno@clisp.org>
5835         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
5836         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
5837         '#undef __need_system_sys_stat_h'.
5839 2020-02-08  Bruno Haible  <bruno@clisp.org>
5841         fchmodat: Improve cross-compilation guesses.
5842         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
5843         cross-compiling, guess depending on the platform.
5844         * doc/posix-functions/fchmodat.texi: Clarify.
5846 2020-02-08  Bruno Haible  <bruno@clisp.org>
5848         Fix compilation errors in a testdir created with --with-c++-tests.
5849         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
5850         since it does not work any more with g++ >= 4.4.
5852 2020-02-08  Bruno Haible  <bruno@clisp.org>
5854         doc: Update for glibc 2.31.
5855         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
5856         * doc/gnulib.texi: Include it.
5857         * doc/pastposix-functions/h_errno.texi: Update.
5858         * doc/posix-functions/*.texi: Likewise.
5860 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
5862         mountlist: consider smb3 file systems as remote
5863         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
5864         "smb3" as remote.
5866 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5868         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
5869         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
5870         they act like chmod on non-symlinks.
5871         * NEWS:
5872         * doc/glibc-functions/lchmod.texi (lchmod):
5873         * doc/posix-functions/fchmodat.texi (fchmodat):
5874         Mention this.
5875         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
5876         config.h, and undef it after including sys/stat.h the first time.
5877         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
5878         sys/stat.h a second time after defining orig_fchmodat.
5879         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
5880         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
5881         * lib/lchmod.c: New file.
5882         * lib/sys_stat.in.h (fchmodat, lchmod):
5883         Support replacing these functions.
5884         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
5885         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
5886         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
5887         Test that lchmod works on non-symlinks.
5888         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
5889         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
5890         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
5891         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
5892         * modules/lchmod (Files): Add lib/lchmod.c.
5893         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
5894         (configure.ac): Compile lchmod.c if needed.
5895         (lib_SOURCES): Add lchmod.c.
5896         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5897         and REPLACE_LCHMOD.
5898         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5899         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5901 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5903         mountlist: Consider AFS filesystems as remote
5904         df --local relies on the ME_REMOTE macro to determine if a given
5905         mount entry should be considered "local".  There is special logic
5906         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5907         kernel's kafs module or AuriStorFS is treated as a local mount.
5908         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5909         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5911 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5913         Port _Noreturn to older Clang
5914         Problem reported by Jeffery Walton in:
5915         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5916         * lib/_Noreturn.h (_Noreturn):
5917         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5918         Assume _Noreturn works in Clang 3.5 and later.
5919         It is documented to work in Clang 3.5:
5920         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5921         and is not documented in Clang 3.4:
5922         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5923         Apple sets __clang_version__ to a different value, so use
5924         __apple_build_version__ there.  See:
5925         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5927 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5929         test-canonicalize: avoid unused function warning
5930         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5931         with the same guard as that used to protect usage of the null_ptr
5932         function, so that one doesn't get a -Wunused warning.
5933         * tests/test-canonicalize-lgpl.c: Likewise.
5935 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5937         libc-config: port to Apple’s Clang variant
5938         * lib/libc-config.h (__glibc_clang_prereq):
5939         Port to Apple’s Clang variant, which uses a different
5940         numbering scheme for __clang_major__.
5942 2020-02-02  Bruno Haible  <bruno@clisp.org>
5944         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5945         * doc/containers.texi: Document these new modules.
5947 2020-02-02  Bruno Haible  <bruno@clisp.org>
5949         omap-c++: Add tests.
5950         * tests/test-omap-c++.cc: New file.
5951         * modules/omap-c++-tests: New file.
5953         omap-c++: New module.
5954         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5955         * modules/omap-c++: New file.
5957 2020-02-02  Bruno Haible  <bruno@clisp.org>
5959         map-c++: Add tests.
5960         * tests/test-map-c++.cc: New file.
5961         * modules/map-c++-tests: New file.
5963         map-c++: New module.
5964         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5965         * modules/map-c++: New file.
5967 2020-02-02  Bruno Haible  <bruno@clisp.org>
5969         oset-c++: Add tests.
5970         * tests/test-oset-c++.cc: New file.
5971         * modules/oset-c++-tests: New file.
5973         oset-c++: New module.
5974         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5975         * modules/oset-c++: New file.
5977 2020-02-02  Bruno Haible  <bruno@clisp.org>
5979         set-c++: Add tests.
5980         * tests/test-set-c++.cc: New file.
5981         * modules/set-c++-tests: New file.
5983         set-c++: New module.
5984         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5985         * modules/set-c++: New file.
5987 2020-02-02  Bruno Haible  <bruno@clisp.org>
5989         list-c++: Add tests.
5990         * tests/test-list-c++.cc: New file.
5991         * modules/list-c++-tests: New file.
5993         list-c++: New module.
5994         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5995         * modules/list-c++: New file.
5997 2020-02-02  Bruno Haible  <bruno@clisp.org>
5999         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
6000         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
6001         '_Noreturn'.
6002         * lib/sigpipe-die.h (sigpipe_die): Likewise.
6004 2020-02-02  Pádraig Brady  <P@draigBrady.com>
6006         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
6007         On x86_64 with glibc-2.30, gcc 9.2 is giving:
6008           error: argument 2 value '18446744073709551615'
6009           exceeds maximum object size 9223372036854775807
6010           [-Werror=alloc-size-larger-than=]
6011         The details of this restriction are discussed at:
6012         https://stackoverflow.com/q/42574890/4421
6013         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
6015 2020-02-02  Pádraig Brady  <P@draigBrady.com>
6017         sysctl.h: avoid including on glibc
6018         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
6019         * lib/physmem.c: Likewise.
6021 2020-02-02  Bruno Haible  <bruno@clisp.org>
6023         list, set, oset, map, omap: Avoid imperative voice in documentation.
6024         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
6025         in the specification of functions.
6026         * lib/gl_set.h: Likewise.
6027         * lib/gl_oset.h: Likewise.
6028         * lib/gl_map.h: Likewise.
6029         * lib/gl_omap.h: Likewise.
6030         * lib/gl_*.h: Likewise.
6032 2020-02-01  Bruno Haible  <bruno@clisp.org>
6034         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
6035         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
6036         does.
6038 2020-01-29  Bruno Haible  <bruno@clisp.org>
6040         array-map, hash-map, linkedhash-map: Fix module description.
6041         * modules/array-map (Description): Fix description.
6042         * modules/hash-map (Description): Likewise.
6043         * modules/linkedhash-map (Description): Likewise.
6045 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6047         dfa: do not depend on isblank
6048         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
6049         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
6050         * modules/dfa (Depends-on): Remove isblank.
6051         * modules/isblank: Add a module indicator, for lib/dfa.c.
6053         dfa: do not assume 64-bit int
6054         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
6055         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
6056         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
6057         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
6058         Fall back to 32-bit words.
6059         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
6060         of 4 64-bit args.  All uses changed.
6062 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6064         regex: remove limits-h dependency
6065         * modules/regex (Depends-on): Remove limits-h, since the
6066         code no longer depends on ULONG_WIDTH already being defined.
6068         regex: port to non-GCC pre-IEC-60559
6069         Problem reported by Arnold Robbins in:
6070         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
6071         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
6073 2020-01-25  Bruno Haible  <bruno@clisp.org>
6075         c32isxdigit: Add tests.
6076         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
6077         * tests/test-c32isxdigit.sh: New file.
6078         * modules/c32isxdigit-tests: New file.
6080         c32isxdigit: New module.
6081         * lib/c32isxdigit.c: New file.
6082         * modules/c32isxdigit: New file.
6083         * doc/posix-functions/iswxdigit.texi: Mention the new module.
6085 2020-01-25  Bruno Haible  <bruno@clisp.org>
6087         c32isupper: Add tests.
6088         * tests/test-c32isupper.c: New file.
6089         * tests/test-c32isupper.sh: New file.
6090         * modules/c32isupper-tests: New file.
6092         c32isupper: New module.
6093         * lib/c32isupper.c: New file.
6094         * modules/c32isupper: New file.
6095         * doc/posix-functions/iswupper.texi: Mention the new module.
6097 2020-01-25  Bruno Haible  <bruno@clisp.org>
6099         c32isspace: Add tests.
6100         * tests/test-c32isspace.c: New file.
6101         * tests/test-c32isspace.sh: New file.
6102         * modules/c32isspace-tests: New file.
6104         c32isspace: New module.
6105         * lib/c32isspace.c: New file.
6106         * modules/c32isspace: New file.
6107         * doc/posix-functions/iswspace.texi: Mention the new module.
6109 2020-01-25  Bruno Haible  <bruno@clisp.org>
6111         c32ispunct: Add tests.
6112         * tests/test-c32ispunct.c: New file.
6113         * tests/test-c32ispunct.sh: New file.
6114         * modules/c32ispunct-tests: New file.
6116         c32ispunct: New module.
6117         * lib/c32ispunct.c: New file.
6118         * modules/c32ispunct: New file.
6119         * doc/posix-functions/iswpunct.texi: Mention the new module.
6121 2020-01-25  Bruno Haible  <bruno@clisp.org>
6123         c32isprint: Add tests.
6124         * tests/test-c32isprint.c: New file.
6125         * tests/test-c32isprint.sh: New file.
6126         * modules/c32isprint-tests: New file.
6128         c32isprint: New module.
6129         * lib/c32isprint.c: New file.
6130         * modules/c32isprint: New file.
6131         * doc/posix-functions/iswprint.texi: Mention the new module.
6133 2020-01-25  Bruno Haible  <bruno@clisp.org>
6135         c32islower: Add tests.
6136         * tests/test-c32islower.c: New file.
6137         * tests/test-c32islower.sh: New file.
6138         * modules/c32islower-tests: New file.
6140         c32islower: New module.
6141         * lib/c32islower.c: New file.
6142         * modules/c32islower: New file.
6143         * doc/posix-functions/iswlower.texi: Mention the new module.
6145 2020-01-25  Bruno Haible  <bruno@clisp.org>
6147         c32isgraph: Add tests.
6148         * tests/test-c32isgraph.c: New file.
6149         * tests/test-c32isgraph.sh: New file.
6150         * modules/c32isgraph-tests: New file.
6152         c32isgraph: New module.
6153         * lib/c32isgraph.c: New file.
6154         * modules/c32isgraph: New file.
6155         * doc/posix-functions/iswgraph.texi: Mention the new module.
6157 2020-01-25  Bruno Haible  <bruno@clisp.org>
6159         c32isdigit: Add tests.
6160         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
6161         * tests/test-c32isdigit.sh: New file.
6162         * modules/c32isdigit-tests: New file.
6164         c32isdigit: New module.
6165         * lib/c32isdigit.c: New file.
6166         * modules/c32isdigit: New file.
6167         * doc/posix-functions/iswdigit.texi: Mention the new module.
6169 2020-01-25  Bruno Haible  <bruno@clisp.org>
6171         c32iscntrl: Add tests.
6172         * tests/test-c32iscntrl.c: New file.
6173         * tests/test-c32iscntrl.sh: New file.
6174         * modules/c32iscntrl-tests: New file.
6176         c32iscntrl: New module.
6177         * lib/c32iscntrl.c: New file.
6178         * modules/c32iscntrl: New file.
6179         * doc/posix-functions/iswcntrl.texi: Mention the new module.
6181 2020-01-25  Bruno Haible  <bruno@clisp.org>
6183         c32isblank: Add tests.
6184         * tests/test-c32isblank.c: New file.
6185         * tests/test-c32isblank.sh: New file.
6186         * modules/c32isblank-tests: New file.
6188         c32isblank: New module.
6189         * lib/c32isblank.c: New file.
6190         * modules/c32isblank: New file.
6191         * doc/posix-functions/iswblank.texi: Mention the new module.
6193 2020-01-25  Bruno Haible  <bruno@clisp.org>
6195         c32isalpha: Add tests.
6196         * tests/test-c32isalpha.c: New file.
6197         * tests/test-c32isalpha.sh: New file.
6198         * modules/c32isalpha-tests: New file.
6200         c32isalpha: New module.
6201         * lib/c32isalpha.c: New file.
6202         * modules/c32isalpha: New file.
6203         * doc/posix-functions/iswalpha.texi: Mention the new module.
6205 2020-01-25  Bruno Haible  <bruno@clisp.org>
6207         c32isalnum: Add tests.
6208         * tests/test-c32isalnum.c: New file.
6209         * tests/test-c32isalnum.sh: New file.
6210         * modules/c32isalnum-tests: New file.
6212         c32isalnum: New module.
6213         * lib/c32isalnum.c: New file.
6214         * lib/c32is-impl.h: New file.
6215         * modules/c32isalnum: New file.
6216         * doc/posix-functions/iswalnum.texi: Mention the new module.
6218 2020-01-25  Bruno Haible  <bruno@clisp.org>
6220         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
6221         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
6222         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
6223         c32isupper, c32isxdigit): New declarations.
6224         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
6225         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
6226         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
6227         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
6228         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
6229         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
6230         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
6231         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
6232         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
6233         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
6234         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
6235         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
6236         c32ispunct, c32isspace, c32isupper, c32isxdigit.
6238 2020-01-25  Bruno Haible  <bruno@clisp.org>
6240         mbchar, wctype: Use the corrected iswxdigit function.
6241         * modules/mbchar (Depends-on): Add iswxdigit.
6242         * modules/wctype (Depends-on): Likewise.
6244         iswxdigit: Add tests.
6245         * tests/test-iswxdigit.c: New file.
6246         * tests/test-iswxdigit.sh: New file.
6247         * modules/iswxdigit-tests: New file.
6249         iswxdigit: New module.
6250         * m4/iswxdigit.m4: New file.
6251         * lib/wctype.in.h (iswxdigit): Potentially override.
6252         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
6253         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
6254         * lib/iswxdigit.c: New file.
6255         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
6256         REPLACE_ISWXDIGIT.
6257         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
6258         REPLACE_ISWXDIGIT.
6259         * modules/iswxdigit: New file.
6260         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
6262 2020-01-25  Bruno Haible  <bruno@clisp.org>
6264         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
6265         Reported by John Donoghue <john.david.donoghue@gmail.com> in
6266         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
6267         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
6268         off_t on mingw, invoke _lseeki64 instead of lseek.
6270 2020-01-25  Bruno Haible  <bruno@clisp.org>
6272         iswdigit tests: Avoid test failure on Cygwin.
6273         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
6274         byte sequence, return 0.
6276         iswdigit: Fix test failure on native Windows.
6277         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
6279         mbchar, wctype: Use the corrected iswdigit function.
6280         * modules/mbchar (Depends-on): Add iswdigit.
6281         * modules/wctype (Depends-on): Likewise.
6283         iswdigit: Add tests.
6284         * tests/test-iswdigit.c: New file.
6285         * tests/test-iswdigit.sh: New file.
6286         * modules/iswdigit-tests: New file.
6288         iswdigit: New module.
6289         * m4/iswdigit.m4: New file.
6290         * lib/wctype.in.h (iswdigit): Potentially override.
6291         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
6292         * lib/iswdigit.c: New file.
6293         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
6294         REPLACE_ISWDIGIT.
6295         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
6296         REPLACE_ISWDIGIT.
6297         * modules/iswdigit: New file.
6298         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
6300 2020-01-25  Bruno Haible  <bruno@clisp.org>
6302         hard-locale tests: Make it easy to reuse the musl test.
6303         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
6304         * modules/hard-locale-tests (Files): Add it.
6305         (configure.ac): Invoke gl_MUSL_LIBC.
6307 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
6309         regex: port to Gawk on nonstandard platforms
6310         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
6311         This is useful for Gawk, which does not use the Gnulib stdlib-h
6312         module.  Problem reported by Arnold Robbins in:
6313         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
6315 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6317         regex: fix bug with >=16 subexpressions
6318         * lib/regex_internal.h (struct re_backref_cache_entry):
6319         Use bitset_word_t as the type of eps_reachable_subexps_map,
6320         instead of unsigned short int.  This fixes a bug I introduced
6321         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
6322         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
6323         Remove unused member 'unused'.
6325         regex: simplify definition of BITSET_WORD_BITS
6326         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
6327         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
6328         * lib/regex_internal.h (BITSET_WORD_BITS):
6329         * modules/regex (Depends-on): Add limits-h.
6330         Simplify now that we can use ULONG_WIDTH.
6332 2020-01-20  Bruno Haible  <bruno@clisp.org>
6334         mbrtoc32: Add note about FreeBSD 12.
6335         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
6336         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
6337         affected.
6339 2020-01-20  Bruno Haible  <bruno@clisp.org>
6341         unistr/u8-uctomb: Fix warning.
6342         Reported by Andreas Schwab <schwab@suse.de> in
6343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
6344         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
6345         (u8_uctomb): Add FALLTHROUGH markers.
6347 2020-01-20  Bruno Haible  <bruno@clisp.org>
6349         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
6350         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
6351         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
6352         (glthread_once): Use it.
6354 2020-01-19  Bruno Haible  <bruno@clisp.org>
6356         threadlib: Disable use of weak symbols on FreeBSD 11.
6357         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6358         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
6359         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
6360         against a bug in FreeBSD 11.
6362 2020-01-19  Bruno Haible  <bruno@clisp.org>
6364         iconv_open: Improve z/OS support.
6365         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
6366         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
6367         Remove mapping for EUC-TW.
6369 2020-01-18  Bruno Haible  <bruno@clisp.org>
6371         Rename ~~gnulib.m4 to zzgnulib.m4.
6372         Suggested by Paul Eggert.
6373         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
6374         * gnulib-tool (func_get_filelist): Update.
6375         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6377 2020-01-18  Bruno Haible  <bruno@clisp.org>
6379         doc: Update license notices.
6380         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
6381         reference to a section or to a "file as part of this distribution".
6383 2020-01-18  Bruno Haible  <bruno@clisp.org>
6385         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
6386         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
6387         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
6388         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
6389         AC_EGREP_CPP.
6391 2020-01-18  Bruno Haible  <bruno@clisp.org>
6393         Ensure Automake does not drop ~~gnulib.m4.
6394         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
6395         * m4/gnulib-common.m4 (gl_COMMON): Require it.
6397 2020-01-18  Bruno Haible  <bruno@clisp.org>
6399         Fix major regression from 2020-01-10.
6400         Reported by Paul Eggert in
6401         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
6402         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
6403         Don't AC_REQUIRE anything.
6404         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
6405         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
6406         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
6407         use ac_compile instead.
6408         (AC_CHECK_DECL): Remove override.
6409         * m4/~~gnulib.m4: New file.
6410         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
6411         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
6413 2020-01-17  Bruno Haible  <bruno@clisp.org>
6414             Paul Eggert  <eggert@cs.ucla.edu>
6416         glob: Fix use-after-free bug.
6417         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6418         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
6419         * lib/glob.c (__glob): Delay freeing dirname until after the use of
6420         end_name.
6422 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6424         vcs-to-changelog: Fix parsing of fndecl without args.
6425         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
6426         for empty arguments.
6428 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6430         vcs-to-changelog: Add documentation.
6431         * doc/vcs-to-changelog.texi: New file.
6432         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
6433         section.
6435 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6437         vcs-to-changelog: Allow loading of custom quirks file.
6438         * build-aux/vcs_to_changelog.py: New commandline option -q.
6440 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6442         vcs-to-changelog: Fix formatting of ChangeLog output.
6443         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
6444         output.
6446 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6448         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
6449         Reported in
6450         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
6451         * build-aux/vcstocl/frontend_c.py: Remove shebang.
6453 2020-01-15  Simon Josefsson  <simon@josefsson.org>
6455         crypto/gc-pbkdf2: New module.
6456         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
6457         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
6458         * lib/gc-pbkdf2.c: New file.
6459         * lib/gc-pbkdf2-sha1.c: Use new interface.
6460         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
6461         * modules/crypto/gc-pbkdf2: New file.
6462         * modules/crypto/gc-pbkdf2-tests: New file.
6463         * tests/test-gc-pbkdf2.c: New file.
6465 2020-01-12  Bruno Haible  <bruno@clisp.org>
6467         c32stombs: Add tests.
6468         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
6469         * tests/test-c32stombs-1.sh: New file, based on
6470         tests/test-c32srtombs-1.sh.
6471         * tests/test-c32stombs-2.sh: New file, based on
6472         tests/test-c32srtombs-2.sh.
6473         * tests/test-c32stombs-3.sh: New file, based on
6474         tests/test-c32srtombs-3.sh.
6475         * tests/test-c32stombs-4.sh: New file, based on
6476         tests/test-c32srtombs-4.sh.
6477         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
6479         c32stombs: New module.
6480         * lib/uchar.in.h (c32stombs): New declaration.
6481         * lib/c32stombs.c: New file.
6482         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
6483         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
6484         * modules/c32stombs: New file.
6485         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
6486         * doc/posix-functions/wcstombs.texi: Mention the new module.
6488 2020-01-11  Jim Meyering  <meyering@fb.com>
6490         perl: require the "warnings" module
6491         * m4/perl.m4: Also "use warnings", so we reject the perl found
6492         on at least one IRIX 6.5 system. Reported by Bruno Haible in
6493         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
6495 2020-01-10  Bruno Haible  <bruno@clisp.org>
6497         Fix major regression from 2020-01-04.
6498         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
6499         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
6500         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
6501         AC_DEFUN_ONCE.
6502         (AC_CHECK_DECL): Invoke, not require, it.
6504 2020-01-10  Bruno Haible  <bruno@clisp.org>
6506         c32snrtombs: Add tests.
6507         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
6508         * tests/test-c32snrtombs-1.sh: New file, based on
6509         tests/test-wcsnrtombs1.sh.
6510         * tests/test-c32snrtombs-2.sh: New file, based on
6511         tests/test-wcsnrtombs2.sh.
6512         * tests/test-c32snrtombs-3.sh: New file, based on
6513         tests/test-wcsnrtombs3.sh.
6514         * tests/test-c32snrtombs-4.sh: New file, based on
6515         tests/test-wcsnrtombs4.sh.
6516         * modules/c32snrtombs-tests: New file, based on
6517         modules/wcsnrtombs-tests.
6519         c32snrtombs: New module.
6520         * lib/uchar.in.h (c32snrtombs): New declaration.
6521         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6522         INTERNAL_STATE, WCRTOMB.
6523         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6524         * lib/c32snrtombs.c: New file.
6525         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
6526         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
6527         * modules/c32snrtombs: New file.
6528         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
6529         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6531 2020-01-09  Bruno Haible  <bruno@clisp.org>
6533         c32srtombs: Add tests.
6534         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
6535         * tests/test-c32srtombs-1.sh: New file, based on
6536         tests/test-wcsrtombs1.sh.
6537         * tests/test-c32srtombs-2.sh: New file, based on
6538         tests/test-wcsrtombs2.sh.
6539         * tests/test-c32srtombs-3.sh: New file, based on
6540         tests/test-wcsrtombs3.sh.
6541         * tests/test-c32srtombs-4.sh: New file, based on
6542         tests/test-wcsrtombs4.sh.
6543         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
6545         c32srtombs: New module.
6546         * lib/uchar.in.h (c32srtombs): New declaration.
6547         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6548         INTERNAL_STATE, WCRTOMB.
6549         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6550         * lib/c32srtombs.c: New file.
6551         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
6552         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
6553         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
6554         * modules/c32srtombs: New file.
6555         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
6556         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
6558 2020-01-08  Bruno Haible  <bruno@clisp.org>
6560         c32tob: Make consistent with mbrtoc32.
6561         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
6562         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
6563         use c32rtomb, not wctob.
6564         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
6565         (Depends-on): Add c32rtomb.
6566         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
6568 2020-01-08  Bruno Haible  <bruno@clisp.org>
6570         c32rtomb: Add tests.
6571         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
6572         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
6573         * tests/test-c32rtomb-w32.c: New file, based on
6574         tests/test-wcrtomb-w32.c.
6575         * tests/test-c32rtomb-w32-1.sh: New file, based on
6576         tests/test-wcrtomb-w32-1.sh.
6577         * tests/test-c32rtomb-w32-2.sh: New file, based on
6578         tests/test-wcrtomb-w32-2.sh.
6579         * tests/test-c32rtomb-w32-3.sh: New file, based on
6580         tests/test-wcrtomb-w32-3.sh.
6581         * tests/test-c32rtomb-w32-4.sh: New file, based on
6582         tests/test-wcrtomb-w32-4.sh.
6583         * tests/test-c32rtomb-w32-5.sh: New file, based on
6584         tests/test-wcrtomb-w32-5.sh.
6585         * tests/test-c32rtomb-w32-6.sh: New file, based on
6586         tests/test-wcrtomb-w32-6.sh.
6587         * tests/test-c32rtomb-w32-7.sh: New file, based on
6588         tests/test-wcrtomb-w32-7.sh.
6589         * modules/c32rtomb-tests: New file.
6591         c32rtomb: New module.
6592         * lib/uchar.in.h (c32rtomb): New declaration.
6593         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
6594         * m4/c32rtomb.m4: New file.
6595         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
6596         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
6597         REPLACE_C32RTOMB.
6598         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
6599         HAVE_C32RTOMB, REPLACE_C32RTOMB.
6600         * modules/c32rtomb: New file.
6601         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
6602         * doc/posix-functions/c32rtomb.texi: Document the new module.
6603         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6605 2020-01-08  Bruno Haible  <bruno@clisp.org>
6607         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
6608         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
6609         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
6610         but is not working.
6611         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
6612         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
6613         differ, use the system's mbrtoc32, adding workarounds.
6614         * modules/mbrtoc32 (Depends-on): Add hard-locale.
6615         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
6616         Windows problem.
6617         * lib/btoc32.c: Include <stdio.h>, <string.h>.
6618         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
6619         use mbrtoc32, not btowc.
6620         * modules/btoc32 (Depends-on): Add mbrtoc32.
6621         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
6622         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
6623         * modules/mbsrtoc32s (Depends-on): Update conditions.
6624         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6625         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
6626         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
6627         * modules/mbsnrtoc32s (Depends-on): Update conditions.
6628         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6630 2020-01-07  Bruno Haible  <bruno@clisp.org>
6632         wcrtomb: Make multithread-safe, except possibly on IRIX.
6633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
6634         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
6635         WCRTOMB_RETVAL_BUG.
6636         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
6637         wctomb only on IRIX.
6639 2020-01-05  Jim Meyering  <meyering@fb.com>
6641         tests: skip thread-using tests when threading is disabled
6642         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
6643         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
6644         of those, so they are skipped in this case.
6645         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
6646         * tests/test-setlocale_null-mt-all.c (main): Likewise.
6647         * tests/test-setlocale_null-mt-one.c (main): Likewise.
6649 2020-01-05  Bruno Haible  <bruno@clisp.org>
6651         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
6652         Reported by Jim Meyering in
6653         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
6654         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
6655         (GNULIB_defined_ptsname_r): New macro.
6656         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
6657         (main): Disable the NULL argument test if canonicalize_file_name does
6658         not come from gnulib.
6659         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
6660         (main): Disable the NULL argument test if canonicalize_file_name does
6661         not come from gnulib.
6662         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
6663         (test_errors): Disable the NULL argument test if ptsname_r does not come
6664         from gnulib.
6666 2020-01-04  Jim Meyering  <meyering@fb.com>
6668         update-copyright: reenable its always-skipped test
6669         * tests/test-update-copyright.sh: Restore the "-pi" options removed
6670         on 2019-06-15. Without those, an internal preliminary test would
6671         fail, causing this test always to be skipped.
6672         Verify that the test is now run and passes via this:
6673           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
6675 2020-01-05  Bruno Haible  <bruno@clisp.org>
6677         mbstoc32s: Add tests.
6678         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
6679         * tests/test-mbstoc32s-1.sh: New file, based on
6680         tests/test-mbsrtoc32s-1.sh.
6681         * tests/test-mbstoc32s-2.sh: New file, based on
6682         tests/test-mbsrtoc32s-2.sh.
6683         * tests/test-mbstoc32s-3.sh: New file, based on
6684         tests/test-mbsrtoc32s-3.sh.
6685         * tests/test-mbstoc32s-4.sh: New file, based on
6686         tests/test-mbsrtoc32s-4.sh.
6687         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
6689         mbstoc32s: New module.
6690         * lib/uchar.in.h (mbstoc32s): New declaration.
6691         * lib/mbstoc32s.c: New file.
6692         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
6693         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
6694         * modules/mbstoc32s: New file.
6695         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
6696         * doc/posix-functions/mbstowcs.texi: Mention the new module.
6698 2020-01-05  Bruno Haible  <bruno@clisp.org>
6700         Tweak recently added tests.
6701         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
6702         * tests/test-mbsrtoc32s.c: Likewise.
6703         * tests/test-mbsnrtoc32s.c: Likewise.
6705 2020-01-04  Bruno Haible  <bruno@clisp.org>
6707         mbsnrtoc32s: Add tests.
6708         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
6709         * tests/test-mbsnrtoc32s-1.sh: New file, based on
6710         tests/test-mbsnrtowcs1.sh.
6711         * tests/test-mbsnrtoc32s-2.sh: New file, based on
6712         tests/test-mbsnrtowcs2.sh.
6713         * tests/test-mbsnrtoc32s-3.sh: New file, based on
6714         tests/test-mbsnrtowcs3.sh.
6715         * tests/test-mbsnrtoc32s-4.sh: New file, based on
6716         tests/test-mbsnrtowcs4.sh.
6717         * modules/mbsnrtoc32s-tests: New file, based on
6718         modules/mbsnrtowcs-tests.
6720         mbsnrtoc32s: New module.
6721         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
6722         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6723         INTERNAL_STATE, MBRTOWC.
6724         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6725         * lib/mbsnrtoc32s.c: New file.
6726         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
6727         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
6728         * modules/mbsnrtoc32s: New file.
6729         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
6730         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
6732 2020-01-04  Bruno Haible  <bruno@clisp.org>
6734         mbsrtoc32s tests: Enhance test.
6735         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
6736         test strings for UTF-8 and GB18030.
6738 2020-01-04  Bruno Haible  <bruno@clisp.org>
6740         mbsrtoc32s: Fix bug.
6741         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
6742         that SMALL_WCHAR_T is defined.
6744 2020-01-04  Bruno Haible  <bruno@clisp.org>
6746         mbsrtoc32s: Add tests.
6747         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
6748         * tests/test-mbsrtoc32s-1.sh: New file, based on
6749         tests/test-mbsrtowcs1.sh.
6750         * tests/test-mbsrtoc32s-2.sh: New file, based on
6751         tests/test-mbsrtowcs2.sh.
6752         * tests/test-mbsrtoc32s-3.sh: New file, based on
6753         tests/test-mbsrtowcs3.sh.
6754         * tests/test-mbsrtoc32s-4.sh: New file, based on
6755         tests/test-mbsrtowcs4.sh.
6756         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
6758         mbsrtoc32s: New module.
6759         * lib/uchar.in.h (mbsrtoc32s): New declaration.
6760         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6761         INTERNAL_STATE, MBRTOWC.
6762         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6763         * lib/mbsrtoc32s.c: New file.
6764         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
6765         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
6766         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
6767         * modules/mbsrtoc32s: New file.
6768         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
6769         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
6771 2020-01-04  Bruno Haible  <bruno@clisp.org>
6773         mbrtowc, mbrtoc32: Tighten dependendies.
6774         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
6775         REPLACE_MBSTATE_T is 1.
6776         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6777         REPLACE_MBSTATE_T is 0.
6778         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
6779         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
6780         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6781         REPLACE_MBSTATE_T is 0.
6783 2020-01-04  Bruno Haible  <bruno@clisp.org>
6785         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
6786         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
6787         * modules/uchar (Files): Add stdint.m4.
6788         (Makefile.am): Substitute SMALL_WCHAR_T.
6789         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
6791 2020-01-04  Bruno Haible  <bruno@clisp.org>
6793         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
6794         Reported by Martin Storsjö <martin@martin.st> in
6795         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
6796         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
6797         New macros.
6798         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
6800 2020-01-04  Bruno Haible  <bruno@clisp.org>
6802         btoc32: Add tests.
6803         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
6804         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
6805         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
6806         * modules/btoc32-tests: New file, based on modules/btowc-tests.
6808         btoc32: New module.
6809         * lib/uchar.in.h (btoc32): New declaration.
6810         * lib/btoc32.c: New file.
6811         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
6812         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
6813         * modules/btoc32: New file.
6814         * tests/test-uchar-c++.cc: Test the signature of btoc32.
6815         * doc/posix-functions/btowc.texi: Mention the new module.
6817 2020-01-03  Bruno Haible  <bruno@clisp.org>
6819         uchar tests: Avoid compilation error with HP cc.
6820         * tests/test-uchar.c: Disable a test when HP cc is in use.
6822 2020-01-03  Bruno Haible  <bruno@clisp.org>
6824         mbrtoc32: Add tests.
6825         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
6826         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
6827         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
6828         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
6829         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
6830         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
6831         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
6832         * tests/test-mbrtoc32-w32-1.sh: New file, based on
6833         tests/test-mbrtowc-w32-1.sh.
6834         * tests/test-mbrtoc32-w32-2.sh: New file, based on
6835         tests/test-mbrtowc-w32-2.sh.
6836         * tests/test-mbrtoc32-w32-3.sh: New file, based on
6837         tests/test-mbrtowc-w32-3.sh.
6838         * tests/test-mbrtoc32-w32-4.sh: New file, based on
6839         tests/test-mbrtowc-w32-4.sh.
6840         * tests/test-mbrtoc32-w32-5.sh: New file, based on
6841         tests/test-mbrtowc-w32-5.sh.
6842         * tests/test-mbrtoc32-w32-6.sh: New file, based on
6843         tests/test-mbrtowc-w32-6.sh.
6844         * tests/test-mbrtoc32-w32-7.sh: New file, based on
6845         tests/test-mbrtowc-w32-7.sh.
6846         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
6848         mbrtoc32: New module.
6849         * lib/uchar.in.h (mbrtoc32): New declaration.
6850         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
6851         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
6852         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
6853         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
6854         REPLACE_MBRTOC32.
6855         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
6856         HAVE_MBRTOC32, REPLACE_MBRTOC32.
6857         * modules/mbrtoc32: New file, based on modules/mbrtowc.
6858         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
6859         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
6860         $(LIB_MBRTOWC).
6861         * doc/posix-functions/mbrtoc32.texi: Document the new module.
6862         * doc/posix-functions/mbrtowc.texi: Mention the new module.
6864 2020-01-03  Bruno Haible  <bruno@clisp.org>
6866         mbrtowc: Refactor to share code with mbrtoc32.
6867         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
6868         * lib/mbrtowc-impl-utf8.h: Likewise.
6869         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
6870         mbrtowc-impl.h.
6871         * modules/mbrtowc (Files): Add the new files.
6873 2020-01-03  Jim Meyering  <meyering@fb.com>
6875         doc: fix time.texi wording
6876         * doc/posix-headers/time.texi (time.h): Typo.
6878 2020-01-03  Bruno Haible  <bruno@clisp.org>
6880         mbrtowc: Refactor locale charset dispatching.
6881         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
6882         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
6883         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
6884         localcharset.h, streq.h.
6885         (enc_t): Remove type.
6886         (locale_enc): Remove function.
6887         (cached_locale_enc): Remove variable.
6888         (locale_enc_cached): Remove function.
6889         (mbrtowc): Invoke locale_encoding_classification.
6890         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
6891         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
6892         lc-charset-dispatch.c.
6893         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6895 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6897         doc: mention 32-bit time_t issue
6898         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6899         * doc/posix-headers/time.texi (time.h): Mention 2038.
6901 2020-01-03  Bruno Haible  <bruno@clisp.org>
6903         mbrtowc: Ensure the mbtowc_lock is unique.
6904         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6905         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6906         lib/setlocale_null.c.
6907         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6908         glthread/lock.h. Include mbtowc-lock.h.
6909         (mbtowc_lock): Remove declaration.
6910         (mbrtowc): Use mbtowc_with_lock.
6911         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6912         threads.h. Set LIB_MBRTOWC.
6913         (gl_PREREQ_MBTOWC_LOCK): New macro.
6914         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6915         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6916         (Depends-on): Remove lock.
6917         (configure.ac): Arrange to compile mbtowc-lock.c.
6918         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6919         * modules/acl (Link): Likewise.
6920         * modules/argmatch (Link): Likewise.
6921         * modules/backup-rename (Link): Likewise.
6922         * modules/backupfile (Link): Likewise.
6923         * modules/closein (Link): Likewise.
6924         * modules/closeout (Link): Likewise.
6925         * modules/copy-file (Link): Likewise.
6926         * modules/csharpcomp (Link): Likewise.
6927         * modules/csharpexec (Link): Likewise.
6928         * modules/dfa (Link): Likewise.
6929         * modules/exclude (Link): Likewise.
6930         * modules/fnmatch (Link): Likewise.
6931         * modules/fnmatch-gnu (Link): Likewise.
6932         * modules/fnmatch-posix (Link): Likewise.
6933         * modules/glob (Link): Likewise.
6934         * modules/human (Link): Likewise.
6935         * modules/javacomp (Link): Likewise.
6936         * modules/javaexec (Link): Likewise.
6937         * modules/javaversion (Link): Likewise.
6938         * modules/mbfile (Link): Likewise.
6939         * modules/mbiter (Link): Likewise.
6940         * modules/mbmemcasecmp (Link): Likewise.
6941         * modules/mbmemcasecoll (Link): Likewise.
6942         * modules/mbrlen (Link): Likewise.
6943         * modules/mbscasecmp (Link): Likewise.
6944         * modules/mbscasestr (Link): Likewise.
6945         * modules/mbschr (Link): Likewise.
6946         * modules/mbscspn (Link): Likewise.
6947         * modules/mbsinit (Link): Likewise.
6948         * modules/mbslen (Link): Likewise.
6949         * modules/mbsncasecmp (Link): Likewise.
6950         * modules/mbsnlen (Link): Likewise.
6951         * modules/mbsnrtowcs (Link): Likewise.
6952         * modules/mbspbrk (Link): Likewise.
6953         * modules/mbspcasecmp (Link): Likewise.
6954         * modules/mbsrchr (Link): Likewise.
6955         * modules/mbsrtowcs (Link): Likewise.
6956         * modules/mbssep (Link): Likewise.
6957         * modules/mbsspn (Link): Likewise.
6958         * modules/mbsstr (Link): Likewise.
6959         * modules/mbstok_r (Link): Likewise.
6960         * modules/mbswidth (Link): Likewise.
6961         * modules/mbuiter (Link): Likewise.
6962         * modules/mkdir-p (Link): Likewise.
6963         * modules/propername (Link): Likewise.
6964         * modules/quote (Link): Likewise.
6965         * modules/quotearg (Link): Likewise.
6966         * modules/quotearg-simple (Link): Likewise.
6967         * modules/regex-quote (Link): Likewise.
6968         * modules/rpmatch (Link): Likewise.
6969         * modules/sh-quote (Link): Likewise.
6970         * modules/system-quote (Link): Likewise.
6971         * modules/trim (Link): Likewise.
6972         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6973         * modules/unistdio/ulc-fprintf (Link): Likewise.
6974         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6975         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6976         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6977         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6978         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6979         * modules/xfreopen (Link): Likewise.
6980         * modules/xmemcoll (Link): Likewise.
6981         * modules/yesno (Link): Likewise.
6982         * modules/regex (Link): Add $(LIB_MBRTOWC).
6983         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6984         instead of $(LIBTHREAD).
6985         * modules/argmatch-tests (Makefile.am): Likewise.
6986         * modules/closein-tests (Makefile.am): Likewise.
6987         * modules/copy-file-tests (Makefile.am): Likewise.
6988         * modules/dfa-tests (Makefile.am): Likewise.
6989         * modules/fnmatch-tests (Makefile.am): Likewise.
6990         * modules/glob-tests (Makefile.am): Likewise.
6991         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6992         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6993         * modules/mbrtowc-tests (Makefile.am): Likewise.
6994         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6995         * modules/mbscasestr-tests (Makefile.am): Likewise.
6996         * modules/mbschr-tests (Makefile.am): Likewise.
6997         * modules/mbscspn-tests (Makefile.am): Likewise.
6998         * modules/mbsinit-tests (Makefile.am): Likewise.
6999         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7000         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7001         * modules/mbspbrk-tests (Makefile.am): Likewise.
7002         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7003         * modules/mbsrchr-tests (Makefile.am): Likewise.
7004         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7005         * modules/mbsspn-tests (Makefile.am): Likewise.
7006         * modules/mbsstr-tests (Makefile.am): Likewise.
7007         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7008         * modules/quotearg-tests (Makefile.am): Likewise.
7009         * modules/readtokens-tests (Makefile.am): Likewise.
7010         * modules/sh-quote-tests (Makefile.am): Likewise.
7011         * modules/system-quote-tests (Makefile.am): Likewise.
7012         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7013         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7014         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7015         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7016         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7017         * modules/yesno-tests (Makefile.am): Likewise.
7018         * modules/exclude-tests (Makefile.am): Link the programs with
7019         $(LIB_MBRTOWC).
7020         * modules/regex-tests (Makefile.am): Likewise.
7021         * modules/regex-quote-tests (Makefile.am): Likewise.
7023 2020-01-03  Bruno Haible  <bruno@clisp.org>
7025         getopt-posix: Fix compilation failure in testdirs.
7026         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
7027         when the gnulib module 'getopt-posix' is enabled.
7028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
7029         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
7030         module indicator.
7031         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
7033 2020-01-03  Bruno Haible  <bruno@clisp.org>
7035         doc: Mention the 64-bit inode number problem.
7036         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
7037         64-bit inode number problem.
7038         * doc/posix-functions/stat.texi: Mention that this module fixes the
7039         64-bit inode number problem.
7040         * doc/posix-functions/lstat.texi: Likewise.
7041         * doc/posix-functions/fstat.texi: Likewise.
7042         * doc/posix-functions/readdir.texi: Add more details.
7043         * doc/posix-functions/readdir_r.texi: Likewise.
7045 2020-01-02  Bruno Haible  <bruno@clisp.org>
7047         wcrtomb: Add more tests.
7048         * tests/test-wcrtomb-w32.c: Include localcharset.h.
7049         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
7050         locale_charset() returns the expected value; otherwise, skip the test.
7051         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
7052         * tests/test-wcrtomb-w32-7.sh: Likewise.
7053         * modules/wcrtomb-tests (Files): Add these files.
7054         (Depends-on): Add localcharset.
7055         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
7057 2020-01-02  Bruno Haible  <bruno@clisp.org>
7059         mbrtowc: Add more tests.
7060         * tests/test-mbrtowc-w32.c: Include localcharset.h.
7061         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
7062         locale_charset() returns the expected value; otherwise, skip the test.
7063         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
7064         * tests/test-mbrtowc-w32-7.sh: Likewise.
7065         * modules/mbrtowc-tests (Files): Add these files.
7066         (Depends-on): Add localcharset.
7067         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
7069 2020-01-02  Bruno Haible  <bruno@clisp.org>
7071         mbrtowc: Fix test failures on MSVC (regression by previous commit).
7072         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
7073         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
7074         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
7075         MBRTOWC_STORES_INCOMPLETE_BUG.
7076         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
7078 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7080         doc: mention glibc bug 24269
7081         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
7082         Reformat slightly so that it looks nicer in the Grep manual.
7084 2020-01-02  Bruno Haible  <bruno@clisp.org>
7086         mbrtowc: Don't replace mbstate_t on MSVC.
7087         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
7088         a missing mbsinit function on native Windows.
7089         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
7090         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
7091         MSVC bug.
7092         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
7094 2020-01-02  Bruno Haible  <bruno@clisp.org>
7096         setlocale-null: Avoid crashing the MSVC linker.
7097         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
7098         MSVC.
7100 2020-01-02  Bruno Haible  <bruno@clisp.org>
7102         wchar: Make the HP-UX workaround work on HP-UX 11.31.
7103         * modules/wchar (Depends-on): Add inttypes-incomplete.
7104         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
7105         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
7106         of strtoimax.
7108 2020-01-02  Bruno Haible  <bruno@clisp.org>
7110         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
7111         * lib/mbrtowc.c: Include <stdint.h>.
7112         * modules/mbrtowc (Depends-on): Add stdint.
7114 2020-01-01  Pádraig Brady  <P@draigBrady.com>
7116         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
7117         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
7118         which will auto enable use of openssl, only for >= version 3,
7119         which is newly licensed under the Apache Software License.
7121 2020-01-01  Bruno Haible  <bruno@clisp.org>
7123         mbrtowc: Include function name in macro names.
7124         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
7125         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
7126         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
7127         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
7128         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
7129         C_LOCALE_MAYBE_EILSEQ.
7131 2020-01-01  Bruno Haible  <bruno@clisp.org>
7133         c32tob: New module.
7134         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
7135         (c32tob): New declaration.
7136         * lib/c32tob.c: New file.
7137         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
7138         macros.
7139         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
7140         * modules/uchar (Depends-on): Add snippet/c++defs.
7141         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
7142         uchar.h.
7143         * modules/c32tob: New file.
7144         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
7145         defined.
7146         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
7147         c32tob.
7148         * modules/uchar-c++-tests (Files): Add tests/signature.h.
7149         * doc/posix-functions/wctob.texi: Mention the new module.
7151 2020-01-01  Bruno Haible  <bruno@clisp.org>
7153         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
7154         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
7155         $(LIB_SETLOCALE).
7157 2020-01-01  Bruno Haible  <bruno@clisp.org>
7159         hard-locale tests: Fix a conflict with the C++ tests.
7160         * modules/hard-locale-tests (Makefile.am): Build a program named
7161         'current-locale', not 'locale'.
7163 2020-01-01  Bruno Haible  <bruno@clisp.org>
7165         doc: Update documentation about wchar_t.
7166         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
7167         wchar_t type.
7169 2020-01-01  Bruno Haible  <bruno@clisp.org>
7171         mbrtowc tests: Fix typos.
7172         * tests/test-mbrtowc.c (main): Fix typo.
7173         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
7175 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7177         maint: update copyright notices
7178         Before doing the following changes done by hand, I also ran ‘make
7179         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
7180         to do most of the copyright years automatically.  A few upstream
7181         sources are still in 2019 but these should eventually be changed
7182         automatically too.
7183         * build-aux/declared.sh (func_version):
7184         * build-aux/libtool-next-version (func_version):
7185         * build-aux/run-test (func_version):
7186         Update these notices by hand.  Put just the last year
7187         in output of programs, as per GNU coding standards.
7189 2019-12-31  Bruno Haible  <bruno@clisp.org>
7191         uchar: Add C++ tests.
7192         * tests/test-uchar-c++.cc: New file.
7193         * tests/test-uchar-c++2.cc: New file.
7194         * modules/uchar-c++-tests: New file.
7196         uchar: Add tests.
7197         * tests/test-uchar.c: New file.
7198         * modules/uchar-tests: New file.
7200         uchar: New module.
7201         * lib/uchar.in.h: New file.
7202         * m4/uchar.m4: New file.
7203         * modules/uchar: New file.
7204         * doc/posix-headers/uchar.texi: Mention the new module.
7206 2019-12-30  Jim Meyering  <meyering@fb.com>
7208         localeinfo: ->simple would be wrong for LC_ALL=C
7209         That would lead to using unnecessary and expensive code paths in dfa.c.
7210         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
7211         error that would have made grep many times slower in the C locale.
7212         With this change, and a file created like this:
7213           yes 00 | head -10000000 > in
7214         Running grep as follows becomes more than 40 times faster:
7215           LC_ALL=C grep -Fw 0 in
7217 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7219         doc: document trouble with back-references
7220         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
7222 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7224         doc: use “back-reference” for \1 etc.
7225         * doc/regex.texi: Consistently spell “back-reference” with
7226         a hyphen, since that’s how POSIX does it.
7228 2019-12-26  Jim Meyering  <meyering@fb.com>
7230         test-framework-sh: tighten an internal grep regexp
7231         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
7232         that helps test for a working printf.
7234 2019-12-26  Bruno Haible  <bruno@clisp.org>
7236         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
7237         Reported by Paul Eggert in
7238         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
7239         Simplification by Jim Meyering.
7240         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
7241         octal escape sequence in a UTF-8 locale.
7243 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
7245         mbrtowc: port better to narrow-wchar_t platforms
7246         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
7247         wchar_t is too narrow to represent all the Unicode characters,
7248         consider a byte sequence for an out-of-wchar_t-range character to
7249         be an encoding error.  This fixes grep’s surrogate-pair test
7250         failure on AIX 7.2.
7252 2019-12-24  Bruno Haible  <bruno@clisp.org>
7254         localcharset: Avoid referencing rpl_setlocale on native Windows.
7255         * lib/localcharset.c (setlocale): Undefine.
7257 2019-12-24  Bruno Haible  <bruno@clisp.org>
7259         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
7260         * m4/semaphore.m4: New file.
7261         * modules/lock-tests (Files): Add it.
7262         (configure.ac): Require gl_SEMAPHORE.
7263         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
7265 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
7267         strptime: fix typo in previous patch
7268         Problem and fix reported by Bruno Haible in:
7269         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
7270         * lib/strptime.c (day_of_the_week): Fix paren bug.
7272 2019-12-24  Bruno Haible  <bruno@clisp.org>
7274         setlocale-null: Make it easy to rely on the lock in another library.
7275         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
7276         defined.
7278 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7280         gethrxtime, mktime, nstrftime, strptime: tweak division performance
7281         Performanced analyzed by Bruno Haible in:
7282         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
7283         * config/srclist.txt: Do not sync mktime.c for now.
7284         * lib/mktime.c (shr, ydhms_diff):
7285         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
7286         * lib/strptime.c (day_of_the_week):
7287         * lib/xtime.h (xtime_sec):
7288         Redo with neither ‘%’ nor conditional branches.
7290 2019-12-23  Bruno Haible  <bruno@clisp.org>
7292         setlocale-null: Export the lock function also on non-Windows platforms.
7293         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
7294         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
7295         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
7296         * modules/setlocale-null (configure.ac): Invoke it.
7297         (Files): Add m4/visibility.m4.
7299 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7301         gethrxtime: fix rounding bug with negative args
7302         Problem reported by Bruno Haible in:
7303         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
7304         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
7305         with negative rounding.  Common platforms can compute / and % with
7306         a single instruction, so the simplified code should be shorter and
7307         faster on these platforms anyway.
7309 2019-12-22  Bruno Haible  <bruno@clisp.org>
7311         gethrxtime: remove incorrect overflow detection
7312         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
7313         integer overflow, as it didn’t suffice.  This reverts the xtime.h
7314         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
7315         cannot now see the need for anyway (even in cases where it works),
7316         as the patch is helpful only when the signs of S and NS disagree,
7317         and all callers pass nonnegative values for S and NS.
7319 2019-12-22  Bruno Haible  <bruno@clisp.org>
7321         setlocale-null: Add standalone include file.
7322         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
7323         * lib/locale.in.h: Include setlocale_null.h.
7324         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
7325         setlocale_null): Remove declarations.
7326         * lib/setlocale_null.c: Include setlocale_null.h.
7327         * lib/localename.c: Likewise.
7328         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
7329         (Depends-on): Add snippet/arg-nonnull.
7330         (Include): Allow either "setlocale_null.h" or <locale.h>.
7332 2019-12-22  Bruno Haible  <bruno@clisp.org>
7334         strfmon_l: Fix test failures on FreeBSD and Cygwin.
7335         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
7336         AC_RUN_IFELSE test.
7337         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
7338         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
7339         problem.
7341 2019-12-22  Bruno Haible  <bruno@clisp.org>
7343         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
7344         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
7345         unconditional AC_LIBOBJ.
7346         * modules/selinux-at: Likewise.
7347         * modules/xmemdup0: Likewise.
7348         * modules/xstrtoll: Likewise.
7350 2019-12-22  Bruno Haible  <bruno@clisp.org>
7352         longlong: Mark module obsolete.
7353         * modules/longlong (Status, Notice): New sections.
7355         stdint: Assume that the compiler supports 'long long'.
7356         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
7357         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
7358         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
7359         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
7360         AC_TYPE_UNSIGNED_LONG_LONG_INT.
7361         * modules/stdint (Files): Remove longlong.m4.
7362         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
7363         HAVE_UNSIGNED_LONG_LONG_INT.
7365         inttypes-incomplete: Assume that the compiler supports 'long long'.
7366         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
7367         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
7368         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
7369         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
7370         HAVE_LONG_LONG_INT to be 1.
7371         * modules/inttypes-incomplete (Makefile.am): Don't substitute
7372         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
7374         malloca: Assume that the compiler supports 'long long'.
7375         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
7376         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
7377         * modules/malloca (Files): Remove longlong.m4.
7378         * modules/relocatable-prog-wrapper (Files): Likewise.
7380         atoll: Assume that the compiler supports 'long long'.
7381         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
7382         * modules/atoll (Files): Remove longlong.m4.
7384         strtoll: Assume that the compiler supports 'long long'.
7385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
7386         * modules/strtoll (Files): Remove longlong.m4.
7388         strtoull: Assume that the compiler supports 'long long'.
7389         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
7390         AC_TYPE_UNSIGNED_LONG_LONG_INT.
7391         * modules/strtoull (Files): Remove longlong.m4.
7393         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
7394         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
7395         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
7396         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
7397         AC_TYPE_LONG_LONG_INT.
7398         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
7399         AC_TYPE_UNSIGNED_LONG_LONG_INT.
7400         * modules/strtoimax (Files): Remove longlong.m4.
7401         * modules/strtoumax (Files): Likewise.
7403         xstrtoll: Assume that the compiler supports 'long long'.
7404         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
7405         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
7407         vasnprintf: Assume that the compiler supports 'long long'.
7408         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
7409         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
7410         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7411         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
7412         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
7413         require AC_TYPE_LONG_LONG_INT.
7414         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
7415         gl_PREREQ_VASNPRINTF): Likewise.
7416         * modules/vasnprintf (Files): Remove longlong.m4.
7417         * modules/c-vasnprintf (Files): Likewise.
7418         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7419         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7420         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7421         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7422         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7423         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7424         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7426         gethrxtime: Assume that the compiler supports 'long long'.
7427         * lib/xtime.h (xtime_t): Define to 'long long int' always.
7428         (XTIME_PRECISION): Define to 1000000000 always.
7429         (xtime_make, xtime_sec): Optimize accordingly.
7430         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
7431         * modules/gethrxtime (Files): Remove longlong.m4.
7433         integer_length*: Assume that the compiler supports 'long long'.
7434         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
7435         * modules/integer_length (Files): Remove longlong.m4.
7436         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7437         * modules/integer_length_l (Files): Remove longlong.m4.
7438         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7439         * modules/integer_length_ll (Files): Remove longlong.m4.
7440         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7442         count-one-bits: Assume that the compiler supports 'long long'.
7443         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
7444         * m4/count-one-bits.m4: Remove file.
7445         * modules/count-one-bits (Files): Remove it.
7446         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
7447         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
7448         unconditionally.
7450         count-trailing-zeros: Assume that the compiler supports 'long long'.
7451         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
7452         unconditionally.
7453         * m4/count-trailing-zeros.m4: Remove file.
7454         * modules/count-trailing-zeros (Files): Remove it.
7455         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
7456         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
7457         unconditionally.
7459         count-leading-zeros: Assume that the compiler supports 'long long'.
7460         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
7461         unconditionally.
7462         * m4/count-leading-zeros.m4: Remove file.
7463         * modules/count-leading-zeros (Files): Remove it.
7464         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
7465         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
7466         unconditionally.
7468 2019-12-22  Bruno Haible  <bruno@clisp.org>
7470         localcharset: Update support for OpenBSD.
7471         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
7473 2019-12-21  Bruno Haible  <bruno@clisp.org>
7475         pthread_sigmask: Avoid test failure on NetBSD 8.0.
7476         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
7477         NetBSD.
7478         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
7480 2019-12-21  Bruno Haible  <bruno@clisp.org>
7482         threadlib: Improve code structure.
7483         * m4/threadlib.m4: Reorder macros. Add comments.
7485 2019-12-21  Bruno Haible  <bruno@clisp.org>
7487         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
7488         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
7489         here from m4/threads.m4).
7490         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
7491         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
7492         (gl_STDTHREADLIB): New macro.
7493         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
7494         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
7496 2019-12-21  Bruno Haible  <bruno@clisp.org>
7498         sched_yield: Don't depend on threadlib and yield.
7499         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
7500         LIB_SCHED_YIELD.
7501         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
7502         m4/yield.m4).
7503         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
7504         gl_THREADLIB and gl_YIELD.
7505         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
7506         based on $(LIB_SCHED_YIELD).
7507         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
7508         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7509         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
7510         (Depends-on): Remove threadlib.
7511         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7512         * modules/threads-h (Files): Remove m4/yield.m4.
7513         * modules/pthread-cond-tests (Makefile.am): Link the programs against
7514         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7515         * modules/pthread-mutex-tests (Makefile.am): Likewise.
7516         * modules/pthread-once-tests (Makefile.am): Likewise.
7517         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
7518         * modules/pthread-tss-tests (Makefile.am): Likewise.
7520 2019-12-21  Bruno Haible  <bruno@clisp.org>
7522         threads-h: Don't depend on threadlib.
7523         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
7524         not gl_THREADLIB_EARLY.
7526 2019-12-21  Bruno Haible  <bruno@clisp.org>
7528         nl_langinfo tests: Fix link error (regression from 2019-12-18).
7529         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
7530         with $(LIB_SETLOCALE).
7532 2019-12-21  Bruno Haible  <bruno@clisp.org>
7534         threadlib: Remove unused dependency (left over from 2019-07-06).
7535         * modules/threadlib (Depends-on): Remove havelib.
7537 2019-12-21  Bruno Haible  <bruno@clisp.org>
7539         New convention for multithread-safety tests.
7540         * tests/test-setlocale_null-mt-one.c: Renamed from
7541         tests/test-setlocale_null-one.c.
7542         * tests/test-setlocale_null-mt-all.c: Renamed from
7543         tests/test-setlocale_null-all.c.
7544         * modules/setlocale-null-tests (Files, Makefile.am): Update.
7546 2019-12-21  Bruno Haible  <bruno@clisp.org>
7548         quotearg tests: Fix conflict with hard-locale tests.
7549         * tests/testlocale: Renamed from tests/locale.
7550         * modules/quotearg-tests (Files): Update.
7551         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
7553 2019-12-21  Bruno Haible  <bruno@clisp.org>
7555         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
7556         Reported by Daniel Richard G. in
7557         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
7558         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
7559         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
7560         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
7561         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
7562         alternative to PTHREAD_RWLOCK_INITIALIZER.
7563         * lib/glthread/lock.c: Likewise.
7565 2019-12-21  Bruno Haible  <bruno@clisp.org>
7567         memcmp tests: Work around the clang bug.
7568         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
7569         the clang optimization.
7571 2019-12-20  Bruno Haible  <bruno@clisp.org>
7573         localcharset: Add support for z/OS encoding names.
7574         * lib/localcharset.h: Mention which encodings are used as locale
7575         encodings on z/OS.
7577 2019-12-20  Bruno Haible  <bruno@clisp.org>
7579         iconv_open: Add support for z/OS encoding names.
7580         Reported by Daniel Richard G. in
7581         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
7582         * lib/iconv_open-zos.gperf: New file.
7583         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
7584         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
7585         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
7586         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
7587         * doc/posix-functions/iconv_open.texi: Mention z/OS.
7589 2019-12-20  Bruno Haible  <bruno@clisp.org>
7591         doc: Document the problem of the per-thread locale functions on z/OS.
7592         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
7593         * doc/posix-functions/newlocale.texi: Likewise.
7594         * doc/posix-functions/duplocale.texi: Likewise.
7595         * doc/posix-functions/freelocale.texi: Likewise.
7597 2019-12-20  Bruno Haible  <bruno@clisp.org>
7599         localename, gettext: Fix host_os value for z/OS.
7600         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
7601         cross-configuration code.
7603 2019-12-19  Jim Meyering  <meyering@fb.com>
7605         nstrftime: avoid a shadowing warning
7606         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
7607         to avoid shadowing an "i" declared hundreds of lines above.
7609 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7611         dfa: struct dfamust now uses flexible array
7612         * lib/dfa.c: Include flexmember.h.
7613         (dfamust, dfamustfree): Adjust to struct dfamust change.
7614         This saves a call to malloc+free.
7615         * lib/dfa.h (struct dfamust): Make the final member a
7616         flexible array member.
7617         * modules/dfa (Depends-on): Add flexmember.
7619         dfa: fast->small for array elements
7620         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
7621         since this type is used in arrays.  This change is more for
7622         documentation than for any practical effect, since the two types
7623         are the same on all known platforms.
7625 2019-12-19  Bruno Haible  <bruno@clisp.org>
7627         iconv tests: Test canonicalized, not system-dependent, encoding names.
7628         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
7629         * modules/iconv-tests (Depends-on): Add iconv_open.
7631 2019-12-18  Bruno Haible  <bruno@clisp.org>
7633         localename: Fix test failure on AIX 7.2.
7634         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
7635         locales on AIX.
7636         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
7637         locales on AIX.
7639 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7641         Improve port of AC_C_RESTRICT to Oracle C++
7642         Problem reported by Christian Biesinger in:
7643         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
7644         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
7645         Oracle Developer Studio C++ 12.5 or later.
7647 2019-12-18  Bruno Haible  <bruno@clisp.org>
7649         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
7650         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
7652 2019-12-18  Bruno Haible  <bruno@clisp.org>
7654         localename: Ensure multithread-safety in future changes.
7655         * lib/localename.c (setlocale): Reference the system's setlocale().
7656         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
7657         (gl_locale_name_posix): Likewise.
7658         * modules/localename (Depends-on): Add setlocale-null.
7660 2019-12-18  Bruno Haible  <bruno@clisp.org>
7662         setlocale-null: Make API more useful.
7663         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
7664         callers changed.
7665         (setlocale_null): New declaration.
7666         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
7667         extracted from setlocale_null_unlocked.
7668         (setlocale_null_unlocked): Invoke it.
7669         (setlocale_null_r): Renamed from setlocale_null.
7670         (setlocale_null): New function, extracted from setlocale_mtsafe in
7671         setlocale.c.
7672         * lib/setlocale.c: Don't include <errno.h>.
7673         (setlocale_mtsafe): Invoke setlocale_null.
7674         * lib/setlocale-lock.c: Update comments.
7675         * doc/posix-functions/setlocale.texi: Mention both functions.
7677 2019-12-18  Bruno Haible  <bruno@clisp.org>
7679         localename: Optimize code for native Windows.
7680         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
7681         category (not allowed here).
7683 2019-12-18  Bruno Haible  <bruno@clisp.org>
7685         setlocale: Make calls with NULL argument multithread-safe.
7686         * lib/setlocale.c: Include <errno.h>.
7687         (setlocale_mtsafe): New function.
7688         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
7689         (setlocale_improved): Renamed from rpl_setlocale.
7690         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7691         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
7692         LIB_SETLOCALE.
7693         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
7694         (Link): New section.
7695         * tests/locale.c: Undefine setlocale.
7696         * tests/test-setlocale_null-one.c: Likewise.
7697         * tests/test-setlocale_null-all.c: Likewise.
7698         * modules/setlocale-tests (Makefile.am): Link the test programs with
7699         $(LIB_SETLOCALE).
7700         * modules/astrxfrm-tests (Makefile.am): Likewise.
7701         * modules/btowc-tests (Makefile.am): Likewise.
7702         * modules/c-ctype-tests (Makefile.am): Likewise.
7703         * modules/c-snprintf-tests (Makefile.am): Likewise.
7704         * modules/c-strcase-tests (Makefile.am): Likewise.
7705         * modules/c-vasprintf-tests (Makefile.am): Likewise.
7706         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
7707         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
7708         * modules/dfa-tests (Makefile.am): Likewise.
7709         * modules/duplocale-tests (Makefile.am): Likewise.
7710         * modules/hard-locale-tests (Makefile.am): Likewise.
7711         * modules/localcharset-tests (Makefile.am): Likewise.
7712         * modules/localename-tests (Makefile.am): Likewise.
7713         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7714         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7715         * modules/mbrtowc-tests (Makefile.am): Likewise.
7716         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7717         * modules/mbscasestr-tests (Makefile.am): Likewise.
7718         * modules/mbschr-tests (Makefile.am): Likewise.
7719         * modules/mbscspn-tests (Makefile.am): Likewise.
7720         * modules/mbsinit-tests (Makefile.am): Likewise.
7721         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7722         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7723         * modules/mbspbrk-tests (Makefile.am): Likewise.
7724         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7725         * modules/mbsrchr-tests (Makefile.am): Likewise.
7726         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7727         * modules/mbsspn-tests (Makefile.am): Likewise.
7728         * modules/mbsstr-tests (Makefile.am): Likewise.
7729         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7730         * modules/quotearg-tests (Makefile.am): Likewise.
7731         * modules/regex-tests (Makefile.am): Likewise.
7732         * modules/strfmon_l-tests (Makefile.am): Likewise.
7733         * modules/strtod-tests (Makefile.am): Likewise.
7734         * modules/strtold-tests (Makefile.am): Likewise.
7735         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7736         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7737         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7738         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
7739         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7740         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7741         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7742         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7743         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7744         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7745         * modules/wcrtomb-tests (Makefile.am): Likewise.
7746         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7747         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7748         * modules/wcwidth-tests (Makefile.am): Likewise.
7749         * doc/posix-functions/setlocale.texi: Mention that the multithread-
7750         safety fix is also available in module 'setlocale'.
7752 2019-12-18  Bruno Haible  <bruno@clisp.org>
7754         hard-locale: Make multithread-safe.
7755         * lib/hard-locale.h (hard_locale): Move documentation to here.
7756         * lib/hard-locale.c: Don't include <stdlib.h>.
7757         (GLIBC_VERSION): Remove macro.
7758         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
7759         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
7760         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
7761         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
7762         (Link): New section.
7763         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
7764         $(LIB_HARD_LOCALE).
7766 2019-12-18  Bruno Haible  <bruno@clisp.org>
7768         hard-locale: Avoid test failure on Haiku.
7769         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
7771 2019-12-18  Bruno Haible  <bruno@clisp.org>
7773         setlocale-null: Handle NULL result from setlocale.
7774         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
7775         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
7776         from setlocale or _wsetlocale.
7778 2019-12-18  Bruno Haible  <bruno@clisp.org>
7780         hard-locale: Add test.
7781         * tests/test-hard-locale.c: New file.
7782         * tests/locale.c: New file.
7783         * modules/hard-locale-tests: New file.
7785 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7787         dfa: do not match invalid UTF-8
7788         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
7789         from 5 to 9 tokens; this is needed due to the changes to
7790         add_utf8_anychar.
7791         (charclass_index): 2nd arg is now pointer-to-const.
7792         (add_utf8_anychar): Match only valid UTF-8 byte sequences
7793         instead of allowing overlong encodings or surrogate halves.
7795         dfa: simplify charclass by assuming C99
7796         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
7797         (charclass_word): Now always uint_fast64_t.
7798         (CHARCLASS_PAIR): Remove.
7799         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
7801         fts: tune via calloc
7802         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
7804         dfa: tune via xzalloc
7805         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
7807 2019-12-17  Bruno Haible  <bruno@clisp.org>
7809         localcharset: Fix multithread-safety bug on Windows and OS/2.
7810         * lib/localcharset.h (locale_charset): Clarify when the result becomes
7811         invalid.
7812         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
7813         assemble the result.
7815 2019-12-17  Bruno Haible  <bruno@clisp.org>
7817         localcharset: Optimize code for native Windows.
7818         * lib/localcharset.c (locale_charset): Don't bother calling
7819         setlocale (LC_ALL, NULL) since we're not interested in its result.
7821 2019-12-17  Bruno Haible  <bruno@clisp.org>
7823         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
7824         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
7825         setlocale.
7826         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
7827         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
7828         * modules/nl_langinfo (Depends-on): Add setlocale-null.
7830 2019-12-17  Bruno Haible  <bruno@clisp.org>
7832         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
7833         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
7834         stack-allocated buffer to assemble each result and different static
7835         buffers to return it.
7836         * tests/test-nl_langinfo-mt.c: New file.
7837         * modules/nl_langinfo-tests (Files): Add it.
7838         (Depends-on): Add thread, nanosleep.
7839         (Makefile.am): Build test-nl_langinfo-mt test.
7841 2019-12-17  Bruno Haible  <bruno@clisp.org>
7843         langinfo: Document more details.
7844         * doc/posix-headers/langinfo.texi: List platform details.
7845         * doc/posix-functions/nl_langinfo.texi: Likewise.
7847 2019-12-17  Bruno Haible  <bruno@clisp.org>
7849         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
7850         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
7851         and Martin Storsjö <martin@martin.st>
7852         in <https://savannah.gnu.org/bugs/?57406>.
7853         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
7854         mingw.
7856 2019-12-17  Bruno Haible  <bruno@clisp.org>
7858         glob: Avoid warning on mingw.
7859         Reported by Christian Biesinger <cbiesinger@google.com> in
7860         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
7861         * lib/glob.c (__stat64): Undefine first.
7863 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7865         xalloc: tune xzalloc for fresh allocations
7866         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
7867         because when the memory is freshly allocated from the OS via sbrk
7868         or mmap, calloc can avoid doing the memset.
7870         dfa: new function dfacopysyntax
7871         * lib/dfa.c (struct dfa): Move syntax member later so
7872         that dfacopysyntax can easily clear earlier members.
7873         (dfacopysyntax): New function, used by Gawk.
7875 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7877         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
7878         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
7879         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
7880         if not already defined.
7882         dfa: remove one dependency on MB_CUR_MAX
7883         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
7885         dfa: remove struct lexer_state.cur_mb_len
7886         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
7887         as it’s not needed and the code is simpler without it.
7888         All uses removed.
7890 2019-12-16  Bruno Haible  <bruno@clisp.org>
7892         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
7893         Reported by Arnold Robbins <arnold@skeeve.com>.
7894         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7895         copied from lib/glthread/lock.h.
7896         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7897         (setlocale_null_with_lock): If pthread_in_use() is false, use
7898         setlocale_null_unlocked directly.
7899         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7900         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7901         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7902         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7903         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7904         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7906 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7908         dfa: make dfasyntax thread-safe
7909         Problem reported by Bruno Haible in:
7910         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7911         * lib/dfa.c: Do not include locale.h.
7912         (struct dfa): Remove simple_locale member.
7913         All uses replaced by localeinfo.simple.
7914         (using_simple_locale): Remove; now present (with some
7915         changes) in localeinfo.c.
7916         (dfasyntax): No need to initialize removed member.
7918         localeinfo: record whether locale is simple
7919         * lib/localeinfo.c (using_simple_locale): New function,
7920         copied here from lib/dfa.c but with a change: it uses
7921         strcoll for its heuristic, instead of using setlocale.
7922         This lets it be thread-safe.
7923         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7925 2019-12-15  Bruno Haible  <bruno@clisp.org>
7927         duplocale: Fix multithread-safety bug on AIX.
7928         * lib/duplocale.c: Don't include <stdlib.h>.
7929         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7930         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7931         Set LIB_DUPLOCALE.
7932         * modules/duplocale (Depends-on): Add setlocale-null.
7933         (Link): New section.
7934         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7935         $(LIB_DUPLOCALE).
7937 2019-12-15  Bruno Haible  <bruno@clisp.org>
7939         setlocale-null: Add tests.
7940         * tests/test-setlocale_null.c: New file.
7941         * tests/test-setlocale_null-one.c: New file.
7942         * tests/test-setlocale_null-all.c: New file.
7943         * modules/setlocale-null-tests: New file.
7945         setlocale-null: New module.
7946         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7947         setlocale_null): New declarations.
7948         * lib/setlocale_null.c: New file.
7949         * lib/setlocale-lock.c: New file.
7950         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7951         * m4/setlocale_null.m4: New file.
7952         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7953         GNULIB_SETLOCALE_NULL.
7954         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7955         * modules/setlocale-null: New file.
7956         * doc/posix-functions/setlocale.texi: Mention the new module.
7958 2019-12-15  Bruno Haible  <bruno@clisp.org>
7960         lock tests: Skip test when no multithreading is enabled.
7961         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7963 2019-12-14  Bruno Haible  <bruno@clisp.org>
7965         locale, duplocale, localename: Fix last patch.
7966         Reported by Daniel Richard G. in
7967         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7968         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7969         Don't define if locale_t does not exist.
7971 2019-12-13  Bruno Haible  <bruno@clisp.org>
7973         locale, duplocale, localename: Fix errors if locale_t does not exist.
7974         Reported by Daniel Richard G. in
7975         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7976         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7977         macros.
7978         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7979         HAVE_NEWLOCALE.
7980         * tests/test-localename.c: Likewise.
7981         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7982         HAVE_DUPLOCALE.
7983         * tests/test-locale-c++.cc: Likewise.
7985 2019-12-13  Bruno Haible  <bruno@clisp.org>
7987         wcstok: Fix test failure on HP-UX.
7988         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7989         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7991 2019-12-12  Bruno Haible  <bruno@clisp.org>
7993         strtod, strtold tests: Avoid test failure on AIX 7.2.
7994         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7995         '.' both are radix characters.
7996         * tests/test-strtold1.c (main): Likewise.
7998 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8000         dfa: prefer ptrdiff_t for API, too
8001         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
8002         but do this only for internal use for now.
8003         * NEWS: Mention the API change.
8004         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
8005         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
8006         values known to be nonnegative.
8007         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
8008         Prefer idx_t or ptrdiff_t to size_t for API.
8009         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
8010         Prefer ptrdiff_t to size_t for API.
8012         stdalign: port to xlclang 16.01
8013         Problem reportd by Bruno Haible in:
8014         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
8015         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
8016         ((__aligned__ (...))) with xlclang, as a top-level
8017         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
8018         xlclang version 16.01.0000.0001; the alignment directive is ignored.
8020 2019-12-12  Bruno Haible  <bruno@clisp.org>
8022         duplocale: Fix test failure on AIX 7.2 with xlclang.
8023         * lib/duplocale.c: Include <stdlib.h>.
8024         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
8025         value.
8027 2019-12-12  Bruno Haible  <bruno@clisp.org>
8029         stddef: Document the AIX xlc issue.
8030         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
8032 2019-12-12  Bruno Haible  <bruno@clisp.org>
8034         duplocale: Don't attempt to override if locale_t does not exist.
8035         Reported by Daniel Richard G. in
8036         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
8037         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
8038         HAVE_DUPLOCALE to 0.
8040 2019-12-12  Bruno Haible  <bruno@clisp.org>
8042         wcwidth: Avoid test failure on AIX 7.2.
8043         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
8044         negative.
8045         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
8047 2019-12-12  Bruno Haible  <bruno@clisp.org>
8049         ilogbl: Work around Cygwin bug.
8050         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
8051         correct.
8052         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
8054 2019-12-12  Bruno Haible  <bruno@clisp.org>
8056         strtold: Work around Cygwin bug.
8057         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
8058         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
8059         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
8060         STRTOLD_HAS_UNDERFLOW_BUG is defined.
8061         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
8063 2019-12-12  Bruno Haible  <bruno@clisp.org>
8065         strtold: Fix autoconf test.
8066         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
8068 2019-12-11  Bruno Haible  <bruno@clisp.org>
8070         fsync tests: Skip test that is known to fail.
8071         * doc/posix-functions/fsync.texi: Update list of platforms.
8072         * tests/test-fsync.c (main): Skip test with read-only file descriptors
8073         that is known to fail on AIX and Cygwin.
8075 2019-12-11  Bruno Haible  <bruno@clisp.org>
8077         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
8078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
8079         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
8080         HAVE_GETADDRINFO as a C macro.
8081         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
8082         declare as replacement functions.
8083         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
8084         define as no-op overrides.
8085         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
8086         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
8087         * modules/getaddrinfo (Depends-on, configure.ac): Test
8088         REPLACE_GETADDRINFO.
8089         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
8090         problem.
8091         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
8092         convention problems.
8094 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
8096         dfa: prefer signed integers for internals
8097         Signed integers can be checked more easily for integer overflow.
8098         * lib/dfa.c (position, struct lexer_state, struct parser_state)
8099         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
8100         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
8101         (nsubtoks, copytoks, closure, alloc_position_set, delete)
8102         (replace, state_index, epsclosure, charclass_context)
8103         (state_separate_contexts, merge_nfa_state, dfaoptimize)
8104         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
8105         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
8106         (comsubs, inboth, allocmust):
8107         Prefer a signed to an unsigned integer when calculating indexes,
8108         unless the integer is part of the external API (a bigger deal,
8109         and to be done later).
8111         dfa: fix index overflow
8112         * lib/dfa.c (compare): Avoid integer overflow when analyzing
8113         very large regular expressions.
8115         dfa: update commentary for previous change
8116         * NEWS: Mention the change.
8117         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
8119 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8121         dfa: separate parse and compile phase
8122         ‘dfamust’ must be called after parsing and before tokens are
8123         reordered, but both are executed in the compilation phase.
8124         Token reordering was introduced in Gnulib commit
8125         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
8126         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
8127         * lib/dfa.c (dfaparse): Change it to global function.
8128         (dfacomp): If first argument is NULL, skip parse.
8129         * lib/dfa.h: (dfaparse): Add a prototype.
8131 2019-12-11  Bruno Haible  <bruno@clisp.org>
8133         unistd tests: Fix link error on MSVC.
8134         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
8135         $(LIB_GETLOGIN).
8137 2019-12-11  Bruno Haible  <bruno@clisp.org>
8139         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
8140         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
8141         and POSIX substitutes are supported in C++ mode.
8142         * NEWS: Likewise.
8144 2019-12-11  Bruno Haible  <bruno@clisp.org>
8146         stddef: Fix compilation error in C++ mode on MSVC.
8147         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
8148         instead, include <cstddef>.
8150 2019-12-11  Bruno Haible  <bruno@clisp.org>
8152         unistd: Fix compilation error in C++ mode on MSVC.
8153         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
8154         does not have <unistd.h>.
8156 2019-12-11  Bruno Haible  <bruno@clisp.org>
8158         locale: Fix compilation error in C++ mode on MSVC.
8159         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
8160         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
8161         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
8162         int_n_sep_by_space): Define as macros on MSVC.
8164 2019-12-11  Bruno Haible  <bruno@clisp.org>
8166         wchar: Fix compilation error in C++ mode on MSVC.
8167         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
8169 2019-12-11  Bruno Haible  <bruno@clisp.org>
8171         pthread-thread: Fix compilation error in C++ mode on MSVC.
8172         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
8173         _GL_CXXALIAS_RPL invocation.
8175 2019-12-08  Bruno Haible  <bruno@clisp.org>
8177         Fix compilation errors in C++ mode on Haiku.
8178         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
8179         non-glibc systems.
8180         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
8181         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8182         posix_spawnattr_setschedparam): Likewise.
8183         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
8184         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8185         * lib/unistd.in.h (usleep): Likewise.
8187 2019-12-08  Bruno Haible  <bruno@clisp.org>
8189         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
8190         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
8191         * modules/fseeko (configure.ac-early): Require it instead of
8192         AC_FUNC_FSEEKO.
8193         * modules/ftello (configure.ac-early): Likewise.
8194         * modules/fflush (configure.ac-early): Likewise.
8196 2019-12-08  Bruno Haible  <bruno@clisp.org>
8198         Fix compilation error in C++ mode on HP-UX 11.
8199         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
8200         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
8202 2019-12-08  Bruno Haible  <bruno@clisp.org>
8204         Fix compilation errors on HP-UX 11/ia64.
8205         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
8206         _GL_FUNCDECL_SYS.
8208 2019-12-08  Bruno Haible  <bruno@clisp.org>
8210         Fix compilation error in C++ mode on OpenBSD.
8211         * lib/signal.in.h (signal): Declare on OpenBSD.
8213 2019-12-08  Bruno Haible  <bruno@clisp.org>
8215         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
8216         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
8217         instead of #error.
8219 2019-12-08  Bruno Haible  <bruno@clisp.org>
8221         Fix compilation errors in C++ mode on FreeBSD.
8222         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
8223         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
8224         * lib/threads.in.h (thrd_exit): Likewise.
8225         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
8227 2019-12-08  Bruno Haible  <bruno@clisp.org>
8229         Fix compilation errors in C++ mode on macOS and FreeBSD.
8230         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
8231         or FreeBSD with clang, use the approach without C preprocessor macro.
8233 2019-12-07  Bruno Haible  <bruno@clisp.org>
8235         Fix compilation errors in C++ mode on AIX with xlclang++.
8236         Reported by Christian Biesinger <cbiesinger@google.com> in
8237         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
8238         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
8240 2019-12-07  Bruno Haible  <bruno@clisp.org>
8242         Document compilation error in C++ mode on NetBSD 8.0.
8243         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
8245 2019-12-07  Bruno Haible  <bruno@clisp.org>
8247         Fix compilation errors in C++ mode on Solaris 10.
8248         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
8249         to non-empty on Solaris with a non-GCC compiler.
8250         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
8252 2019-12-07  Bruno Haible  <bruno@clisp.org>
8254         Reword NEWS entry.
8255         * NEWS: Reword the latest NEWS entry.
8257 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
8259         Move xstrtol_fatal to a new xstrtol-error module.
8260         * lib/xstrtol.h: Stop including <getopt.h>.
8261         (xstrtol_fatal): Move ...
8262         * lib/xstrtol-error.h: ... here.  New file.
8263         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
8264         * tests/test-xstrtol.c: Likewise.
8265         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
8266         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
8267         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
8268         * modules/xstrtol-error: New file.
8269         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
8270         * MODULES.html.sh: Add xstrtol-error.
8271         * NEWS: Document the change.
8273 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
8275         nstrftime: better width support for %N, %z
8276         * lib/nstrftime.c (width_add, width_add1, width_cpy):
8277         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
8278         a new WIDTH parameter.
8279         (add, add1, cpy): Use these macros.
8280         (width_add): Do not treat digits == 0 as a special case,
8281         do not pad if padding is ‘-’, and do not use a negative width.
8282         (__strftime_internal): Redo formatting of nanoseconds and numeric
8283         timezones to avoid buffer misuse in unusual cases, and so that
8284         widths make more sense.  Add support for widths greater than 9 to
8285         the %N format; they are zero filled on the right.
8286         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
8288 2019-12-05  Bruno Haible  <bruno@clisp.org>
8290         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
8291         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
8292         set REPLACE_ISFINITE to 1.
8293         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
8294         REPLACE_ISINF to 1.
8295         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
8296         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
8297         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8298         * lib/threads.in.h (call_once): Likewise.
8299         * lib/iconv.in.h (iconv): Likewise.
8301 2019-12-05  Bruno Haible  <bruno@clisp.org>
8303         wchar: Add more C++ tests.
8304         Reported by Christian Biesinger <cbiesinger@google.com> in
8305         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
8306         * tests/test-wchar-c++3.cc: New file.
8307         * modules/wchar-c++-tests (Files): Add it.
8308         (Makefile.am): Compile it.
8310 2019-12-05  Bruno Haible  <bruno@clisp.org>
8312         Add more C++ tests.
8314         assert-h: Add C++ tests.
8315         * tests/test-assert-h-c++.cc: New file.
8316         * tests/test-assert-h-c++2.cc: New file.
8317         * modules/assert-h-c++-tests: New file.
8318         * modules/assert-h-tests: New file.
8320         ctype: Add C++ tests.
8321         * tests/test-ctype-c++.cc: New file.
8322         * tests/test-ctype-c++2.cc: New file.
8323         * modules/ctype-c++-tests: New file.
8324         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
8326         errno: Add C++ tests.
8327         * tests/test-errno-c++.cc: New file.
8328         * tests/test-errno-c++2.cc: New file.
8329         * modules/errno-c++-tests: New file.
8330         * modules/errno-tests (Depends-on): Add errno-c++-tests.
8332         float: Add C++ tests.
8333         * tests/test-float-c++.cc: New file.
8334         * tests/test-float-c++2.cc: New file.
8335         * modules/float-c++-tests: New file.
8336         * modules/float-tests (Depends-on): Add float-c++-tests.
8338         inttypes: Add more C++ tests.
8339         * tests/test-inttypes-c++2.cc: New file.
8340         * modules/inttypes-c++-tests (Files): Add it.
8341         (Makefile.am): Compile it.
8343         limits-h: Add C++ tests.
8344         * tests/test-limits-h-c++.cc: New file.
8345         * tests/test-limits-h-c++2.cc: New file.
8346         * modules/limits-h-c++-tests: New file.
8347         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
8349         stdarg: Add C++ tests.
8350         * tests/test-stdarg-c++.cc: New file.
8351         * tests/test-stdarg-c++2.cc: New file.
8352         * modules/stdarg-c++-tests: New file.
8353         * modules/stdarg-tests: New file.
8355         stdbool: Add C++ tests.
8356         * tests/test-stdbool-c++.cc: New file.
8357         * tests/test-stdbool-c++2.cc: New file.
8358         * modules/stdbool-c++-tests: New file.
8359         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
8361         stddef: Add C++ tests.
8362         * tests/test-stddef-c++.cc: New file.
8363         * tests/test-stddef-c++2.cc: New file.
8364         * modules/stddef-c++-tests: New file.
8365         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
8367         stdint: Add C++ tests.
8368         * tests/test-stdint-c++.cc: New file.
8369         * tests/test-stdint-c++2.cc: New file.
8370         * modules/stdint-c++-tests: New file.
8371         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
8373         wchar: Add more C++ tests.
8374         * tests/test-wchar-c++2.cc: New file.
8375         * modules/wchar-c++-tests (Files): Add it.
8376         (Makefile.am): Compile it.
8378         wctype-h: Add more C++ tests.
8379         * tests/test-wctype-h-c++2.cc: New file.
8380         * modules/wctype-h-c++-tests (Files): Add it.
8381         (Makefile.am): Compile it.
8383 2019-12-04  Bruno Haible  <bruno@clisp.org>
8385         Fix compilation errors in C++ mode with xlclang++ on AIX.
8386         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
8387         C++ mode on AIX.
8388         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
8389         without C preprocessor macro.
8390         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
8391         _GL_CXXALIAS_SYS.
8392         * lib/threads.in.h (thrd_exit): Likewise.
8394 2019-12-04  Bruno Haible  <bruno@clisp.org>
8396         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
8397         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
8398         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
8400 2019-12-04  Bruno Haible  <bruno@clisp.org>
8402         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
8403         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
8404         _GL_CXXALIASWARN invocation on non-glibc systems.
8405         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
8406         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
8407         iswctype, towlower, towupper): Likewise.
8409 2019-12-03  Bruno Haible  <bruno@clisp.org>
8411         Avoid hassles caused by [[noreturn]] in C++.
8412         Reported by Christian Biesinger <cbiesinger@google.com> in
8413         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
8414         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
8415         * lib/_Noreturn.h: Likewise.
8417 2019-12-02  Bruno Haible  <bruno@clisp.org>
8419         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
8420         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
8421         LIBMULTITHREAD.
8422         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
8423         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
8424         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
8425         gl_THREADLIB.
8426         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
8428 2019-12-02  Bruno Haible  <bruno@clisp.org>
8430         Fix some more link errors with --enable-threads=isoc.
8431         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
8432         * modules/pthread-rwlock (Depends-on): Likewise.
8434 2019-12-02  Bruno Haible  <bruno@clisp.org>
8436         Fix link errors with --enable-threads=posix on AIX.
8437         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
8438         program with $(LIBTHREAD).
8439         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
8440         program with $(LIBTHREAD).
8442 2019-12-02  Bruno Haible  <bruno@clisp.org>
8444         Fix link errors with --enable-threads=posix on AIX.
8445         * modules/mbrtowc (Link): New section.
8446         * modules/acl (Link): Likewise.
8447         * modules/argmatch (Link): Likewise.
8448         * modules/backup-rename (Link): Likewise.
8449         * modules/backupfile (Link): Likewise.
8450         * modules/closein (Link): Likewise.
8451         * modules/closeout (Link): Likewise.
8452         * modules/copy-file (Link): Likewise.
8453         * modules/csharpcomp (Link): Likewise.
8454         * modules/csharpexec (Link): Likewise.
8455         * modules/dfa (Link): Likewise.
8456         * modules/exclude (Link): Likewise.
8457         * modules/fnmatch (Link): Likewise.
8458         * modules/fnmatch-gnu (Link): Likewise.
8459         * modules/fnmatch-posix (Link): Likewise.
8460         * modules/glob (Link): Likewise.
8461         * modules/human (Link): Likewise.
8462         * modules/javacomp (Link): Likewise.
8463         * modules/javaexec (Link): Likewise.
8464         * modules/javaversion (Link): Likewise.
8465         * modules/mbfile (Link): Likewise.
8466         * modules/mbiter (Link): Likewise.
8467         * modules/mbmemcasecmp (Link): Likewise.
8468         * modules/mbmemcasecoll (Link): Likewise.
8469         * modules/mbrlen (Link): Likewise.
8470         * modules/mbscasecmp (Link): Likewise.
8471         * modules/mbscasestr (Link): Likewise.
8472         * modules/mbschr (Link): Likewise.
8473         * modules/mbscspn (Link): Likewise.
8474         * modules/mbsinit (Link): Likewise.
8475         * modules/mbslen (Link): Likewise.
8476         * modules/mbsncasecmp (Link): Likewise.
8477         * modules/mbsnlen (Link): Likewise.
8478         * modules/mbsnrtowcs (Link): Likewise.
8479         * modules/mbspbrk (Link): Likewise.
8480         * modules/mbspcasecmp (Link): Likewise.
8481         * modules/mbsrchr (Link): Likewise.
8482         * modules/mbsrtowcs (Link): Likewise.
8483         * modules/mbssep (Link): Likewise.
8484         * modules/mbsspn (Link): Likewise.
8485         * modules/mbsstr (Link): Likewise.
8486         * modules/mbstok_r (Link): Likewise.
8487         * modules/mbswidth (Link): Likewise.
8488         * modules/mbuiter (Link): Likewise.
8489         * modules/mkdir-p (Link): Likewise.
8490         * modules/propername (Link): Likewise.
8491         * modules/quote (Link): Likewise.
8492         * modules/quotearg (Link): Likewise.
8493         * modules/quotearg-simple (Link): Likewise.
8494         * modules/regex-quote (Link): Likewise.
8495         * modules/rpmatch (Link): Likewise.
8496         * modules/sh-quote (Link): Likewise.
8497         * modules/system-quote (Link): Likewise.
8498         * modules/trim (Link): Likewise.
8499         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8500         * modules/unistdio/ulc-fprintf (Link): Likewise.
8501         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8502         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8503         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8504         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8505         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8506         * modules/xfreopen (Link): Likewise.
8507         * modules/xmemcoll (Link): Likewise.
8508         * modules/yesno (Link): Likewise.
8509         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
8510         * modules/argmatch-tests (Makefile.am): Likewise.
8511         * modules/closein-tests (Makefile.am): Likewise.
8512         * modules/copy-file-tests (Makefile.am): Likewise.
8513         * modules/dfa-tests (Makefile.am): Likewise.
8514         * modules/fnmatch-tests (Makefile.am): Likewise.
8515         * modules/glob-tests (Makefile.am): Likewise.
8516         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8517         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8518         * modules/mbrtowc-tests (Makefile.am): Likewise.
8519         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8520         * modules/mbscasestr-tests (Makefile.am): Likewise.
8521         * modules/mbschr-tests (Makefile.am): Likewise.
8522         * modules/mbscspn-tests (Makefile.am): Likewise.
8523         * modules/mbsinit-tests (Makefile.am): Likewise.
8524         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8525         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8526         * modules/mbspbrk-tests (Makefile.am): Likewise.
8527         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8528         * modules/mbsrchr-tests (Makefile.am): Likewise.
8529         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8530         * modules/mbsspn-tests (Makefile.am): Likewise.
8531         * modules/mbsstr-tests (Makefile.am): Likewise.
8532         * modules/quotearg-tests (Makefile.am): Likewise.
8533         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8534         * modules/readtokens-tests (Makefile.am): Likewise.
8535         * modules/regex-quote-tests (Makefile.am): Likewise.
8536         * modules/sh-quote-tests (Makefile.am): Likewise.
8537         * modules/system-quote-tests (Makefile.am): Likewise.
8538         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8539         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8540         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8541         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8542         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8543         * modules/yesno-tests (Makefile.am): Likewise.
8545 2019-12-02  Bruno Haible  <bruno@clisp.org>
8547         Simplify link sections.
8548         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
8549         * modules/lock (Link): Likewise.
8550         * modules/cond (Link): Likewise.
8551         * modules/tls (Link): Likewise.
8552         * modules/yield (Link): Likewise.
8553         * modules/regex (Link): Likewise.
8554         * modules/localename (Link): Likewise.
8555         * modules/unicase/locale-language (Link): Likewise.
8556         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
8558 2019-12-02  Bruno Haible  <bruno@clisp.org>
8560         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
8561         * tests/test-thread_self.c (main): Disable test on AIX.
8563 2019-12-01  Bruno Haible  <bruno@clisp.org>
8565         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
8566         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
8567         gl_THREADLIB_EARLY_BODY.
8568         (gl_THREADLIB_EARLY_BODY): Invoke it.
8569         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
8570         (gl_THREADLIB_BODY): Invoke it.
8571         (gl_PTHREADLIB): New macro.
8572         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
8573         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
8574         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
8575         * modules/pthread-h (Files): Add threadlib.m4.
8576         (Depends-on): Remove threadlib.
8577         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
8578         and _THREAD_SAFE here.
8579         (Link): Use LIBPTHREAD, not LIBTHREAD.
8580         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
8581         LIBMULTITHREAD.
8582         * modules/pthread-once (Link): Likewise.
8583         * modules/pthread-mutex (Link): Likewise.
8584         * modules/pthread-rwlock (Link): Likewise.
8585         * modules/pthread-cond (Link): Likewise.
8586         * modules/pthread-tss (Link): Likewise.
8587         * modules/pthread-spin (Link): Likewise.
8588         * modules/pthread (Link): Likewise.
8589         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
8590         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
8591         * modules/pthread-once-tests (test_pthread_once1_LDADD,
8592         test_pthread_once2_LDADD): Likewise.
8593         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
8594         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
8595         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
8596         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
8598 2019-12-01  Bruno Haible  <bruno@clisp.org>
8600         cond: State linking requirements.
8601         * modules/cond (Link): New section.
8603 2019-12-01  Bruno Haible  <bruno@clisp.org>
8605         threadlib: Remove unnecessary file (left over from 2019-07-06).
8606         * modules/threadlib (Files): Remove config.rpath.
8608 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
8610         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
8611         Reported by Dagobert Michelsen <dam@opencsw.org> in
8612         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
8613         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
8614         list of strings instead of one string.
8615         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
8616         * pygnulib/GLImport.py (execute): Likewise.
8618 2019-11-27  Bruno Haible  <bruno@clisp.org>
8620         openpty, forkpty: Fix build error on Solaris 11.4.
8621         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
8622         also in <termios.h>.
8623         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
8624         of the function also in <termios.h>.
8625         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
8626         * doc/glibc-functions/forkpty.texi: Likewise.
8628 2019-11-27  Bruno Haible  <bruno@clisp.org>
8630         New options --enable-threads=isoc and --enable-threads=isoc+posix.
8631         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
8632         --enable-threads=isoc and --enable-threads=isoc+posix.
8633         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
8634         When both the ISO C and the POSIX threads API are available, choose
8635         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
8636         --enable-threads=isoc+posix was specified. When only the ISO C threads
8637         API is available and --enable-threads=iso was specified, choose
8638         USE_ISOC_THREADS.
8639         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
8640         USE_ISOC_AND_POSIX_THREADS.
8641         * lib/glthread/lock.c: Likewise.
8642         * lib/glthread/cond.h: Likewise.
8643         * lib/glthread/cond.c: Likewise.
8644         * lib/glthread/tls.h: Likewise.
8645         * lib/glthread/tls.c: Likewise.
8646         * lib/glthread/yield.h: Likewise.
8647         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
8648         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
8649         * lib/glthread/thread.c: Likewise.
8650         * lib/glthread/threadlib.c: Likewise.
8651         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
8652         USE_ISOC_AND_POSIX_THREADS.
8653         * tests/test-cond.c: Consider USE_ISOC_THREADS and
8654         USE_ISOC_AND_POSIX_THREADS.
8655         * tests/test-tls.c: Likewise.
8656         * tests/test-thread_create.c (main): Likewise.
8657         * tests/test-pthread-cond.c: Likewise.
8658         * tests/test-pthread-mutex.c: Likewise.
8659         * tests/test-pthread-once2.c: Likewise.
8660         * tests/test-pthread-rwlock.c: Likewise.
8661         * tests/test-pthread-tss.c: Likewise.
8662         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
8663         USE_POSIX_THREADS.
8665 2019-11-24  Bruno Haible  <bruno@clisp.org>
8667         mbrtowc: Modernize autoconf test.
8668         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
8669         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
8670         try a UTF-8 locale.
8671         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
8673 2019-11-24  Bruno Haible  <bruno@clisp.org>
8675         Fix errors in C++ mode on mingw.
8676         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
8677         instead of _GL_CXXALIAS_SYS.
8678         * lib/signal.in.h (pthread_sigmask): Likewise.
8679         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
8680         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8681         Likewise.
8682         * lib/wchar.in.h (btowc): Likewise.
8684 2019-11-24  Bruno Haible  <bruno@clisp.org>
8686         sys_time: Fix errors in C++ mode on mingw.
8687         * lib/sys_time.in.h (timeval): Restore the redirection
8688         '#define timeval rpl_timeval', for when the symbol timeval is being used
8689         outside the 'gnulib' namespace.
8690         * lib/sys_select.in.h (select): In C++, write 'timeval', not
8691         'struct timeval'.
8693 2019-11-24  Bruno Haible  <bruno@clisp.org>
8695         iswctype: Fix errors in C++ mode on mingw.
8696         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
8697         is 1.
8698         * lib/iswctype.c (iswctype): Add another implementation, for the
8699         GNULIB_defined_wint_t case.
8700         * modules/iswctype (configure.ac): Compile iswctype.c also if
8701         GNULIB_OVERRIDES_WINT_T is 1.
8703 2019-11-24  Bruno Haible  <bruno@clisp.org>
8705         windows-timedmutex: Fix errors in C++ mode on mingw.
8706         * lib/windows-timedmutex.h: Add closing brace.
8708 2019-11-24  Bruno Haible  <bruno@clisp.org>
8710         Fix errors in C++ mode on Cygwin.
8711         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
8712         _GL_CXXALIAS_SYS.
8714 2019-11-24  Bruno Haible  <bruno@clisp.org>
8716         time_r: Fix for mingw (regression from 2019-11-16).
8717         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
8718         AC_LINK_IFELSE test only if the function does not appear to exist.
8720 2019-11-24  Bruno Haible  <bruno@clisp.org>
8722         wcstok: Add tests.
8723         * tests/test-wcstok.c: New file.
8724         * modules/wcstok-tests: New file.
8726 2019-11-24  Bruno Haible  <bruno@clisp.org>
8728         wcstok: Work around wrong signature on native Windows.
8729         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
8730         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
8731         REPLACE_WCSTOK.
8732         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
8733         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
8734         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
8735         * doc/posix-functions/wcstok.texi: Mention the problem.
8737 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
8739         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
8740         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
8741         remove workaround for GCC bug 91450 as the bug should be fixed
8742         there too.
8744 2019-11-21  Bruno Haible  <bruno@clisp.org>
8746         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
8747         Reported by Christian Biesinger <cbiesinger@google.com> in
8748         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
8749         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
8750         non-glibc systems.
8751         * lib/locale.in.h (localeconv, setlocale): Likewise.
8752         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
8753         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
8754         rint, round, trunc): Likewise.
8755         * lib/monetary.in.h (strfmon_l): Likewise.
8756         * lib/pthread.in.h (pthread_mutexattr_getrobust,
8757         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
8758         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
8759         pthread_spin_destroy): Likewise.
8760         * lib/signal.in.h (raise, signal): Likewise.
8761         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
8762         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
8763         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
8764         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
8765         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
8766         Likewise.
8767         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
8768         Likewise.
8769         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
8770         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
8771         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
8772         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
8773         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
8774         wcsftime): Likewise.
8775         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
8777 2019-11-21  Bruno Haible  <bruno@clisp.org>
8779         Fix various errors in _GL_CXXALIAS_SYS invocations.
8780         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
8781         _GL_CXXALIAS_SYS.
8782         * lib/pthread.in.h (pthread_mutexattr_gettype,
8783         pthread_mutexattr_getrobust): Likewise.
8784         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
8785         * lib/sys_socket.in.h (recv, send): Likewise.
8786         * lib/unistd.in.h (getdtablesize): Likewise.
8787         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
8788         'struct timeval'.
8790 2019-11-21  Bruno Haible  <bruno@clisp.org>
8792         math tests: Update after 2019-08-28 change.
8793         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
8794         return type of 'bool', not 'int'.
8796 2019-11-21  Bruno Haible  <bruno@clisp.org>
8798         pthread-spin: Fix errors in C++ mode.
8799         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
8800         functions as nonexistent when <pthread.h> exists but does not define
8801         the pthread_spinlock_t type.
8803 2019-11-21  Bruno Haible  <bruno@clisp.org>
8805         pthread-mutex: Fix errors in C++ mode.
8806         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
8807         pthread_mutexattr_getrobust exists. If not, define
8808         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8809         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
8810         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
8811         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8812         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
8813         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
8814         definition.
8816 2019-11-19  Bruno Haible  <bruno@clisp.org>
8818         threads-h tests: Fix typo.
8819         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
8821 2019-11-19  Bruno Haible  <bruno@clisp.org>
8823         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
8824         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
8825         to 'const pthread_attr_t *'.
8826         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
8827         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
8829 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8831         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
8832         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
8833         work around GCC bug 91450 as the bug should be fixed there.
8835 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8837         glob: get closer to glibc glob.c
8838         Omit differences from glibc when the differences don’t matter.
8839         * lib/glob.c [_LIBC]: Include shlib-compat.h.
8840         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
8841         (glob_lstat): New function.
8842         (glob_in_dir): Use it.
8843         (GLOB_ATTRIBUTE): Define to empty if not already defined.
8844         Use changed.
8846 2019-11-18  Bruno Haible  <bruno@clisp.org>
8848         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
8849         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
8850         UINTPTR_MAX): Consider _WIN64.
8851         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
8852         a pointer.
8854 2019-11-18  Bruno Haible  <bruno@clisp.org>
8856         stdint: Fix value of WINT_MAX when we override wint_t.
8857         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
8858         when GNULIB_OVERRIDES_WINT_T is 1.
8860 2019-11-18  Bruno Haible  <bruno@clisp.org>
8862         vcs-to-changelog: New module.
8863         * modules/vcs-to-changelog: New file.
8864         * MODULES.html.sh (func_all_modules): Add it.
8866 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8868         vcs-to-changelog: New script to generate ChangeLog-like output.
8869         Discussion:
8870         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
8871         * build-aux/vcs_to_changelog.py: New file.
8872         * build-aux/vcstocl/frontend_c.py: New file.
8873         * build-aux/vcstocl/misc_util.py: New file.
8874         * build-aux/vcstocl/vcs_git.py: New file.
8876 2019-11-18  Bruno Haible  <bruno@clisp.org>
8878         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
8879         Reported by Keith Marshall <keith@users.osdn.me> in
8880         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
8881         and <https://osdn.net/projects/mingw/ticket/39677>.
8882         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
8883         already been defined by mingw's <crtdefs.h>.
8885 2019-11-18  Bruno Haible  <bruno@clisp.org>
8887         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
8888         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
8889         conditionally enabled.
8891 2019-11-18  Bruno Haible  <bruno@clisp.org>
8893         gc: Mirror libgcrypt.m4 from libgcrypt.
8894         * config/srclistvars.sh (LIBGCRYPT): New variable.
8895         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8897 2019-11-17  Bruno Haible  <bruno@clisp.org>
8899         locale, localename: Improve z/OS support.
8900         Reported by Daniel Richard G. in
8901         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8902         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8903         gl_LOCALE_H.
8904         (gl_LOCALE_H): Require it.
8905         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8906         defined, don't even check for newlocale, duplocale, freelocale.
8907         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8908         locale_t is not defined.
8910 2019-11-17  Bruno Haible  <bruno@clisp.org>
8912         havelib: Make libdirstems processing more flexible.
8913         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8914         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8915         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8916         patch from 2017-02-19).
8917         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8918         libdirs, even when the first one exists as a directory.
8920 2019-11-17  Bruno Haible  <bruno@clisp.org>
8922         havelib: Match the bitness when searching for libraries.
8923         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8924         acl_is_expected_elfclass.
8925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8926         file exists, in ELF, also test whether it has the ELF class that
8927         corresponds to the host's bitness.
8929 2019-11-17  Bruno Haible  <bruno@clisp.org>
8931         host-cpu-c-abi: Add support for unknown CPUs.
8932         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8933         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8934         32-bit or 64-bit.
8936 2019-11-17  Bruno Haible  <bruno@clisp.org>
8938         havelib: Remove redundant code.
8939         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8940         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8942 2019-11-17  Bruno Haible  <bruno@clisp.org>
8944         havelib: Fix a bug in dependency processing.
8945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8946         of .la files, don't overwrite the value of additional_libdir for the
8947         next rounds.
8949 2019-11-16  Bruno Haible  <bruno@clisp.org>
8951         wctype-h: When overriding wint_t, override also the related functions.
8952         Reported by Christian Biesinger <cbiesinger@google.com> in
8953         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8954         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8955         REPLACE_ISWCNTRL to 1.
8956         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8957         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8958         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8959         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8960         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8961         on mingw.
8962         * doc/posix-headers/wctype.texi: Likewise.
8964 2019-11-16  Bruno Haible  <bruno@clisp.org>
8966         time_r: Fix for mingw.
8967         Reported by Christian Biesinger <cbiesinger@google.com> in
8968         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8969         * lib/time.in.h: On mingw, include <unistd.h>.
8970         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8971         <time.h>. Test for localtime_r in a way that works when it is defined
8972         as an inline function.
8974 2019-11-13  Bruno Haible  <bruno@clisp.org>
8976         havelib: Revert last change.
8977         * build-aux/config.rpath: Revert last change. We can add msys2 support
8978         when it has been added to libtool.m4 upstream.
8980 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8982         config: add msys support
8983         Requested by Arnold Robbins in:
8984         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8985         He also requested a change to config.guess, which I’ll forward
8986         upstream.
8987         * build-aux/ar-lib (func_file_conv):
8988         * build-aux/compile (func_file_conv):
8989         * build-aux/config.rpath (wl, with_gnu_ld)
8990         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8991         Treat msys like cygwin.
8993 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8995         regex: now back in sync with glibc
8996         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8997         regexec.c got merged into glibc and are now copies again.
8999 2019-10-27  Bruno Haible  <bruno@clisp.org>
9001         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
9002         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
9003         statement.
9004         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
9005         32-bit CPUs.
9007 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
9009         timespec-add, timespec-sub: simplify
9010         * lib/timespec-add.c (timespec_add):
9011         * lib/timespec-sub.c (timespec_sub):
9012         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
9013         work on unsigned integers.
9015 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9017         nstrftime: speed up integer overflow checking
9018         * lib/nstrftime.c: Include intprops.h.
9019         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
9020         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
9021         instead of doing it by hand.
9022         * modules/nstrftime (Depends-on): Add intprops.
9024         Port better to GCC under macOS
9025         Work around macOS header that has ‘#define __has_builtin(x) 0’
9026         when compiled by GCC.  Apple really, really doesn’t want you to
9027         use GCC, apparently.  Rroblem reported by Akim Demaille in:
9028         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
9029         The fix is to not trust __has_builtin when being compiled by
9030         recent-enough GCC.
9031         * lib/intprops.h (__has_builtin)
9032         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
9033         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
9034         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
9035         Remove.  All uses removed.
9036         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
9037         directly, if defined and if not newer GCC.
9038         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
9039         New macro, that use __has_builtin directly, if defined and if
9040         not newer GCC.
9041         (assume): Use them.
9043 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
9045         maintainer-makefile: update rule for argmatch.
9046         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
9048 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
9050         bitset: let freeing functions accept NULL.
9051         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
9052         given NULL.
9053         * lib/bitset.h: Document that.
9054         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
9056 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
9058         inttypes: use more-robust test for int range
9059         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
9060         Problem reported by Dagobert Michelsen in:
9061         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
9062         * lib/inttypes.in.h: Rely only on limits.h when checking
9063         int range.
9065 2019-10-15  Bruno Haible  <bruno@clisp.org>
9067         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
9068         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
9069         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
9070         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
9071         term_ostream_set_hyperlink): New functions.
9072         (term_styled_ostream_get_hyperlink_ref,
9073         term_styled_ostream_get_hyperlink_id,
9074         term_styled_ostream_set_hyperlink): New function aliases.
9076 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
9078         update-copyright: use en dashes in .texi ranges
9079         * build-aux/update-copyright: Match year ranges like "1998--2019",
9080         which are used in the Autoconf manual.  Also, update ranges in
9081         .tex, .texi, and .texinfo files to use en dashes instead of
9082         hyphens.
9084 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9086         * config/srclist.txt: Remove posix/regex_internal.c for now.
9088 2019-10-13  Bruno Haible  <bruno@clisp.org>
9090         git-version-gen: Allow 'snapshot' as .tarball-version contents.
9091         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
9092         contents to the empty string.
9094 2019-10-12  Bruno Haible  <bruno@clisp.org>
9096         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
9097         * tests/test-intprops.c (main): Disable two more tests when using
9098         HP-UX cc.
9100 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9102         Simplify and regularize regex use of ‘assert’
9103         Also, tell GCC about the asserts even when compiling without
9104         debugging, to give it further optimization opportunities.
9105         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
9106         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
9107         (parse_expression, parse_bracket_exp):
9108         * lib/regex_internal.c (build_wcs_buffer)
9109         (build_wcs_upper_buffer, re_string_reconstruct)
9110         (re_string_context_at):
9111         * lib/regexec.c (re_search_stub, re_copy_regs)
9112         (re_search_internal, prune_impossible_nodes, check_matching)
9113         (check_halt_state_context, set_regs, sift_states_backward)
9114         (build_sifted_states, transit_state_mb, transit_state_bkref)
9115         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
9116         (match_ctx_add_subtop):
9117         Use it instead of plain ‘assert’.
9119 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
9121         regex: omit debug assignment when not debugging
9122         * lib/regexec.c (re_search_internal) [!DEBUG]:
9123         Remove unnecessary assignment.
9125         regex: tell compiler there’s at most 256 arcs out
9126         Partly this is to help the reader (and maybe help GCC);
9127         partly this is to pacify Coverity.
9128         * lib/regex_internal.h: Include verify.h.
9129         * lib/regexec.c (group_nodes_into_DFAstates):
9130         Tell the compiler that ndests cannot exceed SBC_MAX.
9131         * modules/regex (Depends-on): Add ‘verify’.
9133         regex: simplify by assuming C99
9134         * config/srclist.txt: Comment out regex_internal.h and regexec.c
9135         temporarily.
9136         * lib/regex_internal.h (lock_define, re_match_context_t):
9137         Simplify by assuming C99 macros and const.
9138         * lib/regexec.c (re_search_internal): Simplify by assuming C99
9139         initializers.  Remove unnecessary assignment, as mctx is now
9140         safely initialized earlier.
9142         regex: avoid copying of uninitialized storage
9143         * config/srclist.txt: Comment out regcomp.c temporarily.
9144         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
9145         Initialize even when not checking for lint, as the behavior is
9146         arguably undefined otherwise and Coverity warns about it.
9148 2019-10-06  Bruno Haible  <bruno@clisp.org>
9150         access tests: Fix test failure when run as root.
9151         * tests/test-access.c: Include root-uid.h.
9152         (geteuid): Define fallback.
9153         (main): Don't expect that writing to a read-only file would fail when
9154         running as root. Also, remove the created files at the end.
9155         * modules/access-tests (Depends-on): Add root-uid.
9156         (configure.ac): Test whether geteuid exists.
9158 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
9160         users.txt: add GNU nano
9161         Nano has been making use of gnulib since March 2017, version 2.8.0.
9163 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9165         bootstrap: simplify debugging of wget failures
9166         Problem reported by Tim Rühsen in:
9167         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
9168         * build-aux/bootstrap (po_download_command_format):
9169         Invoke wget with -nv instead of -q, to make debugging easier.
9171 2019-09-29  Bruno Haible  <bruno@clisp.org>
9173         avltree-list: Fix compilation warning (introduced on 2014-09-16).
9174         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
9175         'const' attribute.
9177 2019-09-29  Bruno Haible  <bruno@clisp.org>
9179         fbufmode: Fix compilation error on glibc >= 2.28 systems.
9180         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
9182 2019-09-28  Bruno Haible  <bruno@clisp.org>
9184         Update comments that refer to POSIX.
9185         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
9186         sentence about trailing slashes.
9187         * lib/fflush.c: Clarify the reasoning.
9188         * tests/test-fflush2.c: Cite the relevant sentence.
9190 2019-09-28  Bruno Haible  <bruno@clisp.org>
9192         access: Document limitations on Windows.
9193         Suggested by Zaretskii <eliz@gnu.org>.
9194         * doc/posix-functions/access.texi: Mention two limitations on Windows.
9196 2019-09-28  Bruno Haible  <bruno@clisp.org>
9198         findprog-in: Fix comment.
9199         Reported by Eli Zaretskii <eliz@gnu.org>.
9200         * lib/findprog.h (find_in_given_path): Extend description of EACCES
9201         condition.
9202         * lib/stat.c (rpl_stat): Fix typo in comment.
9203         * lib/utime.c (_gl_utimens_windows): Likewise.
9205 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9207         Update URLs and associated text
9208         (Thanks to Bruno Haible for proofreading this patch.)
9209         Prefer https: to http: in URLs where either will do, for the usual
9210         security reasons.  I also updated broken and/or moved URLs
9211         discovered during the process. In a few places I had to resort to
9212         archive.org, since I didn't find the originals elsewhere.
9214 2019-09-15  Paul Smith  <psmith@gnu.org>
9215             Bruno Haible  <bruno@clisp.org>
9217         findprog-in: Set errno when the search fails.
9218         * lib/findprog-in.c: Include <errno.h>.
9219         (find_in_given_path): Set errno before returning NULL.
9220         * lib/findprog.h (find_in_given_path): Update comment accordingly.
9221         Define the term "slash".
9223 2019-09-15  Bruno Haible  <bruno@clisp.org>
9225         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
9226         * modules/findprog (Depends-on): Add access.
9227         * modules/findprog-lgpl (Depends-on): Likewise.
9228         * modules/findprog-in (Depends-on): Likewise.
9230 2019-09-15  Bruno Haible  <bruno@clisp.org>
9232         access: Add tests.
9233         * tests/test-access.c: New file.
9234         * modules/access-tests: New file.
9236         access: New module.
9237         * lib/unistd.in.h (access): New declaration.
9238         * lib/access.c: New file.
9239         * m4/access.m4: New file.
9240         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
9241         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
9242         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
9243         REPLACE_ACCESS.
9244         * modules/access: New file.
9245         * tests/test-unistd-c++.cc (access): Check signature.
9246         * doc/posix-functions/access.texi: Mention the new module.
9248 2019-09-15  Bruno Haible  <bruno@clisp.org>
9250         fcntl-h: Fix compilation error of creat.c on MSVC.
9251         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
9252         defined.
9254 2019-09-15  Bruno Haible  <bruno@clisp.org>
9256         creat: Add tests.
9257         * tests/test-creat.c: New file, based on tests/test-open.h.
9258         * modules/creat-tests: New file.
9260         creat: New module.
9261         * lib/fcntl.in.h (creat): New declaration.
9262         * lib/creat.c: New file, based on lib/open.c.
9263         * m4/creat.m4: New file.
9264         * m4/open-slash.m4: New file, extracted from m4/open.m4.
9265         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
9266         Invoke gl_OPEN_TRAILING_SLASH_BUG.
9267         * modules/open (Files): Add m4/open-slash.m4.
9268         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
9269         REPLACE_CREAT.
9270         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
9271         * modules/creat: New file.
9272         * tests/test-fcntl-h-c++.cc (creat): Check signature.
9273         * doc/posix-functions/creat.texi: Mention the new module.
9275 2019-09-15  Bruno Haible  <bruno@clisp.org>
9277         open tests: Enhance test.
9278         * tests/test-open.h (test_open): Test the creation of an executable
9279         regular file. Also improve initial cleanup.
9281 2019-09-15  Bruno Haible  <bruno@clisp.org>
9283         intprops tests: Avoid build failure with HP-UX cc.
9284         * tests/test-intprops.c: Disable a check that makes HP cc choke with
9285         "error 4018: Macro param too large after substitution - use -H option.".
9287 2019-09-14  Bruno Haible  <bruno@clisp.org>
9289         Make autoconf tests work with -Werror=implicit-function-declaration.
9290         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
9291         towupper() declaration.
9292         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
9293         declaration.
9295 2019-09-14  Bruno Haible  <bruno@clisp.org>
9297         findprog-in: Better mimic the system on native Windows.
9298         Reported by Paul Smith <psmith@gnu.org>.
9299         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
9300         non-empty suffixes when the file name already contains a '.'.
9302 2019-09-10  Bruno Haible  <bruno@clisp.org>
9304         wctob: Fix autoconf test.
9305         Based on patch by Florian Weimer <fweimer@redhat.com>.
9306         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
9308 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
9310         xhash: provide hash_xinitialize.
9311         Suggested by Egor Pugin <egor.pugin@gmail.com>
9312         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
9313         * modules/xhash, lib/xhash.c: New.
9314         * lib/hash.h (hash_xinitialize): New.
9316 2019-09-09  Bruno Haible  <bruno@clisp.org>
9318         findprog-in: Make exec optimization optional.
9319         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
9320         (find_in_given_path): Add optimize_for_exec parameter.
9321         * lib/findprog-in.c (find_in_given_path): Likewise.
9323 2019-09-08  Bruno Haible  <bruno@clisp.org>
9325         Add option to assume the best, not the worst, when cross-compiling.
9326         Suggested by Jonas Termansen <sortie@maxsi.org>.
9327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
9328         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
9329         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
9330         lt_cv_sys_argz_works.
9331         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
9332         ac_cv_func_calloc_0_nonnull.
9333         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
9334         --enable-cross-guesses for gl_cv_func_realpath_works.
9335         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
9336         gl_cv_func_cbrtl_ieee.
9337         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
9338         gl_cv_func_ceil_ieee.
9339         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
9340         gl_cv_func_ceilf_ieee.
9341         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
9342         gl_cv_func_ceill_ieee.
9343         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
9344         ac_cv_func_chown_works.
9345         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
9346         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
9347         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
9348         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
9349         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
9350         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
9351         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
9352         gl_cv_func_expl_works.
9353         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
9354         gl_cv_func_expm1_ieee.
9355         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
9356         gl_cv_func_expm1l_works.
9357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
9358         gl_cv_func_open_directory_works.
9359         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
9360         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
9361         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
9362         gl_cv_func_fchownat_empty_filename_works.
9363         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
9364         gl_cv_func_fdopendir_works.
9365         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
9366         gl_cv_func_floor_ieee.
9367         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
9368         gl_cv_func_floorf_ieee.
9369         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
9370         gl_cv_func_fma_works.
9371         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
9372         gl_cv_func_fmaf_works.
9373         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
9374         gl_cv_func_fmal_works.
9375         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
9376         gl_cv_func_fmod_ieee.
9377         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
9378         gl_cv_func_fmodf_ieee.
9379         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
9380         gl_cv_func_fmodl_ieee.
9381         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
9382         gl_cv_func_fpurge_works.
9383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
9384         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
9385         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
9386         gl_cv_func_getcwd_null.
9387         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
9388         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
9389         gl_cv_func_working_getdelim.
9390         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
9391         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
9392         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
9393         gl_cv_func_getgroups_works.
9394         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
9395         am_cv_func_working_getline.
9396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
9397         for gl_cv_func_getopt_gnu.
9398         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
9399         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
9400         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
9401         gl_cv_func_hypot_ieee.
9402         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
9403         gl_cv_func_hypotf_ieee.
9404         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
9405         gl_cv_func_hypotl_ieee.
9406         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
9407         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
9408         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
9409         gl_cv_func_link_works.
9410         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
9411         gl_cv_func_linkat_slash.
9412         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
9413         gl_cv_func_log_ieee.
9414         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
9415         gl_cv_func_logf_ieee.
9416         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
9417         gl_cv_func_logl_works.
9418         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
9419         gl_cv_func_log10_ieee.
9420         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
9421         gl_cv_func_log10f_ieee.
9422         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
9423         gl_cv_func_log10l_works.
9424         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
9425         gl_cv_func_log1p_ieee.
9426         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
9427         gl_cv_func_log1pf_ieee.
9428         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
9429         gl_cv_func_log1pl_ieee.
9430         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
9431         gl_cv_func_log2_ieee.
9432         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
9433         gl_cv_func_log2f_ieee.
9434         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
9435         --enable-cross-guesses for
9436         gl_cv_func_lstat_dereferences_slashed_symlink.
9437         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
9438         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
9439         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
9440         gl_cv_C_locale_sans_EILSEQ.
9441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
9442         gl_cv_func_memchr_works.
9443         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
9444         gl_cv_func_memmem_works_always.
9445         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
9446         gl_cv_func_memmem_works_fast.
9447         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
9448         gl_cv_func_mkdir_trailing_slash_works,
9449         gl_cv_func_mkdir_trailing_dot_works.
9450         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
9451         gl_cv_func_mkfifo_works.
9452         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
9453         gl_cv_func_mknod_works.
9454         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
9455         gl_cv_func_working_mkstemp.
9456         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
9457         gl_cv_func_working_mktime.
9458         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
9459         gl_cv_func_modf_ieee.
9460         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
9461         gl_cv_func_modff_ieee.
9462         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
9463         gl_cv_func_modfl_ieee.
9464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
9465         gl_cv_func_nanosleep.
9466         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
9467         gl_cv_func_perror_works.
9468         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
9469         gl_cv_func_printf_sizes_c99.
9470         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
9471         gl_cv_func_printf_infinite.
9472         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
9473         gl_cv_func_printf_infinite_long_double.
9474         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
9475         gl_cv_func_printf_directive_a.
9476         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
9477         gl_cv_func_printf_directive_f.
9478         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
9479         gl_cv_func_printf_flag_zero.
9480         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
9481         gl_cv_func_printf_enomem.
9482         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
9483         gl_cv_func_snprintf_truncation_c99.
9484         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
9485         gl_cv_func_snprintf_retval_c99.
9486         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
9487         gl_cv_func_snprintf_directive_n.
9488         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
9489         gl_cv_func_vsnprintf_zerosize_c99.
9490         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
9491         gl_cv_func_pselect_detects_ebadf.
9492         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9493         Obey --enable-cross-guesses for
9494         gl_cv_pthread_rwlock_rdlock_prefer_writer.
9495         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
9496         gl_cv_func_ptsname_sets_errno.
9497         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
9498         gl_cv_func_svid_putenv.
9499         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
9500         gl_cv_func_readlink_works.
9501         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
9502         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
9503         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
9504         gl_cv_func_re_compile_pattern_working.
9505         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
9506         gl_cv_func_remainder_ieee.
9507         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
9508         gl_cv_func_remainderf_ieee.
9509         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
9510         gl_cv_func_remainderl_ieee.
9511         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
9512         gl_cv_func_rintl_works.
9513         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
9514         gl_cv_func_rmdir_works.
9515         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
9516         gl_cv_func_round_ieee.
9517         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
9518         gl_cv_func_roundf_ieee.
9519         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
9520         gl_cv_func_roundl_ieee.
9521         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
9522         gl_cv_func_select_detects_ebadf.
9523         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
9524         gl_cv_func_setenv_works.
9525         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
9526         gl_cv_func_unsetenv_works.
9527         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
9528         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
9529         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
9530         gl_cv_func_sleep_works.
9531         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
9532         gl_cv_func_stat_file_slash.
9533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
9534         gl_cv_func_stpncpy.
9535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
9536         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
9537         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
9538         gl_cv_func_strcasestr_linear.
9539         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
9540         gl_cv_func_working_strerror.
9541         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
9542         gl_cv_func_strerror_0_works.
9543         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
9544         --enable-cross-guesses for gl_cv_func_strerror_r_works.
9545         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
9546         gl_cv_func_strstr_works_always.
9547         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
9548         gl_cv_func_strstr_linear.
9549         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
9550         gl_cv_func_strtod_works.
9551         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
9552         gl_cv_func_strtold_works.
9553         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
9554         gl_cv_func_symlink_works.
9555         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
9556         gl_cv_func_symlinkat_works.
9557         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
9558         gl_cv_func_trunc_ieee.
9559         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
9560         gl_cv_func_truncf_ieee.
9561         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
9562         gl_cv_func_truncl_ieee.
9563         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
9564         gl_cv_func_tzset_clobber.
9565         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
9566         gl_cv_func_ungetc_works.
9567         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
9568         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
9569         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
9570         gl_cv_func_usleep_works.
9571         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
9572         gl_cv_func_futimesat_works.
9573         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
9574         gl_cv_func_working_utimes.
9575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
9576         gl_cv_func_wcwidth_works.
9577         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
9578         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
9579         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
9580         links for testing. Obey --enable-cross-guesses for
9581         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
9582         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
9584 2019-09-08  Bruno Haible  <bruno@clisp.org>
9586         Clarify that cross-compilation guesses are guesses.
9587         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
9588         cross-compiling.
9590 2019-09-08  Bruno Haible  <bruno@clisp.org>
9592         chown: Fix configure output (regression from 2019-03-23).
9593         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
9594         gl_cv_func_chown_follows_symlink variable.
9596 2019-09-08  Bruno Haible  <bruno@clisp.org>
9598         findprog-in: New module.
9599         Suggested by Paul Smith <psmith@gnu.org>.
9600         * lib/findprog.h (find_in_given_path): New declaration.
9601         * lib/findprog-in.c: New file, based on lib/findprog.c.
9602         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
9603         * modules/findprog-in: New file.
9605 2019-09-08  Bruno Haible  <bruno@clisp.org>
9607         findprog: Remove unused dependency.
9608         * modules/findprog (Depends-on): Remove strdup.
9610 2019-09-08  Bruno Haible  <bruno@clisp.org>
9612         findprog: Remove test that is obsolete since 2006-04-24.
9613         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
9615 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9617         bitset: style changes
9618         * lib/bitset/vector.c (vbitset_resize): Factor computation.
9619         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
9620         xzalloc to xcalloc.
9621         Suggested by Paul Eggert.
9623 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9625         bitset: check memory allocation
9626         Reported by 江 祖铭 (Zu-Ming Jiang).
9627         With help from Paul Eggert.
9628         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
9629         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
9630         instead of realloc.
9631         When shrinking, accept failures.
9632         * lib/bitset/vector.c (vbitset_resize): Likewise.
9634 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9636         scratch_buffer: sync from glibc
9637         * config/srclist.txt: Add the scratch_buffer source
9638         code from glibc, since these should be in sync.
9639         Autoupdate.
9641 2019-09-07  Bruno Haible  <bruno@clisp.org>
9643         doc: Update for glibc 2.30.
9644         * doc/glibc-functions/gettid.texi: New file.
9645         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
9646         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
9647         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
9648         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
9649         * doc/glibc-functions/sem_clockwait.texi: New file.
9650         * doc/glibc-functions/tgkill.texi: New file.
9651         * doc/glibc-functions/twalk_r.texi: New file.
9652         * doc/gnulib.texi: Include them.
9653         (Glibc semaphore.h): New section.
9654         * doc/pastposix-functions/h_errno.texi: Update.
9655         * doc/posix-functions/*.texi: Likewise.
9657 2019-09-06  Bruno Haible  <bruno@clisp.org>
9659         symlink tests: Avoid test failure on Linux with Lustre file system.
9660         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
9661         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
9662         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
9664 2019-09-01  Bruno Haible  <bruno@clisp.org>
9666         gitsub.sh: Add support for shallow-cloning of subdirectories.
9667         * top/gitsub.sh (func_usage): Document allowed git options with
9668         'git pull'.
9669         (func_pull): Accept GIT_OPTIONS argument.
9670         (pull): Parse git options before complaining about too many arguments.
9671         Pass the git options to func_pull.
9673 2019-08-29  Bruno Haible  <bruno@clisp.org>
9675         lock: Fix cross-compilation guesses.
9676         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9677         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
9678         platforms.
9680 2019-08-28  Bruno Haible  <bruno@clisp.org>
9682         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
9683         Reported by Martin Storsjö <martin@martin.st> in
9684         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
9685         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
9686         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
9687         files from GCC 6 or newer, use an override through '#define', because
9688         the inline definitions in the platform's <cmath> cannot be overridden
9689         in another way.
9691 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9693         Revert macOS INT_MULTIPLY_WRAPV patch
9694         Problem reported by Bruno Haible in:
9695         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
9696         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
9697         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9698         Go back to working around the Clang bug on macOS.
9700 2019-08-27  Bruno Haible  <bruno@clisp.org>
9702         libtool-next-version: Fix error output.
9703         * build-aux/libtool-next-version (func_fatal_error): Fix the program
9704         name.
9706 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9708         Speed up INT_MULTIPLY_WRAPV on macOS
9709         Assume that __builtin_mul_overflow works OK with Clang on macOS.
9710         Mattias Engdegård says it’s safe to assume the relevant library
9711         is always available there.
9712         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
9713         New temporary internal macro.
9714         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9715         No need to work around the Clang bug on macOS.
9717 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9719         intprops.h, verify.h: port better to clang
9720         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
9721         with Clang.  Problem reported privately by Mattias Engdegård.
9722         Also, insulate intprops.h and verify.h better against each other’s
9723         definitions of __has_builtin on non-Clang hosts.
9724         * lib/intprops.h (__has_builtin): Define a temporary substitute
9725         if __has_builtin is not already defined.
9726         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
9727         New temporary internal macros.
9728         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
9729         Now two separate macros, replacing the old
9730         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
9731         __builtin_mul_overflow is like the rest.  All uses changed.
9732         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
9733         Adjust to above changes.
9734         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
9735         longer relevant.  All uses changed.
9736         * lib/verify.h (__has_builtin): Treat like intprops.h,
9737         so that the two .h files do not collide with each other.
9738         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
9739         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
9741 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9743         intprops: say why not Clang __builtin_add_overflow
9744         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
9745         Mention Clang in comment, responding to a query from
9746         Mattias Engdegård.
9748 2019-08-24  Bruno Haible  <bruno@clisp.org>
9750         doc: Document most of the files outside of modules.
9751         * doc/gnulib.texi (Build Infrastructure Files,
9752         Release Management Files): New chapters.
9754 2019-08-24  Bruno Haible  <bruno@clisp.org>
9756         bootstrap: Keep in sync with the 'gettext' module.
9757         Reported by Assaf Gordon in
9758         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
9759         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
9760         * build-aux/po/remove-potcdate.sin: Likewise.
9762 2019-08-24  Bruno Haible  <bruno@clisp.org>
9764         crypto/gc-sha512: Add tests.
9765         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
9766         * modules/crypto/gc-sha512-tests: New file.
9768         crypto/gc-sha256: Add tests.
9769         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
9770         * modules/crypto/gc-sha256-tests: New file.
9772         crypto/gc-sha256, crypto/gc-sha512: New modules.
9773         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
9774         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
9775         (MAX_DIGEST_SIZE): Set to 64.
9776         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
9777         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
9778         (gc_sha256, gc_sha512): New functions.
9779         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
9780         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
9781         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
9783 2019-08-24  Bruno Haible  <bruno@clisp.org>
9785         crypto/gc-sha1 tests: Improve output when the test fails.
9786         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
9787         output.
9789 2019-08-24  Bruno Haible  <bruno@clisp.org>
9791         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
9792         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
9793         LIBGCRYPT_HAS_MD_SM3.
9794         * lib/gc-libgcrypt.c: Include sm3.h.
9795         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
9796         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
9797         implementation if libgcrypt does not support SM3.
9799 2019-08-24  Bruno Haible  <bruno@clisp.org>
9801         crypto/gc-md2: Optimize and clarify code.
9802         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
9803         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
9804         is not needed.
9806 2019-08-24  Bruno Haible  <bruno@clisp.org>
9808         crypto/gc-md2: Add comment.
9809         * lib/gc-libgcrypt.c: Add comment.
9811 2019-08-24  Bruno Haible  <bruno@clisp.org>
9813         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
9814         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
9815         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
9816         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
9817         variable.
9819 2019-08-24  Bruno Haible  <bruno@clisp.org>
9821         crypto/gc: Fix link error with --with-libgcrypt.
9822         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
9823         AC_LIB_HAVE_LINKFLAGS invocation.
9825 2019-08-24  Bruno Haible  <bruno@clisp.org>
9827         crypto/gc: Access the module indicators correctly.
9828         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
9829         * lib/gc-libgcrypt.c: Likewise.
9831 2019-08-24  Bruno Haible  <bruno@clisp.org>
9833         crypto/gc: Fix configuration with --with-libgcrypt.
9834         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
9835         * modules/crypto/gc (Files): Add it.
9836         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
9838 2019-08-24  Bruno Haible  <bruno@clisp.org>
9840         Remove unused file.
9841         * m4/stat-macros.m4: Remove file.
9843 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9845         New strip-trailing-space option for srclist-update
9846         * config/srclist-update (fixfile): Support new option.
9847         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
9848         Use it.
9850 2019-08-20  Eric Blake  <eblake@redhat.com>
9852         accept4: Support SOCK_NONBLOCK, if defined
9853         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
9855         accept4: Fix compilation when native accept4() exists.
9856         Reported by Richard W.M. Jones <rjones@redhat.com> in
9857         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
9858         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
9860 2019-08-18  Bruno Haible  <bruno@clisp.org>
9862         Defeat -flto GCC optimization in math autoconf tests.
9863         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
9864         at <https://savannah.gnu.org/bugs/?56109>.
9865         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
9866         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
9867         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9868         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9869         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9870         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
9871         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9872         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
9873         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
9874         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9875         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9876         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9878 2019-08-17  Bruno Haible  <bruno@clisp.org>
9880         windows-spin: Implement declared functions.
9881         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
9882         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
9883         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
9884         name.
9886 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9888         intprops: port to Oracle Developer Studio 12.6
9889         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
9890         typos that were in a section not compiled by GCC.
9892 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9894         intprops: support uchar, ushort _WRAPV dests
9895         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9896         when __builtin_add_overflow etc. and _Generic are not used.
9897         (_GL_INT_OP_WRAPV): Use it to support destinations that
9898         are unsigned char or unsigned short, even in compilers
9899         that lack __typeof__ and are not C11-compatible.
9901         intprops: pacify picky GCC
9902         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9903         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9904         possibly-incorrect result.
9905         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9906         about (A) used as a boolean, when A is an expression like 3 * 4.
9908         intprops: support unsigned *_WRAPV results
9909         Add support for unsigned, unsigned long, and unsigned long long
9910         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9911         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9912         bug with unsigned inputs reported by Eli Zaretskii in:
9913         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9914         * config/srclist.txt: Break the glibc connection for intprops.h
9915         temporarily, while more testing is done in Gnulib-using apps.
9916         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9917         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9918         Support unsigned results no narrower than unsigned int.  Report
9919         overflow correctly if some arguments are unsigned.
9920         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9921         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9922         the right thing with narrow args.
9923         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9924         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9925         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9926         * tests/test-intprops.c: Check for bugs and test new behavior.
9928 2019-08-14  Bruno Haible  <bruno@clisp.org>
9930         get_progname_of: New module.
9931         * lib/get_progname_of.h: New file.
9932         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9933         * lib/getprogname.c (getprogname): Tweak coding style.
9934         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9935         * modules/get_progname_of: New file.
9937 2019-08-14  Bruno Haible  <bruno@clisp.org>
9939         get_ppid_of: New module.
9940         * lib/get_ppid_of.h: New file.
9941         * lib/get_ppid_of.c: New file.
9942         * modules/get_ppid_of: New file.
9944 2019-08-13  Bruno Haible  <bruno@clisp.org>
9946         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9947         * tests/test-libtextstyle.c (main): Do not emit styling when the
9948         environment variable NO_COLOR is set.
9950 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9952         verify: improve diagnostic quality in recent GCC
9953         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9954         useful line number containing the top-level caller of the macro.
9955         So, bring back the older way of issuing a diagnostic containing
9956         the top-level call’s arg, so that it is easier to diagnose
9957         ‘verify’ failures with recent GCC.
9958         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9959         Bring back DIAGNOSTIC arg.  All callers changed.
9960         (verify): Just use _GL_VERIFY.
9962 2019-08-11  Bruno Haible  <bruno@clisp.org>
9964         localcharset: Add more aliases for OS/2.
9965         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9966         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9967         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9969 2019-08-10  Eric Blake  <eblake@redhat.com>
9971         configmake: Update advice on usage.
9972         * modules/configmake (Include): No longer necessary to include
9973         last, since configmake.h itself worries about collision avoidance.
9975 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9977         parse-datetime: fix 'T' military timezone handling
9978         * lib/parse-datetime.y (zone):
9979         follow-up to the previous commit: the 'T' case is handled outside the
9980         conversion table (used as either military timezone UTC-7 or ISO8601
9981         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9982         timezone letters.
9984 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9986         parse-datetime: fix military timezone letters
9987         Problem and trivial fix reported by Neil Hoggarth in:
9988         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9989         * lib/parse-datetime.y (military_table):
9990         Do it the right way, not the RFC 822 way.
9992 2019-08-08  Eric Blake  <eblake@redhat.com>
9994         configmake: Avoid namespace pollution issue on mingw.
9995         * modules/configmake (Makefile.am): If the project uses
9996         <winsock2.h>, include that header before defining DATADIR.
9998 2019-07-28  Bruno Haible  <bruno@clisp.org>
10000         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
10001         * tests/test-mbrtowc.c (main): Fix expected value of wc.
10003 2019-07-24  Bruno Haible  <bruno@clisp.org>
10005         pthread-h: Fix definitions of types and macros on mingw.
10006         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
10007         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
10008         not in use.
10009         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
10010         'pthread-once' is not in use.
10011         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
10012         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
10013         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
10014         in use.
10015         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
10016         Define also when module 'pthread-rwlock' is not in use.
10017         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
10018         also when module 'pthread-cond' is not in use.
10019         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
10020         'pthread-tss' is not in use.
10021         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
10022         use.
10024 2019-07-24  Simon Josefsson  <simon@josefsson.org>
10026         crypto/gc: Cope with libgcrypt without SM3.
10027         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
10029 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
10031         backupfile: fix resource leak on memory failure
10032         Problem found by Coverity (CID 1484214).
10033         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
10035 2019-07-22  Bruno Haible  <bruno@clisp.org>
10037         Avoid missing-declarations warning in various tests.
10038         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
10039         test6, test_optional, test7, test8, test9, test10, test11, test12,
10040         test13, test14, test15, test_fun): Declare static.
10041         * tests/test-cnd.c (test_cnd_wait): Likewise.
10042         * tests/test-cond.c (test_cond): Likewise.
10044 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
10046         pthread tests: Avoid missing-declarations warning.
10047         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
10049 2019-07-19  Bruno Haible  <bruno@clisp.org>
10051         parse-datetime: Avoid warnings from bison versions >= 3.3.
10052         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
10053         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
10055 2019-07-19  Bruno Haible  <bruno@clisp.org>
10057         parse-datetime: Require Bison 2.4 or newer.
10058         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
10059         Code taken from gettext's intl.m4.
10060         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
10061         of YACC.
10063 2019-07-19  Bruno Haible  <bruno@clisp.org>
10065         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
10066         * lib/areadlink-with-size.c: Include <string.h>.
10067         * lib/areadlinkat-with-size.c: Likewise.
10068         * lib/xgethostname.c: Likewise.
10069         * lib/xgetdomainname.c: Likewise.
10071 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
10073         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
10074         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
10075         "%pure-parser".  The former is available since Bison 2.3b (2008),
10076         while the latter is marked as obsolete since version 3.4 (May 2019).
10078 2019-07-16  Bruno Haible  <bruno@clisp.org>
10080         update-copyright: Make it work again (regression from 2019-06-15).
10081         Reported by Brian C. Lane <bcl@redhat.com>.
10082         * build-aux/update-copyright: Add back the -0777, -p, -i options.
10084 2019-07-14  Bruno Haible  <bruno@clisp.org>
10086         doc: Update info about <pthread.h>.
10087         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
10088         of 'pthread'.
10090 2019-07-14  Bruno Haible  <bruno@clisp.org>
10092         pthread_sigmask tests: Use new multithread modules.
10093         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
10094         glthread/thread.h.
10095         (main_thread, killer_thread): Change type to pthread_t.
10096         (main): Update accordingly.
10097         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
10098         thread.
10100 2019-07-14  Bruno Haible  <bruno@clisp.org>
10102         pthread-tss: Add tests.
10103         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
10104         tests/test-tss.c.
10105         * modules/pthread-tss-tests: New file.
10107 2019-07-14  Bruno Haible  <bruno@clisp.org>
10109         pthread-cond: Add tests.
10110         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
10111         tests/test-cnd.c.
10112         * modules/pthread-cond-tests: New file.
10114 2019-07-14  Bruno Haible  <bruno@clisp.org>
10116         pthread-rwlock: Add tests.
10117         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
10118         * modules/pthread-rwlock-tests: New file.
10120 2019-07-14  Bruno Haible  <bruno@clisp.org>
10122         pthread-mutex: Add tests.
10123         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
10124         tests/test-mtx.c.
10125         * modules/pthread-mutex-tests: New file.
10127 2019-07-14  Bruno Haible  <bruno@clisp.org>
10129         pthread-once: Add tests.
10130         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
10131         tests/test-call_once.c.
10132         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
10133         tests/test-mtx.c.
10134         * modules/pthread-once-tests: New file.
10136 2019-07-14  Bruno Haible  <bruno@clisp.org>
10138         pthread-thread: Add tests.
10139         * tests/test-pthread-thread.c: New file, based on
10140         tests/test-thread_create.c and tests/test-thrd_create.c.
10141         * modules/pthread-thread-tests: New file.
10143 2019-07-14  Bruno Haible  <bruno@clisp.org>
10145         pthread: Turn into a convenience module.
10146         * lib/pthread.in.h: Remove declarations for extern inline functions.
10147         * lib/pthread.c: Remove file.
10148         * modules/pthread (Files): Remove it.
10149         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
10150         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
10151         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
10152         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
10153         GNULIB_PTHREAD.
10154         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
10156 2019-07-14  Bruno Haible  <bruno@clisp.org>
10158         pthread-spin: New module.
10159         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
10160         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
10161         inline definitions.
10162         * lib/pthread-spin.c: New file.
10163         * m4/pthread-spin.m4: New file.
10164         * modules/pthread-spin: New file.
10165         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
10166         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
10167         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
10168         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
10169         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
10171 2019-07-14  Bruno Haible  <bruno@clisp.org>
10173         pthread-tss: New module.
10174         * lib/pthread-tss.c: New file.
10175         * m4/pthread-tss.m4: New file.
10176         * modules/pthread-tss: New file.
10177         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
10178         * doc/posix-functions/pthread_setspecific.texi: Likewise.
10179         * doc/posix-functions/pthread_getspecific.texi: Likewise.
10180         * doc/posix-functions/pthread_key_delete.texi: Likewise.
10182 2019-07-14  Bruno Haible  <bruno@clisp.org>
10184         pthread-cond: New module.
10185         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
10186         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
10187         * lib/pthread-cond.c: New file.
10188         * m4/pthread-cond.m4: New file.
10189         * modules/pthread-cond: New file.
10190         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
10191         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
10192         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
10193         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
10194         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
10195         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
10196         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
10197         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
10199 2019-07-14  Bruno Haible  <bruno@clisp.org>
10201         pthread-rwlock: New module.
10202         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
10203         * m4/pthread-rwlock.m4: New file.
10204         * modules/pthread-rwlock: New file.
10205         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
10206         and the Android problem.
10207         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
10208         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
10209         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
10210         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
10211         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
10212         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
10213         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
10214         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
10215         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
10216         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
10218 2019-07-14  Bruno Haible  <bruno@clisp.org>
10220         pthread-mutex: New module.
10221         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
10222         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
10223         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
10224         pthread_mutex_unlock): Remove inline definitions.
10225         * lib/pthread-mutex.c: New file.
10226         * m4/pthread-mutex.m4: New file.
10227         * modules/pthread-mutex: New file.
10228         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
10229         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
10230         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
10231         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
10232         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10233         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10234         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
10235         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
10236         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
10237         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
10238         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
10239         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
10241 2019-07-14  Bruno Haible  <bruno@clisp.org>
10243         pthread-once: New module.
10244         * lib/pthread-once.c: New file.
10245         * m4/pthread-once.m4: New file.
10246         * modules/pthread-once: New file.
10247         * doc/posix-functions/pthread_once.texi: Mention the new module.
10249 2019-07-14  Bruno Haible  <bruno@clisp.org>
10251         pthread-thread: New module.
10252         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
10253         inline definitions.
10254         * lib/pthread-thread.c: New file.
10255         * m4/pthread-thread.m4: New file.
10256         * modules/pthread-thread: New file.
10257         * doc/posix-functions/pthread_create.texi: Mention the new module.
10258         * doc/posix-functions/pthread_attr_init.texi: Likewise.
10259         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
10260         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
10261         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
10262         * doc/posix-functions/pthread_self.texi: Likewise.
10263         * doc/posix-functions/pthread_equal.texi: Likewise.
10264         * doc/posix-functions/pthread_detach.texi: Likewise.
10265         * doc/posix-functions/pthread_join.texi: Likewise.
10266         * doc/posix-functions/pthread_exit.texi: Likewise.
10268 2019-07-14  Bruno Haible  <bruno@clisp.org>
10270         pthread-h: Prepare for adding new modules.
10271         * lib/pthread.in.h: Define the types and macros for each of the
10272         facilities separately.
10273         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
10274         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
10275         HAVE_PTHREAD_PROCESS_SHARED.
10276         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
10277         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
10278         HAVE_PTHREAD_PROCESS_SHARED.
10279         * modules/pthread-h (Makefile.am): Substitute
10280         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
10281         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
10283 2019-07-14  Bruno Haible  <bruno@clisp.org>
10285         pthread-h: Add declarations of essential pthread functions.
10286         * lib/pthread.in.h: Include snippets.
10287         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
10288         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
10289         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
10290         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
10291         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
10292         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
10293         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
10294         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
10295         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
10296         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
10297         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
10298         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
10299         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
10300         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
10301         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
10302         pthread_key_create, pthread_setspecific, pthread_getspecific,
10303         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
10304         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
10305         declarations.
10306         (pthread_mutex_timedlock): Move declaration.
10307         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
10308         declared.
10309         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
10310         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
10311         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
10312         HAVE_* and REPLACE_* variables for the new functions.
10313         * modules/pthread-h (Depends-on): Add snippet/c++defs,
10314         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
10315         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
10316         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
10317         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
10318         variables for the new functions. Split the sed script, to avoid the
10319         limit of 99 commands of HP-UX sed.
10320         * tests/test-pthread-c++.cc: Check the signature of the new functions.
10322 2019-07-14  Bruno Haible  <bruno@clisp.org>
10324         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
10325         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
10326         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
10327         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
10328         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
10329         * modules/pthread-h (Depends-on): Add threadlib.
10330         (Link): Change to $(LIBTHREAD).
10331         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
10332         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
10334 2019-07-14  Bruno Haible  <bruno@clisp.org>
10336         pthread-h: Add C++ tests.
10337         * tests/test-pthread-c++.cc: New file.
10338         * modules/pthread-h-c++-tests: New file.
10340 2019-07-14  Bruno Haible  <bruno@clisp.org>
10342         pthread-h: Add tests.
10343         * tests/test-pthread.c: New file.
10344         * modules/pthread-h-tests: New file.
10346 2019-07-14  Bruno Haible  <bruno@clisp.org>
10348         pthread-h: New module.
10349         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
10350         is 1.
10351         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
10352         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
10353         <pthread.h> pollutes the namespace; instead, prepare for generating a
10354         pthread.h always. Substitute HAVE_PTHREAD_H here.
10355         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
10356         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
10357         * modules/pthread-h: New file, based on modules/pthread.
10358         * modules/pthread: Rely on 'pthread-h'.
10359         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
10360         Update.
10361         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
10362         pthread.
10364 2019-07-14  Bruno Haible  <bruno@clisp.org>
10366         sched_yield: New module.
10367         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
10368         (sched_yield): New declaration.
10369         * lib/sched_yield.c: New file.
10370         * m4/sched_yield.m4: New file.
10371         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
10372         provide a replacement sched.h always. Test whether sched_yield is
10373         declared.
10374         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
10375         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
10376         (Makefile.am): Provide a replacement sched.h always. Substitute
10377         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
10378         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
10379         * modules/sched_yield: New file.
10380         * doc/posix-functions/sched_yield.texi: Mention the new module.
10382 2019-07-14  Bruno Haible  <bruno@clisp.org>
10384         windows-spin: New module.
10385         * lib/windows-spin.h: New file.
10386         * lib/windows-spin.c: New file.
10387         * modules/windows-spin: New file.
10389 2019-07-14  Bruno Haible  <bruno@clisp.org>
10391         windows-timedrwlock: New module.
10392         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
10393         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
10394         windows-cond.c.
10395         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
10396         redefinition conflict with windows-timedrwlock.h.
10397         * modules/windows-timedrwlock: New file.
10399 2019-07-14  Bruno Haible  <bruno@clisp.org>
10401         windows-rwlock: New module.
10402         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
10403         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
10404         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
10405         windows-initguard.h.
10406         (gl_rwlock_t): Define using glwthread_rwlock_t.
10407         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
10408         (glthread_rwlock_init): Define using glwthread_rwlock_init.
10409         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
10410         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
10411         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
10412         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
10413         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
10414         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
10415         glthread_rwlock_destroy_func): Remove declarations.
10416         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
10417         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
10418         gl_waitqueue_notify_all, glthread_rwlock_init_func,
10419         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
10420         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
10421         functions.
10422         * modules/windows-rwlock: New file.
10423         * modules/lock (Depends-on): Add windows-rwlock.
10425 2019-07-14  Bruno Haible  <bruno@clisp.org>
10427         windows-thread: Add support for creating a thread in detached state.
10428         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
10429         (glwthread_thread_create): Add attr argument.
10430         * lib/windows-thread.c (glwthread_thread_create): Likewise.
10431         * lib/glthread/thread.h (glthread_create): Update.
10432         * lib/thrd.c (thrd_create): Update.
10434 2019-07-14  Bruno Haible  <bruno@clisp.org>
10436         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
10437         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
10438         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
10439         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
10440         * lib/windows-mutex.h: Update.
10441         * lib/windows-recmutex.h: Likewise.
10442         * lib/windows-timedmutex.h: Likewise.
10443         * lib/windows-timedrecmutex.h: Likewise.
10444         * lib/windows-cond.h: Likewise.
10445         * lib/glthread/lock.h: Likewise.
10446         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
10447         lib/windows-spinlock.h.
10448         * modules/windows-recmutex (Files): Likewise.
10449         * modules/windows-timedmutex (Files): Likewise.
10450         * modules/windows-timedrecmutex (Files): Likewise.
10451         * modules/windows-cond (Files): Likewise.
10452         * modules/threads-h (Files): Likewise.
10454 2019-07-14  Bruno Haible  <bruno@clisp.org>
10456         doc: Fix info about pthread API in HP-UX.
10457         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
10459 2019-07-14  Bruno Haible  <bruno@clisp.org>
10461         threads-h: Fix generation of threads.h.
10462         * modules/threads-h (Makefile.am): Insert the required header file
10463         snippets.
10465 2019-07-09  Bruno Haible  <bruno@clisp.org>
10467         striconveh test: Fix a compilation failure when iconv is not available.
10468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10469         * tests/test-striconveh.c (main): Move iconv_close invocations inside
10470         HAVE_ICONV.
10472 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
10474         argmatch: adjust columns for help2man.
10475         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
10476         requires column 20 or more, return 20.
10478 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10480         areadlink-with-size: avoid realloc when size==0
10481         * lib/areadlink-with-size.c (areadlink_with_size):
10482         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
10483         Reallocate at the end to the actual size, to avoid memory waste,
10484         as suggested by Bruno Haible.  But when the guessed size is zero -
10485         useful when the size is unknown - do the initial small readlink
10486         into the stack, to avoid that realloc in the usual case.
10488 2019-07-06  Pádraig Brady  <P@draigBrady.com>
10490         areadlink-with-size: guess a buffer size with 0 size
10491         The size is usually taken from st_size, which can be zero,
10492         resulting in inefficient operation.
10493         Instead let zero select an initial memory allocation
10494         of 128 bytes, which most symlinks fit within.
10495         * lib/areadlink-with-size.c (areadlink_with_size):
10496         Start with a 128 byte buffer, for SIZE == 0.
10497         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
10499 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
10501         Replace manually crafted hex regexes with [:xdigit:]
10502         * build-aux/gitlog-to-changelog (parse_amend_file)
10503         (git_dir_option):
10504         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
10505         This patch is backported from Emacs (Bug#36167).
10507 2019-07-06  Bruno Haible  <bruno@clisp.org>
10509         error: Fix documentation.
10510         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
10511         module provides.
10512         * doc/glibc-functions/error_message_count.texi: Likewise.
10513         * doc/glibc-functions/error_one_per_line.texi: Likewise.
10514         * doc/glibc-functions/error_print_progname.texi: Likewise.
10516 2019-07-06  Bruno Haible  <bruno@clisp.org>
10518         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
10519         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
10520         and older is unsupported.
10521         * doc/**/*.texi: Update.
10523 2019-07-06  Bruno Haible  <bruno@clisp.org>
10525         doc: Remove documentation of Linux libc5 as a supported platform.
10526         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
10527         to Linux libc5.
10528         * doc/posix-functions/iswalpha.texi: Likewise.
10529         * doc/posix-functions/iswblank.texi: Likewise.
10530         * doc/posix-functions/iswcntrl.texi: Likewise.
10531         * doc/posix-functions/iswdigit.texi: Likewise.
10532         * doc/posix-functions/iswgraph.texi: Likewise.
10533         * doc/posix-functions/iswlower.texi: Likewise.
10534         * doc/posix-functions/iswprint.texi: Likewise.
10535         * doc/posix-functions/iswpunct.texi: Likewise.
10536         * doc/posix-functions/iswspace.texi: Likewise.
10537         * doc/posix-functions/iswupper.texi: Likewise.
10538         * doc/posix-functions/iswxdigit.texi: Likewise.
10539         * doc/posix-functions/snprintf.texi: Likewise.
10540         * doc/posix-functions/vsnprintf.texi: Likewise.
10542 2019-07-06  Bruno Haible  <bruno@clisp.org>
10544         doc: Remove documentation of Tandem/NSK as a supported platform.
10545         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
10546         Tandem/NSK.
10547         * doc/**/*.texi: Update.
10549 2019-07-06  Bruno Haible  <bruno@clisp.org>
10551         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
10552         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
10553         and older is unsupported.
10554         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
10555         Mac OS X 10.4 and older.
10556         * doc/posix-functions/asinl.texi: Likewise.
10557         * doc/posix-functions/atanl.texi: Likewise.
10558         * doc/posix-functions/cosl.texi: Likewise.
10559         * doc/posix-functions/expl.texi: Likewise.
10560         * doc/posix-functions/frexpl.texi: Likewise.
10561         * doc/posix-functions/gettimeofday.texi: Likewise.
10562         * doc/posix-functions/logl.texi: Likewise.
10563         * doc/posix-functions/mkstemp.texi: Likewise.
10564         * doc/posix-functions/sinl.texi: Likewise.
10565         * doc/posix-functions/sqrtl.texi: Likewise.
10566         * doc/posix-functions/tanl.texi: Likewise.
10567         * doc/posix-functions/wcswidth.texi: Likewise.
10568         * doc/**/*.texi: Update.
10570 2019-07-06  Bruno Haible  <bruno@clisp.org>
10572         doc: Remove documentation of AIX 4 as a supported platform.
10573         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
10574         unsupported.
10575         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
10576         workarounds.
10577         * doc/posix-functions/strnlen.texi: Likewise.
10578         * doc/posix-headers/inttypes.texi: Likewise.
10579         * doc/**/*.texi: Update.
10581 2019-07-06  Bruno Haible  <bruno@clisp.org>
10583         doc: Remove documentation of HP-UX 10 as a supported platform.
10584         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
10585         unsupported.
10586         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
10587         workarounds.
10588         * doc/posix-functions/gmtime_r.texi: Likewise.
10589         * doc/posix-functions/localtime_r.texi: Likewise.
10590         * doc/posix-functions/mkstemp.texi: Likewise.
10591         * doc/**/*.texi: Update.
10593 2019-07-06  Bruno Haible  <bruno@clisp.org>
10595         doc: Remove documentation of Interix 3.5 as a supported platform.
10596         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
10597         unsupported.
10598         * doc/posix-functions/select.texi: Don't mention Interix specific
10599         workarounds.
10600         * doc/posix-headers/signal.texi: Likewise.
10601         * doc/**/*.texi: Update.
10603 2019-07-06  Bruno Haible  <bruno@clisp.org>
10605         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
10606         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
10607         unsupported.
10608         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
10609         workarounds.
10610         * doc/posix-functions/nl_langinfo.texi: Likewise.
10611         * doc/posix-functions/remainder.texi: Likewise.
10612         * doc/posix-functions/towlower.texi: Likewise.
10613         * doc/posix-functions/towupper.texi: Likewise.
10614         * doc/posix-functions/vsnprintf.texi: Likewise.
10615         * doc/posix-functions/wcscat.texi: Likewise.
10616         * doc/posix-functions/wcschr.texi: Likewise.
10617         * doc/posix-functions/wcscmp.texi: Likewise.
10618         * doc/posix-functions/wcscpy.texi: Likewise.
10619         * doc/posix-functions/wcscspn.texi: Likewise.
10620         * doc/posix-functions/wcslen.texi: Likewise.
10621         * doc/posix-functions/wcsncat.texi: Likewise.
10622         * doc/posix-functions/wcsncmp.texi: Likewise.
10623         * doc/posix-functions/wcsncpy.texi: Likewise.
10624         * doc/posix-functions/wcspbrk.texi: Likewise.
10625         * doc/posix-functions/wcsrchr.texi: Likewise.
10626         * doc/posix-functions/wcsspn.texi: Likewise.
10627         * doc/posix-headers/langinfo.texi: Likewise.
10628         * doc/posix-headers/signal.texi: Likewise.
10629         * doc/posix-headers/wchar.texi: Likewise.
10630         * doc/posix-headers/wctype.texi: Likewise.
10631         * doc/**/*.texi: Update.
10633 2019-07-05  Bruno Haible  <bruno@clisp.org>
10635         doc: Remove documentation of OSF/1 as supported platform.
10636         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
10637         unsupported.
10638         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
10639         workarounds.
10640         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
10641         * doc/glibc-functions/ptsname_r.texi: Likewise.
10642         * doc/posix-functions/ceil.texi: Likewise.
10643         * doc/posix-functions/ceilf.texi: Likewise.
10644         * doc/posix-functions/ceill.texi: Likewise.
10645         * doc/posix-functions/fchdir.texi: Likewise.
10646         * doc/posix-functions/floor.texi: Likewise.
10647         * doc/posix-functions/floorf.texi: Likewise.
10648         * doc/posix-functions/fmod.texi: Likewise.
10649         * doc/posix-functions/fmodf.texi: Likewise.
10650         * doc/posix-functions/fmodl.texi: Likewise.
10651         * doc/posix-functions/log.texi: Likewise.
10652         * doc/posix-functions/logf.texi: Likewise.
10653         * doc/posix-functions/logl.texi: Likewise.
10654         * doc/posix-functions/log10.texi: Likewise.
10655         * doc/posix-functions/log10f.texi: Likewise.
10656         * doc/posix-functions/log10l.texi: Likewise.
10657         * doc/posix-functions/log2.texi: Likewise.
10658         * doc/posix-functions/log2f.texi: Likewise.
10659         * doc/posix-functions/log2l.texi: Likewise.
10660         * doc/posix-functions/mbrtowc.texi: Likewise.
10661         * doc/posix-functions/recv.texi: Likewise.
10662         * doc/posix-functions/recvfrom.texi: Likewise.
10663         * doc/posix-functions/remainder.texi: Likewise.
10664         * doc/posix-functions/remainderf.texi: Likewise.
10665         * doc/posix-functions/remainderl.texi: Likewise.
10666         * doc/posix-functions/round.texi: Likewise.
10667         * doc/posix-functions/roundf.texi: Likewise.
10668         * doc/posix-functions/roundl.texi: Likewise.
10669         * doc/posix-functions/send.texi: Likewise.
10670         * doc/posix-functions/sendto.texi: Likewise.
10671         * doc/posix-functions/setenv.texi: Likewise.
10672         * doc/posix-functions/snprintf.texi: Likewise.
10673         * doc/posix-functions/tcgetsid.texi: Likewise.
10674         * doc/posix-functions/trunc.texi: Likewise.
10675         * doc/posix-functions/truncf.texi: Likewise.
10676         * doc/posix-functions/truncl.texi: Likewise.
10677         * doc/posix-functions/ttyname_r.texi: Likewise.
10678         * doc/posix-functions/unsetenv.texi: Likewise.
10679         * doc/posix-functions/wcsrtombs.texi: Likewise.
10680         * doc/posix-headers/sys_select.texi: Likewise.
10681         * doc/posix-headers/wchar.texi: Likewise.
10682         * doc/posix-headers/wctype.texi: Likewise.
10683         * doc/**/*.texi: Update.
10685 2019-07-05  Bruno Haible  <bruno@clisp.org>
10687         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
10688         * doc/**/*.texi: Update.
10690 2019-07-05  Bruno Haible  <bruno@clisp.org>
10692         doc: Remove documentation of Solaris 8 and older as supported platforms.
10693         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
10694         unsupported.
10695         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
10696         workarounds.
10697         * doc/posix-functions/memcmp.texi: Likewise.
10698         * doc/posix-functions/rename.texi: Likewise.
10699         * doc/posix-functions/tzset.texi: Likewise.
10700         * doc/posix-headers/wctype.texi: Likewise.
10701         * doc/**/*.texi: Update.
10703 2019-07-05  Bruno Haible  <bruno@clisp.org>
10705         doc: Remove documentation of Interix 3.5 as a supported platform.
10706         * doc/**/*.texi: Update.
10708 2019-07-05  Bruno Haible  <bruno@clisp.org>
10710         doc: Remove documentation of BeOS as a supported platform.
10711         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
10712         unsupported.
10713         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
10714         * doc/posix-functions/getdelim.texi: Likewise.
10715         * doc/**/*.texi: Update.
10717 2019-07-05  Bruno Haible  <bruno@clisp.org>
10719         thread, lock, cond, tls: Remove support for Pth threads.
10720         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10721         --enable-threads=pth any more.
10722         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
10723         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
10724         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
10725         threads and ISO C11 threads.
10726         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
10727         * lib/glthread/lock.h: Likewise.
10728         * lib/glthread/lock.c: Likewise.
10729         * lib/glthread/cond.h: Likewise.
10730         * lib/glthread/cond.c: Likewise.
10731         * lib/glthread/tls.h: Likewise.
10732         * lib/glthread/tls.c: Likewise.
10733         * lib/glthread/yield.h: Likewise.
10734         * lib/regex_internal.h: Likewise.
10735         * tests/test-thread_create.c: Likewise.
10736         * tests/test-lock.c: Likewise.
10737         * tests/test-cond.c: Likewise.
10738         * tests/test-tls.c: Likewise.
10739         * tests/test-rwlock1.c: Don't include glthread/yield.h.
10740         (main): Sleep without calling gl_thread_yield.
10742 2019-07-05  Bruno Haible  <bruno@clisp.org>
10744         thread, lock, cond, tls: Remove support for old Solaris threads.
10745         Solaris >= 2.5.1 has POSIX threads.
10746         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10747         --enable-threads=solaris any more.
10748         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
10749         * lib/glthread/thread.c: Update comment.
10750         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
10751         * lib/glthread/lock.h: Likewise.
10752         * lib/glthread/lock.c: Likewise.
10753         * lib/glthread/cond.h: Likewise.
10754         * lib/glthread/cond.c: Likewise.
10755         * lib/glthread/tls.h: Likewise.
10756         * lib/glthread/tls.c: Likewise.
10757         * lib/glthread/yield.h: Likewise.
10758         * lib/regex_internal.h: Likewise.
10759         * tests/test-thread_create.c: Likewise.
10760         * tests/test-lock.c: Likewise.
10761         * tests/test-cond.c: Likewise.
10762         * tests/test-tls.c: Likewise.
10764 2019-07-05  Bruno Haible  <bruno@clisp.org>
10766         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
10767         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
10768         needed size is equal to the allocated size.
10769         * lib/getcwd.c (__getcwd): Likewise.
10771 2019-07-05  Bruno Haible  <bruno@clisp.org>
10773         xgetdomainname: Don't return an excessive memory allocation.
10774         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
10775         before returning it.
10777 2019-07-05  Bruno Haible  <bruno@clisp.org>
10779         xgethostname: Don't return an excessive memory allocation.
10780         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
10781         returning it.
10783 2019-07-05  Bruno Haible  <bruno@clisp.org>
10785         areadlinkat-with-size: Don't return an excessive memory allocation.
10786         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
10787         before returning it.
10789 2019-07-05  Bruno Haible  <bruno@clisp.org>
10791         areadlink-with-size: Don't return an excessive memory allocation.
10792         Reported by Andreas Dilger <adilger@whamcloud.com>.
10793         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
10794         before returning it.
10796 2019-07-03  Bruno Haible  <bruno@clisp.org>
10798         renameatu: Fix test failure on MSVC.
10799         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
10800         empty string.
10802 2019-07-03  Bruno Haible  <bruno@clisp.org>
10804         mbrtowc: Fix invalid use of mbtowc() on MSVC.
10805         * lib/mbrtowc.c: Include glthread/lock.h.
10806         (mbtowc_lock): New variable.
10807         (mbrtowc): Treat UTF-8 encoding without locking. For the other
10808         encodings, explicitly reset the internal state of mbtowc, and protect
10809         this through a lock.
10810         * modules/mbrtowc (Depends-on): Add lock.
10812 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
10814         argmatch: don't define _ in the header.
10815         Reported by Jim Meyering.
10816         * lib/argmatch.h (N_, _): Don't define.
10817         Use gettext instead.
10818         * lib/argmatch.h (_): Define.
10819         * tests/test-argmatch.c (N_): Define.
10821 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10823         verify: document ‘assume’ better
10824         * lib/verify.h: Reword doc (Bug#36370).
10826 2019-07-02  Bruno Haible  <bruno@clisp.org>
10828         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
10829         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
10830         "CPutf8".
10831         * lib/nl_langinfo.c (ctype_codeset): Likewise.
10833 2019-07-02  Bruno Haible  <bruno@clisp.org>
10835         getcwd: Fix crash when invoked with size = 0 on MSVC.
10836         * lib/getcwd.c: Include msvc-inval.h.
10837         (getcwd_nothrow): New function/macro.
10838         (getcwd_system): New macro.
10839         (__getcwd): Use it instead of getcwd.
10840         * modules/getcwd (Depends-on): Add msvc-inval.
10841         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
10843 2019-07-02  Bruno Haible  <bruno@clisp.org>
10845         nonblocking-pipe tests: Fix test failure on MSVC.
10846         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
10847         native Windows.
10849 2019-07-02  Bruno Haible  <bruno@clisp.org>
10851         usleep: Implement with millisecond resolution on native Windows.
10852         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
10853         * doc/pastposix-functions/usleep.texi: Update accordingly.
10855 2019-07-02  Bruno Haible  <bruno@clisp.org>
10857         lstat tests: Fix test failure on MSVC.
10858         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
10859         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10861 2019-07-02  Bruno Haible  <bruno@clisp.org>
10863         stat tests: Fix test failure on MSVC.
10864         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
10865         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10867 2019-07-02  Bruno Haible  <bruno@clisp.org>
10869         getaddrinfo tests: Fix test failure on MSVC.
10870         * tests/test-getaddrinfo.c: Include sockets.h.
10871         (main): Invoke gl_sockets_startup.
10872         * modules/getaddrinfo-tests (Depends-on): Add sockets.
10874 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
10876         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
10877         * lib/poll.c: Call Windows native select() with Windows native timeval.
10879 2019-06-30  Bruno Haible  <bruno@clisp.org>
10881         argmatch: Fix compilation errors.
10882         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
10883         * tests/test-argmatch.c (main): Update after last-minute function names
10884         change.
10886 2019-06-30  Bruno Haible  <bruno@clisp.org>
10888         Include <stdlib.h> when needed.
10889         * lib/cnd.c: Include <stdlib.h>, needed for abort().
10890         * lib/fcntl.c: Likewise.
10891         * lib/mbscasestr.c: Likewise.
10892         * lib/mbssep.c: Likewise.
10893         * lib/mbsstr.c: Likewise.
10894         * lib/openat.c: Include <stdlib.h>, needed for free().
10895         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10896         abort().
10898 2019-06-30  Bruno Haible  <bruno@clisp.org>
10900         Include <stdlib.h> when needed.
10901         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10902         * lib/faccessat.c: Likewise.
10903         * lib/fchmodat.c: Likewise.
10904         * lib/fchownat.c: Likewise.
10905         * lib/fstatat.c: Likewise.
10906         * lib/mkfifoat.c: Likewise.
10907         * lib/mknodat.c: Likewise.
10908         * lib/readlinkat.c: Likewise.
10909         * lib/symlinkat.c: Likewise.
10910         * lib/utimensat.c: Likewise.
10911         * lib/mkdirat.c: Likewise. Include also the specification header.
10913 2019-06-30  Bruno Haible  <bruno@clisp.org>
10915         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10916         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10917         from gl_PREREQ_SYS_H_SOCKET.
10918         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10919         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10920         gl_PREREQ_SYS_H_WS2TCPIP.
10921         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10922         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10923         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10925 2019-06-30  Bruno Haible  <bruno@clisp.org>
10927         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10928         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10929         REPLACE_INET_NTOP to 1 always.
10930         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10931         REPLACE_INET_PTON to 1 always.
10933 2019-06-30  Bruno Haible  <bruno@clisp.org>
10935         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10936         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10937         not REPLACE_INET_NTOP.
10939 2019-06-30  Bruno Haible  <bruno@clisp.org>
10941         poll: Add comment.
10942         * lib/poll.c: Add comment about WSAPoll.
10944 2019-06-30  Bruno Haible  <bruno@clisp.org>
10946         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10947         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10948         * lib/poll.in.h: Include <winsock2.h>.
10949         (POLL*, pollfd): Override on native Windows.
10950         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10951         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10952         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10954 2019-06-28  Bruno Haible  <bruno@clisp.org>
10956         accept4: Fix compilation error on OpenIndiana.
10957         Reported by Michal Nowak <mnowak@startmail.com>
10958         via Mark H Weaver <mhw@netris.org>.
10959         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10960         whether it exists as a function.
10962 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10964         strverscmp: sync from glibc
10965         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10966         comments, include libc-config.h, define __strverscmp to be
10967         strverscmp, and don’t assume types line uint8_t and int8_t that
10968         that C99 doesn’t guarantee.
10969         [!_LIBC]: Include libc-config.h; define __strverscmp.
10970         Include stdint.h.
10971         (__strverscmp): Assume C99.  Use uint_least8_t
10972         and int_least8_t instead of unsigned char and signed char.
10973         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10975 2019-06-25  Bruno Haible  <bruno@clisp.org>
10977         tss tests: Add tests for destructors and races.
10978         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10979         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10980         functions.
10981         (main): Invoke them.
10982         * modules/tls-tests (Depends-on): Add mtx.
10984 2019-06-25  Bruno Haible  <bruno@clisp.org>
10986         tls tests: Add tests for destructors and races.
10987         * tests/test-tls.c: Include glthread/lock.h.
10988         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10989         functions.
10990         (main): Invoke them.
10991         * modules/tls-tests (Depends-on): Add lock.
10993 2019-06-25  Bruno Haible  <bruno@clisp.org>
10995         windows-tls: Implement TLS key destructors for native Windows.
10996         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10997         declaration.
10998         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10999         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
11000         (dtor_table_init_once, dtor_table_lock: New variables.
11001         (struct dtor): New type.
11002         (dtor_table, dtors_count, dtors_used, dtors_allocated,
11003         dtor_processing_threads): New variables.
11004         (dtor_table_initialize, dtor_table_ensure_initialized,
11005         dtor_table_shrink_used, glwthread_tls_process_destructors): New
11006         functions.
11007         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
11008         handle non-NULL destructors.
11009         * modules/windows-tls (Depends-on): Add windows-once.
11010         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
11011         Use the functions declared in windows-tls.h.
11012         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
11013         GLWTHREAD_DESTRUCTOR_ITERATIONS.
11014         * lib/windows-thread.c: Include windows-tls.h.
11015         (wrapper_func, glwthread_thread_exit): Invoke
11016         glwthread_tls_process_destructors.
11017         * modules/windows-thread (Depends-on): Add windows-tls.
11019 2019-06-25  Bruno Haible  <bruno@clisp.org>
11021         threadlib: Avoid autoconf warning "was expanded before it was required".
11022         * modules/threadlib (configure.ac): Require gl_THREADLIB.
11024 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
11026         argmatch: remove duplicate const qualifier
11027         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
11029 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11031         unistd: stddef.h and sys/types.h namespace cleanup
11032         * lib/unistd.in.h [__GLIBC__]:
11033         Do not include stddef.h or sys/types.h.
11034         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
11035         supposed to declare off_t and ssize_t.  Problem found when looking
11036         at why @GNULIB_PWRITE@ was different from the newly-added
11037         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
11039 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
11041         maintainer-makefile: restore portability to non-GNU awks
11042         Reported by Tim Rühsen.
11043         * top/maint.mk (AWK): New variable.  Use it.
11044         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
11046 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11048         Document setvbuf _IOLBF problem
11049         * doc/posix-functions/setvbuf.texi (setvbuf):
11050         Document MS-Windows portability problem with _IOLBF.
11052         Document lseek SEEK_DATA/SEEK_HOLE
11053         * doc/posix-functions/lseek.texi (lseek):
11054         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
11056 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
11058         argmatch: put all the docs member last.
11059         Reported by Bruno Haible.
11060         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
11061         member before the docs done.
11062         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
11064 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
11066         argmatch: add support to generate the usage message.
11067         * lib/argmatch.c: Move some #includes and gettext support to...
11068         * lib/argmatch.h: here.
11069         (ARGMATCH_DEFINE_GROUP): New macro.
11070         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
11071         (argmatch_backup_group): New.
11072         (CHECK): New.
11073         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
11074         argmatch_backup_argument and argmatch_backup_usage.
11075         * modules/argmatch: We depend on c99.
11076         * doc/argmatch.texi (Recognizing Option Arguments): New.
11077         * doc/gnulib.texi: Use it.
11079 2019-06-21  Bruno Haible  <bruno@clisp.org>
11081         thrd: Add comment.
11082         * lib/thrd.c (pthread_main_func): Add comment.
11084 2019-06-21  Bruno Haible  <bruno@clisp.org>
11086         threads-h: Define 'thread_local' if and only if it actually works.
11087         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
11088         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
11089         Oracle Solaris Studio C. Compile a simple program, to see whether
11090         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
11091         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
11092         * lib/threads.in.h (thread_local): Undefine if it does not work.
11093         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
11094         (Link): Mention LIBTHREADLOCAL.
11095         * tests/test-threads.c: Don't check that thread_local is defined.
11096         * tests/test-thread_local.c: New file.
11097         * modules/threads-h-tests (Files): Add it and macros.h.
11098         (Depends-on): Add thrd and stdint.
11099         (configure.ac): Test whether 'alarm' is declared.
11100         (Makefile.am): Arrange to build and link test-thread_local.
11101         * doc/posix-headers/threads.texi: Mention the platforms that don't
11102         support 'thread_local'.
11104 2019-06-20  Bruno Haible  <bruno@clisp.org>
11106         threads-h: Simplify link dependencies.
11107         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
11108         Don't set LTLIBSTDTHREAD.
11109         * modules/thrd (Link): Simplify accordingly.
11110         * modules/mtx (Link): Likewise.
11111         * modules/cnd (Link): Likewise.
11112         * modules/tss (Link): Likewise.
11113         * modules/threads (Link): Likewise.
11115 2019-06-20  Bruno Haible  <bruno@clisp.org>
11117         threads-h: Fix link error on FreeBSD 11.
11118         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
11119         also with -lpthread.
11121 2019-06-20  Bruno Haible  <bruno@clisp.org>
11123         threadlib: Fix typo (regression from today).
11124         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
11126 2019-06-20  Bruno Haible  <bruno@clisp.org>
11128         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
11129         * lib/windows-thread.c: Include <errno.h>.
11130         * lib/windows-tls.c: Likewise.
11132 2019-06-20  Bruno Haible  <bruno@clisp.org>
11134         tss tests: Small improvement.
11135         * tests/test-tss.c (test_tss): Pass a different id to each thread.
11137 2019-06-20  Bruno Haible  <bruno@clisp.org>
11139         threads: New module.
11140         * modules/threads: New file.
11142 2019-06-20  Bruno Haible  <bruno@clisp.org>
11144         tss: Add tests.
11145         * tests/test-tss.c: New file, based on tests/test-tls.c.
11146         * modules/tss-tests: New file.
11148 2019-06-20  Bruno Haible  <bruno@clisp.org>
11150         cnd: Add tests.
11151         * tests/test-cnd.c: New file, based on tests/test-cond.c.
11152         * modules/cnd-tests: New file.
11154 2019-06-20  Bruno Haible  <bruno@clisp.org>
11156         mtx: Add tests.
11157         * tests/test-mtx.c: New file, based on tests/test-lock.c.
11158         * tests/test-call_once.c: New file, based on tests/test-once.c.
11159         * modules/mtx-tests: New file.
11161 2019-06-20  Bruno Haible  <bruno@clisp.org>
11163         thrd: Add tests.
11164         * tests/test-thrd_create.c: New file, based on
11165         tests/test-thread_create.c.
11166         * tests/test-thrd_current.c: New file, based on
11167         tests/test-thread_self.c.
11168         * modules/thrd-tests: New file.
11170 2019-06-20  Bruno Haible  <bruno@clisp.org>
11172         tss: New module.
11173         * lib/tss.c: New file.
11174         * modules/tss: New file.
11175         * doc/posix-functions/tss_create.texi: Mention the new module.
11176         * doc/posix-functions/tss_set.texi: Likewise.
11177         * doc/posix-functions/tss_get.texi: Likewise.
11178         * doc/posix-functions/tss_delete.texi: Likewise.
11180 2019-06-20  Bruno Haible  <bruno@clisp.org>
11182         cnd: New module.
11183         * lib/cnd.c: New file.
11184         * modules/cnd: New file.
11185         * doc/posix-functions/cnd_init.texi: Mention the new module.
11186         * doc/posix-functions/cnd_wait.texi: Likewise.
11187         * doc/posix-functions/cnd_timedwait.texi: Likewise.
11188         * doc/posix-functions/cnd_signal.texi: Likewise.
11189         * doc/posix-functions/cnd_broadcast.texi: Likewise.
11190         * doc/posix-functions/cnd_destroy.texi: Likewise.
11192 2019-06-20  Bruno Haible  <bruno@clisp.org>
11194         mtx: New module.
11195         * lib/mtx.c: New file.
11196         * modules/mtx: New file.
11197         * doc/posix-functions/call_once.texi: Mention the new module.
11198         * doc/posix-functions/mtx_init.texi: Likewise.
11199         * doc/posix-functions/mtx_lock.texi: Likewise.
11200         * doc/posix-functions/mtx_trylock.texi: Likewise.
11201         * doc/posix-functions/mtx_timedlock.texi: Likewise.
11202         * doc/posix-functions/mtx_unlock.texi: Likewise.
11203         * doc/posix-functions/mtx_destroy.texi: Likewise.
11205 2019-06-20  Bruno Haible  <bruno@clisp.org>
11207         thrd: New module.
11208         * lib/thrd.c: New file.
11209         * m4/thrd.m4: New file.
11210         * modules/thrd: New file.
11211         * doc/posix-functions/thrd_current.texi: Mention the new module.
11212         * doc/posix-functions/thrd_detach.texi: Likewise.
11213         * doc/posix-functions/thrd_equal.texi: Likewise.
11214         * doc/posix-functions/thrd_exit.texi: Likewise.
11215         * doc/posix-functions/thrd_sleep.texi: Likewise.
11216         * doc/posix-functions/thrd_yield.texi: Likewise.
11217         * doc/posix-functions/thrd_create.texi: Mention the new module and the
11218         AIX bug.
11219         * doc/posix-functions/thrd_join.texi: Mention the new module and the
11220         AIX and Solaris bugs.
11222 2019-06-20  Bruno Haible  <bruno@clisp.org>
11224         threads-h: Add tests.
11225         * tests/test-threads.c: New file.
11226         * modules/threads-h-tests: New file.
11227         * tests/test-threads-c++.cc: New file.
11228         * modules/threads-h-c++-tests: New file.
11230 2019-06-20  Bruno Haible  <bruno@clisp.org>
11232         threads-h: New module.
11233         * lib/threads.in.h: New file.
11234         * m4/threads.m4: New file.
11235         * m4/yield.m4 (gl_YIELD): Update comment.
11236         * modules/threads-h: New file.
11237         * modules/yields (configure.ac): Use AC_REQUIRE.
11238         * doc/posix-headers/threads.texi: Mention the new module and the AIX
11239         bugs.
11241 2019-06-20  Bruno Haible  <bruno@clisp.org>
11243         windows-thread: New module.
11244         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
11245         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
11246         * lib/glthread/thread.h: Include windows-thread.h.
11247         (gl_thread_t): Define using glwthread_thread_t.
11248         (glthread_create): Define using glwthread_thread_create.
11249         (glthread_join): Define using glwthread_thread_join.
11250         (gl_thread_self): Define using glwthread_thread_self.
11251         (gl_thread_exit): Define using glwthread_thread_exit.
11252         (glthread_create_func, glthread_join_func, gl_thread_self_func,
11253         gl_thread_exit_func): Remove declarations.
11254         * lib/glthread/thread.c (self_key): Remove variable.
11255         (do_init_self_key, init_self_key): Remove functions.
11256         (struct gl_thread_struct): Remove type.
11257         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
11258         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
11259         functions.
11260         * modules/windows-thread: New file.
11261         * modules/thread (Depends-on): Add windows-thread.
11263 2019-06-20  Bruno Haible  <bruno@clisp.org>
11265         windows-tls: New module.
11266         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
11267         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
11268         * lib/glthread/tls.h: Include windows-tls.h.
11269         (gl_tls_key_t): Define using glwthread_tls_key_t.
11270         * modules/windows-tls: New file.
11271         * modules/tls (Depends-on): Add windows-tls.
11273 2019-06-20  Bruno Haible  <bruno@clisp.org>
11275         windows-cond: New module.
11276         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
11277         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
11278         * lib/glthread/cond.h: Include windows-cond.h.
11279         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
11280         (gl_cond_t): Define using glwthread_cond_t.
11281         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
11282         (glthread_cond_init): Define using glwthread_cond_init.
11283         (glthread_cond_wait): Define using glwthread_cond_wait.
11284         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
11285         (glthread_cond_signal): Define using glwthread_cond_signal.
11286         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
11287         (glthread_cond_destroy): Define using glwthread_cond_destroy.
11288         (glthread_cond_init_func, glthread_cond_wait_func,
11289         glthread_cond_timedwait_func, glthread_cond_signal_func,
11290         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
11291         declarations.
11292         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
11293         types.
11294         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
11295         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
11296         glthread_cond_init_func, glthread_cond_wait_func,
11297         glthread_cond_timedwait_func, glthread_cond_signal_func,
11298         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
11299         functions.
11300         * modules/windows-cond: New file.
11301         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
11303 2019-06-20  Bruno Haible  <bruno@clisp.org>
11305         windows-timedrecmutex: New module.
11306         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
11307         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
11308         * modules/windows-timedrecmutex: New file.
11310 2019-06-20  Bruno Haible  <bruno@clisp.org>
11312         windows-timedmutex: New module.
11313         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
11314         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
11315         * modules/windows-timedmutex: New file.
11317 2019-06-20  Bruno Haible  <bruno@clisp.org>
11319         windows-recmutex: New module.
11320         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
11321         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
11322         * lib/glthread/lock.h: Include windows-recmutex.h.
11323         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
11324         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
11325         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
11326         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
11327         (glthread_recursive_lock_unlock): Define using
11328         glwthread_recmutex_unlock.
11329         (glthread_recursive_lock_destroy): Define using
11330         glwthread_recmutex_destroy.
11331         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
11332         glthread_recursive_lock_unlock_func,
11333         glthread_recursive_lock_destroy_func): Remove declarations.
11334         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
11335         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
11336         glthread_recursive_lock_destroy_func): Remove functions.
11337         * modules/windows-recmutex: New file.
11338         * modules/lock (Depends-on): Add windows-recmutex.
11340 2019-06-20  Bruno Haible  <bruno@clisp.org>
11342         windows-mutex: New module.
11343         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
11344         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
11345         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
11346         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
11347         (gl_spinlock_t): Remove type.
11348         (gl_lock_t): Define using glwthread_mutex_t.
11349         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
11350         (glthread_lock_init): Define using glwthread_mutex_init.
11351         (glthread_lock_lock): Define using glwthread_mutex_lock.
11352         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
11353         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
11354         (glthread_lock_init_func, glthread_lock_lock_func,
11355         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
11356         declarations.
11357         Use glwthread_spinlock_t instead of gl_spinlock_t.
11358         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
11359         GLWTHREAD_SPINLOCK_INIT.
11360         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
11361         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
11362         functions.
11363         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
11364         gl_spinlock_t.
11365         * modules/windows-mutex: New file.
11366         * modules/lock (Depends-on): Add windows-mutex.
11368 2019-06-20  Bruno Haible  <bruno@clisp.org>
11370         windows-once: New module.
11371         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
11372         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
11373         * lib/glthread/lock.h: Include windows-once.h.
11374         (gl_once_t): Define using glwthread_once_t.
11375         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
11376         (glthread_once): Define using glwthread_once.
11377         (glthread_once_func): Remove declaration.
11378         * lib/glthread/lock.c (glthread_once_func): Remove function.
11379         * modules/windows-once: New file.
11380         * modules/lock (Depends-on): Add windows-once.
11382 2019-06-20  Bruno Haible  <bruno@clisp.org>
11384         lock, cond: Avoid possible counter wraparound on Windows.
11385         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
11386         field of the guard unchanged if it was already positive.
11387         (glthread_rwlock_rdlock_func): Likewise.
11388         (glthread_rwlock_wrlock_func): Likewise.
11389         (glthread_recursive_lock_lock_func): Likewise.
11390         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
11391         (glthread_cond_timedwait_func): Likewise.
11393 2019-06-20  Bruno Haible  <bruno@clisp.org>
11395         cond: Make glthread_cond_timedwait more reliable on Windows.
11396         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
11397         condition variable before looking at the current time.
11399 2019-06-20  Bruno Haible  <bruno@clisp.org>
11401         pthread_mutex_timedlock: New module.
11402         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
11403         new declaration.
11404         * lib/pthread_mutex_timedlock.c: New file.
11405         * m4/pthread_mutex_timedlock.m4: New file.
11406         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
11407         whether pthread_mutex_timedlock is declared.
11408         (gl_PTHREAD_MODULE_INDICATOR): New macro.
11409         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
11410         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
11411         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
11412         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
11413         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
11414         * modules/pthread_mutex_timedlock: New file.
11415         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
11416         module.
11418 2019-06-20  Bruno Haible  <bruno@clisp.org>
11420         thread, lock, cond, tls: Recognize C11 multithreaded applications.
11421         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
11422         * lib/glthread/thread.h (c11_threads_in_use): New macro.
11423         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11424         * lib/glthread/lock.h (c11_threads_in_use): New macro.
11425         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11426         * lib/glthread/cond.h (c11_threads_in_use): New macro.
11427         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11428         * lib/glthread/tls.h (c11_threads_in_use): New macro.
11429         (pthread_in_use, pth_in_use, thread_in_use): Use it.
11431 2019-06-20  Bruno Haible  <bruno@clisp.org>
11433         tls tests: Small improvements.
11434         * tests/test-tls.c: Include <stdint.h>.
11435         (worker_thread): Avoid gcc warning on 64-bit mingw.
11436         (test_tls): Pass a different id to each thread.
11437         * modules/tls-tests (Depends-on): Add stdint.
11439 2019-06-20  Bruno Haible  <bruno@clisp.org>
11441         cond tests: Simplify.
11442         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
11444 2019-06-20  Bruno Haible  <bruno@clisp.org>
11446         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
11447         * tests/test-lock.c (test_once): Don't reference fire_signal if
11448         !ENABLE_LOCKING.
11450 2019-06-19  Bruno Haible  <bruno@clisp.org>
11452         nanosleep: Relicense under LGPLv2+.
11453         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
11454         * modules/nanosleep (License): Change to LGPLv2+.
11456 2019-06-19  Bruno Haible  <bruno@clisp.org>
11458         Reorder pieces of header in perl scripts.
11459         The desired order is
11460         - Prologue part 1 (2 lines with #!)
11461         - Program short description
11462         - Copyright and license notice
11463         - Written-by notice
11464         - Program short description (optional)
11465         - Program long description (optional)
11466         - Prologue part 2
11467         - Time stamp
11468         - Code
11469         Reported by Paul Eggert.
11470         * build-aux/announce-gen: Reorder header.
11471         * build-aux/gitlog-to-changelog: Likewise.
11472         * build-aux/useless-if-before-free: Likewise.
11473         * build-aux/prefix-gnulib-mk: Add copyright notice and short
11474         description.
11475         * build-aux/update-copyright: Likewise. Add short description. Bump
11476         time-stamp-line-limit to 200.
11478 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11480         verify-tests: work around xlc bug
11481         Problem reported by Bruno Haible in:
11482         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
11483         * tests/test-verify.c (item): Move the arithmetic inside the
11484         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
11486 2019-06-16  Bruno Haible  <bruno@clisp.org>
11488         Restore Emacs time-stamp hook applicability.
11489         Reported by Darshit Shah <darnir@gnu.org>.
11490         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
11491         * build-aux/announce-gen: Likewise.
11492         * build-aux/gitlog-to-changelog: Likewise.
11493         * build-aux/prefix-gnulib-mk: Likewise.
11494         * build-aux/update-copyright: Likewise.
11496 2019-06-15  Bruno Haible  <bruno@clisp.org>
11498         Fix scripts to have valid executable format on Alpine Linux.
11499         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
11500         Idea by Paul Eggert.
11501         * build-aux/useless-if-before-free: Use a prologue that starts with
11502         '#!/bin/sh'.
11503         * build-aux/announce-gen: Likewise.
11504         * build-aux/gitlog-to-changelog: Likewise.
11505         * build-aux/prefix-gnulib-mk: Likewise.
11506         * build-aux/update-copyright: Likewise.
11507         * tests/test-update-copyright.sh: Update test program accordingly.
11509 2019-06-10  Bruno Haible  <bruno@clisp.org>
11511         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
11512         Reported by Nikita Ermakov <arei@altlinux.org> in
11513         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
11514         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
11515         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
11517 2019-06-10  Bruno Haible  <bruno@clisp.org>
11519         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
11520         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11521         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
11522         a copy of the path argument.
11523         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11524         it.
11526 2019-06-10  Bruno Haible  <bruno@clisp.org>
11528         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
11529         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
11530         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11531         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
11532         a copy of the path argument.
11533         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11534         it.
11536 2019-06-10  Bruno Haible  <bruno@clisp.org>
11538         posix_spawn_file_actions_addfchdir: Add tests.
11539         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
11540         * tests/test-posix_spawn5.c: New file.
11541         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
11543 2019-06-10  Bruno Haible  <bruno@clisp.org>
11545         posix_spawn_file_actions_addfchdir: New module.
11546         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
11547         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
11548         union member 'fchdir_action'.
11549         * lib/spawn_faction_addfchdir.c: New file.
11550         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
11551         * m4/posix_spawn_faction_addfchdir.m4: New file.
11552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
11553         'posix_spawn_file_actions_addfchdir' is present and whether
11554         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
11555         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
11556         posix_spawn_file_actions_addfchdir is declared.
11557         (gl_SPAWN_H_DEFAULTS): Initialize
11558         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11559         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11560         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11561         * modules/spawn (Makefile.am): Substitute
11562         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11563         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11564         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11565         * modules/posix_spawn_file_actions_addfchdir: New file.
11566         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
11567         signature.
11568         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11569         * doc/posix-functions/posix_spawnp.texi: Likewise.
11570         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
11571         Likewise.
11573 2019-06-10  Bruno Haible  <bruno@clisp.org>
11575         doc: Document existence of posix_spawn_file_actions_addchdir module.
11576         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
11577         the posix_spawn_file_actions_addchdir module.
11579 2019-06-10  Bruno Haible  <bruno@clisp.org>
11581         posix_spawn-internal: Fix module description.
11582         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
11583         from here...
11584         * modules/posix_spawnp (configure.ac): ... and here...
11585         * modules/posix_spawn-internal (configure.ac): ... to here.
11587 2019-06-10  Bruno Haible  <bruno@clisp.org>
11589         doc: Update and improve documentation of glibc functions.
11590         This is a series of commits that
11591         - updates the documentation to the state of glibc 2.29,
11592         - adds references to Linux man pages and glibc documentation,
11593         - marks Linux specific functions as such.
11594         These are the commits:
11595         doc: Update after removal of crypt functions from glibc 2.28.
11596         doc: Remove mention of function vm86 (does not exist on x86_64).
11597         doc: Remove mention of functions that are gone from glibc.
11598         doc: Mention that glibc no longer provides h_errno.
11599         doc: Mention the availability of specific functions in glibc versions.
11600         doc: Mention eaccess.
11601         doc: Add references to Linux man pages.
11602         doc: Add references to glibc documentation.
11603         doc: Mention inotify_* functions.
11604         doc: Mention ppoll.
11605         doc: Mention sched_getcpu.
11606         doc: Mention sync_file_range.
11607         doc: Mention epoll_pwait.
11608         doc: Mention eventfd, eventfd_read, eventfd_write.
11609         doc: Mention signalfd.
11610         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
11611         doc: Mention epoll_create1.
11612         doc: Mention getauxval.
11613         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
11614         doc: Mention nextdown, nextup.
11615         doc: Mention more ISO TS 18661-1 <math.h> functions.
11616         doc: Mention ISO TS 18661-1 <fenv.h> functions.
11617         doc: Mention getrandom, getentropy.
11618         doc: Mention strfromf, strfromd, strfroml.
11619         doc: Mention preadv2, pwritev2.
11620         doc: Mention copy_file_range.
11621         doc: Mention memfd_create.
11622         doc: Mention mlock2.
11623         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
11624         doc: Mention more ISO TS 18661-1 <math.h> functions.
11625         doc: Mention renameat2.
11626         doc: Mention statx.
11627         doc: Mention the ISO C11 multithreading header and functions.
11628         doc: Mention getcpu.
11629         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
11630         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
11631         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
11632         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
11633         doc: Some glibc functions also exist on Solaris 11.
11634         doc: Some glibc functions also exist on Solaris 11.4.
11635         doc: Some glibc functions also exist on FreeBSD.
11636         doc: Some glibc functions also exist on BeOS.
11637         doc: Some glibc functions also exist on Haiku.
11638         doc: Mark functions which exist only on Linux.
11639         doc: Mark functions which exist only on Linux and illumos.
11641 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11643         copy-file: fix typo
11644         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
11646         copy-file-range: simplify into a stub
11647         Based on a comment by Florian Weimer in:
11648         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
11649         It turns out that Emacs (which will use this module) won’t need an
11650         emulation and I suspect other programs won’t either, because these
11651         programs will need to fall back on read+write anyway.  Perhaps I
11652         am wrong and other programs will be able to use an emulation; if
11653         so, this patch can be reverted.
11654         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
11655         Just call it copy_file_range.
11656         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
11657         Check via AC_LINK_IFELSE.
11658         * modules/copy-file-range (Depends-on): Remove modules no longer used.
11660 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11662         copy-file: prefer copy_file_range
11663         * lib/copy-file.c: Do not include xalloc.h.
11664         (qcopy_file_preserving): Allocate a buffer only if
11665         copy_file_range does not suffice.  If the allocation fails
11666         don't give up; just use a small stack-based buffer.
11667         Prefer copy_file_range if it works.
11668         * modules/copy-file (Depends-on): Add copy-file-range.
11669         Remove xalloc.
11671         copy-file-range: new module
11672         * MODULES.html.sh: Add copy-file-range.
11673         * lib/copy-file-range.c, m4/copy-file-range.m4:
11674         * modules/copy-file-range: New files.
11675         * lib/unistd.in.h (copy_file_range): Declare.
11676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
11677         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
11678         * modules/unistd (unistd.h): Substitute them.
11680 2019-05-28  Bruno Haible  <bruno@clisp.org>
11682         binary-io: Attempted use of O_BINARY on consoles no longer fails.
11683         Reported by KO Myung-Hun <komh78@gmail.com> in
11684         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
11685         * lib/binary-io.h (__gl_setmode_check): Remove function.
11686         (set_binary_mode): Declare as notinline on DJGPP and EMX.
11687         * lib/binary-io.c (__gl_setmode_check): Remove function.
11688         (set_binary_mode): Define here on DJGPP and EMX. Inline
11689         __gl_setmode_check. In case of a tty, don't return an error code.
11691 2019-05-28  James Youngman  <jay@gnu.org>
11693         dirent-safer: Make opendir_safer usable from C++.
11694         * lib/dirent-safer.h: use extern "C".
11696 2019-05-28  James Youngman  <jay@gnu.org>
11698         canonicalize: Make canonicalize_filename_mode usable from C++.
11699         * lib/canonicalize.h: use extern "C".
11701 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
11703         prefix-gnulib-mk: Fix CPPFLAGS migration.
11704         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
11705         _a part of the library name.
11707 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11709         flexmember: update comments again
11710         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
11712         flexmember: update comment
11713         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
11715 2019-05-20  Bruno Haible  <bruno@clisp.org>
11717         setlocale: Improve fallback on macOS.
11718         * lib/setlocale.c (search): Optimize away a redundant strcmp()
11719         invocation.
11720         (locales_with_principal_territory): New array.
11721         (langcmp, get_main_locale_with_same_language): New functions.
11722         (locales_with_principal_language): New array.
11723         (terrcmp, get_main_locale_with_same_territory): New functions.
11724         (rpl_setlocale): When setlocale_single failed, try again with a locale
11725         that is more likely to exist. Don't warn if the environment variable
11726         SETLOCALE_VERBOSE is not set.
11728 2019-05-19  Bruno Haible  <bruno@clisp.org>
11730         localename: Fix default on macOS.
11731         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
11732         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
11733         (gl_locale_name_environ, gl_locale_name_default): Remove code for
11734         HAVE_CFLOCALECOPYCURRENT.
11735         * lib/localename.h (gl_locale_name_default): Update.
11737 2019-05-19  Karl Berry  <karl@freefriends.org>
11739         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
11740         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
11741         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
11743 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
11745         maintainer-makefile: catch uses of $< in non-implicit rules
11746         * top/maint.mk (sc_prohibit_magic_number_exit): New.
11748 2019-05-18  Bruno Haible  <bruno@clisp.org>
11750         threadlib: Provide an easy way to avoid mingw's winpthreads library.
11751         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
11752         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
11753         gl_use_threads accordingly.
11755 2019-05-18  Bruno Haible  <bruno@clisp.org>
11757         pthread_sigmask: Fix compilation error with --enable-threads=windows.
11758         Reported by Tim Rühsen in
11759         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
11760         and Michele Locati in
11761         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
11762         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
11763         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
11764         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
11765         in use and regardless which threads API is chosen.
11767 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11769         close-stream, closein, closeout: simplify
11770         I noticed this opportunity for simplification while drafting a
11771         new, related module that I haven’t had time to finish yet.
11772         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
11773         * modules/close-stream (Files): Remove m4/close-stream.m4.
11774         (configure.ac): Omit gl_CLOSE_STREAM.
11775         * modules/closein (Files): Remove m4/closein.m4
11776         (configure.ac): Omit gl_CLOSEIN.
11777         * modules/closeout (Files): Remove m4/closeout.m4.
11778         (configure.ac): Omit gl_CLOSEOUT.
11780 2019-05-12  Bruno Haible  <bruno@clisp.org>
11782         libtool-next-version: New program.
11783         * build-aux/libtool-next-version: New file.
11785 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
11786             Bruno Haible  <bruno@clisp.org>
11788         version-etc: Ease translation.
11789         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
11790         URLs and formatting newlines out of translatable string.
11792 2019-05-11  Bruno Haible  <bruno@clisp.org>
11794         gnupload: Explain how to create symlinks.
11795         * build-aux/gnupload (usage): Add an example that creates symlinks.
11797 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11799         fpucw: port to gcc -pedantic
11800         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
11801         Use __extension__ if using ({ ... }).
11803         crypto/af_alg: port to strict C compilers
11804         * lib/af_alg.c: Include af_alg.h regardless, so that the
11805         compilation unit is nonempty.
11807 2019-05-10  Bruno Haible  <bruno@clisp.org>
11809         base64: Avoid false positive warning from Coverity.
11810         Reported by Kamil Dudka <kdudka@redhat.com>.
11811         Idea by Paul Eggert.
11812         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
11813         '& 0x3f' to the array index expressions. This convinces Coverity that
11814         there is no out-of-bounds array reference, regardless of the input.
11816 2019-05-09  Bruno Haible  <bruno@clisp.org>
11818         gettext: Update to gettext 0.20.
11819         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
11820         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
11821         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
11822         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
11823         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
11824         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
11825         (configure.ac): Request infrastructure compatible with gettext 0.20.
11826         * m4/glibc2.m4: Remove file.
11827         * m4/intdiv0.m4: Remove file.
11828         * m4/intl.m4: Remove file.
11829         * m4/intldir.m4: Remove file.
11830         * m4/intmax.m4: Remove file.
11831         * m4/printf-posix.m4: Remove file.
11832         * m4/uintmax_t.m4: Remove file.
11833         * m4/gettext.m4: Update from gettext 0.20.
11834         * m4/po.m4: Likewise.
11836 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11838         verify: remove verify_true
11839         * NEWS: Mention this.
11840         * lib/verify.h (verify_true): Remove.
11841         * tests/test-verify.c (item): Test verify_expr, not verify_true.
11843         Support C2X and C++17 static_assert
11844         C2X and C++17 finally added support for a simple, single-argument
11845         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
11846         doing back in 2005.  Implement static_assert on older platforms.
11847         The only remaining advantage of ‘verify’ is a shorter name.
11848         * doc/posix-headers/assert.texi (assert.h):
11849         * doc/verify.texi (Compile-time Assertions):
11850         Modernize for C2X and C++17.
11851         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
11852         New macros.
11853         (_GL_HAVE__STATIC_ASSERT): Remove.
11854         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
11855         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
11856         string.  All callers changed.
11857         (_GL_VERIFY): Require 3 or more args, of which only the first 2
11858         are used.  All callers changed.
11859         (_Static_assert): Allow either 1 or 2 args, and define if
11860         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
11861         !_GL_HAVE__STATIC_ASSERT.
11862         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
11863         of defining if !_GL_HAVE_STATIC_ASSERT.
11864         (verify_expr, verify): Don’t bother trying to copy the expression
11865         into the diagnostic, since 1-argument static_assert doesn’t.
11866         (verify): Prefer 1-argument _Static_assert if it works.
11867         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
11869 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11871         Fix _GL_HAVE__STATIC_ASSERT typo
11872         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
11873         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
11875 2019-05-05  Bruno Haible  <bruno@clisp.org>
11877         wcwidth: Ensure width 1, not 2, for ambiguous characters.
11878         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
11879         via Akim Demaille <akim.demaille@gmail.com>.
11880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
11881         en_US.UTF-8 locale, since that is more likely to be present than an
11882         fr_FR.UTF-8 locale.
11883         * tests/test-wcwidth.c (main): Check the width of U+2202.
11884         * doc/posix-functions/wcwidth.texi: Mention the issue.
11886 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11888         Port manywarnings to GCC 9
11889         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
11890         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
11891         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
11892         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
11893         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
11894         --help=warnings output.
11895         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11896         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11897         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11899 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11901         Sync lib/mktime-internal.h from glibc
11902         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11903         * lib/mktime-internal.h: Autoupdate.
11905 2019-04-28  Bruno Haible  <bruno@clisp.org>
11907         tls tests: Prevent that the test takes too long.
11908         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11909         (main): Let the test fail if it takes more than 10 minutes.
11910         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11912 2019-04-27  Bruno Haible  <bruno@clisp.org>
11914         lock tests: Prevent that the test takes too long.
11915         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11916         (main): Let the test fail if it takes more than 10 minutes.
11917         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11919 2019-04-27  Bruno Haible  <bruno@clisp.org>
11921         localename: Fix crash on mingw (regression from 2018-11-23).
11922         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11923         locale name that is null.
11925 2019-04-27  Bruno Haible  <bruno@clisp.org>
11927         Fix gcc warnings on 64-bit mode mingw.
11928         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11929         * lib/gl_array_list.c: Likewise.
11930         * lib/gl_array_map.c: Likewise.
11931         * lib/gl_array_set.c: Likewise.
11932         * lib/gl_carray_list.c: Likewise.
11933         * lib/gl_sublist.c: Likewise.
11934         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11935         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11936         * lib/gl_hash_map.c (uintptr_t): Likewise.
11937         * lib/gl_hash_set.c (uintptr_t): Likewise.
11938         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11939         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11940         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11941         * lib/iconv.c (uintptr_t): Likewise.
11942         * lib/iconv_close.c (uintptr_t): Likewise.
11943         * tests/test-lock.c: Include <stdint.h>.
11944         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11945         'long'.
11946         * modules/clean-temp (Depends-on): Add stdint.
11947         * modules/array-list (Depends-on): Likewise.
11948         * modules/array-map (Depends-on): Likewise.
11949         * modules/array-set (Depends-on): Likewise.
11950         * modules/carray-list (Depends-on): Likewise.
11951         * modules/sublist (Depends-on): Likewise.
11952         * modules/lock-tests (Depends-on): Likewise.
11954 2019-04-27  Bruno Haible  <bruno@clisp.org>
11956         error: Tweak indentation.
11957         * lib/error.c: Correct indentation.
11959 2019-04-27  Bruno Haible  <bruno@clisp.org>
11961         term-style-control: Fix gcc warning on mingw.
11962         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11963         of i.
11965 2019-04-26  Bruno Haible  <bruno@clisp.org>
11967         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11968         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11970 2019-04-26  Bruno Haible  <bruno@clisp.org>
11972         relocatable-prog: Fix gcc warning on mingw.
11973         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11974         on EMX.
11976 2019-04-02  Bruno Haible  <bruno@clisp.org>
11978         gitsub.sh: New file.
11979         * top/gitsub.sh: New file.
11981 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11983         argmatch: use void* for raw memory pointers
11984         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11985         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11986         to "values", keep char* for strings.
11988 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11990         prefix-gnulib-mk: fix the support for gnulib-po
11991         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11992         Don't touch HAVE_* variables.
11993         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11995 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11997         di-set: allow free with 'ino_map' being NULL.
11998         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11999         is NULL.  Bug introduced in commit 3703dbbe88dd.
12000         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
12001         as a test.
12003 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
12005         * lib/str-two-way.h: Fix comment typo.
12007 2019-04-13  Bruno Haible  <bruno@clisp.org>
12009         x-to-1: Restore ability to use original calling convention.
12010         * build-aux/x-to-1.in: Add comments. Accept the original form of
12011         HELP2MAN argument as well as the form expected since 2012-12-12.
12013 2019-04-13  Bruno Haible  <bruno@clisp.org>
12015         x-to-1: Avoid failure due to missing perl modules.
12016         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
12017         needs are installed.
12019 2019-04-13  Bruno Haible  <bruno@clisp.org>
12021         openmp-init: New module.
12022         * modules/openmp-init: New file.
12023         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
12024         the changes from 2019-04-09.
12026 2019-04-12  Bruno Haible  <bruno@clisp.org>
12028         signbit: Fix compilation error when gnulib's math.h exists twice.
12029         * lib/math.in.h (GNULIB_defined_signbit): New macro.
12031 2019-04-12  Bruno Haible  <bruno@clisp.org>
12033         openmp: Fix compilation error on platforms without OpenMP.
12034         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
12036 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
12038         mountlist: make parsing /proc/self/mountinfo more robust
12039         Cater for the following issues with mountinfo parsing (the first
12040         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
12041         in <https://bugs.gnu.org/35137>).
12042         1. The fields source, target, mntroot and fstype may contain characters
12043         like '\r'; sscanf(3) fails to read such values with the %s format
12044         specifier because it would stop at such characters.
12045         Example: "mount -t tmpfs tmpfs /foo^Mbar".
12046         The only true separator in that file is the ' ' character.
12047         2. The source field may be an empty string, which happens e.g. with
12048         "mount -t tmpfs '' /target".
12049         3. The fstype field may contain mangled characters as well which need
12050         unescaping.
12051         * lib/mountlist.c (terminate_at_blank): Add utility function.
12052         (read_file_system_list): In the block trying to read the mountinfo file,
12053         avoid using sscanf(3) with %s format; instead, parse the above fields
12054         separated by spaces one by one.
12055         This also handles the case when the source field is an empty string.
12056         Unescape the fstype field.
12058 2019-04-09  Bruno Haible  <bruno@clisp.org>
12060         openmp: Add workaround for 32-bit programs on AIX.
12061         * lib/omp.in.h: New file.
12062         * lib/omp-init.c: New file, based on lib/nproc.c.
12063         * m4/omp_h.m4: New file.
12064         * modules/openmp (Files): Add them.
12065         (Depends-on): Add include_next, c-ctype, setenv.
12066         (configure.ac): Invoke gl_OMP_H.
12067         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
12068         (Include): Mention <omp.h>.
12070 2019-04-09  Bruno Haible  <bruno@clisp.org>
12072         nproc: Fix return value for privileged processes.
12073         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
12074         getpid().
12076 2019-04-07  Bruno Haible  <bruno@clisp.org>
12078         Add copyright notices in several files.
12079         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
12080         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
12081         * lib/libunistring.valgrind: Likewise.
12082         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
12083         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
12084         * lib/memchr.valgrind: Likewise.
12085         * lib/memchr2.valgrind: Likewise.
12086         * lib/rawmemchr.valgrind: Likewise.
12087         * lib/relocatable.valgrind: Likewise.
12088         * lib/strchrnul.valgrind: Likewise.
12090 2019-03-25  Bruno Haible  <bruno@clisp.org>
12092         term-style-control tests: Fix link error.
12093         Reported by Tom G. Christensen in
12094         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
12095         * modules/term-style-control-tests (Makefile.am): Link
12096         test-term-style-control-hello and test-term-style-control-yes against
12097         LIBINTL.
12099 2019-03-24  Bruno Haible  <bruno@clisp.org>
12101         term-style-control: Add tests.
12102         * tests/test-term-style-control-hello.c: New file.
12103         * tests/test-term-style-control-yes.c: New file.
12104         * modules/term-style-control-tests: New file.
12106         term-style-control: New module.
12107         * lib/term-style-control.h: New file, based on libtextstyle's
12108         term-ostream.oo.h and term-ostream.oo.c.
12109         * lib/term-style-control.c: New file, based on libtextstyle's
12110         term-ostream.oo.c.
12111         * modules/term-style-control: New file.
12113 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
12115         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
12116         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
12117         C++98 appears to be supported by Clang, but not by GCC nor ICC.
12119 2019-03-23  Bruno Haible  <bruno@clisp.org>
12121         Support cross-compilation to musl libc.
12122         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
12123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
12124         musl libc.
12125         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12126         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
12127         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12128         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12129         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12130         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
12131         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12132         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12133         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12134         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12135         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
12137         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12138         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12139         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12140         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12141         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12142         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12143         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
12144         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12145         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12147         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
12148         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12149         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
12150         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12151         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12152         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12153         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
12154         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
12155         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12156         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12157         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
12158         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12159         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12160         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
12161         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12162         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12163         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12164         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12165         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12166         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
12167         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
12168         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12169         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12170         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12171         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12172         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
12173         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
12174         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
12175         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
12176         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
12177         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12178         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
12179         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12180         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
12181         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12182         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12183         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12184         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12185         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12187         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12188         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
12189         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12190         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12192         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
12193         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12194         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
12195         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12196         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12197         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12198         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12199         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
12200         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12201         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12204 2019-03-23  Bruno Haible  <bruno@clisp.org>
12206         posix_spawn_file_actions_*: Document musl libc bugs.
12207         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
12208         the bug.
12209         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
12210         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
12211         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
12212         cross-compiling to a musl system, guess no.
12213         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
12214         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
12216 2019-03-23  Bruno Haible  <bruno@clisp.org>
12218         futimens: Document musl libc bug.
12219         * doc/posix-functions/futimens.texi: Mention the bug.
12220         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
12221         cross-compiling, guess no on glibc and musl systems.
12223 2019-03-23  Bruno Haible  <bruno@clisp.org>
12225         Clarify that cross-compilation guesses are guesses.
12226         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
12227         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
12228         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
12229         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
12230         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
12231         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
12232         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
12233         gl_cv_glob_lists_symlinks.
12234         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
12235         'guessing ' to ac_cv_func_malloc_0_nonnull.
12236         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
12237         'guessing ' to ac_cv_func_realloc_0_nonnull.
12238         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
12239         'guessing ' to gl_cv_func_poll.
12240         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
12241         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
12242         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
12244 2019-03-23  Bruno Haible  <bruno@clisp.org>
12246         strtold: Fix typo.
12247         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
12249 2019-03-23  Bruno Haible  <bruno@clisp.org>
12251         noreturn: In C++ mode with clang, use _Noreturn as fallback.
12252         Reported by Akim Demaille.
12253         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
12254         [[noreturn]] would not work, use _Noreturn instead.
12256 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
12258         libtextstyle-optional: Fix compiler warnings.
12259         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
12260         as unused.
12262 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
12264         bitset: fix memory leaks
12265         Reported by Bruno Haible.
12266         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
12267         * lib/bitset/vector.c (vbitset_free): New.
12268         (vbitset_vtable): Use it.
12270 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
12272         bitset: minor changes
12273         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
12274         * lib/bitset/table.c: Formatting changes.
12275         Remove useless braces.
12276         Prefer using else in cascades of if/else-if with returns.
12277         * lib/bitset/vector.c: Reduce scopes.
12279 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
12281         bitset: expose bitset_resize
12282         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
12283         * tests/test-bitset.c (check_attributes): Check bitset_resize.
12284         (main): Use a variable bitset as reference, since fixed does not support resize.
12286 2019-03-19  Bruno Haible  <bruno@clisp.org>
12288         doc: Document the 'stdnoreturn' and 'noreturn' modules.
12289         Reported by Akim Demaille.
12290         * doc/noreturn.texi: New file.
12291         * doc/gnulib.texi: Include it.
12293 2019-03-19  Bruno Haible  <bruno@clisp.org>
12295         doc: Document how to use 'static inline'.
12296         * doc/static-inline.texi: New file.
12297         * doc/gnulib.texi: Include it.
12299 2019-03-19  Bruno Haible  <bruno@clisp.org>
12301         libtextstyle-optional: Add tests.
12302         * tests/test-libtextstyle.c: New file, based on libtextstyle's
12303         adhoc-tests/hello.c.
12304         * tests/test-libtextstyle-default.css: New file, copied from
12305         libtextstyle's adhoc-tests/hello-default.css.
12306         * modules/libtextstyle-optional-tests: New file.
12308         libtextstyle-optional: New module.
12309         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
12310         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
12311         * modules/libtextstyle-optional: New file.
12313 2019-03-19  Bruno Haible  <bruno@clisp.org>
12315         c-stack: Make signal handlers more reliable.
12316         * lib/c-stack.c (progname): New variable.
12317         (die): Use it.
12318         (c_stack_action): Initialize it.
12319         (segv_handler): Save and restore errno.
12321 2019-03-19  Bruno Haible  <bruno@clisp.org>
12323         Help making signal handlers more reliable.
12324         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
12325         _GL_ASYNC_SAFE into config.h.
12326         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
12327         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
12328         argument.
12329         * lib/fatal-signal.c (action_t, uninstall_handlers,
12330         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
12331         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
12332         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
12333         _GL_ASYNC_SAFE.
12334         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
12335         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
12337 2019-03-18  Bruno Haible  <bruno@clisp.org>
12339         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
12340         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
12341         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
12343 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
12345         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
12346         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
12347         GCC 4.8.
12349 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
12351         fts: minor simplification
12352         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
12354 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
12356         bitset, timevar: Depend on c99.
12357         Reported by Bruno Haible.
12358         * modules/bitset, modules/timevar (Depends-on): Add c99.
12360 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
12362         bitset: a bit (...) more tests
12363         * tests/test-bitset.c (check_attributes): Check zero and ones.
12365 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
12367         bitset: fix overflows.
12368         Reported by Bruno Haible.
12369         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
12370         * lib/bitset/table.c (tbitset_test): last_bit is the position of
12371         the bit in the array of bitset_word, so be sure to take its modulo
12372         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
12373         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
12375 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
12377         bitset: style changes.
12378         * lib/bitset/table.c: Use NULL, not 0, for pointers.
12379         Formatting changes.
12380         (tbitset_list): Reduce scopes.
12382 2019-03-16  Bruno Haible  <bruno@clisp.org>
12384         fatal-signal: Pass the signal number to the action.
12385         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
12386         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
12387         (fatal_signal_handler): Pass the signal number to the action.
12388         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
12389         signal number as parameter.
12390         (create_temp_dir): Update.
12391         * lib/wait-process.c (cleanup_slaves_action): New function.
12392         (register_slave_subprocess): Update at_fatal_signal invocation.
12393         * NEWS: Mention the change.
12395 2019-03-16  Bruno Haible  <bruno@clisp.org>
12397         fatal-signal: Add function that lists the fatal signals.
12398         * lib/fatal-signal.h (get_fatal_signals): New declaration.
12399         * lib/fatal-signal.c (get_fatal_signals): New function.
12401 2019-03-14  Bruno Haible  <bruno@clisp.org>
12403         isatty: Make it return true in Cygwin consoles on native Windows.
12404         * lib/isatty.c: Include <string.h>.
12405         (GetProcAddress): New macro.
12406         (GetNamedPipeClientProcessIdFuncType): New type.
12407         (GetNamedPipeClientProcessIdFunc): New variable.
12408         (QueryFullProcessImageNameFuncType): New type.
12409         (QueryFullProcessImageNameFunc): New variable.
12410         (initialized): New variable.
12411         (initialize): New function.
12412         (IsCygwinConsoleHandle): New function.
12413         (isatty): Invoke it.
12414         * doc/posix-functions/isatty.texi: Mention the issue.
12416 2019-03-14  Bruno Haible  <bruno@clisp.org>
12418         all: Update URLs to msdn.microsoft.com.
12419         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
12420         was moved to docs.microsoft.com.
12422 2019-03-13  Bruno Haible  <bruno@clisp.org>
12424         gnulib-tool: Clarify the coding style.
12425         Suggested by Pavel Raiskup <praiskup@redhat.com>.
12426         * gnulib-tool: Add comment about coding style.
12428 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
12430         strtod: fix clash with strtold
12431         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
12432         * lib/strtod.c (compute_minus_zero, minus_zero):
12433         Simplify by remving the macro / external variable,
12434         and having just a function.  User changed.  This avoids
12435         the need for an external variable that might clash.
12437 2019-03-10  Bruno Haible  <bruno@clisp.org>
12439         alloca-opt: Fix conflict mingw's new <alloca.h> file.
12440         Reported by Eli Zaretskii <eliz@gnu.org>.
12441         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
12442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
12443         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
12445 2019-03-10  Bruno Haible  <bruno@clisp.org>
12447         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
12448         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
12449         is in use.
12450         * tests/test-printf-posix2.c: Likewise.
12452 2019-03-10  Bruno Haible  <bruno@clisp.org>
12454         uninorm tests: Free allocated memory.
12455         * tests/uninorm/test-u32-normalize-big.h
12456         (struct normalization_test_file): Remove 'const' from allocated member.
12457         (free_normalization_test_file): New declaration.
12458         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
12459         memory.
12460         (free_normalization_test_file): New function.
12461         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
12462         'struct normalization_test_file' contents.
12463         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
12464         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
12465         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
12467 2019-03-10  Bruno Haible  <bruno@clisp.org>
12469         di-set: Fix memory leak.
12470         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
12471         not free().
12473 2019-03-10  Bruno Haible  <bruno@clisp.org>
12475         tests: Free allocated memory.
12476         Reported by <deltatau@protonmail.com> via Assaf Gordon.
12477         * tests/test-astrxfrm.c (main): Free allocated memory.
12478         * tests/test-bitset.c (compare, check_attributes): Free allocated
12479         bitsets.
12480         * tests/test-filenamecat.c (main): Free allocated memory.
12481         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
12482         * tests/test-freadptr.c (main): Likewise.
12483         * tests/test-freadptr2.c (main): Free allocated memory.
12484         * tests/test-freadseek.c (main): Likewise.
12485         * tests/test-gc-arcfour.c (main): Close allocated context.
12486         * tests/test-gc-arctwo.c (main): Likewise.
12487         * tests/test-gc-des.c (main): Close all allocated contexts.
12488         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
12489         * tests/test-pipe-filter-ii1.c (main): Likewise.
12490         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
12491         allocated file actions.
12492         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
12493         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
12494         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
12495         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
12496         * tests/test-strfmon_l.c (main): Free allocated locales.
12497         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
12498         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
12499         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12500         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12501         * tests/unistr/test-chr.h (main): Free input32.
12502         * tests/unistr/test-strchr.h (test_strchr): Likewise.
12504 2019-03-10  Bruno Haible  <bruno@clisp.org>
12506         tests: Prepare for using valgrind.
12507         * tests/*.sh: Invoke all test programs through ${CHECKER}.
12508         * tests/*/*.sh: Likewise.
12509         * tests/test-freadptr.c (main): Update accordingly.
12510         * tests/test-freadseek.c (main): Likewise.
12512 2019-03-09  Bruno Haible  <bruno@clisp.org>
12514         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
12515         * lib/get-rusage-as.c (get_rusage_as): When compiled by
12516         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
12517         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
12518         before exiting.
12520 2019-03-09  Jim Meyering  <meyering@fb.com>
12522         test-userspec.c: don't print NULL
12523         * tests/test-userspec.c (main): A test release of gcc,
12524         9.0.1 20190310, warned that this test would attempt to
12525         print a NULL pointer via a %s printf format.  Fix that
12526         and remove the unnecessary preceding "!diag" conjunct.
12527         Also add a comment.
12529 2019-03-03  Bruno Haible  <bruno@clisp.org>
12531         getloadavg: Write NULL for the null pointer.
12532         Reported by Michal Privoznik <mprivozn@redhat.com>.
12533         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
12535 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
12537         alloca, tsearch-tests: Write NULL for the null pointer.
12538         * lib/alloca.c (i00afunc): Write NULL instead of 0.
12539         * tests/test-tsearch.c (mangle_tree): Likewise.
12541 2019-03-09  Bruno Haible  <bruno@clisp.org>
12543         strfmon_l: Fix -fsanitize=address finding.
12544         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
12545         <string.h>.
12546         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
12547         (directive_t, directives_t): New types.
12548         (fmon_parse): New function.
12549         (rpl_strfmon_l): Don't call va_arg more often than needed for the
12550         format string. Consume 'long double' arguments in places where the
12551         format string indicates so.
12552         * modules/strfmon_l (Depends-on): Add 'stdbool'.
12554 2019-03-09  Bruno Haible  <bruno@clisp.org>
12556         crypto/des: Fix undefined behaviour.
12557         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
12558         shift operations on 'int'.
12560 2019-03-09  Bruno Haible  <bruno@clisp.org>
12562         Fix undefined behaviour.
12563         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
12564         'unsigned int', to avoid shift operations on 'int'.
12565         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
12566         * tests/test-count-leading-zeros.c (main): Use a random number that has
12567         as many bits as TYPE, not only 2*15 or 2*31 bits.
12568         * tests/test-count-trailing-zeros.c (main): Likewise.
12569         * tests/test-count-one-bits.c (main): Likewise.
12570         * tests/test-memmem.c: Don't include "null-ptr.h".
12571         (main): Use zerosize_ptr() instead of null_ptr().
12572         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
12574 2019-03-08  Bruno Haible  <bruno@clisp.org>
12576         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
12577         Reported by Jeffrey Walton <noloader@gmail.com>.
12578         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
12579         invoke memset with a zero size.
12580         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12581         Likewise.
12582         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12583         Adjust accordingly.
12585 2019-03-08  Bruno Haible  <bruno@clisp.org>
12587         unistr/*, uniconv/*: Fix undefined behaviour.
12588         Reported by Jeffrey Walton <noloader@gmail.com>.
12589         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
12590         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
12591         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12592         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12594 2019-03-08  Bruno Haible  <bruno@clisp.org>
12596         unistr/u8-cmp: Fix undefined behaviour.
12597         Reported by Jeffrey Walton <noloader@gmail.com>.
12598         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
12600 2019-03-08  Bruno Haible  <bruno@clisp.org>
12602         unictype/numeric: Fix undefined behaviour.
12603         Reported by Jeffrey Walton <noloader@gmail.com>.
12604         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
12605         on shift overflow, caught by "gcc -fsanitize=undefined".
12606         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
12607         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12608         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12610 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12612         git-version-gen: fix --version copyright year
12613         * build-aux/git-version-gen, build-aux/move-if-change (version):
12614         --version output copyright year is now taken from script year,
12615         so that it no longer needs to be updated by hand.
12617 2019-03-04  Bruno Haible  <bruno@clisp.org>
12619         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
12620         This approach supports relocatable installation of shared libraries
12621         which depend on other shared libraries from the same package.
12622         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12623         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
12624         wrapper around the original LIBTOOL.
12625         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
12626         token '@loader_path' instead of '$ORIGIN'.
12627         * build-aux/libtool-reloc: New file.
12628         * modules/relocatable-prog (Files): Add it.
12629         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12630         the recent changes. Document the need to set the *_LDFLAGS of libraries.
12631         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
12632         Makefile.am, not in configure.ac.
12634 2019-03-04  Bruno Haible  <bruno@clisp.org>
12636         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
12637         * build-aux/install-reloc: Revert change.
12638         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
12640 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12642         nstrftime: support the ‘+’ flag
12643         * lib/nstrftime.c (add, __strftime_internal):
12644         Add support for the ‘+’ flag introduced in POSIX.1-2017.
12645         (__strftime_internal): New arg ‘width’.  All uses changed.
12646         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
12648 2019-02-24  Bruno Haible  <bruno@clisp.org>
12650         relocatable-prog: Improve verbose output.
12651         * build-aux/install-reloc (func_verbose): Escape characters that would
12652         be interpreted by the shell.
12654 2019-02-24  Bruno Haible  <bruno@clisp.org>
12656         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
12657         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
12658         "sys/stat.h".
12659         * lib/lstat.c: Likewise.
12660         * lib/fstat.c: Likewise.
12661         * lib/fstatat.c: Likewise.
12663 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
12665         long-options: add parse_gnu_standard_options_only
12666         Discussed in https://bugs.gnu.org/33468 .
12668         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
12669         (parse_gnu_standard_options_only): Add function to process
12670         the GNU default options --help and --version and fail for
12671         any other unknown long or short option. See
12672         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
12673         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
12674         * modules/long-options (depends-on): Add stdbool, exitfail.
12675         * top/maint.mk (sc_prohibit_long_options_without_use): Update
12676         syntax-check rule, add new function name.
12678 2019-02-23  Bruno Haible  <bruno@clisp.org>
12680         relocatable-prog: Update documentation.
12681         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12682         the recent changes.
12684 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12686         nstrftime: tweak arg order
12687         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
12688         All callers changed.  Suggested by TAMUKI Shoichi in:
12689         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
12691 2019-02-23  Bruno Haible  <bruno@clisp.org>
12693         relocatable-prog: Use wrapper-free installation also on Mac OS X.
12694         Reported by Paul Smith <psmith@gnu.org>.
12695         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
12696         (func_relativize): New function, from gnulib-tool.
12697         Handle mode 'macosx' through invocations of 'otool' and
12698         'install_name_tool'.
12699         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12700         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
12701         'install-reloc' invocation with mode 'macosx'.
12703 2019-02-23  Bruno Haible  <bruno@clisp.org>
12705         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
12706         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12707         Hurd with glibc >= 2.27.
12709 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12711         nstrftime: merge glibc strftime changes
12712         This incorporates:
12713         2019-02-11 Fix a few whitespace arrangement inconsistencies
12714         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
12715         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
12716         2019-01-11 strftime: use the "L_" macro with character literals
12717         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
12718         callers changed.  Default width of %Ey is now 2.  This is needed
12719         for proper handling of Japanese dates starting on 2019-05-01.
12721 2019-02-19  Bruno Haible  <bruno@clisp.org>
12723         relocatable-prog: Use $ORIGIN trick on more platforms.
12724         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12725         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
12726         Solaris >= 10, Haiku. But don't use it on Android.
12727         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
12728         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
12730 2019-02-19  Bruno Haible  <bruno@clisp.org>
12732         progreloc: Speed up executable lookup on various platforms.
12733         * lib/progreloc.c: Include <errno.h>.
12734         (safe_read, full_read): New functions.
12735         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
12736         prefer the information from the /proc file system to a PATH search.
12738 2019-02-19  Bruno Haible  <bruno@clisp.org>
12740         progreloc: Simplify code for Android.
12741         * lib/progreloc.c (executable_fd): Don't define on Android.
12742         (maybe_executable, find_executable): Don't use executable_fd on Android.
12744 2019-02-15  Bruno Haible  <bruno@clisp.org>
12746         gnulib-tool: Support --import with just a few tests, not --with-tests.
12747         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
12748         'inctests' when generating files; use 'inctests' only for computing the
12749         transitive closure.
12751 2019-02-14  Bruno Haible  <bruno@clisp.org>
12753         gnulib-tool: Improve handling of multiple --local-dir options.
12754         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
12755         options work.
12756         * gnulib-tool (func_path_prepend): Remove function.
12757         (func_path_foreach): Make IFS handling more robust.
12758         (local_gnulib_path): Collect --local-dir values using func_path_append,
12759         not func_path_prepend.
12760         (func_determine_path_separator): Make IFS handling more robust.
12761         (func_lookup_file_cb): New function.
12762         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
12763         func_lookup_local_file. Apply the patches in the reverse order of their
12764         origin in $local_gnulib_path.
12765         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
12766         * NEWS: Mention that the first --local-dir option is the one with
12767         highest priority.
12769 2019-02-10  Bruno Haible  <bruno@clisp.org>
12771         libtextstyle: New module.
12772         * m4/libtextstyle.m4: New file.
12773         * modules/libtextstyle: New file.
12775 2019-02-05  Bruno Haible  <bruno@clisp.org>
12777         declared.sh: Fix bug with variables of pointer type.
12778         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
12779         before the symbol to be omitted if the preceding character is a '*'.
12781 2019-02-04  Bruno Haible  <bruno@clisp.org>
12783         Add script for running tests under valgrind.
12784         * build-aux/run-test: New file, from GNU libunistring.
12785         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
12786         as well.
12788 2019-02-04  Bruno Haible  <bruno@clisp.org>
12790         declared.sh: Fix --version output.
12791         * build-aux/declared.sh (func_version): Update package name.
12793 2019-02-03  Bruno Haible  <bruno@clisp.org>
12795         Add script for determining the set of symbols to export from a library.
12796         * build-aux/declared.sh: New file, from GNU libunistring.
12797         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
12798         Mention it.
12800 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12802         vla: add commentary about VLA_ELEMS
12803         * lib/vla.h (VLA_ELEMS): Add commentary,
12804         some inspired by Bruno Haible’s proposal in:
12805         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
12807         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
12808         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
12809         assume the C99 signatures for strtod and strtold.  Programs that
12810         require stricter adherence to C99 should also use the strtod and
12811         strtold modules as needed, and we no longer need the
12812         HAVE_C99_STRTOLD macro.
12813         * NEWS: Mention this.
12814         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
12815         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
12816         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
12817         (Files): Remove m4/c-strtod.m4.
12818         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
12819         exists.
12821 2019-02-02  Bruno Haible  <bruno@clisp.org>
12823         fma: Improve code style.
12824         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
12826 2019-02-02  Colin Watson  <cjwatson@debian.org>
12828         *-map tests: Fix compilation error.
12829         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
12830         * tests/test-hash_map.c: Likewise.
12831         * tests/test-linkedhash_map.c: Likewise.
12833 2019-01-31  Bruno Haible  <bruno@clisp.org>
12835         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
12836         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
12837         GNULIB_defined_strtold_function): New macros.
12838         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
12839         (STRTOD): Ignore HAVE_C99_STRTOLD.
12840         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
12841         deemed buggy. But do use it on platforms where uselocale exists and is
12842         usable.
12843         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
12844         deemed buggy. On platforms where uselocale exists and is usable, use
12845         uselocale and strtod/strtold.
12846         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
12847         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
12848         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
12849         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
12850         (Depends-on): Add strtod.
12851         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
12852         (Depends-on): Add strtold.
12854 2019-01-31  Bruno Haible  <bruno@clisp.org>
12856         strtod, strtold: Use the locale's decimal point.
12857         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
12858         (decimal_point_char): New function, copied from lib/vasnprintf.c.
12859         (parse_number): Add a radixchar argument. Use it instead of '.'.
12860         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
12861         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
12862         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
12863         * tests/test-strtod1.c: New file.
12864         * tests/test-strtod1.sh: New file.
12865         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
12866         locale-fr.m4 and its dependencies.
12867         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12868         (Makefile.am): Arrange to compile test-strtod1.c and run
12869         test-strtod1.sh.
12870         * tests/test-strtold1.c: New file.
12871         * tests/test-strtold1.sh: New file.
12872         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
12873         locale-fr.m4 and its dependencies.
12874         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12875         (Makefile.am): Arrange to compile test-strtold1.c and run
12876         test-strtold1.sh.
12878 2019-01-31  Bruno Haible  <bruno@clisp.org>
12880         strtod, strtold tests: Simplify tests.
12881         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
12882         * tests/test-strtold.c (main): Likewise.
12884 2019-01-31  Bruno Haible  <bruno@clisp.org>
12886         strtod, strtold: Avoid unnecessary rounding errors.
12887         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
12888         decimal to DOUBLE conversion.
12890 2019-01-31  Bruno Haible  <bruno@clisp.org>
12892         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
12893         * lib/strtod.c (STRTOD): When there is an extra character after the
12894         exponent marker 'p', reparse the number.
12895         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12896         * doc/posix-functions/strtold.texi: Likewise.
12898 2019-01-29  Bruno Haible  <bruno@clisp.org>
12900         strtold: Add tests.
12901         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12902         * modules/strtold-tests: New file.
12904 2019-01-29  Bruno Haible  <bruno@clisp.org>
12906         strtold: New module.
12907         * lib/stdlib.in.h (strtold): New declaration.
12908         * lib/strtold.c: New file.
12909         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12910         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12911         USE_LDEXP): New macros.
12912         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12913         USE_LONG_DOUBLE.
12914         (underlying_strtod): Remove function. Replace with some macros.
12915         Re-add the code for a missing underlying function that was removed on
12916         2013-02-19.
12917         * m4/strtold.m4: New file.
12918         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12919         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12920         REPLACE_STRTOLD.
12921         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12922         REPLACE_STRTOLD.
12923         * modules/strtold: New file.
12924         * doc/posix-functions/strtold.texi: Document the new module.
12926 2019-01-29  Bruno Haible  <bruno@clisp.org>
12928         strtod: Fix compilation error on IRIX 6.5.
12929         * modules/strtod (Depends-on): Add 'math'.
12931 2019-01-28  Bruno Haible  <bruno@clisp.org>
12933         Fix build error when building a shared libunistring on Android.
12934         * tests/uninorm/test-nfc.c (n): Don't define on Android.
12935         (main): Add 'volatile', to defeat a GCC optimization that would
12936         eliminate the reference.
12937         * tests/uninorm/test-nfd.c (n): Don't define on Android.
12938         (main): Add 'volatile', to defeat a GCC optimization that would
12939         eliminate the reference.
12940         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12941         (main): Add 'volatile', to defeat a GCC optimization that would
12942         eliminate the reference.
12943         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12944         (main): Add 'volatile', to defeat a GCC optimization that would
12945         eliminate the reference.
12947 2019-01-27  Bruno Haible  <bruno@clisp.org>
12949         Avoid build errors due to wrong references between modules.
12950         * lib/uninorm/canonical-decomposition.c: Include
12951         "uninorm/decomposition-table.h", not "decomposition-table.h".
12952         * lib/uninorm/decomposition.c: Likewise.
12953         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12954         not "decompose-internal.h".
12955         * lib/uninorm/u16-normalize.c: Likewise.
12956         * lib/uninorm/u32-normalize.c: Likewise.
12957         * lib/uninorm/uninorm-filter.c: Likewise.
12958         * lib/uninorm/nfkc.c: Likewise.
12959         * lib/uninorm/nfkd.c: Likewise.
12960         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12961         "caseprop.h".
12962         * lib/unicase/u8-ct-totitle.c: Likewise.
12963         * lib/unicase/u8-prefix-context.c: Likewise.
12964         * lib/unicase/u8-suffix-context.c: Likewise.
12965         * lib/unicase/u16-casemap.c: Likewise.
12966         * lib/unicase/u16-ct-totitle.c: Likewise.
12967         * lib/unicase/u16-prefix-context.c: Likewise.
12968         * lib/unicase/u16-suffix-context.c: Likewise.
12969         * lib/unicase/u32-casemap.c: Likewise.
12970         * lib/unicase/u32-ct-totitle.c: Likewise.
12971         * lib/unicase/u32-prefix-context.c: Likewise.
12972         * lib/unicase/u32-suffix-context.c: Likewise.
12973         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12974         "unicasemap.h".
12975         * lib/unicase/u8-toupper.c: Likewise.
12976         * lib/unicase/u8-ct-tolower.c: Likewise.
12977         * lib/unicase/u8-ct-toupper.c: Likewise.
12978         * lib/unicase/u16-tolower.c: Likewise.
12979         * lib/unicase/u16-toupper.c: Likewise.
12980         * lib/unicase/u16-ct-tolower.c: Likewise.
12981         * lib/unicase/u16-ct-toupper.c: Likewise.
12982         * lib/unicase/u32-tolower.c: Likewise.
12983         * lib/unicase/u32-toupper.c: Likewise.
12984         * lib/unicase/u32-ct-tolower.c: Likewise.
12985         * lib/unicase/u32-ct-toupper.c: Likewise.
12986         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12987         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12988         * lib/unicase/u16-ct-casefold.c: Likewise.
12989         * lib/unicase/u32-ct-casefold.c: Likewise.
12991 2019-01-27  Bruno Haible  <bruno@clisp.org>
12993         gperf: Fix error when this module is required by some test module.
12994         * modules/gperf (Applicability): Set to 'all'.
12996 2019-01-27  Bruno Haible  <bruno@clisp.org>
12998         tmpfile: Add support for Android.
12999         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
13000         works.
13001         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
13002         Android.
13003         * modules/tmpfile (Depends-on): Add 'stdbool'.
13004         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
13005         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
13007 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
13009         bitsetv: allow free on NULL.
13010         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
13012 2019-01-27  Bruno Haible  <bruno@clisp.org>
13014         test-framework-sh: Improve maintainability.
13015         * tests/init.sh: Clarify what belongs together. Reorder definitions.
13017 2019-01-27  Bruno Haible  <bruno@clisp.org>
13019         tests: Don't assume that /tmp exists.
13020         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
13021         * tests/test-copy-acl-1.sh: Likewise.
13022         * tests/test-file-has-acl-1.sh: Likewise.
13023         * tests/test-copy-file-1.sh: Likewise.
13025 2019-01-27  Bruno Haible  <bruno@clisp.org>
13027         tests: Accommodate a shell that is not in /bin/sh.
13028         * tests/init.sh (setup_): Set srcdir and builddir.
13029         (BOURNE_SHELL): New variable.
13030         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
13031         * modules/file-has-acl-tests (Depends-on): Likewise.
13032         * modules/copy-file-tests (Depends-on): Likewise.
13033         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
13034         scripts through $BOURNE_SHELL.
13035         * tests/test-set-mode-acl-2.sh: Likewise.
13036         * tests/test-copy-acl-1.sh: Likewise.
13037         * tests/test-copy-acl-2.sh: Likewise.
13038         * tests/test-file-has-acl-1.sh: Likewise.
13039         * tests/test-file-has-acl-2.sh: Likewise.
13040         * tests/test-copy-file-1.sh: Likewise.
13041         * tests/test-copy-file-2.sh: Likewise.
13042         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
13043         invoker.
13044         * tests/test-copy-acl.sh (builddir): Likewise.
13045         * tests/test-file-has-acl.sh (builddir): Likewise.
13046         * tests/test-copy-file.sh (builddir): Likewise.
13047         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
13048         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
13049         * tests/test-vc-list-files-git.sh: Likewise.
13051 2019-01-27  Bruno Haible  <bruno@clisp.org>
13053         tests: Fix some "unused variable" warnings.
13054         * tests/test-fts.c (fts_dealloc): Remove unused variable.
13055         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
13056         * tests/test-striconveh.c (main): Move some variable into the
13057         '#if HAVE_ICONV'.
13058         * tests/test-striconveha.c (main): Likewise.
13059         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13060         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13061         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13062         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
13063         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13064         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
13065         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13066         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13067         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13068         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
13069         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
13070         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
13071         * tests/test-tsearch.c (main): Move some variable into the
13072         '#if HAVE_INITSTATE'.
13074 2019-01-27  Bruno Haible  <bruno@clisp.org>
13076         unigbrk/uc-grapheme-breaks: Fix build failure.
13077         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
13078         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
13080 2019-01-27  Bruno Haible  <bruno@clisp.org>
13082         mountlist: Merge two .m4 files.
13083         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
13084         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
13085         * m4/ls-mntd-fs.m4: Remove file.
13086         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
13088 2019-01-27  Bruno Haible  <bruno@clisp.org>
13090         tests: Enable Linux specific tests on Android.
13091         * tests/test-flock.c (main): Treat Android like Linux.
13092         * tests/test-openat-safer.c (main): Likewise.
13094 2019-01-27  Bruno Haible  <bruno@clisp.org>
13096         relocatable-prog: Use Linux code on Android.
13097         * lib/progreloc.c: Treat Android like Linux.
13099 2019-01-26  Bruno Haible  <bruno@clisp.org>
13101         getloadavg: Add support for Android.
13102         * lib/getloadavg.c: Treat Android like Linux.
13104 2019-01-26  Bruno Haible  <bruno@clisp.org>
13106         vma-iter: Add support for Android.
13107         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
13108         * lib/vma-iter.c: Treat Android like Linux.
13109         * lib/get-rusage-data.c (get_rusage_data): Likewise.
13111 2019-01-26  Bruno Haible  <bruno@clisp.org>
13113         fts: Optimize on Android.
13114         * lib/fts.c: Treat Android like Linux.
13116 2019-01-26  Bruno Haible  <bruno@clisp.org>
13118         fts: Add support for Android.
13119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
13120         defined by this module and the ones in libc.
13121         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
13123 2019-01-26  Bruno Haible  <bruno@clisp.org>
13125         mountlist: Use Linux code on Android.
13126         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
13127         (unescape_tab, read_file_system_list): Enable Linux code on Android
13128         as well.
13129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
13130         and endmntent.
13131         * modules/mountlist (Depends-on): Add 'getline'.
13133 2019-01-26  Bruno Haible  <bruno@clisp.org>
13135         localename tests: Fix test failure on Android.
13136         * modules/localename-tests (Depends-on): Add 'setlocale'.
13138 2019-01-26  Bruno Haible  <bruno@clisp.org>
13140         mountlist: Port better to Android.
13141         * lib/mountlist.c (MOUNTED): Redefine on Android.
13142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
13143         Android.
13145 2019-01-26  Bruno Haible  <bruno@clisp.org>
13147         striconveh: Fix use of uninitialized iconv_t.
13148         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
13149         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
13150         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
13152 2019-01-26  Bruno Haible  <bruno@clisp.org>
13154         nonblocking-socket-tests: Fix test failure on Android 4.3.
13155         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
13156         also on Android.
13158 2019-01-26  Bruno Haible  <bruno@clisp.org>
13160         sh-filename: Add support for Android 4.3.
13161         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
13163 2019-01-26  Bruno Haible  <bruno@clisp.org>
13165         ptsname_r: Work around bug on Android 4.3.
13166         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
13167         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
13168         correct.
13169         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
13170         is defined, just fix the return value.
13171         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
13172         The behaviour of musl libc is nothing to be "fixed", since it is
13173         compliant with the next POSIX standard.
13175 2019-01-26  Bruno Haible  <bruno@clisp.org>
13177         ttyname_r: Work around bug on Android 4.3.
13178         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
13179         * lib/ttyname_r.c (ttyname_r): Implement for Android.
13180         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
13181         * doc/posix-functions/ttyname.texi: Likewise.
13183 2019-01-25  Bruno Haible  <bruno@clisp.org>
13185         getprogname: Port to Android 4.3.
13186         * lib/getprogname.c (getprogname): On Android, take only the last
13187         component of __progname.
13189 2019-01-25  Bruno Haible  <bruno@clisp.org>
13191         wcrtomb: Work around bug on Android 4.3.
13192         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
13193         the C locale.
13194         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
13195         which does not have the 'wctomb' function.
13196         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
13197         * tests/test-wcrtomb.c (main): Accept argument '5'.
13198         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
13200 2019-01-25  Bruno Haible  <bruno@clisp.org>
13202         setlocale: Work around bug on Android 4.3.
13203         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
13204         the "C" locale.
13205         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
13206         * doc/posix-functions/setlocale.texi: Mention the Android bug.
13208 2019-01-24  Bruno Haible  <bruno@clisp.org>
13210         memchr: Work around bug on Android <= 5.0.
13211         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
13212         * doc/posix-functions/memchr.texi: Mention the Android bug.
13214 2019-01-24  Bruno Haible  <bruno@clisp.org>
13216         random: Fix compilation error on Android 4.3.
13217         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
13218         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
13219         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
13220         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
13221         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
13222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
13223         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
13224         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
13225         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
13226         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
13227         REPLACE_INITSTATE, REPLACE_SETSTATE.
13228         * doc/posix-functions/random.texi: Correct the description of the
13229         situation on Android.
13230         * doc/posix-functions/srandom.texi: Likewise.
13231         * doc/posix-functions/rand.texi: Likewise.
13232         * doc/posix-functions/srand.texi: Likewise.
13234 2019-01-24  Bruno Haible  <bruno@clisp.org>
13236         mbtowc: Fix compilation error on Android 4.3.
13237         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
13238         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
13239         HAVE_MBTOWC.
13240         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
13241         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
13242         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
13243         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
13244         * doc/posix-functions/mbtowc.texi: Mention the change.
13246 2019-01-24  Bruno Haible  <bruno@clisp.org>
13248         fdatasync: Fix compilation error on Android 4.3.
13249         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
13250         test whether fdatasync() exists.
13252 2019-01-24  Bruno Haible  <bruno@clisp.org>
13254         unlinkat: Fix compilation error on Android 4.3.
13255         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
13256         also on Android.
13257         * doc/posix-functions/unlinkat.texi: Mention the issue.
13259 2019-01-24  Bruno Haible  <bruno@clisp.org>
13261         renameat: Fix compilation error on Android 4.3.
13262         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
13263         * doc/posix-functions/renameat.texi: Mention the issue.
13265 2019-01-24  Bruno Haible  <bruno@clisp.org>
13267         fchownat: Fix compilation error on Android 4.3.
13268         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
13269         use.
13270         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
13271         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
13272         * doc/posix-functions/fchownat.texi: Mention the issue.
13274 2019-01-23  Bruno Haible  <bruno@clisp.org>
13276         gnulib-tool: Support running testdirs on Android.
13277         * build-aux/test-driver.diff: New file.
13278         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
13279         build-aux/test-driver after running automake.
13281 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
13283         relocatable-prog: avoid warnings from Automake
13284         * modules/relocatable-prog: Don't declare PHONY dependencies in
13285         Automake conditionals.
13287 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
13289         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
13290         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
13292 2019-01-23  Bruno Haible  <bruno@clisp.org>
13294         threadlib: Revert commit from 2018-06-25. We now have a better fix.
13295         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
13296         preceding -Wl,--as-needed option. Don't check whether the linker
13297         supports --as-needed/--no-as-needed and --push-state/--pop-state.
13299 2019-01-23  Bruno Haible  <bruno@clisp.org>
13301         thread: Force linking with -lpthread, even when --as-needed is in use.
13302         Reported by Richard W.M. Jones <rjones@redhat.com> in
13303         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
13304         * lib/glthread/thread.h (pthread_create): Don't declare weak.
13306 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
13307             Bruno Haible  <bruno@clisp.org>
13309         relocatable: avoid compiler warnings (-Wshadow)
13310         * lib/relocatable.c (compute_curr_prefix): Rename local variables
13311         to avoid name collisions with global variables.
13313 2019-01-22  Bruno Haible  <bruno@clisp.org>
13315         vasnprintf: Don't use %n on Android.
13316         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
13317         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
13318         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
13320 2019-01-22  Bruno Haible  <bruno@clisp.org>
13322         *printf: Support cross-compilation to Android.
13323         * m4/printf.m4: Add cross-compilation guesses for Android.
13325 2019-01-21  Bruno Haible  <bruno@clisp.org>
13327         diacrit: Mark deprecated.
13328         * modules/diacrit (Status, Notice): Mark as deprecated.
13329         * NEWS: Mention it.
13331 2019-01-20  Bruno Haible  <bruno@clisp.org>
13333         rintl: Override broken implementation on NetBSD.
13334         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
13335         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
13336         REPLACE_RINTL.
13337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
13338         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
13339         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
13340         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
13342 2019-01-20  Bruno Haible  <bruno@clisp.org>
13344         log10l: Work around inaccurate implementation on NetBSD.
13345         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
13346         * lib/log10l.c: Comment out too simplistic override.
13347         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
13349 2019-01-20  Bruno Haible  <bruno@clisp.org>
13351         logl: Work around inaccurate implementation on NetBSD.
13352         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
13353         * lib/logl.c: Comment out unused code.
13354         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
13356 2019-01-20  Bruno Haible  <bruno@clisp.org>
13358         expm1l: Work around inaccurate implementation on NetBSD.
13359         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
13360         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
13361         REPLACE_EXPM1L.
13362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
13363         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
13364         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
13365         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
13367 2019-01-20  Bruno Haible  <bruno@clisp.org>
13369         expl: Work around inaccurate implementation on NetBSD.
13370         * lib/math.in.h (expl): Test also REPLACE_EXPL.
13371         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
13372         REPLACE_EXPL.
13373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
13374         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
13375         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
13376         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
13378 2019-01-20  Bruno Haible  <bruno@clisp.org>
13380         exp2l: Work around inaccurate implementation on NetBSD.
13381         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
13382         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
13384 2019-01-20  Bruno Haible  <bruno@clisp.org>
13386         floor, floorl: Avoid autoconf warnings.
13387         * modules/floor (configure.ac): Use AC_REQUIRE.
13388         * modules/floorl (configure.ac): Likewise.
13390 2019-01-20  Bruno Haible  <bruno@clisp.org>
13392         Defeat current GCC optimizations in math autoconf tests.
13393         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
13394         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13395         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13396         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13397         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13398         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13399         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13400         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13401         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13402         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13403         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13404         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13405         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13406         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13407         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
13408         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
13409         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
13410         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13411         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13412         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
13413         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
13414         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13415         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
13416         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13417         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
13418         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
13419         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13420         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13421         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13422         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13423         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13424         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13425         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13426         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13428         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13429         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13430         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13432 2019-01-19  Pádraig Brady  <P@draigBrady.com>
13434         gettext: support disabling use of VLAs
13435         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
13437 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
13439         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
13440         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
13442 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
13444         fcntl: Fix syntax error (regression from 2018-10-05).
13445         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
13447 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13449         relocatable: improve documentation.
13450         * doc/relocatable-maint.texi (Supporting Relocation): For
13451         substitutions performed by config.status, we need more variables
13452         (for instance datarootdir defaults to '${prefix}/share' so we need
13453         prefix).
13455 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13457         backup: update dependencies
13458         * modules/backup-rename (Depends-on): It now depends on opendirat
13459         instead of opendir.  It also uses stdint, and xalloc-oversized.
13460         But no longer dirfd.
13461         * modules/backupfile (Depends-on): Add xalloc-oversized.
13463 2019-01-13  Bruno Haible  <bruno@clisp.org>
13465         getcwd: Fix test failure when building on a Linux 9p file system.
13466         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
13467         EINVAL from mkdir like ENAMETOOLONG.
13468         * tests/test-getcwd.c (test_long_name): Likewise.
13470 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
13472         Fix typos found by codespell.
13473         * lib/*.[hc]: Fix typos in comments.
13474         * pygnulib/*.py: Fix typos in error messages and comments.
13476 2019-01-12  Bruno Haible  <bruno@clisp.org>
13478         doc: Fix documentation about container data types.
13479         Reported by Werner Lemberg <wl@gnu.org>.
13480         * doc/containers.texi (Container data types): Fix typo.
13482 2019-01-10  Bruno Haible  <bruno@clisp.org>
13484         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
13485         Reported by Reuben Thomas <rrt@sc3d.org>.
13486         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
13488 2019-01-06  Bruno Haible  <bruno@clisp.org>
13490         maintainer-makefile: Make the configure.ac section optional.
13491         * top/maint.mk (GREP, SED): Define if not defined.
13493 2019-01-06  Bruno Haible  <bruno@clisp.org>
13495         localename: Assume setlocale function.
13496         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
13497         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
13499 2019-01-06  Bruno Haible  <bruno@clisp.org>
13501         doc: Add documentation about container data types.
13502         * doc/containers.texi: New file.
13503         * doc/gnulib.texi (Particular Modules): Include it.
13505 2019-01-06  Bruno Haible  <bruno@clisp.org>
13507         doc: Update documentation about 'progname' module.
13508         * doc/progname.texi: Rename from doc/error.texi. Change node name and
13509         title. Rewrite.
13510         * doc/gnulib.texi (Particular Modules): Update.
13512 2019-01-06  Bruno Haible  <bruno@clisp.org>
13514         doc: Document the xstdopen and *-safer modules.
13515         * doc/xstdopen.texi: New file.
13516         * doc/gnulib.texi (Particular Modules): Include it.
13518 2019-01-06  Bruno Haible  <bruno@clisp.org>
13520         xstdopen: Add tests.
13521         * tests/test-xstdopen.c: New file.
13522         * tests/test-xstdopen.sh: New file.
13523         * modules/xstdopen-tests: New file.
13525         xstdopen: New module.
13526         * lib/xstdopen.h: New file.
13527         * lib/xstdopen.c: New file.
13528         * modules/xstdopen: New file.
13530 2019-01-06  Bruno Haible  <bruno@clisp.org>
13532         stdopen: Fix compilation error with IRIX cc.
13533         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
13535 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13537         xfreopen need not include stdio--.h
13538         * lib/xfreopen.c: Do not include stdio--.h.
13540         xfreopen need not depend on freopen-safer
13541         * modules/xfreopen (Depends-on):
13542         Depend on freopen, not freopen-safer.
13544         stdopen: modernize and simplify
13545         * lib/stdopen.c: Update copyright date
13546         Do not include sys/types.h; no longer needed these days.
13547         (stdopen): Use C99-style decl in loop.  Return int errno
13548         value, rather than just a bool.  Do not worry about fd mismatches,
13549         since the caller cares only if 0, 1, 2 are occupied.
13550         * lib/stdopen.h: No need to include <stdbool.h>.
13551         * m4/stdopen.m4: Remove.
13552         * modules/stdopen: New file.
13554         stdopen: copy from last use in coreutils
13555         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
13556         New files, taken from their last commit in coreutils
13557         2007-07-23T12:35:58Z!jim@meyering.net
13558         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
13560 2019-01-05  Bruno Haible  <bruno@clisp.org>
13562         argp: Don't pass an invalid argument to dgettext().
13563         Reported by He X <xw897002528@gmail.com>.
13564         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
13565         dgettext().
13567 2019-01-05  Bruno Haible  <bruno@clisp.org>
13569         argp: Don't pass an invalid argument to dgettext().
13570         Reported by He X <xw897002528@gmail.com>.
13571         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
13572         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
13573         dgettext().
13575 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13577         stdioext: port to newer 32-bit Android
13578         Problem reported by Tom Yan in:
13579         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
13580         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
13581         (fp_) [__ANDROID__]: Use it.
13583 2019-01-04  Bruno Haible  <bruno@clisp.org>
13585         lock: Fix link error with --enable-threads=pth.
13586         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
13587         Mark as weak.
13589 2019-01-04  Bruno Haible  <bruno@clisp.org>
13591         Fix link errors in unit tests.
13592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13593         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
13594         * modules/array-map-tests (Makefile.am): Link test-array_map against
13595         libintl.
13596         * modules/array-set-tests (Makefile.am): Link test-array_set against
13597         libintl.
13598         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
13599         libintl.
13600         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
13601         libintl.
13602         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
13603         against libintl.
13604         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
13605         against libintl.
13607 2019-01-04  Bruno Haible  <bruno@clisp.org>
13609         Fix incorrect 'Link' sections.
13610         * modules/regex (Link): Mention the link requirement of module 'lock'.
13611         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
13613 2019-01-04  Bruno Haible  <bruno@clisp.org>
13615         Fix some 'Link' sections.
13616         * modules/c-stack (Link): Add link directive from the 'gettext-h'
13617         dependency.
13618         * modules/getaddrinfo (Link): Likewise.
13620 2019-01-04  Bruno Haible  <bruno@clisp.org>
13622         Remove redundant 'Link' sections.
13623         * modules/canon-host (Link): Remove section.
13624         * modules/timevar (Link): Likewise.
13626 2019-01-04  Bruno Haible  <bruno@clisp.org>
13628         Remove incorrect 'Link' sections.
13629         * modules/acl (Link): Remove section. Use combined 'Link' sections from
13630         the dependencies instead.
13631         * modules/crypto/md5 (Link): Likewise.
13632         * modules/crypto/sha1 (Link): Likewise.
13633         * modules/crypto/sha256 (Link): Likewise.
13634         * modules/crypto/sha512 (Link): Likewise.
13635         * modules/faccessat (Link): Likewise.
13636         * modules/fdutimensat (Link): Likewise.
13637         * modules/iconv_open-utf (Link): Likewise.
13638         * modules/propername (Link): Likewise.
13639         * modules/qacl (Link): Likewise.
13640         * modules/unicodeio (Link): Likewise.
13641         * modules/utimecmp (Link): Likewise.
13642         * modules/utimensat (Link): Likewise.
13643         * modules/xstriconv (Link): Likewise.
13644         * modules/xstriconveh (Link): Likewise.
13646 2019-01-04  Bruno Haible  <bruno@clisp.org>
13648         gnulib-tool: New option --extract-recursive-link-directive.
13649         * gnulib-tool (func_usage): Document the new options
13650         --extract-recursive-dependencies, --extract-recursive-link-directive.
13651         (func_verify_module): Document output variables.
13652         (func_get_dependencies_recursively): New function.
13653         (func_get_link_directive_recursively): New function.
13654         Use them to implement the new options
13655         --extract-recursive-dependencies, --extract-recursive-link-directive.
13656         * doc/gnulib-tool.texi (Link-time requirements): New section.
13658 2019-01-04  Bruno Haible  <bruno@clisp.org>
13660         Clarify meaning of 'Link' section in module description.
13661         * doc/gnulib.texi (Module description): Clarify the meaning of the
13662         'Link' section versus the one of the dependencies.
13663         * NEWS: Mention the change.
13665 2019-01-04  Bruno Haible  <bruno@clisp.org>
13667         pselect: Fix module description.
13668         * modules/pselect (Link): Put one link option per line.
13670 2019-01-04  Bruno Haible  <bruno@clisp.org>
13672         cosl: Fix module description.
13673         * modules/cosl (Link): Fix typo.
13674         * modules/mathl (configure.ac): Likewise.
13676 2019-01-04  Bruno Haible  <bruno@clisp.org>
13678         c-xvasprintf: Fix module dependencies.
13679         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
13681 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
13683         bootstrap: die when some submodules are not initialized
13684         * build-aux/bootstrap: Make sure all submodules are initialized.
13686 2019-01-04  Bruno Haible  <bruno@clisp.org>
13688         bitsetv: Fix module dependencies.
13689         * lib/bitsetv.c: Include xalloc.h.
13690         * modules/bitsetv (Depends-on): Add 'xalloc'.
13692 2019-01-04  Bruno Haible  <bruno@clisp.org>
13694         xmemdup0: Remove redundant code.
13695         * lib/xmemdup0.h (xalloc_die): Remove declaration.
13697 2019-01-04  Bruno Haible  <bruno@clisp.org>
13699         backupfile: Fix module dependencies.
13700         * modules/backupfile (Depends-on): Add 'xalloc'.
13702 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13704         bitset, crypto/gc: fix conflicts with Solaris 11
13705         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
13706         avoid clash with Solaris 11 <sys/bitset.h>.
13707         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
13708         with Solaris 11 <xorg/gc.h>.
13710 2019-01-04  Bruno Haible  <bruno@clisp.org>
13712         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
13713         Reported by Andy Fiddaman <andy@omniosce.org>.
13714         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
13716 2019-01-03  Eric Blake  <eblake@redhat.com>
13718         maintainer-makefile: fix typo in previous patch
13719         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
13720         of Roman's work.
13722 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
13724         maintainer-makefile: prefer $(GREP) over grep
13725         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
13726         defined.
13727         * top/maint.mk: Use it everywhere.
13729         maintainer-makefile: split long argument lines
13730         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
13731         it would be too long for exec limits on BSD.
13733 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13735         mkfifo: bring back HAVE_MKFIFO macro
13736         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
13737         Problem reported by Andrew Janke in:
13738         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
13740 2018-12-21  Bruno Haible  <bruno@clisp.org>
13742         Assume Autoconf >= 2.63.
13743         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
13744         versions < 2.60.
13746 2018-12-21  Bruno Haible  <bruno@clisp.org>
13748         memcmp: Mention the clang bug.
13749         * tests/test-memcmp.c: Add comment about a known test failure.
13750         * doc/posix-functions/memcmp.texi: Mention the clang bug.
13752 2018-12-20  Jim Meyering  <meyering@fb.com>
13754         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
13755         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
13756           echo '123-x'|LC_ALL=C grep -E '.\bx'
13757         The goal is to revert the first, but reverting it requires to restore
13758         the function deleted in the second. I ran this to restore the deleted
13759         function:
13760           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
13761             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
13762             | patch -R -p1
13763         * lib/dfa.c (charclass_context): Restore deleted function.
13764         Reverting the primary commit removes this change:
13765         dfa: Simplify a building state
13766         * lib/dfa.c (build_state): Simplify a building state.
13768 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13770         version-etc: allow zero authors
13771         * lib/version-etc.c (version_etc_arn): If no authors are given,
13772         omit authorship info instead of dumping core.
13774 2018-12-19  Bruno Haible  <bruno@clisp.org>
13776         lchown tests: Be more permissive regarding errno values.
13777         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
13778         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
13779         alternative to ENOSYS.
13780         * modules/lchown-tests (Depends-on): Add 'errno'.
13781         * modules/fchownat-tests (Depends-on): Likewise.
13783 2018-12-18  Bruno Haible  <bruno@clisp.org>
13785         duplocale: Avoid test failure on AIX 7.
13786         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
13787         (configure.ac): Invoke gt_FUNC_USELOCALE.
13788         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
13789         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
13790         works.
13792 2018-12-18  Bruno Haible  <bruno@clisp.org>
13794         localename: Fix test failure on AIX 7.
13795         Reported by Assaf Gordon in
13796         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
13797         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
13798         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
13799         instead of ac_cv_func_uselocale.
13800         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
13801         HAVE_USELOCALE.
13802         * lib/localename-table.h: Likewise.
13803         * lib/localename-table.c: Likewise.
13804         * tests/test-localename.c: Likewise.
13805         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
13807 2018-12-18  Bruno Haible  <bruno@clisp.org>
13809         localename: Update comments regarding Cygwin.
13810         * lib/localename.c: Update comment.
13811         * doc/posix-functions/uselocale.texi: Update platforms list.
13812         * doc/posix-functions/newlocale.texi: Likewise.
13813         * doc/posix-functions/duplocale.texi: Likewise.
13814         * doc/posix-functions/freelocale.texi: Likewise.
13816 2018-12-16  Bruno Haible  <bruno@clisp.org>
13818         c-stack: Fix for Linux/sparc.
13819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
13820         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
13822 2018-12-16  Bruno Haible  <bruno@clisp.org>
13824         localename: Avoid test failure on some glibc systems.
13825         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
13826         Unset environment variables that might disturb the first setlocale call,
13827         and verify that this setlocale call succeeds.
13829 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
13831         random: Fix build error on native Windows (regression from 2018-06-21).
13832         * lib/random.c (__srandom, __initstate, __setstate, __random,
13833         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
13834         to the symbols without '__' prefix.
13836 2018-12-16  Bruno Haible  <bruno@clisp.org>
13838         obstack, libc-config: Support HP-UX cc in C99 mode.
13839         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
13840         compiler, even when in C99 mode.
13841         * lib/cdefs.h (__flexarr): Likewise.
13842         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
13844 2018-12-16  Bruno Haible  <bruno@clisp.org>
13846         localename: Fix test failure on OpenBSD >= 6.2.
13847         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
13848         locale system. Define HAVE_FAKE_LOCALES in this case.
13849         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
13850         HAVE_USELOCALE.
13851         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
13852         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
13853         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
13854         platforms list.
13855         * doc/posix-functions/newlocale.texi: Likewise.
13856         * doc/posix-functions/duplocale.texi: Update platforms list.
13857         * doc/posix-functions/freelocale.texi: Likewise.
13859 2018-12-16  Bruno Haible  <bruno@clisp.org>
13861         duplocale tests: Re-enable the test on platforms without <monetary.h>.
13862         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
13863         of the test, on platforms without <monetary.h>.
13865 2018-12-16  Bruno Haible  <bruno@clisp.org>
13867         localename: Update comments.
13868         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
13870 2018-12-15  Jim Meyering  <meyering@fb.com>
13872         regex: fix indentation
13873         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
13875 2018-12-15  Bruno Haible  <bruno@clisp.org>
13877         openat-safer tests: Avoid test failure on NetBSD 8.
13878         * tests/test-openat-safer.c (main): Execute a Linux specific test only
13879         on Linux.
13881 2018-12-15  Jim Meyering  <meyering@fb.com>
13883         regex: work around a bug in glibc-2.27 and prior
13884         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
13885         assertion for /0|()0|\1|0/.
13886         * tests/test-regex.c (main): Add the same test here.
13888 2018-12-15  Bruno Haible  <bruno@clisp.org>
13890         localename: Fix use of uninitialized shell variable.
13891         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
13892         gt_cv_locale_solaris114 always before use. Remove assignment without
13893         effect.
13895 2018-12-15  Bruno Haible  <bruno@clisp.org>
13897         dfa tests: Avoid test failure on Alpine Linux.
13898         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13899         command found on Alpine Linux.
13901 2018-12-15  Jim Meyering  <meyering@fb.com>
13903         dfa: avoid new warnings from gcc
13904         These would prevent building with -Werror and a Dec snapshot of gcc.
13905         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13906         Rename each inner instance to "p".
13907         (charclass_context): Remove unused static function.
13909 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13911         mkdir-p: improve diagnostic for FUSE mounts
13912         Problem reported by Niklas Hambüchen in:
13913         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13914         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13915         errno to mkdir errno if the stat errno is likely more interesting.
13917 2018-12-14  Bruno Haible  <bruno@clisp.org>
13919         hash-map: Add tests.
13920         * tests/test-hash_map.c: New file.
13921         * modules/hash-map-tests: New file.
13923         linkedhash-map: Add tests.
13924         * tests/test-linkedhash_map.c: New file.
13925         * modules/linkedhash-map-tests: New file.
13927         array-map: Add tests.
13928         * tests/test-array_map.c: New file.
13929         * modules/array-map-tests: New file.
13931         xmap: New module.
13932         * lib/gl_xmap.h: New file.
13933         * lib/gl_xmap.c: New file.
13934         * modules/xmap: New file.
13936         hash-map: New module.
13937         * lib/gl_hash_map.h: New file.
13938         * lib/gl_hash_map.c: New file.
13939         * modules/hash-map: New file.
13941         linkedhash-map: New module.
13942         * lib/gl_linkedhash_map.h: New file.
13943         * lib/gl_linkedhash_map.c: New file.
13944         * lib/gl_anyhash1.h: Update comments.
13945         * lib/gl_anyhash2.h: Likewise.
13946         * modules/linkedhash-map: New file.
13948         array-map: New module.
13949         * lib/gl_array_map.h: New file.
13950         * lib/gl_array_map.c: New file.
13951         * modules/array-map: New file.
13953         map: New module.
13954         * lib/gl_map.h: New file.
13955         * lib/gl_map.c: New file.
13956         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13957         conflict with gl_map.h.
13958         * modules/map: New file.
13960 2018-12-13  Bruno Haible  <bruno@clisp.org>
13962         select tests: Avoid test failure on Cygwin.
13963         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13965 2018-12-13  Bruno Haible  <bruno@clisp.org>
13967         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13968         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13970 2018-12-13  Bruno Haible  <bruno@clisp.org>
13972         localeconv tests: Avoid test failure on Cygwin.
13973         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13974         'mon_grouping' tests.
13976 2018-12-11  Bruno Haible  <bruno@clisp.org>
13978         omap: Don't dispose the old value when the function returns it.
13979         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13980         here.
13981         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13982         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13983         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13984         here.
13986         array-omap, avltree-omap, rbtree-omap: Tweak style.
13987         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13988         false.
13989         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13991         rbtree-omap: Add tests.
13992         * tests/test-rbtree_omap.c: New file.
13993         * modules/rbtree-omap-tests: New file.
13995         avltree-omap: Add tests.
13996         * tests/test-avltree_omap.c: New file.
13997         * modules/avltree-omap-tests: New file.
13999         array-omap: Add tests.
14000         * tests/test-array_omap.c: New file.
14001         * modules/array-omap-tests: New file.
14003         xomap: New module.
14004         * lib/gl_xomap.h: New file.
14005         * lib/gl_xomap.c: New file.
14006         * modules/xomap: New file.
14008         rbtree-omap: New module.
14009         * lib/gl_rbtree_omap.h: New file.
14010         * lib/gl_rbtree_omap.c: New file.
14011         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
14012         Parameterize.
14013         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
14014         * modules/rbtree-omap: New file.
14015         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
14016         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
14018         avltree-omap: New module.
14019         * lib/gl_avltree_omap.h: New file.
14020         * lib/gl_avltree_omap.c: New file.
14021         * lib/gl_avltree_ordered.h: Code moved to here from
14022         lib/gl_avltree_oset.c. Parameterize.
14023         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
14024         * lib/gl_anytree_omap.h: New file.
14025         * modules/avltree-omap: New file.
14026         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
14027         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
14029         array-omap: New module.
14030         * lib/gl_array_omap.h: New file.
14031         * lib/gl_array_omap.c: New file.
14032         * modules/array-omap: New file.
14034         omap: New module.
14035         * lib/gl_omap.h: New file.
14036         * lib/gl_omap.c: New file.
14037         * modules/omap: New file.
14039 2018-12-11  Bruno Haible  <bruno@clisp.org>
14041         hash-set, linkedhash-set: Reduce code duplication.
14042         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
14043         lib/gl_anyhash_set1.h.
14044         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
14045         lib/gl_anyhash_set2.h. Parameterize.
14046         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
14047         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
14048         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
14049         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
14050         * lib/gl_rbtreehash_list.c: Likewise.
14051         * lib/gl_linkedhash_list.c: Likewise.
14052         (hash_resize_after_add): Remove function.
14053         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
14054         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
14055         * gl_hash_set.c: Likewise.
14056         * modules/avltreehash-list (Files, Makefile.am): Update file list.
14057         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
14058         * modules/linkedhash-list (Files, Makefile.am): Likewise.
14059         * modules/linkedhash-set (Files, Makefile.am): Likewise.
14060         * modules/hash-set (Files, Makefile.am): Likewise.
14062 2018-12-11  Bruno Haible  <bruno@clisp.org>
14064         array-set: Optimize.
14065         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
14066         outside the loop, not inside the loop.
14068 2018-12-11  Bruno Haible  <bruno@clisp.org>
14070         times: Fix tests.
14071         * tests/test-times.c (doublecmp): Implement a total order.
14073 2018-12-11  Bruno Haible  <bruno@clisp.org>
14075         array-set, linkedhash-set, hash-set: Fix tests.
14076         * tests/test-array_set.c (cmp_objects_in_array): New function.
14077         (check_equals): Use it.
14078         * tests/test-hash_set.c: Likewise.
14079         * tests/test-linkedhash_set.c: Likewise.
14081 2018-12-08  Bruno Haible  <bruno@clisp.org>
14083         Fix comments.
14084         * lib/gl_list.h (gl_list_free): Clarify what it does.
14085         * lib/gl_oset.h (gl_oset_free): Likewise.
14086         * lib/gl_set.h (gl_set_free): Likewise.
14087         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
14088         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
14089         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
14090         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
14092 2018-12-03  Bruno Haible  <bruno@clisp.org>
14094         hash-set: Add tests.
14095         * tests/test-hash_set.c: New file.
14096         * modules/hash-set-tests: New file.
14098         linkedhash-set: Add tests.
14099         * tests/test-linkedhash_set.c: New file.
14100         * modules/linkedhash-set-tests: New file.
14102         array-set: Add tests.
14103         * tests/test-array_set.c: New file.
14104         * modules/array-set-tests: New file.
14106         xset: New module.
14107         * lib/gl_xset.h: New file.
14108         * lib/gl_xset.c: New file.
14109         * modules/xset: New file.
14111         hash-set: New module.
14112         * lib/gl_hash_set.h: New file.
14113         * lib/gl_hash_set.c: New file.
14114         * modules/hash-set: New file.
14116         linkedhash-set: New module.
14117         * lib/gl_linkedhash_set.h: New file.
14118         * lib/gl_linkedhash_set.c: New file.
14119         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
14120         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
14121         * lib/gl_anyhash_primes.h: New file, extracted from
14122         lib/gl_anyhash_list2.h.
14123         * lib/gl_anyhash_list2.h: Include it.
14124         (primes, next_prime): Remove definitions.
14125         * modules/linkedhash-set: New file.
14126         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
14127         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
14128         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
14129         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
14130         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
14131         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
14133         array-set: New module.
14134         * lib/gl_array_set.h: New file.
14135         * lib/gl_array_set.c: New file.
14136         * modules/array-set: New file.
14138         set: New module.
14139         * lib/gl_set.h: New file.
14140         * lib/gl_set.c: New file.
14141         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
14142         gl_set.h.
14143         * modules/set: New file.
14145 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
14147         bison: don't force the Yacc mode
14148         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
14149         errors when Bison features are used in the grammar file.  Some of
14150         these features (such as %expect) were flagged non-yacc recently.  Most
14151         of the time, -y is actually used to please Automake's ylwrap which
14152         expects the output to be y.tab.c.
14153         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
14155 2018-12-01  Bruno Haible  <bruno@clisp.org>
14157         gnupload: Document short options.
14158         * build-aux/gnupload (usage): Document the short options.
14160 2018-11-28  Ben Elliston  <bje@gnu.org>
14162         gnupload: Support option -h as alias of --help.
14163         * build-aux/gnupload: Support -h.
14165 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14167         memrchr: port better to clang
14168         * lib/memrchr.c (__memrchr): Cast to void * instead of to
14169         longword *, to pacify clang -Wcast-align (Bug#33544).
14171 2018-11-29  Eric Blake  <eblake@redhat.com>
14173         docs: mention printf %m considerations
14174         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
14175         is not portable, and is easy enough to work around.
14176         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
14177         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
14178         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
14179         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
14180         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14181         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14182         * doc/posix-functions/printf.texi (printf): Likewise.
14183         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
14184         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
14185         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
14186         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14187         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14188         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14189         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14190         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14191         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
14192         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
14193         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14194         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14196 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
14198         bitset: rename ebitset/expandable.* as tbitset/table.*
14199         See
14200         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
14201         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
14202         * lib/bitset/table.h, lib/bitset/table.c: these.
14203         Rename all the ebitset* symbols as tbitset*.
14204         Adjust dependencies.
14206 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
14208         bitset: check the operations
14209         * tests/test-bitset.c (bitset_random): New.
14210         Use it.
14211         * lib/bitset/expandable.c (ebitset_not): Fix typo.
14213 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
14215         bitset: properly use false/true instead of 0/1 for Booleans
14216         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
14217         0/1, as Booleans.
14219 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
14221         bitset: rename BITSET_VARRAY as BITSET_VECTOR
14222         For consistency with the name of the file.
14223         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
14224         * lib/bitset/stats.c, lib/bitset/vector.c
14225         (BITSET_VARRAY): Rename as...
14226         (BITSET_VECTOR): this.
14228 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14230         strerror_r-posix: memmove, not memcpy
14231         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
14232         since the source and destination might overlap in the call
14233         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
14234         Simplify.
14236 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
14238         bitsetv: new module
14239         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
14241 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
14243         bitset: add tests and doc
14244         First stabs at providing a documentation and test for the bitset
14245         module.
14246         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
14248 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
14250         bitset: new module
14251         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
14252         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
14253         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
14254         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
14255         * lib/bitset/vector.h, modules/bitset:
14256         New.
14258 2018-11-23  Bruno Haible  <bruno@clisp.org>
14260         localename: Fix gettext test failures on mingw.
14261         * lib/localename.c (gl_locale_name_posix): Convert the result of
14262         gl_locale_name_environ to XPG syntax.
14264 2018-11-23  Karl Berry  <karl@freefriends.org>
14266         * config/srclistvars.txt,
14267         * config/srclist.txt: remove all gettext references;
14268         the gettext maintainers will sync as needed.
14270 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
14272         mktime: add libc-config dependency
14273         I missed this when we synced from glibc.
14274         * modules/mktime (Depends-on): Add libc-config.
14276 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
14278         longlong: fix comment typo
14279         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
14281 2018-11-11  Bruno Haible  <bruno@clisp.org>
14283         havelib: Remove the need to include asm-underscore.m4.
14284         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
14285         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
14286         gl_HOST_CPU_C_ABI.
14287         * modules/havelib (Files): Add host-cpu-c-abi.m4.
14288         (Depends-on): Remove host-cpu-c-abi.
14290 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
14292         parse-datetime: simplify test for mktime failure
14293         * lib/parse-datetime.y (mktime_ok): Simplify.
14294         Remove args TZ and T; no longer needed.  Callers changed.
14296         posixtm: simplify test for mktime failure
14297         * lib/posixtm.c (posixtime): Simplify.
14299         nstrftime: simplify test for mktime failure
14300         * lib/nstrftime.c (__strftime_internal): Simplify.
14302 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14304         gnulib-common.m4: port _Noreturn to C++
14305         Problem reported by Akim Demaille in:
14306         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
14307         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
14308         Merge adjustments from _Noreturn.h and from glibc into the non-C++
14309         version.
14310         * lib/_Noreturn.h: Match gnulib-common.
14312 2018-10-30  Bruno Haible  <bruno@clisp.org>
14314         gnu-make: Fix for NetBSD 8 'make'.
14315         Reported by Reuben Thomas in
14316         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
14317         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
14318         output, ignoring exit codes.
14320 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
14322         maintainer-makefile: fix syntax-check rule for "same.h"
14323         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
14324         for 'same_nameat', too.
14326 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
14328         havelib: fix nested ‘configure’ chatter
14329         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
14330         AC_CACHE_CHECK calls, which resulted in confusing output like
14331         “checking for the common suffixes of directories in the library
14332         search path... checking for 64-bit host... no lib,lib”.
14334         backupfile: tweak for better code
14335         * lib/backupfile.c: Sort include directives, and remove
14336         unnecessary <limits.h> include.
14337         (FALLTHROUGH): New macro, copied from other modules.
14338         (backupfile_internal): Use it to avoid code duplication.
14339         This lets GCC 8.2.1 generate better code by inlining the
14340         call to check_extension.
14342 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14344         backupfile: new dir_fd args
14345         New module opendirat with code taken from fts.
14346         Use this module to let backupfile use a directory file descriptor.
14347         * NEWS: Document the incompatible change.
14348         * lib/backup-find.c (find_backup_file_name):
14349         * lib/backup-rename.c (backup_file_rename):
14350         New arg DIR_FD.
14351         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
14352         (SIZE_MAX): Remove.
14353         Include opendirat.h rather than dirent--.h.
14354         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
14355         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
14356         (backupfile_internal): New arg DIR_FD.  All callers changed.
14357         * lib/fts.c: Include opendirat.h.
14358         (opendirat): Move to opendirat.c.
14359         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
14360         * modules/backupfile (Depends-on): Remove dirfd, opendir.
14361         Add opendirat.
14362         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
14363         Add opendirat.
14365 2018-10-23  Bruno Haible  <bruno@clisp.org>
14367         localename: Simplify support for per-thread locales on Solaris 11.4.
14368         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
14369         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
14370         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
14371         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
14372         specific code.
14373         * lib/localename-table.h: Update comments.
14374         * lib/localename-table.c: Update comments.
14375         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
14376         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
14377         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
14378         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
14379         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
14380         HAVE_NAMELESS_LOCALES here.
14381         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
14382         m4/intlsolaris.m4.
14383         * modules/gettext (Files): Likewise.
14385 2018-10-22  Bruno Haible  <bruno@clisp.org>
14387         std-gnu11: Support Autoconf versions < 2.64.
14388         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
14389         when _AC_DO_LIMIT does not exist.
14391 2018-10-22  Bruno Haible  <bruno@clisp.org>
14393         Assume Autoconf >= 2.63.
14394         * DEPENDENCIES: Mention the requirement.
14396         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
14397         (func_get_filelist): Don't list m4/onceonly.m4 any more.
14398         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
14399         * m4/onceonly.m4: Remove file.
14401         * m4/openmp.m4: Remove file.
14402         * modules/openmp (Files): Remove m4/openmp.m4.
14404         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
14405         htmldir, dvidir, pdfdir, psdir, localedir.
14406         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
14408         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
14409         Autoconf < 2.60.
14410         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
14411         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
14413         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
14414         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
14415         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
14417         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
14418         exists.
14419         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
14421         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
14422         Autoconf < 2.61.
14424         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
14425         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
14426         Autoconf >= 2.52.
14428         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
14429         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
14430         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
14432 2018-10-22  Bruno Haible  <bruno@clisp.org>
14434         Assume Automake >= 1.11.
14435         * m4/configmake.m4: Update comments.
14436         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
14437         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
14438         of 'eval'.
14439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
14440         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
14441         requires Automake >= 1.11.
14443 2018-10-22  Bruno Haible  <bruno@clisp.org>
14445         localename: Fix typo in comment.
14446         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
14448 2018-10-22  Bruno Haible  <bruno@clisp.org>
14450         Fix failure of 'gnulib-tool --create-testdir' with all modules.
14451         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
14453 2018-10-21  Bruno Haible  <bruno@clisp.org>
14455         locale: Ease integration with GNU libintl.
14456         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
14457         GNULIB_defined_freelocale): New macros.
14459 2018-10-21  Bruno Haible  <bruno@clisp.org>
14461         localename: Fine-tune support for per-thread locales on Solaris 11.4.
14462         * lib/localename-table.h: New file, extracted from lib/localename.c.
14463         * lib/localename-table.c: Likewise.
14464         * lib/localename.c: Include localename-table.h.
14465         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
14466         locale_hash_function instead of pointer_hash.
14467         * modules/localename (Files): Add lib/localename-table.h,
14468         lib/localename-table.c.
14469         (lib_SOURCES): Add localename-table.c.
14470         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
14471         for Solaris 11.4 locale system only on Solaris. Test for it
14472         independently whether getlocalename_l exists.
14473         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
14474         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
14475         HAVE_NAMELESS_LOCALES.
14476         * modules/gettext (Files): Add m4/intlsolaris.m4.
14478 2018-10-21  Bruno Haible  <bruno@clisp.org>
14480         Small update from gettext.
14481         * m4/intl.m4: Update from gettext:
14482         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
14483         mode on AIX.
14484         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
14485         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
14487 2018-10-16  Bruno Haible  <bruno@clisp.org>
14489         mountlist: Remove support for Cray with UNICOS 9.
14490         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14491         MOUNTED_LISTMNTENT.
14492         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
14494 2018-10-16  Bruno Haible  <bruno@clisp.org>
14496         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
14497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
14498         STAT_STATFS2_FS_DATA.
14499         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
14500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14501         MOUNTED_GETMNT.
14502         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
14503         * lib/getloadavg.c (decstation): Remove definition and case.
14504         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
14505         * lib/getgroups.c: Likewise.
14506         * doc/posix-functions/getgroups.texi: Likewise.
14507         * lib/time.in.h: Update comments.
14509 2018-10-16  Bruno Haible  <bruno@clisp.org>
14511         getloadavg: Remove support for ConvexOS.
14512         * lib/getloadavg.c: Remove convex case.
14514 2018-10-16  Bruno Haible  <bruno@clisp.org>
14516         getloadavg: Remove support for Sony NEWS.
14517         * lib/getloadavg.c: Remove sony_news case.
14519 2018-10-16  Bruno Haible  <bruno@clisp.org>
14521         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
14522         * lib/fsusage.c: Remove _SEQUENT_ case.
14523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14524         * lib/mountlist.c: Don't test for MNTTABNAME.
14525         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
14526         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
14527         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
14528         * lib/stat-size.h: Don't mention the Sequent bug.
14529         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
14531 2018-10-16  Bruno Haible  <bruno@clisp.org>
14533         fsusage: Remove support for AIX 3.
14534         * lib/fsusage.c: Remove code for AIX 3.
14535         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
14537 2018-10-16  Bruno Haible  <bruno@clisp.org>
14539         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
14540         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
14541         * lib/fsusage.c: Remove code for AIX PS/2.
14542         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
14543         * lib/getloadavg.c: Likewise.
14545 2018-10-16  Bruno Haible  <bruno@clisp.org>
14547         getloadavg: Remove support for HP-UX on m68k.
14548         * lib/getloadavg.c: Remove hp9000s300 case.
14550 2018-10-16  Bruno Haible  <bruno@clisp.org>
14552         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
14553         * lib/fsusage.c: Remove DOLPHIN case.
14554         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14555         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
14557 2018-10-16  Bruno Haible  <bruno@clisp.org>
14559         getloadavg: Remove support for Alliant FX/2800.
14560         * lib/getloadavg.c: Remove alliant case.
14562 2018-10-16  Bruno Haible  <bruno@clisp.org>
14564         getloadavg: Remove support for tek4300.
14565         * lib/getloadavg.c: Remove tek4300 case.
14567 2018-10-16  Bruno Haible  <bruno@clisp.org>
14569         getloadavg: Remove support for Ardent.
14570         * lib/getloadavg.c: Remove ardent case.
14572 2018-10-16  Bruno Haible  <bruno@clisp.org>
14574         mountlist: Remove support for SVR2.
14575         Reported by Andrew Borodin <aborodin@vmail.ru> in
14576         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
14577         * lib/mountlist.c: Remove MOUNTED_FREAD case.
14578         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14579         MOUNTED_FREAD.
14581 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14583         libc-config: merge from glibc
14584         * lib/cdefs.h (__glibc_has_attribute): New macro.
14586         regex: depend on libc-config
14587         * modules/regex (Depends-on): Add libc-config.
14588         This is needed after the recent autoupdate from glibc.
14590 2018-10-14  Bruno Haible  <bruno@clisp.org>
14592         localename: Add support for per-thread locales on Solaris 11.4.
14593         * lib/locale.in.h (newlocale, freelocale): New declarations.
14594         (duplocale): Declare also when the 'localename' module requests it.
14595         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
14596         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
14597         (struniq): Update.
14598         (struct locale_categories_names, struct locale_hash_node): New types.
14599         (LOCALE_HASH_TABLE_SIZE): New constant.
14600         (locale_hash_table, locale_lock): New variables.
14601         (pointer_hash, get_locale_t_name): New functions.
14602         (newlocale, duplocale, freelocale): New overridden functions.
14603         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
14604         * m4/intlsolaris.m4: New file.
14605         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
14606         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
14607         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
14608         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
14609         declared.
14610         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
14611         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14612         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
14613         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14614         * modules/localename (Files): Add intlsolaris.m4.
14615         (Depends-on): Add 'locale'.
14616         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
14617         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
14618         the signatures.
14620 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
14622         timevar: use gethrxtime to get wall clock time
14623         clock_gettime is not portable.  gethrxtime takes the best available
14624         option to get the wall clock time, including clock_gettime (monotonic
14625         clock), and gettime (non monotonic).
14626         Also, using xtime_t instead of float preserves the precision.
14627         Suggested by Bruno Haible.
14628         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
14629         * modules/timevar (Depends-on): We need gethrxtime.
14630         We no longer use times().
14631         (Link): Update.
14632         * lib/timevar.h (timevar_time_def): Use xtime_t.
14633         * lib/timevar.c (set_to_current_time): Use gethrxtime.
14634         (timevar_print): Instead of checking whether the timings themselves
14635         are large enough for the timevar to be printed, check the percentages.
14637 2018-10-14  Bruno Haible  <bruno@clisp.org>
14639         wcsnrtombs: Work around Solaris 11.4 bug.
14640         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
14641         macro.
14642         (gl_FUNC_WCSNRTOMBS): Invoke it.
14643         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
14645 2018-10-14  Bruno Haible  <bruno@clisp.org>
14647         mbsnrtowcs: Work around Solaris 11.4 bug.
14648         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
14649         macro.
14650         (gl_FUNC_MBSNRTOWCS): Invoke it.
14651         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
14653 2018-10-14  Bruno Haible  <bruno@clisp.org>
14655         doc: Update for Solaris 11.4.
14656         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
14657         mention Solaris 11.4.
14658         * m4/printf.m4: Update comments about Solaris.
14659         * m4/log.m4: Likewise.
14660         * m4/log10.m4: Likewise.
14661         * m4/logb.m4: Likewise.
14662         * m4/logbf.m4: Likewise.
14663         * m4/logbl.m4: Likewise.
14664         * m4/rename.m4: Likewise.
14665         * m4/wcrtomb.m4: Likewise.
14666         * m4/hostent.m4: Likewise.
14667         * m4/servent.m4: Likewise.
14669 2018-10-14  Bruno Haible  <bruno@clisp.org>
14671         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
14672         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
14673         pointer.
14674         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
14675         pointer.
14676         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
14677         pointer.
14678         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
14679         pointer.
14680         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
14681         pointer.
14683 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14685         bootstrap: fix wget command for po files.
14686         * build-aux/bootstrap (po_download_command_format): Fix comment,
14687         and adjust callers.
14689 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14691         timevar: improve the output format
14692         Suggested by Bruno Haible.
14693         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
14694         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
14695         wall, since its resolution is much higher.
14697 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14699         timevar: expect that getrusage is available.
14700         Don't keep both times and getrusage as backend: both are guaranteed by
14701         gnulib, a single one suffices.  Using getrusage is open to possibly
14702         tracking other types of resources in the future.
14703         * modules/timevar (Depends-on): Add getrusage.
14704         (configure.ac): Remove gl_TIMEVAR.
14705         (Files): Remove m4/timevar.m4.
14706         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
14707         * lib/timevar.h (timevar_enabled): Clarify documentation.
14708         * lib/timevar.c: Remove all the code about times.
14709         Remove all the CPP guards about getrusage: expect it to be present
14710         (courtesy of gnulib).
14712 2018-10-12  Bruno Haible  <bruno@clisp.org>
14714         mountlist: Improve support for Solaris in 64-bit mode.
14715         Reported by David Wood <David.Wood@deshaw.com> in
14716         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
14717         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
14718         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
14719         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
14721 2018-10-12  Bruno Haible  <bruno@clisp.org>
14723         mountlist: Add support for Minix.
14724         Reported by Assaf Gordon in
14725         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
14726         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
14727         AC_CHECK_FUNCS to check for 'getmntinfo'.
14728         * lib/mountlist.c: Update comments.
14730 2018-10-12  Bruno Haible  <bruno@clisp.org>
14732         Make better use of Autoconf.
14733         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
14734         * m4/manywarnings.m4: Likewise.
14735         * m4/manywarnings-c++.m4: Likewise.
14736         * m4/socklen.m4: Likewise.
14737         * m4/sockpfaf.m4: Likewise.
14738         * m4/stdarg.m4: Likewise.
14739         * m4/visibility.m4: Likewise.
14740         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
14741         indentation.
14742         * m4/ls-mntd-fs.m4: Likewise.
14744 2018-10-11  Bruno Haible  <bruno@clisp.org>
14746         mountlist: Modernize platform lists.
14747         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
14748         platforms, deemphasizing the obsolete ones.
14749         * lib/mountlist.c: Likewise.
14751 2018-10-11  Bruno Haible  <bruno@clisp.org>
14753         getprogname: Add support for 32-bit programs on HP-UX.
14754         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
14755         try the similar functions 32-bit programs on 64-bit HP-UX.
14757 2018-10-11  Bruno Haible  <bruno@clisp.org>
14759         getprogname: Work around program name truncation when possible.
14760         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
14761         possibly use pst_cmd instead.
14763 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14765         fts: cleanup after FTS_NOATIME removal
14766         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
14767         (FTS_STOP): Shrink to minimal values.  We don’t need to
14768         worry about binary compatibility in Gnulib, and the old way
14769         of doing things had a hole in the user options that caused
14770         FTS_OPTIONMASK to not work as desired.
14772 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
14774         fts: remove FTS_NOATIME
14775         This reverts commit da4d6974013c822af1498941e32db774b2031765.
14776         We cannot guarantee that O_NOATIME works: e.g. openat fails
14777         with EPERM if the effective user ID of the caller does not match
14778         the owner of the file and the caller is not privileged.
14779         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
14780         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
14781         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
14782         (FTS_OPTIONMASK): Adjust.
14783         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
14784         (fd_ring_check): Likewise.
14786 2018-10-08  Bruno Haible  <bruno@clisp.org>
14788         csharpcomp*, csharpexec*: Remove support for pnet.
14789         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
14790         HAVE_CSCC.
14791         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
14792         Don't test HAVE_CSCC.
14793         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
14794         (compile_csharp_class): Don't invoke it.
14795         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
14796         HAVE_ILRUN.
14797         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
14798         Don't test HAVE_ILRUN.
14799         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
14800         (execute_csharp_program): Don't invoke it.
14801         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
14802         any more.
14804 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
14806         renameatu: prefer renameat2 to syscall
14807         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
14808         Use renameat2 instead of syscall (Bug#32796).
14809         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
14811 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14813         bootstrap, gnulib-tool: use https instead of insecure rsync
14814         * build-aux/bootstrap (download_po_files, po_download_command_format):
14815         Don't try using rsync; always use wget over https to fetch PO files.
14816         * gnulib-tool (func_import): Likewise.
14817         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14819 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14821         bootstrap, gnulib-tool: correct the translations wget command
14822         * build-aux/bootstrap (po_download_command_format2): Restrict
14823         recursion to a single level.
14824         * gnulib-tool (func_import): Likewise.
14825         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14827 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14829         doc: the gnulib snapshots are not maintained
14830         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
14832 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14834         timevar: add to lib_SOURCES
14835         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
14837 2018-10-07  Bruno Haible  <bruno@clisp.org>
14839         dirent: Update documentation.
14840         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
14842 2018-10-05  Bruno Haible  <bruno@clisp.org>
14844         strpbrk: Make it possible to namespace the defined symbol.
14845         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
14847 2018-10-05  Bruno Haible  <bruno@clisp.org>
14849         strcspn: Make it possible to namespace the defined symbol.
14850         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
14852 2018-10-05  Bruno Haible  <bruno@clisp.org>
14854         raise: Make it possible to namespace the defined symbol.
14855         * lib/raise.c (raise): Undefine only after the replacement function has
14856         been defined.
14857         (raise): Renamed from rpl_raise.
14858         (raise_nothrow): Move to the end of the compilation unit.
14860 2018-10-05  Bruno Haible  <bruno@clisp.org>
14862         memcmp: Make it possible to namespace the defined symbol.
14863         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
14865 2018-10-05  Bruno Haible  <bruno@clisp.org>
14867         explicit_bzero: Make it possible to namespace the defined symbol.
14868         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
14869         glibc.
14871 2018-10-05  Bruno Haible  <bruno@clisp.org>
14873         mkdir-p: Depend on 'mkdir'.
14874         * modules/mkdir-p (Depends-on): Add 'mkdir'.
14876 2018-10-05  Bruno Haible  <bruno@clisp.org>
14878         tempname: Depend on 'mkdir'.
14879         Reported by Maarten Bosmans <mkbosmans@gmail.com>
14880         at <https://savannah.gnu.org/bugs/?33379>.
14881         * modules/tempname (Depends-on): Add 'mkdir'.
14883 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
14885         timevar: rely on gnulib modules for time portability.
14886         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
14887         * m4/timevar.m4: Don't check for clock_t and struct tms,
14888         guaranteed by gnulib.
14889         * lib/timevar.h: Use extern "C" protection.
14890         Include <stdio.h> for FILE.
14891         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
14892         they are guaranteed by gnulib.
14893         Remove uses of clock as (now useless) fallback.
14895 2018-10-04  Bruno Haible  <bruno@clisp.org>
14897         sh-filename: New module.
14898         * m4/sh-filename.m4: New file.
14899         * modules/sh-filename: New file.
14900         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14901         "/bin/sh".
14902         * tests/test-posix_spawn1.c (main): Likewise.
14903         * tests/test-posix_spawn2.c (main): Likewise.
14904         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14905         is_envjavac_gcj43): Likewise.
14906         * lib/javaexec.c (execute_java_class): Likewise.
14907         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14908         * modules/posix_spawnp-tests (Depends-on): Likewise.
14909         * modules/javacomp (Depends-on): Likewise.
14910         * modules/javaexec (Depends-on): Likewise.
14912 2018-10-04  Bruno Haible  <bruno@clisp.org>
14914         spawn-pipe tests: Avoid test failure on native Windows.
14915         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14916         that fd 2 is closed.
14918 2018-10-04  Bruno Haible  <bruno@clisp.org>
14920         fcntl: Make it possible to namespace the defined symbol.
14921         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14922         been defined.
14923         (fcntl): Renamed from rpl_fcntl.
14924         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14925         from fcntl.
14926         (klibc_fcntl): Move to the end of the compilation unit.
14928 2018-10-02  Bruno Haible  <bruno@clisp.org>
14930         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14931         * tests/test-vasnprintf.c (test_function): Change the test added on
14932         2018-09-23 to check only the 18 most significant digits.
14934         vasnprintf tests: Avoid test failure on Cygwin.
14935         * tests/test-vasnprintf.c (test_function): Change the test added on
14936         2018-09-23 to check only the 42 most significant digits.
14938 2018-10-01  Bruno Haible  <bruno@clisp.org>
14940         mkostemp, mkostemps: Update documentation.
14941         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14942         * doc/glibc-functions/mkostemps.texi: Likewise.
14944 2018-10-01  Tom Tromey  <tom@tromey.com>
14946         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14947         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14948         on OS X.
14950 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14952         hmac-*: refactor to remove repetitive code
14953         * lib/hmac.c: A new parameterized single implementation.
14954         * lib/hmac-md5.c: Define parameters and include implementation.
14955         * lib/hmac-sha1.c: Likewise.
14956         * lib/hmac-sha256.c: Likewise.
14957         * lib/hmac-sha512.c: Likewise.
14958         * modules/crypto/hmac-md5: Reference the new implementation file.
14959         * modules/crypto/hmac-sha1: Likewise.
14960         * modules/crypto/hmac-sha256: Likewise.
14961         * modules/crypto/hmac-sha512: Likewise.
14962         * tests/test-hmac-md5.c: Refactor common code to a single function.
14963         * tests/test-hmac-sha1.c: Likewise.
14964         * tests/test-hmac-sha256.c: Likewise.
14965         * tests/test-hmac-sha512.c: Likewise.
14967 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14969         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14970         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14971         key length to that output by sha512, not the blocksize.
14972         Otherwise uninitialized data from the stack
14973         is used when computing the hash.
14974         * tests/test-hmac-sha512.c: Add a shortened key test case.
14975         Reported at https://github.com/coreutils/gnulib/pull/5
14977 2018-09-30  Bruno Haible  <bruno@clisp.org>
14979         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14980         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14981         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14982         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14983         'unsigned int' before comparison with an unsigned value.
14985 2018-09-30  Bruno Haible  <bruno@clisp.org>
14987         grantpt: Remove unnecessary dependency.
14988         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14990 2018-09-30  Bruno Haible  <bruno@clisp.org>
14992         timevar: Small tweaks.
14993         * lib/timevar.h: Fix comments. Add parameter names to function
14994         declarations.
14995         * lib/timevar.c: Include timevar.h immediately after config.h.
14996         * lib/timevar.def: Fix comments.
14997         * modules/timevar (Maintainer): List Akim Demaille.
14999 2018-09-30  Bruno Haible  <bruno@clisp.org>
15001         timevar: Include documentation in gnulib manual.
15002         * doc/timevar.texi: Change node and section name to 'Profiling of
15003         program phases'.
15004         In the code snippets, tweak the #includes and use GNU coding style.
15005         * doc/gnulib.texi: Include timevar.texi.
15007 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
15009         timevar: import from Bison.
15010         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
15011         New files.
15012         * lib/timevar.def: New file.
15013         * doc/timevar.texi: New file.
15015 2018-09-26  Bruno Haible  <bruno@clisp.org>
15017         javacomp-script, javacomp: Add preliminary support for Java 12..17.
15018         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
15019         * lib/javacomp.c (default_target_version): Likewise.
15021 2018-09-26  Bruno Haible  <bruno@clisp.org>
15023         javacomp-script, javacomp: Add support for Java 11.
15024         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
15025         target-version 11.
15026         * lib/javaversion.h: Update comments.
15027         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15028         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15029         TARGET_VERSION_BOUND, target_version_index,
15030         corresponding_classfile_version): Accept source_version 11 and
15031         target_version 11.
15032         * lib/javacomp.h: Update comments accordingly.
15034 2018-09-23  Bruno Haible  <bruno@clisp.org>
15036         vasnprintf: Fix heap memory overrun bug.
15037         Reported by Ben Pfaff <blp@cs.stanford.edu> in
15038         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
15039         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
15040         memory.
15041         * tests/test-vasnprintf.c (test_function): Add another test.
15043 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
15045         maint: mktime.c now shared with glibc
15046         * config/srclist.txt: intprops.h, timegm.c and mktime.c
15047         are now the same in Gnulib and glibc.
15049         mktime: fix _LIBC typo
15050         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
15052 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15054         dfa: optimization for state merge
15055         * lib/dfa.c (merge2): New function.
15056         (merge_nfa_state): Use it.
15058 2018-09-18  Jim Meyering  <meyering@fb.com>
15060         dfa: trivial comment fix: s/is/if/
15061         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
15063 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15065         dfa: use more-informative function name
15066         * lib/dfa.c (maybe_disable_superset_dfa):
15067         Rename from dfautf8noss.  Use change.
15069         dfa: tweak allocation performance
15070         * lib/dfa.c (merge_nfa_state, dfaoptimize):
15071         Prefer ptrdiff_t for indexes some more.
15072         Use char for flags, as it’s wide enough.
15073         Allocate queue and flags together, with one malloc call.
15074         No need to use xnmalloc since the multiplication and
15075         addition cannot overflow (it’s already been checked by
15076         earlier allocation).  Prefer memset to open-coding.
15078         dfa: prune states as we go
15079         * lib/dfa.c (prune): Remove.
15080         dfa: reorder enum for efficiency
15081         (merge_nfa_state): Prune as we go instead of at the end.
15082         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
15084         * lib/dfa.c (END): Now -1 again.  Reorder other elements
15085         of the enumeration to make it easier for GCC to generate
15086         efficient code by using fewer comparisons to check for
15087         ranges of values.
15088         (atom): Take advantage of the reordering.
15090 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15092         dfa: optimize alternation in NFA
15093         Even when similar states exist in alternation, the DFA treats them
15094         as separate items, which may complicate the transition in NFA and
15095         cause slowdown.  This change assembles the states into one.  For
15096         example, ab|ac is changed into a(b|c).  This change speeds-up
15097         matching for many branched patterns.  For example, grep speeds up
15098         more than 30× in:
15100           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
15101           time -p env LC_ALL=C grep -vf in in
15103         * lib/dfa.c (prune): New function.
15104         (merge_nfa_state): New function.  It merges similar NFA states.
15105         (dfaoptimize): New function.  It seeks merged and removed nodes.
15106         (dfaanalyze): Call new function.
15107         (dfautf8noss): Change name from dfaoptimize because of addition of new
15108         function.
15109         (dfacomp): Update caller.
15111         dfa: simplify initial state
15112         Simplifying the initial state enables easier optimization of the NFA.
15113         * lib/dfa.c (enum token): Add new element BEG.
15114         (prtok): Adjust due to adding element BEG.
15115         (dfaparse): Put BEG at a head of tokens.
15116         (state_index): Adjust due to adding element BEG.
15117         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
15118         build initial state.
15119         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
15121 2018-09-18  Bruno Haible  <bruno@clisp.org>
15123         file-has-acl: Fix test failure on Cygwin 2.9.
15124         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
15125         * lib/acl-internal.h: Likewise.
15126         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
15127         * lib/acl-internal.c: Update comments regarding Cygwin.
15128         * lib/acl_entries.c: Likewise.
15129         * lib/file-has-acl.c: Likewise.
15130         (file_has_acl): For Cygwin, use a different way to determine whether
15131         the "default" ACL of a directory is nontrivial.
15132         * lib/get-permissions.c: Update comments regarding Cygwin.
15133         * lib/set-permissions.c: Likewise.
15135 2018-09-18  Bruno Haible  <bruno@clisp.org>
15137         stat-time tests: Fix test failure on Cygwin.
15138         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
15140 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15142         doc: OS X 10.11 lacked ns time functions
15143         According to <https://github.com/zeromq/libzmq/issues/2175>,
15144         nanosecond-resolution timestamp functions were introduced
15145         in macOS 10.12, so document the last version (OS X 10.11)
15146         where they were absent.
15148         gettime: nanotime never existed
15149         Problem reported by Bruno Haible in:
15150         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
15151         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
15152         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
15154 2018-09-18  Bruno Haible  <bruno@clisp.org>
15156         doc: Update statement about target platforms.
15157         Reported by Simon Sobisch.
15158         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
15159         restrictions on MSVC versions.
15161 2018-09-18  Bruno Haible  <bruno@clisp.org>
15163         posix_spawn tests: Fix link error on 64-bit Cygwin.
15164         * tests/test-posix_spawn1.c (environ): Remove declaration.
15165         * tests/test-posix_spawn2.c (environ): Likewise.
15166         * tests/test-posix_spawn3.c (environ): Likewise.
15167         * tests/test-posix_spawn4.c (environ): Likewise.
15168         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
15169         * modules/posix_spawnp-tests (Depends-on): Likewise.
15171 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15173         timespec: new function current_timespec
15174         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
15175         and don’t worry about it failing on a CLOCK_REALTIME arg.
15176         POSIX requires it to succeed and I don’t know of any
15177         counterexamples where the fallbacks would work.
15178         (current_timespec): New function, taken from Emacs.  It is more
15179         convenient than gettime, and can help register allocation.
15180         * lib/timespec.h: Include arg-nonnull.h.
15181         (current_timespec): New declaration.
15182         (gettime, settime): Declare args to be nonnull.
15183         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
15185 2018-09-16  Bruno Haible  <bruno@clisp.org>
15187         setlocale: Improve locale handling on macOS 10.12 or newer.
15188         * lib/setlocale.c: Include header files for CoreFoundation. Declare
15189         gl_locale_name_canonicalize.
15190         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
15191         and LC_MESSAGES.
15192         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
15194 2018-09-16  Bruno Haible  <bruno@clisp.org>
15196         Update list of locale names with scripts on macOS.
15197         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
15198         match Mac OS X 10.13 and recent glibc.
15200 2018-09-16  Bruno Haible  <bruno@clisp.org>
15202         gettext: Use newer macOS APIs when possible.
15203         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
15204         CFLocaleCopyPreferredLanguages.
15206 2018-09-16  Bruno Haible  <bruno@clisp.org>
15208         localename: Revisit macOS specific code.
15209         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
15210         Fix comments about Mac OS X versions.
15212 2018-09-15  Bruno Haible  <bruno@clisp.org>
15214         setlocale: Improve support for locales not supported by libc.
15215         Reported by Dapeng Gao <peter@dpgao.cc> at
15216         <https://savannah.gnu.org/bugs/?54479>.
15217         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
15218         (libintl_setlocale): Use a more error-tolerant strategy when the locale
15219         to be set is not supported by libc: Emit warnings instead of failing.
15221 2018-09-15  Bruno Haible  <bruno@clisp.org>
15223         strstr, strcasestr: Add workaround against glibc-2.28 bug.
15224         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
15225         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
15226         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
15227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
15228         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
15229         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
15230         * doc/glibc-functions/strcasestr.texi: Likewise.
15232 2018-09-14  Bruno Haible  <bruno@clisp.org>
15234         doc: Fix bottom of top-level page.
15235         Reported by Akim Demaille <akim.demaille@gmail.com> in
15236         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
15237         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
15238         mode.
15239         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
15240         accordingly.
15242 2018-09-12  Bruno Haible  <bruno@clisp.org>
15244         Add test case from a recent glibc bug.
15245         * tests/test-strstr.c (main): Add test of long needle.
15246         * tests/test-strcasestr.c (main): Likewise.
15247         * tests/test-c-strstr.c (main): Likewise.
15248         * tests/test-c-strcasestr.c (main): Likewise.
15249         * tests/test-memmem.c (main): Likewise.
15251 2018-09-12  Bruno Haible  <bruno@clisp.org>
15253         Apply Eric Blake's improvements from 2011-02-25 to more tests.
15254         * tests/test-c-strstr.c (main): Add the same tests here as well.
15256 2018-09-12  Bruno Haible  <bruno@clisp.org>
15258         Apply Jim Meyering's fix from 2015-01-11 to more tests.
15259         * tests/test-memmem.c (main): Free haystack.
15260         * tests/test-strcasestr.c (main): Likewise.
15261         * tests/test-c-strcasestr.c (main): Likewise.
15263 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15265         xstrtol: fix missing-TYPE_SIGNED typo
15266         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
15268 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15270         timespec: fix resolution confusion
15271         In normal usage, clock resolution is given in seconds, but the
15272         code was mistakenly using inverse seconds and calling it
15273         “resolution”.  Fix this, partly by renaming two identifiers.
15274         The old names will be kept for a bit, to ease transition.
15275         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
15276         New constants, replacing TIMESPEC_RESOLUTION and
15277         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
15278         All uses changed.
15280 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
15282         mktime: simplify in prep for glibc merge
15283         * lib/mktime.c, lib/timegm.c [_LIBC]:
15284         Include mktime-internal.h (a small file just for glibc)
15285         instead of using a typedef.
15287 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
15289         intprops: minor clarification of code
15290         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
15291         Use _GL_INT_CONVERT rather than reinventing it.
15293 2018-09-07  Bruno Haible  <bruno@clisp.org>
15295         Fix a comment.
15296         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
15298 2018-09-07  Bruno Haible  <bruno@clisp.org>
15300         posix_spawn_file_actions_addchdir: Add tests.
15301         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
15302         * tests/test-posix_spawn4.c: New file.
15303         * modules/posix_spawn_file_actions_addchdir-tests: New file.
15305 2018-09-07  Bruno Haible  <bruno@clisp.org>
15307         posix_spawn_file_actions_addchdir: New module.
15308         Suggested by Eric Blake in
15309         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
15310         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
15311         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
15312         union member 'chdir_action'.
15313         * lib/spawn_faction_addchdir.c: New file.
15314         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
15315         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
15316         HAVE_WORKING_POSIX_SPAWN.
15317         * lib/spawn_faction_adddup2.c: Likewise.
15318         * lib/spawn_faction_addopen.c: Likewise.
15319         * m4/posix_spawn_faction_addchdir.m4: New file.
15320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
15321         'posix_spawn_file_actions_addchdir' is present and whether
15322         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
15323         instead of HAVE_WORKING_POSIX_SPAWN.
15324         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
15325         posix_spawn_file_actions_addchdir is declared.
15326         (gl_SPAWN_H_DEFAULTS): Initialize
15327         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15328         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15329         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
15330         * modules/spawn (Makefile.am): Substitute
15331         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15332         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
15333         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
15334         * modules/posix_spawn_file_actions_addchdir: New file.
15335         * modules/posix_spawn_file_actions_addclose (Depends-on,
15336         configure.ac): Test also REPLACE_POSIX_SPAWN.
15337         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
15338         configure.ac): Likewise.
15339         * modules/posix_spawn_file_actions_addopen (Depends-on,
15340         configure.ac): Likewise.
15341         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
15342         signature.
15343         * doc/posix-functions/posix_spawn.texi: Mention the new module.
15344         * doc/posix-functions/posix_spawnp.texi: Likewise.
15346 2018-09-06  Bruno Haible  <bruno@clisp.org>
15348         stddef: Override max_align_t on NetBSD 8.0/x86.
15349         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
15350         the value of __alignof__ (max_align_t).
15351         * doc/posix-headers/stddef.texi: Mention the issue.
15353 2018-09-06  Bruno Haible  <bruno@clisp.org>
15355         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
15356         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
15357         system fcntl.
15358         * doc/posix-functions/fcntl.texi: Document the issue.
15360 2018-09-06  Bruno Haible  <bruno@clisp.org>
15362         count-trailing-zeros tests: Rely on limits-h module.
15363         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
15364         definition.
15365         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
15367 2018-09-06  Bruno Haible  <bruno@clisp.org>
15369         count-leading-zeros tests: Rely on limits-h module.
15370         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
15371         definition.
15372         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
15374 2018-09-06  Bruno Haible  <bruno@clisp.org>
15376         count-one-bits tests: Rely on limits-h module.
15377         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
15378         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
15380 2018-09-06  Bruno Haible  <bruno@clisp.org>
15382         xstrtoll: Rely on limits-h module.
15383         * lib/xstrtol.c: Don't include intprops.h.
15384         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
15385         * modules/xstrtol (Depends-on): Remove 'intprops'.
15386         * modules/xstrtoll (Depends-on): Add 'limits-h'.
15388 2018-09-06  Bruno Haible  <bruno@clisp.org>
15390         strtoll, strtoull: Rely on limits-h module.
15391         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
15392         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
15393         * modules/strtoll (Depends-on): Add limits-h.
15394         * modules/strtoull (Depends-on): Likewise.
15396 2018-09-06  Bruno Haible  <bruno@clisp.org>
15398         intprops tests: Fix compilation error with pre-C99 compiler.
15399         * tests/test-intprops.c (verify_stmt): New macro.
15400         (VERIFY, main): Use it.
15402 2018-09-06  Bruno Haible  <bruno@clisp.org>
15404         limits-h: Provide numerical limits macros.
15405         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
15406         IRIX and for GCC.
15407         (WORD_BIT, LONG_BIT): Define.
15408         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
15409         <limits.h> does not define LLONG_MAX or WORD_BIT.
15410         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
15411         TYPE_MAXIMUM): New macros, from intprops.h.
15412         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
15413         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
15414         provides.
15416 2018-09-05  Bruno Haible  <bruno@clisp.org>
15418         fcntl: Don't access nonexistent optional argument.
15419         Reported by Frank Busse <f.busse@imperial.ac.uk> in
15420         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
15421         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
15422         don't consume an argument. For actions that take an 'int' argument,
15423         consume an 'int' argument.
15425 2018-09-05  Eric Blake  <eblake@redhat.com>
15427         doc: mention environ pitfall
15428         * doc/posix-functions/environ.texi (environ): Assigning NULL to
15429         environ is a glibc extension.
15431 2018-09-03  Bruno Haible  <bruno@clisp.org>
15433         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
15434         Reported by Antoine Luong <antoine.luong@c-s.fr> in
15435         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
15436         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
15437         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
15438         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
15440 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15442         mktime: fix unlikely race+overflow bug
15443         Problem reported by Alexandre Oliva in:
15444         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
15445         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
15446         to avoid an unlikely race if the compiler delays a load and
15447         if this cascades into a signed integer overflow.
15449 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15451         mktime, timegm: simplify glibc time64_t
15452         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
15453         Now long int, not time_t, since long int is the longstanding type
15454         for this in glibc and there is no need to change it even if time_t
15455         becomes 64 bits - even int would do, though this would be a change
15456         to the glibc generated code.  When this change is merged into
15457         glibc, it should simplify the time_t vs time64_t situation.
15459         mktime, timegm: simplify merge to glibc
15460         Move code around to make a merge to glibc easier to audit.
15461         This should not change behavior.
15462         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
15463         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
15464         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
15465         simplify later conditionals; default the others to zero.  In uses
15466         of these conditionals, explicitly spell out how _LIBC affects
15467         things, so it’s easier to review from a glibc viewpoint.
15468         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
15469         compartmentalize tzset issues.  Move system-dependent tzsettish
15470         code here from mktime.
15471         (mktime): Move tzsettish code to my_tzset, and move
15472         localtime_offset to within mktime so that it doesn’t
15473         need a separate ifdef.
15475 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
15477         intprops: avoid evaluation of some expressions
15478         This makes EXPR_SIGNED (e) easier to use, as it no longer
15479         evaluates the expression E.  Formerly, E was required to be free
15480         of side effects.
15481         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
15482         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
15483         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
15485 2018-08-23  Bruno Haible  <bruno@clisp.org>
15487         getcwd: Add cross-compilation guesses.
15488         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
15489         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
15490         Based on a patch by Paul Eggert.
15491         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
15492         guesses for all GNU systems.
15494 2018-08-19  Bruno Haible  <bruno@clisp.org>
15496         glob-h: Formalize side effects from other modules.
15497         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
15498         * m4/glob.m4 (gl_GLOB): Invoke it.
15500         fnmatch-h: Formalize side effects from other modules.
15501         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
15502         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
15504         limits-h: Formalize side effects from other modules.
15505         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
15506         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
15508 2018-08-19  Bruno Haible  <bruno@clisp.org>
15510         getpass: Move declaration to <unistd.h>.
15511         * lib/unistd.in.h (getpass): New declaration.
15512         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
15513         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
15514         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
15515         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
15516         On glibc systems, don't set REPLACE_GETPASS to 1.
15517         * modules/getpass (Depends-on): Add 'unistd'.
15518         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
15519         (Include): Specify <unistd.h> instead of "getpass.h".
15520         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
15521         (configure.ac): Sync with the configure.ac section of modules/getpass.
15522         (Include): Specify <unistd.h> instead of "getpass.h".
15523         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
15524         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
15525         REPLACE_GETPASS.
15526         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
15527         REPLACE_GETPASS.
15528         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
15529         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
15530         and musl.
15531         * NEWS: Mention the change.
15533 2018-08-19  Bruno Haible  <bruno@clisp.org>
15535         glob: Fix over-optimization due to attribute __nonnull__.
15536         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
15538 2018-08-19  Bruno Haible  <bruno@clisp.org>
15540         glob: Fix another compilation error when glob.h is not replaced.
15541         Reported by Reuben Thomas <rrt@sc3d.org> in
15542         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
15543         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
15544         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
15546 2018-08-18  Bruno Haible  <bruno@clisp.org>
15548         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
15549         Reported by Reuben Thomas <rrt@sc3d.org> in
15550         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
15551         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
15552         in config.h.
15554 2018-08-18  Bruno Haible  <bruno@clisp.org>
15556         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
15557         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
15558         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
15559         Solution proposed by Eli Zaretskii.
15560         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
15561         * lib/gettimeofday.c (GetProcAddress): Likewise.
15562         * lib/link.c (GetProcAddress): Likewise.
15563         * lib/physmem.c (GetProcAddress): Likewise.
15564         * lib/poll.c (GetProcAddress): Likewise.
15565         * lib/select.c (GetProcAddress): Likewise.
15566         * lib/stat-w32.c (GetProcAddress): Likewise.
15568 2018-08-18  Bruno Haible  <bruno@clisp.org>
15570         glob: Fix another compilation error when glob.h is not replaced.
15571         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
15572         * lib/globfree.c: Include <libc-config.h>.
15574 2018-08-18  Bruno Haible  <bruno@clisp.org>
15576         glob: Fix compilation error when glob.h is not replaced.
15577         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
15578         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
15579         * lib/glob_pattern_p.c: Include <libc-config.h>.
15580         * modules/glob (Depends-on): Add libc-config.
15582 2018-08-18  Bruno Haible  <bruno@clisp.org>
15584         scratch_buffer: Add tests.
15585         * tests/test-scratch-buffer.c: New file.
15586         * modules/scratch_buffer-tests: New file.
15588 2018-08-18  Bruno Haible  <bruno@clisp.org>
15590         scratch_buffer: Fix include file.
15591         Reported by Reuben Thomas <rrt@sc3d.org> in
15592         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
15593         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
15594         double-inclusion guard.
15596 2018-08-18  Bruno Haible  <bruno@clisp.org>
15598         glob-h: Revert Paul Eggert's revert.
15599         * m4/glob_h.m4: Revert to previous state.
15600         * modules/glob-h: Likewise.
15602 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15604         glob-h: always build glob.h
15605         This works around a problem reported by Reuben Thomas in:
15606         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
15607         This workaround always builds glob.h, even on platforms that
15608         do not need it; perhaps this could be improved someday.
15609         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
15610         is always created now.
15611         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
15613 2018-08-13  Bruno Haible  <bruno@clisp.org>
15615         monetary: Simplify m4 code.
15616         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
15617         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
15619 2018-08-13  Bruno Haible  <bruno@clisp.org>
15621         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
15622         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
15623         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
15624         and by Paul J. Lucas <paul@lucasmail.org> in
15625         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
15626         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
15628 2018-08-11  Bruno Haible  <bruno@clisp.org>
15630         setlocale: Trivial simplification.
15631         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
15633 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15635         verify: port 'assume' to traditional tools
15636         * lib/verify.h (assume): Port better to Oracle Studio 12.6
15637         and other tools that use /*NOTREACHED*/ comments.
15639 2018-08-10  Bruno Haible  <bruno@clisp.org>
15641         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
15642         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15643         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
15644         'fnmatch-gnu' is in use.
15646 2018-08-07  Bruno Haible  <bruno@clisp.org>
15648         glob-h: Add tests.
15649         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
15650         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
15651         tests/test-glob-h.c.
15652         * modules/glob-h-tests: New file.
15653         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
15654         conditions.
15655         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
15656         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
15658 2018-08-07  Bruno Haible  <bruno@clisp.org>
15660         glob-h: New module.
15661         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
15662         replacements.
15663         * lib/glob.c: Include <config.h>.
15664         * m4/glob_h.m4: New file.
15665         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
15666         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15667         REPLACE_GLOB_PATTERN_P as appropriate.
15668         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
15669         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
15670         * modules/glob-h: New file.
15671         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
15672         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
15673         lstat, sys_stat. Change conditions.
15674         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15675         REPLACE_GLOB_PATTERN_P. Set module indicator.
15676         (Makefile.am): Remove code that is moved to glob-h.
15677         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
15678         * modules/posixcheck (Depends-on): Add glob-h.
15680 2018-08-06  Bruno Haible  <bruno@clisp.org>
15682         Force generation of substitute .h file when C++ support is enabled.
15683         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
15684         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
15685         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
15686         FNMATCH_H to non-empty.
15687         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
15688         ICONV_H to non-empty.
15689         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
15690         MONETARY_H to non-empty.
15691         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
15692         non-empty.
15694 2018-08-06  Bruno Haible  <bruno@clisp.org>
15696         fnmatch-h: Fix test compilation error on mingw (regression from today).
15697         * lib/fnmatch.in.h: Fix conditions.
15699 2018-08-06  Bruno Haible  <bruno@clisp.org>
15701         sys_resource: Relicense under LGPLv2+.
15702         John Malmberg's approval is in
15703         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
15704         * modules/sys_resource (License): Change to LGPLv2+.
15706 2018-08-06  Bruno Haible  <bruno@clisp.org>
15708         fnmatch-h: Add tests.
15709         * tests/test-fnmatch-h.c: New file.
15710         * modules/fnmatch-h-tests: New file.
15711         * tests/test-fnmatch-h-c++.cc: New file.
15712         * modules/fnmatch-h-c++-tests: New file.
15714 2018-08-06  Bruno Haible  <bruno@clisp.org>
15716         fnmatch-h: New module.
15717         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
15718         replacements.
15719         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
15720         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
15721         'posixcheck' warning.
15722         * m4/fnmatch_h.m4: New file.
15723         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
15724         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
15725         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
15726         as appropriate.
15727         * modules/fnmatch-h: New file.
15728         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
15729         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
15730         conditions.
15731         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
15732         indicator.
15733         (Makefile.am): Remove code that is moved to fnmatch-h.
15734         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
15735         REPLACE_FNMATCH.
15736         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
15737         * modules/posixcheck (Depends-on): Add fnmatch-h.
15739 2018-08-06  Bruno Haible  <bruno@clisp.org>
15741         Enable more C++ tests.
15742         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
15743         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
15744         * modules/strings-tests (Depends-on): Add strings-c++-tests.
15745         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
15746         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
15748 2018-08-06  Bruno Haible  <bruno@clisp.org>
15750         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
15751         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
15752         getopt.h.
15753         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
15755 2018-08-05  Bruno Haible  <bruno@clisp.org>
15757         utime-h: Generate header file when module 'posixcheck' is in use.
15758         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
15759         UTIME_H to non-empty.
15761 2018-08-05  Bruno Haible  <bruno@clisp.org>
15763         monetary: Generate header file when module 'posixcheck' is in use.
15764         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
15765         use, set MONETARY_H to non-empty.
15767 2018-08-05  Bruno Haible  <bruno@clisp.org>
15769         iconv-h: Generate header file when module 'posixcheck' is in use.
15770         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
15771         set ICONV_H to non-empty.
15773 2018-08-05  Bruno Haible  <bruno@clisp.org>
15775         Optimize the "checking whether ... is declared without a macro" checks.
15776         Suggested by Paul Eggert in
15777         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
15778         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
15779         Gnulib module 'posixcheck' is not in use.
15781 2018-08-05  Bruno Haible  <bruno@clisp.org>
15783         iconv-h: Enable 'posixcheck' warnings.
15784         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
15785         iconv_open.
15786         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
15788 2018-08-05  Bruno Haible  <bruno@clisp.org>
15790         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
15791         * m4/extern-inline.m4: Add more comments.
15792         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
15793         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
15794         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
15796 2018-08-04  Bruno Haible  <bruno@clisp.org>
15798         New module 'posixcheck'.
15799         * modules/posixcheck: New file.
15800         * m4/posixcheck.m4: New file.
15801         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
15802         (Which modules?): Reference it.
15804 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
15806         dfa: fix memory leak
15807         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
15809 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
15811         ieee754-h: new module
15812         It looks like Emacs can use this for some NaN processing.
15813         Emacs uses it only on double NaNs so it should be safe.
15814         * MODULES.html.sh (func_all_modules): Add ieee754-h.
15815         * config/srclist.txt: Mention ieee754.h in a comment.
15816         * doc/glibc-headers/ieee754.texi (ieee754.h):
15817         Gnulib now has a substitute that should work
15818         except for long double and for non-IEEE platforms.
15819         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
15820         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
15822 2018-07-27  Bruno Haible  <bruno@clisp.org>
15824         iswcntrl: Mention minor problem on macOS.
15825         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
15827 2018-07-26  Colin Watson  <cjwatson@debian.org>
15829         bootstrap, gnulib-tool: fix translations rsync
15830         Previously, we created files such as $pobase/Makefile.in.in and then the
15831         subsequent rsync would immediately delete them.
15832         * build-aux/bootstrap (po_download_command_format): Avoid deleting
15833         non-.po files in target directory when rsyncing translations.
15834         * gnulib-tool (func_import): Likewise.
15835         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15837 2018-07-25  Jim Meyering  <meyering@fb.com>
15839         bootstrap: reinstate definition fo gnulib_mk.
15840         That variable is used at least by cppi.
15841         * build-aux/bootstrap (gnulib_mk): Restore definition.
15842         This reverts the deletion from v0.1-1844-gc66dba9ba.
15844 2018-07-23  Bruno Haible  <bruno@clisp.org>
15846         doc: For module names, use texinfo markup @code{} or @samp{}.
15847         * doc/alloca.texi: Mark gnulib module names with @code.
15848         * doc/alloca-opt.texi: Likewise.
15849         * doc/quote.texi: Likewise.
15850         * doc/posix-functions/freopen.texi: Likewise.
15851         * doc/posix-functions/open.texi: Likewise.
15852         * doc/posix-functions/readlink.texi: Likewise.
15853         * doc/posix-functions/readlinkat.texi: Likewise.
15854         * doc/posix-functions/stdout.texi: Likewise.
15855         * doc/posix-functions/stderr.texi: Likewise.
15856         * doc/posix-functions/unlink.texi: Likewise.
15857         * doc/posix-functions/unlinkat.texi: Likewise.
15858         * doc/posix-functions/utime.texi: Likewise.
15859         * doc/posix-functions/utimensat.texi: Likewise.
15860         * doc/posix-functions/utimes.texi: Likewise.
15861         * doc/posix-headers/stdint.texi: Likewise.
15862         * doc/glibc-functions/futimesat.texi: Likewise.
15863         * doc/glibc-functions/lutimes.texi: Likewise.
15864         * doc/glibc-functions/memmem.texi: Likewise.
15866 2018-07-23  Werner LEMBERG  <wl@gnu.org>
15868         doc: Avoid some overfull lines in the TeX output.
15869         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
15870         @example.
15871         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
15872         newline before the long URL.
15873         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
15874         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
15875         Add line breaks in code snippets.
15877 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15879         hard-locale: simplify by removing hard-locale.m4
15880         * m4/hard-locale.m4: Remove.
15881         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
15882         (configure.ac): Do not call gl_HARD_LOCALE.
15884         gnulib-tool: limit line length for git send-email
15885         * gnulib-tool (func_import): Break actioncmd log line
15886         into multiple lines.
15888 2018-07-16  Bruno Haible  <bruno@clisp.org>
15890         ffs: Ensure declaration on mingw.
15891         Reported by Daniel P. Berrangé <berrange@redhat.com>
15892         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
15893         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
15894         also declared.
15896 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15898         regex-tests: add dependency
15899         * modules/regex-tests (Depends-on): Add gettext-h.
15900         This is needed given the recent changes to regex,
15901         which no longer depends on gettext-h.
15903 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15905         regex: now in sync with glibc
15906         * config/srclist.txt: Gnulib and glibc regex code
15907         are synchronized again.
15909 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15911         renameatu: rename from renameat2
15912         It's looking like Glibc will add a renameat2 function
15913         that is incompatible with Gnulib renameat2; see:
15914         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15915         To help avoid future confusion, rename renameat2 to something else.
15916         Use the name 'renameatu', as the Gnulib function is close to the
15917         Glibc function.  Perhaps someday there will also be a renameat2
15918         Gnulib module, which mimicks the future glibc renameat2, but that
15919         can wait as nobody seems to need such a module now.
15920         * NEWS: Mention this.
15921         * lib/renameatu.c: Rename from lib/renameat2.c.
15922         * lib/renameatu.h: Rename from lib/renameat2.h.
15923         * modules/renameatu: Rename from modules/renameat2.
15924         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15925         All uses of "renameat2" in identifiers or file name
15926         changed to "renameatu", except for two instances in
15927         lib/renameatu.c that deal with the Linux kernel's
15928         renameat2 syscall.
15930 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15932         gnulib-tool: minor tweaks for --gnu-make
15933         * gnulib-tool: Do not allow --gnu-make in test modes,
15934         since they all require automake.
15935         (func_emit_lib_Makefile_am): Don’t emit automake comment
15936         if --gnu-make.
15938         regex: work around conditional-dependencies glitch
15939         * modules/regex (Depends-on): Add langinfo.
15940         Without this change, I had problems building an experimental
15941         version of GNU Emacs.  The symptom of the bug was a message
15942         ‘./configure: line 12726: test: =: unary operator expected’.
15943         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15944         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15945         was unset.  Although gl_FUNC_NL_LANGINFO has
15946         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15947         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15948         --conditional-dependencies sometimes arranges for the
15949         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15950         code.  Since the regex code includes <langinfo.h> it should be
15951         depending on the langinfo module anyway, and this happens to work
15952         around the bug, so install that as a workaround for now.  To
15953         reproduce the original problem, run the following shell script on
15954         the version of Gnulib just before this patch was installed.
15955                 rm -fr foo
15956                 mkdir foo
15957                 cat >foo/configure.ac <<'EOF'
15958                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15959                 gl_EARLY
15960                 gl_INIT
15961                 AC_OUTPUT
15962                 EOF
15963                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15964                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15965                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15966                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15967                 cd foo
15968                 aclocal -I m4
15969                 autoconf
15970                 ./configure --with-included-regex
15972 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15974         wchar: fix bug when checking for ‘inline’
15975         I discovered this when looking into using the regex module
15976         with Emacs.
15977         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15978         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15979         conftest1.c and conftest2.c but these files were not created.
15980         As far as I can see, this check never worked and nobody reported
15981         it until now, which is a bit worrisome.
15983 2018-06-30  Jim Meyering  <meyering@fb.com>
15985         bootstrap: s/--option val/--option=val/
15986         * build-aux/bootstrap (gnulib_tool_options): Change the
15987         spelling of "--option val" pairs to "--option=val", for
15988         aesthetics, and also so that this file no longer triggers
15989         a common help2man syntax-check warning when copied into
15990         projects like grep, gzip, etc.
15992 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15994         manywarnings: omit -Wswitch-default
15995         This should make things more consistent, as we already ignore
15996         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15997         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15998         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15999         Add -Wswitch-default.
16000         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
16001         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
16002         Remove -Wswitch-default.
16004         regex: revert most trimming
16005         Problems reported by Bruno Haible in:
16006         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
16007         * modules/regex (Depends-on): Add lock, memcmp, memmove,
16008         and wctype back in.  lock because regex users shouldn’t
16009         need to know that regex needs locking, and the rest because
16010         gnulib-tool should ordinarily ignore them anyway.
16012 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16014         regex: trim module dependencies
16015         * modules/regex (Depends-on): Remove gettext-h and lock,
16016         since the regex code should work OK without these modules,
16017         and Emacs uses it that way.  Also remove memcmp, memmove,
16018         and wctype, as these modules are obsolete and should not be
16019         needed any more.
16021 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
16023         regex: glibc does not use intprops.h
16024         Maybe we can talk glibc into using intprops.h someday, but
16025         now doesn’t seem to be a good time.
16026         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
16027         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
16028         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
16030 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
16032         regex: port to recently proposed glibc regex merge
16033         This patch is inspired by Adhemerval Zanella's recent proposal
16034         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
16035         to merge glibc and Gnulib regex.  It aims to simplify the merge on
16036         the glibc side, without keeping Gnulib portable.
16037         * lib/regex.h: Fix a problem with glibc installed-header checking,
16038         as follows:
16039         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
16040         (_Restrict_arr_): Prefer __restrict_arr if defined,
16041         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
16042         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
16043         (build_wcs_upper_buffer, build_upper_buffer)
16044         (re_string_translate_buffer, re_string_context_at):
16045         Move decls here from lib/regex_internal.h, for glibc internal tests.
16046         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
16047         glibc BZ #18496.
16048         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
16049         -Wunused-value.
16050         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
16051         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
16052         (bitset_mask): Now static inline, and without any __attribute__
16053         ((unused)) decoration, for glibc internal tests.
16055 2018-06-25  Bruno Haible  <bruno@clisp.org>
16057         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
16058         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
16059         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
16060         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
16061         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
16062         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
16063         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
16064         / -lthread / -lpth does not get optimized away by a preceding
16065         --as-needed option.
16067 2018-06-25  Bruno Haible  <bruno@clisp.org>
16069         Continue to use spaces for indentation, not tabs.
16070         * MODULES.html.sh: Untabify.
16071         * doc/regex.texi: Likewise.
16072         * lib/acl-internal.c: Likewise.
16073         * lib/dfa.c: Likewise.
16074         * lib/exclude.c: Likewise.
16075         * lib/exclude.h: Likewise.
16076         * lib/get-permissions.c: Likewise.
16077         * lib/gettimeofday.c: Likewise.
16078         * lib/parse-datetime.y: Likewise.
16079         * lib/pselect.c: Likewise.
16080         * lib/set-permissions.c: Likewise.
16081         * lib/time.in.h: Likewise.
16082         * m4/canonicalize.m4: Likewise.
16083         * m4/gc.m4: Likewise.
16084         * m4/gnulib-common.m4: Likewise.
16085         * m4/pthread_sigmask.m4: Likewise.
16086         * m4/vararrays.m4: Likewise.
16087         * tests/test-digest.h: Likewise.
16088         * tests/test-fcntl-h.c: Likewise.
16089         * tests/test-timespec.c: Likewise.
16090         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
16092 2018-06-25  Bruno Haible  <bruno@clisp.org>
16094         manywarnings: Don't enable -Wjump-misses-init warnings by default.
16095         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
16096         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
16097         -Wjump-misses-init.
16099 2018-06-25  Jim Meyering  <meyering@fb.com>
16101         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
16102         * lib/acl-internal.h (free_permission_context): Remove that
16103         attribute directive.  Otherwise, it would provoke this from GCC 9:
16104         lib/acl-internal.h:300:3: error: 'const' attribute on function \
16105           returning 'void' [-Werror=attributes]
16107 2018-06-24  Jim Meyering  <meyering@fb.com>
16109         parse-datetime: accommodate gcc-4.8.5
16110         Bruno Haible reported the build failure in
16111         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
16112         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
16113         on declaration of new local.
16115 2018-06-24  Bruno Haible  <bruno@clisp.org>
16117         af_alg: Fail in continuable manner on Linux/powerpc64le.
16118         Reported by Assaf Gordon <assafgordon@gmail.com>
16119         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
16120         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
16121         byte send() as the first round.
16123 2018-06-24  Bruno Haible  <bruno@clisp.org>
16125         af_alg: Fix state of stream after sendfile() succeeds.
16126         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
16127         the stream is correctly positioned afterwards.
16128         * modules/crypto/af_alg (Depends-on): Add fflush.
16129         * tests/test-digest.h (test_digest_on_files): Verify that after the
16130         operation the stream is positioned at end of file.
16132 2018-06-24  Jim Meyering  <meyering@fb.com>
16134         canon-host: take GCC9's advice rather than ignoring warning
16135         Pádraig Brady suggested not to ignore this GCC9 advice.
16136         * lib/canon-host.c: Undo preceding change.
16137         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
16139         parse-datetime.y: avoid spurious GCC 9 warning
16140         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
16141         a function local prior to the first "goto fail".  The prior use would
16142         evoke this:
16143         parse-datetime.y: In function 'parse_datetime2':
16144         parse-datetime.y:1791:19: error: jump skips variable initialization \
16145           [-Werror=jump-misses-init]
16146         parse-datetime.y:2385:2: note: label 'fail' defined here
16147         parse-datetime.y:188:43: note: '({anonymous})' declared here
16148         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
16150         canon-host.c: avoid spurious GCC 9 warning
16151         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
16153         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
16154         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
16155         * m4/manywarnings.m4: Remove them.
16156         Otherwise, building coreutils, I would see this:
16157         cc1: error: deprecated command line option '-Wchkp' [-Werror]
16158         cc1: error: -Wabi won't warn about anything [-Werror=abi]
16159         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
16160           which is also used by default
16161         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
16163 2018-06-24  Bruno Haible  <bruno@clisp.org>
16165         af_alg tests: Add another test.
16166         * tests/test-digest.h (test_digest_on_files): Also check a large file
16167         with a skipped header.
16168         * tests/test-md5.c: Include macros.h.
16169         * tests/test-sha1.c: Likewise.
16170         * tests/test-sha256.c: Likewise.
16171         * tests/test-sha512.c: Likewise.
16172         * modules/crypto/md5-tests (Files): Add tests/macros.h.
16173         * modules/crypto/sha1-tests (Files): Likewise.
16174         * modules/crypto/sha256-tests (Files): Likewise.
16175         * modules/crypto/sha512-tests (Files): Likewise.
16177 2018-06-24  Pádraig Brady  <P@draigBrady.com>
16179         maint: clarify comments about sticky EOF
16180         * lib/af_alg.c: Be more direct that we can't
16181         assume stickiness of EOF for portability reasons.
16182         * lib/md5.c: Clarify that this isn't just a glibc issue.
16183         * lib/sha1.c: Likewise.
16184         * lib/sha256.c: Likewise.
16185         * lib/sha512.c: Likewise.
16187 2018-06-24  Bruno Haible  <bruno@clisp.org>
16189         af_alg: Comment and style improvements.
16190         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
16191         (afalg_buffer, afalg_stream): Improve comments.
16193 2018-06-24  Pádraig Brady  <P@draigBrady.com>
16195         af_alg: disable kernel hash functions by default
16196         All the kernel routines were seen to be significantly slower
16197         with these relatively recent components on an i3-2310M system:
16198           kernel-4.10.6-200.fc25.x86_64
16199           openssl-1.0.2m-1.fc25.x86_64
16200         sha1 was nearly twice as slow in the kernel for example.
16201         Further considerations why this should not be the default, at:
16202         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
16204         * m4/af_alg.m4: Require --with-linux-crypto to enable.
16205         * m4/gl-openssl.m4: Tweak accordingly.
16207 2018-06-24  Pádraig Brady  <P@draigBrady.com>
16209         af_alg: avoid hangs when reading from streams
16210         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
16211         and thus avoid doing a fread() when feof() is set.
16212         * lib/md5.c: Ensure feof() is called before fread().
16213         * lib/sha1.c: Likewise.
16214         * lib/sha256.c: Likewise.
16215         * lib/sha512.c: Likewise.
16217 2018-06-24  Pádraig Brady  <P@draigBrady.com>
16219         af_alg: fix error handling when hash not returned
16220         * lib/af_alg.c (afalg_stream): Handle the case where we've
16221         successfully written data to the kernel in the read/write loop,
16222         but the kernel doesn't respond with the hash.
16224 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
16226         libc-config: merge from glibc
16227         * lib/cdefs.h (__inline, __restrict):
16228         Copy from current glibc.  This fixes glibc bug 17721,
16229         which Gnulib had already fixed in a different way.
16230         (__nonnull): Lessen the distance from glibc by using the
16231         glibc definition inside an ‘#ifndef __nonnull’.
16232         (__attribute_nonstring__): New macro, copied from
16233         current glibc.
16234         * lib/libc-config.h (__attribute_nonstring__): New undef.
16235         (__restrict): Remove; workaround no longer needed.
16236         Keep the __inline workaround, though, as it uses HAVE___INLINE to
16237         support more compilers than the glibc __inline can.
16239 2018-06-24  Bruno Haible  <bruno@clisp.org>
16241         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
16242         * lib/mbrtowc.c (enc_t): New enum type.
16243         (locale_enc, locale_enc_cached): New functions.
16244         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
16245         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
16246         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
16247         instead.
16248         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
16249         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
16250         * modules/wcwidth (configure.ac): Invoke it.
16252 2018-06-24  Bruno Haible  <bruno@clisp.org>
16254         wchar-single: Fix test failure in wcwidth tests.
16255         * tests/test-wcwidth.c (main): If the wchar-single module is present,
16256         skip the tests in the C locale.
16258 2018-06-23  Pádraig Brady  <P@draigBrady.com>
16260         crypto: mention --without-linux-crypto in --with-openssl --help
16261         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
16262         routines take precedence in --with-openssl help output.
16264 2018-06-23  Pádraig Brady  <P@draigBrady.com>
16266         wchar-single: a new module to enable optimizations in wchar replacements
16267         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
16268         GNULIB_WCHAR_SINGLE is enabled.
16269         * lib/wcwidth.c (wcwidth): Likewise.
16271 2018-06-23  Bruno Haible  <bruno@clisp.org>
16273         libc-config: Fix conflict with FreeBSD include files.
16274         * lib/cdefs.h (__nonnull): Remove definition.
16275         * lib/libc-config.h (__nonnull): Remove undefinition.
16277 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16279         random_r: do not crash if state is unaligned
16280         Problem reported by Bruce Korb in:
16281         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
16282         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
16283         with 'cc -O2 -xmemalign=8s'.
16284         * lib/random_r.c: Include string.h, for memcpy.
16285         (get_int32, set_int32): New functions.
16286         (__srandom_r, __initstate_r, __setstate_r, __random_r):
16287         Use them to avoid assumption that state pointer is aligned.
16288         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
16289         * tests/test-random_r.c (test_failed): New function.
16290         (main): Use it, to test for alignment bugs.
16292         random_r: omit unnecessary include
16293         * lib/random_r.c: Do not include limits.h.
16295         random, random_r: merge from glibc
16296         * lib/random.c, lib/random_r.c:
16297         Include libc-config.h if !_LIBC, not config.h unilaterally.
16298         * lib/random.c:
16299         Do not include stdint.h or time.h; not needed.
16300         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
16301         (unsafe_state): Rename from generator.  All uses changed.
16302         Use C99-style initializers.
16303         (__random, __srandom, __initstate, __setstate): Rename from
16304         non-underscored version, but define it to non-underscored version
16305         on Gnulib.  Add a lock.
16306         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
16307         Likewise.
16308         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
16309         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
16310         (__srandom_r): Use int32_t instead of long int where int32_t will do.
16311         (__random_r): Use uint32 to fix glibc bug 17343.
16312         * modules/random, modules/random_r (Depends-on): Add libc-config.
16313         Depend on stdint only if $HAVE_RANDOM = 0.
16315 2018-06-19  Jim Meyering  <meyering@fb.com>
16317         README-release: also run any check-very-expensive tests
16318         * top/README-release: Adjust instructions so they run the
16319         check-very-expensive tests when there is such a target.
16321 2018-06-18  Bruno Haible  <bruno@clisp.org>
16323         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
16324         * m4/pthread_rwlock_rdlock.m4: Add comment.
16325         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
16326         are reader-preferring in glibc.
16327         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
16328         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
16330 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16332         crypto: use byteswap
16333         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
16334         * lib/sm3.c: Include <byteswap.h>.
16335         (SWAP): Use its macros rather than reinventing the wheel.
16336         * modules/crypto/md4, modules/crypto/md5-buffer:
16337         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
16338         * modules/crypto/sha512-buffer, modules/crypto/sm3:
16339         (Depends-on): Add byteswap.
16341 2018-06-17  Pádraig Brady  <P@draigBrady.com>
16343         gendocs.sh: fix support for legacy --texi2html
16344         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
16345         to the default makeinfo invocation.
16346         Reported by Bruce Korb
16348 2018-06-17  Bruno Haible  <bruno@clisp.org>
16350         gettext po infrastructure: Update from current gettext git.
16351         Reported by Akim Demaille <akim@lrde.epita.fr>.
16352         * build-aux/po/Makefile.in.in: Update from current gettext git.
16353         * build-aux/po/remove-potcdate.sin: Likewise.
16354         * config/srclist.txt: Temporarily disable sync for these files.
16356 2018-06-17  Bruno Haible  <bruno@clisp.org>
16358         getloadavg: Return 0 on Windows without Cygwin.
16359         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
16361 2018-06-17  Paul Smith  <psmith@gnu.org>
16363         getloadavg: Allow building on Windows without Cygwin
16364         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
16365         * m4/getloadavg.m4: Check for unistd.h.
16367 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
16369         Port crypto/af_alg to GCC 4.8.4
16370         Problem reported by Peter Simons in:
16371         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
16372         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
16374 2018-05-27  Colin Watson  <cjwatson@debian.org>
16376         bootstrap: document source fetching in --help
16377         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
16379 2018-04-09  Colin Watson  <cjwatson@debian.org>
16381         bootstrap: allow non-submodule control of gnulib
16382         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
16383         bootstrap.conf when fetching gnulib using "git clone" or via
16384         GNULIB_SRCDIR.
16386 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16388         crypto: omit stream ops Emacs doesn’t need
16389         * lib/md5.c (md5_stream):
16390         * lib/sha1.c (sha1_stream):
16391         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
16392         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16393         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
16394         defined.  Emacs needs this, as it does not use the stream
16395         operations and doesn’t need all the af_alg stuff we’ve recently
16396         added.  Perhaps a similar change is needed to the other crypto
16397         modules, but this patch changes only those needed for Emacs.
16398         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
16399         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
16400         New modules, used by Emacs.
16401         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16402         * modules/crypto/sha512: Rewrite to depend on the new modules.
16404 2018-05-20  Pádraig Brady  <P@draigBrady.com>
16406         fts: avoid a memory leak edge case
16407         * lib/fts.c (fts_open): Set an appropriate fts_level
16408         so that an immediate fts_close() will free the allocation.
16409         * tests/test-fts.c (fts_dealloc): Add a test case which
16410         will trigger under valgrind or address sanitizer.
16411         Fixes https://bugs.gnu.org/31439
16413 2018-05-20  Bruno Haible  <bruno@clisp.org>
16415         wcwidth tests: Fix link error.
16416         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
16417         $(LIBUNISTRING).
16419 2018-05-20  Bruno Haible  <bruno@clisp.org>
16421         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
16422         * modules/regex (Files): Add m4/glibc21.m4.
16424 2018-05-20  Bruno Haible  <bruno@clisp.org>
16426         localcharset: Optimize.
16427         * lib/localcharset.c (alias_table): Comment out no-op mappings for
16428         platforms where these don't matter. This reduces the table size,
16429         which in turn reduces the lookup time.
16431 2018-05-19  Bruno Haible  <bruno@clisp.org>
16433         localcharset: Map the locale encodings found in newer OSes.
16434         * lib/localcharset.c (alias_table): Add mapping for locale encodings
16435         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
16436         IRIX 6.5, Minix 3.3.
16437         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
16439 2018-05-19  Bruno Haible  <bruno@clisp.org>
16441         localcharset: Move mapping tables into the code. Use a binary search.
16442         * lib/localcharset.h: Document the GNU canonical names for character
16443         encodings here.
16444         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
16445         relocatable.h, configmake.h.
16446         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
16447         macros.
16448         (charset_aliases): Remove variable.
16449         (get_charset_aliases): Remove function.
16450         (struct table_entry): New type.
16451         (alias_table, locale_table): New constants.
16452         (locale_charset): Use the alias_table or locale_table to get the
16453         canonicalized encoding name.
16454         * lib/config.charset: Remove file.
16455         * lib/ref-add.sin: Remove file.
16456         * lib/ref-del.sin: Remove file.
16457         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
16458         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
16459         * modules/localcharset (Notice): Remove.
16460         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
16461         glibc21.m4.
16462         (Depends-on): Remove configmake.
16463         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
16464         (Makefile.am): Simplify.
16465         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
16467 2018-05-19  Bruno Haible  <bruno@clisp.org>
16469         localcharset: Add a manual test.
16470         * tests/test-localcharset.c: New file.
16471         * modules/localcharset-tests: New file.
16473 2018-05-19  Bruno Haible  <bruno@clisp.org>
16475         localcharset: Remove support for obsolete platforms.
16476         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
16477         Mac OS X 10.2. Comment out dubious entry for Solaris.
16479 2018-05-19  Jim Meyering  <meyering@fb.com>
16481         gnupload: adjust comment
16482         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
16483         more likely we'll remove the just-added code in a year or two.
16485 2018-05-19  Bruno Haible  <bruno@clisp.org>
16487         gnupload: Fix "gpg-agent is not available in this session" error.
16488         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
16490 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16492         crypto/af_alg: fix --help
16493         * m4/af_alg.m4: Avoid spurious newline in --help output.
16495 2018-05-13  Bruno Haible  <bruno@clisp.org>
16497         nl_langinfo: Fix compilation error on Android.
16498         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
16499         INT_CURR_SYMBOL, etc. only if these items are defined.
16501 2018-05-13  Bruno Haible  <bruno@clisp.org>
16503         truncate: Fix compilation error on Android.
16504         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
16505         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
16506         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
16507         HAVE_TRUNCATE.
16508         * modules/truncate: Likewise.
16509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
16510         not HAVE_TRUNCATE.
16511         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
16512         HAVE_TRUNCATE.
16513         * doc/posix-functions/truncate.texi: Mention the issue.
16515 2018-05-13  Bruno Haible  <bruno@clisp.org>
16517         pthread: Fix compilation error on Android.
16518         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
16519         recursive inclusion of this file.
16521 2018-05-13  Bruno Haible  <bruno@clisp.org>
16523         posix_spawn: Fix compilation error on Android.
16524         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
16525         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
16526         (posix_spawn_file_actions_t): Consider also the case
16527         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
16529 2018-05-13  Bruno Haible  <bruno@clisp.org>
16531         tsearch: Move from K&R C to ANSI C.
16532         * lib/tsearch.c (tfind): Convert definition to ANSI C.
16534 2018-05-13  Bruno Haible  <bruno@clisp.org>
16536         tsearch: Fix compilation error on Android.
16537         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
16538         is 0.
16539         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
16540         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
16541         GNULIB_defined_tsearch is true.
16542         (twalk): Define only if GNULIB_defined_twalk is true.
16543         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
16544         is 0.
16545         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
16546         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
16547         * modules/search (Makefile.am): Substitute HAVE_TWALK.
16549 2018-05-13  Bruno Haible  <bruno@clisp.org>
16551         imaxdiv: Fix compilation error on Android.
16552         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
16553         is not defined.
16554         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
16555         HAVE_DECL_IMAXDIV, is 0.
16556         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
16557         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
16559 2018-05-13  Bruno Haible  <bruno@clisp.org>
16561         Support selective inclusion mechanism of recent mingw.org header files.
16562         Reported by Eli Zaretskii <eliz@gnu.org>.
16563         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
16564         __need_ssize_t, or __need_time_t is defined, just include the system's
16565         <sys/types.h>.
16566         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
16567         include the system's <locale.h>.
16569 2018-05-13  Bruno Haible  <bruno@clisp.org>
16571         Avoid compilation error due to 'mmap' on Android.
16572         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
16573         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
16574         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
16575         Undefine on Android.
16577 2018-05-13  Bruno Haible  <bruno@clisp.org>
16579         Add cross-compilation guesses for Linux systems without glibc.
16580         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
16581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16582         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16583         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16584         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16585         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
16586         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16587         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16588         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16589         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
16590         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16591         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16592         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16593         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16594         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16595         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16596         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16597         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16599 2018-05-13  Bruno Haible  <bruno@clisp.org>
16601         getpagesize: Fix compilation error on Android.
16602         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
16603         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
16604         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
16605         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
16606         HAVE_GETPAGESIZE accordingly.
16607         * modules/getcwd (Files): Add m4/getpagesize.m4.
16609 2018-05-13  Bruno Haible  <bruno@clisp.org>
16611         tcgetsid: Fix compilation error on Android.
16612         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
16613         AC_CHECK_FUNC.
16615 2018-05-13  Bruno Haible  <bruno@clisp.org>
16617         getpass: Fix configure test for Android.
16618         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
16619         AC_CHECK_FUNC.
16621 2018-05-13  Bruno Haible  <bruno@clisp.org>
16623         ffs: Fix compilation error on Android.
16624         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
16626 2018-05-13  Bruno Haible  <bruno@clisp.org>
16628         mkfifo: Fix compilation error on Android.
16629         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
16630         AC_CHECK_FUNC.
16632 2018-05-13  Bruno Haible  <bruno@clisp.org>
16634         c-strtod: Fix configure test for Android.
16635         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
16636         AC_CHECK_FUNC.
16638 2018-05-13  Bruno Haible  <bruno@clisp.org>
16640         random: Fix compilation error on Android.
16641         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
16642         AC_CHECK_FUNC.
16644 2018-05-13  Bruno Haible  <bruno@clisp.org>
16646         grantpt: Fix compilation error on Android.
16647         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
16648         AC_CHECK_FUNC.
16650 2018-05-13  Bruno Haible  <bruno@clisp.org>
16652         stdioext: Fix compilation errors with newer Android headers.
16653         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
16654         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
16655         fallbacks for Android.
16656         * lib/fpending.c: Update comments.
16657         * lib/fpurge.c: Likewise.
16658         * lib/freadable.h: Likewise.
16659         * lib/freadable.c: Likewise.
16660         * lib/freadahead.c: Likewise.
16661         * lib/freading.h: Likewise.
16662         * lib/freadptr.c: Likewise.
16663         * lib/fseterr.c: Likewise.
16664         * lib/fwritable.h: Likewise.
16665         * lib/fwritable.c: Likewise.
16666         * lib/fwriting.h: Likewise.
16667         * lib/fwriting.c: Likewise.
16669 2018-05-13  Bruno Haible  <bruno@clisp.org>
16671         doc: Add info about Android versions 2.0 to 8.1.
16672         * doc/**/*.texi: Add info about functions in all released versions of
16673         Bionic.
16675 2018-05-12  Bruno Haible  <bruno@clisp.org>
16677         fseeko: On mingw, don't use the hidden function _fseeki64.
16678         Reported by Eli Zaretskii <eliz@gnu.org>.
16679         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
16680         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
16682 2018-05-12  Bruno Haible  <bruno@clisp.org>
16684         glob: Choose 'dirent_type' in a way that works better on mingw.
16685         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
16686         * lib/glob.c (dirent_type): Define as uint_fast32_t.
16688 2018-05-12  Bruno Haible  <bruno@clisp.org>
16690         execute, spawn-pipe: Avoid warning about redefining 'close'.
16691         Reported by Eli Zaretskii <eliz@gnu.org>.
16692         * lib/execute.c: Undefine 'close' before redefining it.
16693         * lib/spawn-pipe.c: Likewise.
16695 2018-05-12  Bruno Haible  <bruno@clisp.org>
16697         nanosleep: Avoid test failure on mingw when it has nanosleep.
16698         Reported by Eli Zaretskii <eliz@gnu.org>.
16699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
16700         If it does not exist, use a simpler test program that does not call
16701         alarm().
16703 2018-05-10  Bruno Haible  <bruno@clisp.org>
16705         lock, cond, thread, tls: Use a different symbol as libpthread witness.
16706         Reported by Devin Hussey <husseydevin@gmail.com>.
16707         Based on a patch by Paul Eggert.
16708         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
16709         as witness of libpthread.
16710         * lib/glthread/cond.h (pthread_in_use): Likewise.
16711         * lib/glthread/thread.h (pthread_in_use): Likewise.
16712         * lib/glthread/tls.h (pthread_in_use): Likewise.
16714 2018-05-10  Bruno Haible  <bruno@clisp.org>
16716         cond tests: Fix compilation error on Solaris.
16717         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
16718         macro.
16720 2018-05-10  Bruno Haible  <bruno@clisp.org>
16722         doc: Add partial info about Android 4.3.
16723         * doc/*-functions/*.texi: Add info about functions that were added
16724         to Bionic between Android 4.3 and Android 9.0.
16726 2018-05-10  Bruno Haible  <bruno@clisp.org>
16728         doc: Add info about Android 9.0.
16729         * doc/**/*.texi: Add info about functions and headers in Bionic from
16730         Android 9.0.
16732 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
16734         af_alg: fix my typo in afalg_buffer
16735         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
16736         (afalg_stream): Simplify and avoid the need for a runtime test
16737         at the end.
16739         af_alg: recover better from crypto failures
16740         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
16741         input stream is seekable, by repositioning the stream back to
16742         where it was, possibly by just calling sendfile with an offset
16743         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
16744         cases, which lets our callers try again with user-mode code.
16745         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
16746         instead of on fflush and lseek.
16748         af_alg: distiguish I/O errors better
16749         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
16750         not -EIO, if it’s OK for the caller to try again with user-mode code.
16751         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
16752         some other error number) if fflush fails, as the caller should not
16753         try again that case.
16755         af_alg: avoid gotos
16756         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
16757         gotos, as they were a source of unreliability and made the code a
16758         bit harder to follow.
16760         af_alg: don’t leak file descriptors into children
16761         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
16762         This code should be compiled only on recent GNU/Linux platforms
16763         so we shouldn’t have to also depend on the accept4 module.
16765         af_alg: coalesce socket creation
16766         * lib/af_alg.c (alg_socket): New function.
16767         (afalg_buffer, afalg_stream): Use it.  This avoids some
16768         code duplication and gotos.
16770         af_alg: fix file descriptor leak
16771         * lib/af_alg.c (afalg_stream): Close leak.
16773         af_alg: Pacify --enable-gcc-warnings on GCC 8
16774         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
16775         and checking to pacify gcc -Wjump-misses-init on GCC 8.
16777 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16779         af_alg: Pacify --enable-gcc-warnings
16780         Problem reported by Assaf Gordon in:
16781         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
16782         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
16783         gcc -Wjump-misses-init.
16784         * lib/sha512.c (shaxxx_stream): Now static.
16786 2018-05-06  Bruno Haible  <bruno@clisp.org>
16788         af_alg: Add ability to use Linux kernel crypto API on data in memory.
16789         * lib/af_alg.h (afalg_buffer): New declaration.
16790         * lib/af_alg.c (afalg_buffer): New function.
16792 2018-05-06  Bruno Haible  <bruno@clisp.org>
16794         af_alg: Avoid warnings.
16795         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
16796         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
16798 2018-05-06  Bruno Haible  <bruno@clisp.org>
16800         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
16801         * tests/bench-digest.h: New file.
16802         * tests/bench-md5.c: New file.
16803         * tests/bench-sha1.c: New file.
16804         * tests/bench-sha224.c: New file.
16805         * tests/bench-sha256.c: New file.
16806         * tests/bench-sha384.c: New file.
16807         * tests/bench-sha512.c: New file.
16808         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
16809         tests/bench-digest.h.
16810         (Depends-on): Add getrusage, gettimeofday.
16811         (Makefile.am): Add variables to build bench-md5.
16812         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
16813         tests/bench-digest.h.
16814         (Depends-on): Add getrusage, gettimeofday.
16815         (Makefile.am): Add variables to build bench-sha1.
16816         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
16817         tests/bench-sha256.c, tests/bench-digest.h.
16818         (Depends-on): Add getrusage, gettimeofday.
16819         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
16820         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
16821         tests/bench-sha512.c, tests/bench-digest.h.
16822         (Depends-on): Add getrusage, gettimeofday.
16823         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
16825 2018-05-06  Bruno Haible  <bruno@clisp.org>
16827         af_alg: Fix a resource leak.
16828         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
16829         New local variable 'result'.
16831 2018-05-06  Bruno Haible  <bruno@clisp.org>
16833         af_alg: Fix bug with streams that are not at position 0.
16834         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
16835         assume that the stream is positioned at position 0.
16836         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
16837         of the stream.
16838         * lib/md5.h (md5_stream): Likewise.
16839         * lib/sha1.h (sha1_stream): Likewise.
16840         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
16841         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
16842         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
16844         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
16845         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
16846         stream that is not positioned at the beginning.
16848 2018-05-06  Bruno Haible  <bruno@clisp.org>
16850         af_alg: Add configure option to enable/disable use of Linux crypto API.
16851         Suggested by Assaf Gordon <assafgordon@gmail.com>.
16852         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
16853         USE_LINUX_CRYPTO_API.
16854         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
16855         * lib/af_alg.c: Likewise.
16857 2018-05-06  Bruno Haible  <bruno@clisp.org>
16859         Followup to 'af_alg: New module.'.
16860         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
16861         * modules/crypto/sha1 (Depends-on): Likewise.
16862         * modules/crypto/sha256 (Depends-on): Likewise.
16863         * modules/crypto/sha512 (Depends-on): Likewise.
16865 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16867         crypto/{md5,sha1,sha256,sha512}: simplify
16868         * lib/md5.c (md5_stream):
16869         * lib/sha1.c (sha1_stream):
16870         * lib/sha256.c (shaxxx_stream):
16871         Simplify, partly by assuming C99.
16872         * lib/sha256.c (shaxxx_stream):
16873         New function, which implements both sha256 and sha224.
16874         Simplify, partly by assuming C99.
16875         (sha256_stream, sha224_stream):
16876         Use it to avoid code duplication, removing a FIXME.
16877         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16878         Likewise.
16880         af_alg: Improve comments.
16881         * lib/af_alg.h: Use imperatives and tighten up wording.
16883 2018-05-05  Bruno Haible  <bruno@clisp.org>
16885         af_alg: Improve comments.
16886         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
16888 2018-05-05  Bruno Haible  <bruno@clisp.org>
16890         af_alg: New module.
16891         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
16892         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16893         * lib/md5.c: Include "af_alg.h" unconditionally.
16894         (md5_stream): Invoke afalg_stream unconditionally.
16895         * lib/sha1.c: Include "af_alg.h" unconditionally.
16896         (sha1_stream): Invoke afalg_stream unconditionally.
16897         * lib/sha256.c: Include "af_alg.h" unconditionally.
16898         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16899         * lib/sha512.c: Include "af_alg.h" unconditionally.
16900         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16901         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16902         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16903         * modules/crypto/af_alg: New file.
16904         * modules/crypto/md5 (Files): Remove files that are now in the
16905         'crypto/af_alg' module.
16906         (Depends-on): Add crypto/af_alg.
16907         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16908         (Makefile.am): Don't mention af_alg.c here.
16909         * modules/crypto/sha1 (Files): Remove files that are now in the
16910         'crypto/af_alg' module.
16911         (Depends-on): Add crypto/af_alg.
16912         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16913         (Makefile.am): Don't mention af_alg.c here.
16914         * modules/crypto/sha256 (Files): Remove files that are now in the
16915         'crypto/af_alg' module.
16916         (Depends-on): Add crypto/af_alg.
16917         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16918         (Makefile.am): Don't mention af_alg.c here.
16919         * modules/crypto/sha512 (Files): Remove files that are now in the
16920         'crypto/af_alg' module.
16921         (Depends-on): Add crypto/af_alg.
16922         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16923         (Makefile.am): Don't mention af_alg.c here.
16925 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16927         crypto tests: pacify GCC
16928         * tests/test-digest.h (test_digest_on_files):
16929         Don’t assume digest size fits in int (!).
16931         af_alg: minor style improvements
16932         * lib/af_alg.c (afalg_stream): Prefer C99 style
16933         decl-after-statement, since we’re already assuming C99.  Clarify
16934         by strengthening the bind test and omit unnecessary assignment.
16936 2018-05-05  Bruno Haible  <bruno@clisp.org>
16938         af_alg: Fix bug on empty files.
16939         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16940         stream is empty.
16942 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16944         sys-limits.h: new file for crypto and safe I/O
16945         * lib/af_alg.c: Include sys-limits.h.
16946         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16947         (afalg_stream): Also reject negative sizes for sendfile; they
16948         should not happen and the code is a bit cleaner and faster this way.
16949         * lib/safe-read.c: Include sys-limits.h.
16950         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16951         * lib/sys-limits.h: New file, with values and commentary derived
16952         from the old safe-read.c and from GNU Emacs sysdep.c.
16953         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16954         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16955         Add lib/sys-limits.h to Files section.
16957 2018-05-05  Bruno Haible  <bruno@clisp.org>
16959         af_alg: Improve function signature.
16960         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16961         * lib/af_alg.c (afalg_stream): Likewise.
16962         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16964 2018-05-05  Bruno Haible  <bruno@clisp.org>
16966         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16967         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16968         * modules/crypto/sha1 (Depends-on): Likewise.
16969         * modules/crypto/sha256 (Depends-on): Likewise.
16970         * modules/crypto/sha512 (Depends-on): Likewise.
16972 2018-05-05  Bruno Haible  <bruno@clisp.org>
16974         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16975         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16976         * modules/crypto/sha1 (Depends-on): Likewise.
16977         * modules/crypto/sha256 (Depends-on): Likewise.
16978         * modules/crypto/sha512 (Depends-on): Likewise.
16980 2018-05-05  Bruno Haible  <bruno@clisp.org>
16982         af_alg: Add documentation.
16983         * lib/af_alg.h: Add comments.
16985 2018-05-05  Bruno Haible  <bruno@clisp.org>
16987         sha512: Add tests.
16988         * tests/test-sha512.c: New file.
16989         * modules/crypto/sha512-tests: New file.
16991 2018-05-05  Bruno Haible  <bruno@clisp.org>
16993         sha256: Add tests.
16994         * tests/test-sha256.c: New file.
16995         * modules/crypto/sha256-tests: New file.
16997 2018-05-05  Bruno Haible  <bruno@clisp.org>
16999         sha1 tests: Add test for sha1_stream.
17000         * tests/test-sha1.c: Include test-digest.h.
17001         (main): Invoke test_digest_on_files on 'sha1_stream'.
17002         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
17004 2018-05-05  Bruno Haible  <bruno@clisp.org>
17006         md5 tests: Add test for md5_stream.
17007         * tests/test-digest.h: New file.
17008         * tests/test-md5.c: Include test-digest.h.
17009         (main): Invoke test_digest_on_files on 'md5_stream'.
17010         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
17012 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17014         md5sum: Use AF_ALG when available.
17015         * lib/md5.c: Include af_alg.h.
17016         (md5_stream): Use afalg_stream when available.
17017         * modules/crypto/md5 (Files): Add the af_alg files.
17018         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17019         (Makefile.am): Add af_alg.c.
17021 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17023         sha512sum: Use AF_ALG when available.
17024         * lib/sha512.c: Include af_alg.h.
17025         (sha512_stream, sha384_stream): Use afalg_stream when available.
17026         * modules/crypto/sha512 (Files): Add the af_alg files.
17027         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17028         (Makefile.am): Add af_alg.c.
17030 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17032         sha256sum: Use AF_ALG when available.
17033         * lib/sha256.c: Include af_alg.h.
17034         (sha256_stream, sha224_stream): Use afalg_stream when available.
17035         * modules/crypto/sha256 (Files): Add the af_alg files.
17036         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17037         (Makefile.am): Add af_alg.c.
17039 2018-04-28  Matteo Croce  <mcroce@redhat.com>
17041         sha1sum: Use AF_ALG when available.
17042         * lib/af_alg.h: New file.
17043         * lib/af_alg.c: New file.
17044         * lib/sha1.c: Include af_alg.h.
17045         (sha1_stream): Use afalg_stream when available.
17046         * m4/linux-if-alg.m4: New file.
17047         * modules/crypto/sha1 (Files): Add the new files.
17048         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
17049         (Makefile.am): Add af_alg.c.
17051 2018-05-05  Bruno Haible  <bruno@clisp.org>
17053         all: Replace more http URLs by https URLs.
17054         * lib/localename.c: Use https: URL.
17055         * lib/timespec.h: Likewise.
17057 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
17059         maint: port more modules to GCC 8
17060         * lib/dirname.h (base_name):
17061         * lib/exclude.h (new_exclude):
17062         * lib/xstrndup.h (xstrndup):
17063         Add malloc attribute.
17064         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
17065         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
17066         This pacifies GCC 8.
17067         * m4/gnulib-common.m4 (gl_COMMON_BODY):
17068         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
17070 2018-05-03  Bruno Haible  <bruno@clisp.org>
17072         Simplify code. Drop support for Borland C++ on Windows.
17073         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
17074         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
17075         'defined _WIN32'.
17076         * lib/canonicalize-lgpl.c: Likewise.
17077         * lib/classpath.c: Likewise.
17078         * lib/clean-temp.c: Likewise.
17079         * lib/csharpexec.c: Likewise.
17080         * lib/ctime.c: Likewise.
17081         * lib/dosname.h: Likewise.
17082         * lib/dup2.c: Likewise.
17083         * lib/errno.in.h: Likewise.
17084         * lib/error.c: Likewise.
17085         * lib/euidaccess.c: Likewise.
17086         * lib/execute.c: Likewise.
17087         * lib/fcntl.in.h: Likewise.
17088         * lib/fcntl.c: Likewise.
17089         * lib/filename.h: Likewise.
17090         * lib/findprog.c: Likewise.
17091         * lib/flock.c: Likewise.
17092         * lib/fopen.c: Likewise.
17093         * lib/freopen.c: Likewise.
17094         * lib/fstat.c: Likewise.
17095         * lib/fsync.c: Likewise.
17096         * lib/gc-gnulib.c: Likewise.
17097         * lib/get-rusage-data.c: Likewise.
17098         * lib/getaddrinfo.c: Likewise.
17099         * lib/getdelim.c: Likewise.
17100         * lib/getdtablesize.c: Likewise.
17101         * lib/gethostname.c: Likewise.
17102         * lib/getlogin.c: Likewise.
17103         * lib/getlogin_r.c: Likewise.
17104         * lib/getopt.c: Likewise.
17105         * lib/getpagesize.c: Likewise.
17106         * lib/getpass.c: Likewise.
17107         * lib/getrusage.c: Likewise.
17108         * lib/gettimeofday.c: Likewise.
17109         * lib/glob.c: Likewise.
17110         * lib/inttypes.in.h: Likewise.
17111         * lib/isapipe.c: Likewise.
17112         * lib/javaexec.c: Likewise.
17113         * lib/link.c: Likewise.
17114         * lib/localcharset.c: Likewise.
17115         * lib/localename.h: Likewise.
17116         * lib/localename.c: Likewise.
17117         * lib/localtime.c: Likewise.
17118         * lib/lseek.c: Likewise.
17119         * lib/mbsinit.c: Likewise.
17120         * lib/mkdir.c: Likewise.
17121         * lib/msvc-nothrow.h: Likewise.
17122         * lib/nanosleep.c: Likewise.
17123         * lib/nl_langinfo.c: Likewise.
17124         * lib/nonblocking.c: Likewise.
17125         * lib/nproc.c: Likewise.
17126         * lib/open.c: Likewise.
17127         * lib/openpty.c: Likewise.
17128         * lib/pathmax.h: Likewise.
17129         * lib/pipe-filter-aux.c: Likewise.
17130         * lib/pipe-filter-gi.c: Likewise.
17131         * lib/pipe-filter-ii.c: Likewise.
17132         * lib/pipe.c: Likewise.
17133         * lib/pipe2.c: Likewise.
17134         * lib/poll.c: Likewise.
17135         * lib/popen.c: Likewise.
17136         * lib/posix_openpt.c: Likewise.
17137         * lib/printf-parse.c: Likewise.
17138         * lib/progreloc.c: Likewise.
17139         * lib/putenv.c: Likewise.
17140         * lib/read.c: Likewise.
17141         * lib/relocatable.c: Likewise.
17142         * lib/rename.c: Likewise.
17143         * lib/same-inode.h: Likewise.
17144         * lib/secure_getenv.c: Likewise.
17145         * lib/select.c: Likewise.
17146         * lib/sethostname.c: Likewise.
17147         * lib/setlocale.c: Likewise.
17148         * lib/sigaction.c: Likewise.
17149         * lib/sigprocmask.c: Likewise.
17150         * lib/sleep.c: Likewise.
17151         * lib/spawn-pipe.h: Likewise.
17152         * lib/spawn-pipe.c: Likewise.
17153         * lib/spawni.c: Likewise.
17154         * lib/stat-time.h: Likewise.
17155         * lib/stat-w32.c: Likewise.
17156         * lib/stat.c: Likewise.
17157         * lib/stdio.in.h: Likewise.
17158         * lib/stdio-impl.h: Likewise.
17159         * lib/stdio-read.c: Likewise.
17160         * lib/stdio-write.c: Likewise.
17161         * lib/stdlib.in.h: Likewise.
17162         * lib/strerror_r.c: Likewise.
17163         * lib/strftime-fixes.c: Likewise.
17164         * lib/sys_stat.in.h: Likewise.
17165         * lib/sys_types.in.h: Likewise.
17166         * lib/sys_wait.in.h : Likewise.
17167         * lib/system-quote.h: Likewise.
17168         * lib/system-quote.c: Likewise.
17169         * lib/tmpdir.c: Likewise.
17170         * lib/tzset.c: Likewise.
17171         * lib/uname.c: Likewise.
17172         * lib/unistd.in.h: Likewise.
17173         * lib/utime.in.h: Likewise.
17174         * lib/utime.c: Likewise.
17175         * lib/utimecmp.c: Likewise.
17176         * lib/utimens.c: Likewise.
17177         * lib/vasnprintf.c: Likewise.
17178         * lib/vma-iter.h: Likewise.
17179         * lib/vma-iter.c: Likewise.
17180         * lib/wait-process.c: Likewise.
17181         * lib/wcsftime.c: Likewise.
17182         * lib/wctype.in.h: Likewise.
17183         * lib/write.c: Likewise.
17184         * tests/nap.h: Likewise.
17185         * tests/test-cloexec.c: Likewise.
17186         * tests/test-dup-safer.c: Likewise.
17187         * tests/test-dup2.c: Likewise.
17188         * tests/test-dup3.c: Likewise.
17189         * tests/test-fcntl.c: Likewise.
17190         * tests/test-get-rusage-data.c: Likewise.
17191         * tests/test-getaddrinfo.c: Likewise.
17192         * tests/test-getlogin.h: Likewise.
17193         * tests/test-isatty.c: Likewise.
17194         * tests/test-localename.c: Likewise.
17195         * tests/test-mbrtowc-w32.c: Likewise.
17196         * tests/test-nonblocking.c: Likewise.
17197         * tests/test-nonblocking-pipe-main.c: Likewise.
17198         * tests/test-nonblocking-socket-main.c: Likewise.
17199         * tests/test-nonblocking-socket.h: Likewise.
17200         * tests/test-pipe.c: Likewise.
17201         * tests/test-pipe2.c: Likewise.
17202         * tests/test-poll.c: Likewise.
17203         * tests/test-pthread_sigmask1.c: Likewise.
17204         * tests/test-select.h: Likewise.
17205         * tests/test-sethostname2.c: Likewise.
17206         * tests/test-sigprocmask.c: Likewise.
17207         * tests/test-spawn-pipe-child.c: Likewise.
17208         * tests/test-stat-time.c: Likewise.
17209         * tests/test-system-quote-main.c: Likewise.
17210         * tests/test-utimens-common.h: Likewise.
17211         * tests/test-wcrtomb-w32.c: Likewise.
17212         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
17213         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17214         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
17215         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
17216         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
17217         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17218         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17219         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17220         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17221         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17222         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
17223         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
17224         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
17225         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17226         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
17227         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17229 2018-05-02  Bruno Haible  <bruno@clisp.org>
17231         localename: Fix test failures on mingw.
17232         * lib/localename.c (gl_locale_name_thread): Remove code specific to
17233         native Windows.
17234         (gl_locale_name_posix): Move code specific to native Windows here.
17235         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
17236         Accept result without charset suffix, as it appears on mingw.
17238 2018-04-28  Paul Smith  <psmith@gnu.org>
17240         bootstrap: Avoid gnulib operations if not needed
17241         * build-aux/bootstrap: Remove unused variable gnulib_mk.
17242         Set $gnulib_extra_files early so it can be overridden in .conf.
17243         Remove redundant --import flag from $gnulib_tool_options.
17244         Set $use_gnulib to false if no gnulib modules or files are needed.
17245         If $use_gnulib is false, don't do anything related to gnulib.
17246         A lot of this is just whitespace (indentation) changes.
17248 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
17250         manywarnings: port to GCC 8.0
17251         * build-aux/gcc-warning.spec: Add -Wcatch-value,
17252         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
17253         fact that the GCC help message now mentions operands for
17254         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
17255         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
17256         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
17257         and -Wunused-const-variable.
17258         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
17259         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
17260         -Wmissing-attributes, -Wmultistatement-macros,
17261         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
17262         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
17264 2018-04-24  Bruno Haible  <bruno@clisp.org>
17266         sys_socket: Make SO_REUSEPORT available across platforms.
17267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17268         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
17269         * doc/posix-headers/sys_socket.texi: Mention the issue.
17270         * tests/test-poll.c (SO_REUSEPORT): Remove.
17271         * tests/test-select.h: Include <sys/socket.h>.
17272         (SO_REUSEPORT): Remove.
17273         * modules/select-tests (Depends-on): Add 'sys_socket'.
17275 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
17277         localcharset: short-circuit the search for an alias on a Mac
17278         * lib/localcharset.c (get_charset_aliases): Add a tautological
17279         UTF-8 entry to speed up the search for this case.
17280         Most machines default to a UTF-8 locale nowadays, so begin the
17281         list of aliases with a dummy UTF-8 entry so it will be found
17282         immediately and a time-consuming search through the rest of
17283         the list is avoided.
17285 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
17287         fts: add comment
17288         * lib/fts.c (fts_build): Explain why ==, not >.
17289         See remark by Bernhard Voelker in:
17290         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
17292         fts: fix bug in find across filesystems
17293         This fixes a bug I introduced last summer.
17294         Problem reported by Kamil Dudka in:
17295         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
17296         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
17297         (leaf_optimization):
17298         New arg for file descriptor.  All callers changed.
17299         (fts_build): Check for whether inodes should be sorted
17300         before closing the directory.
17302 2018-04-07  Bruno Haible  <bruno@clisp.org>
17304         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
17305         Reported by Genki Sky <sky@genki.is>.
17306         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
17307         version 0.9.10 or newer.
17308         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
17309         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
17310         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
17311         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
17312         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
17314 2018-04-07  Bruno Haible  <bruno@clisp.org>
17316         execute: Update comment.
17317         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
17319 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17321         fts: treat CIFS like NFS
17322         Problem reported by Kamil Dudka in:
17323         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
17324         * lib/fts.c (S_MAGIC_CIFS): New macro.
17325         (dirent_inode_sort_may_be_useful, leaf_optimization):
17326         Treat CIFS like NFS.
17328 2018-03-28  Bruno Haible  <bruno@clisp.org>
17330         c-stack: Fix possible build failure on some platforms.
17331         * lib/c-stack.c (die): Define whenever this function is referenced.
17333 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
17335         time_rz: fix workaround for Mac OS X 10.6 infloop
17336         Problems reported by Charles A. Roelli (Bug#27736#117).
17337         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
17338         Also, discard output, which clutters the 'configure' log.
17340 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17342         havelib: port to Solaris 10 /bin/sh
17343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
17344         instead of '! test EXPR'.
17346 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
17348         time_rz: work around Mac OS X 10.6 infloop
17349         * doc/posix-functions/localtime.texi:
17350         * doc/posix-functions/localtime_r.texi: Mention the bug.
17351         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
17352         better to fix localtime and localtime_r instead, but that would be
17353         more work and is not needed to fix the Emacs problem.
17354         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
17356 2018-03-24  Jim Meyering  <meyering@fb.com>
17358         test-version-etc.sh: don't use diff directly: use init.sh's compare
17359         We'd rather not sacrifice readable "diff -u" output even for
17360         "diff -c" output (not supported by busybox) or for even less
17361         readable ed-style "diff" output.  So use init.sh's compare function
17362         * tests/test-version-etc.sh: Source init.sh and add "." to path.
17363         Remove "./" from invocation of test-version-etc, so we use path.
17364         And s/diff/compare/.
17365         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
17366         to get init.sh.
17367         Prompted by Eric Blake's comments in
17368         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
17370 2018-03-24  Bruno Haible  <bruno@clisp.org>
17372         javacomp-script, javacomp: Add support for Java 10.
17373         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
17374         target-version 10.
17375         * lib/javaversion.h: Update comments.
17376         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17377         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17378         TARGET_VERSION_BOUND, target_version_index,
17379         corresponding_classfile_version): Accept source_version 10 and
17380         target_version 10.
17381         * lib/javacomp.h: Update comments accordingly.
17383 2018-03-24  Bruno Haible  <bruno@clisp.org>
17385         javacomp-script, javacomp: Update comments.
17386         * m4/javacomp.m4: Update comments regarding gcj.
17387         * lib/javacomp.h: Likewise.
17389 2018-03-24  Bruno Haible  <bruno@clisp.org>
17391         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
17392         * lib/javaversion.h: Update comments.
17393         * lib/javacomp.h: Likewise.
17394         * lib/javacomp.c (default_target_version, source_version_index,
17395         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
17396         "1.9".
17397         (TARGET_VERSION_BOUND): Bump to 9.
17398         (target_version_index, corresponding_classfile_version): Recognize "9"
17399         instead of "1.9".
17400         (get_source_version_for_javac): New function.
17401         (is_envjavac_nongcj_usable, is_javac_usable): Add
17402         source_version_for_javac argument.
17403         (compile_java_class): Determine and pass source_version_for_javac.
17404         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
17405         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
17406         appropriate.
17408 2018-03-23  Jim Meyering  <meyering@fb.com>
17410         test-version-etc.sh: port to diff without -c
17411         * tests/test-version-etc.sh: Don't use diff's -c option.
17412         This caused spurious test failure on Alpine Linux, which
17413         uses busybox's diff. Reported by Assaf Gordon in
17414         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
17416 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17418         c-stack: port to recent GCC build
17419         Problem reported by The Fireplace (Bug#30913).
17420         * lib/c-stack.c (die): Define only if used.
17422 2018-03-20  Bruno Haible  <bruno@clisp.org>
17424         euidaccess: Port to native Windows.
17425         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
17426         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
17428 2018-03-19  Bruno Haible  <bruno@clisp.org>
17430         javacomp: Add support for Java 7, 8, 9.
17431         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17432         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17433         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
17434         and target_version 1,7, 1.8, 1.9.
17435         * lib/javacomp.h: Update comments accordingly.
17437 2018-03-19  Bruno Haible  <bruno@clisp.org>
17439         javacomp-script: Add support for Java 9.
17440         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
17441         target-version 1.9.
17443 2018-03-16  Bruno Haible  <bruno@clisp.org>
17445         glob: Don't compile replacements on recent glibc systems.
17446         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
17447         REPLACE_GLOB is 0, include the system's <glob.h> and use
17448         _GL_CXXALIAS_SYS.
17449         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
17450         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
17451         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
17452         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
17453         Remove snippet/warn-on-use.
17454         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
17455         (Makefile.am): Create glob.h always. Update list of substitutions in
17456         glob.h. Don't depend on $(WARN_ON_USE_H).
17458 2018-03-16  Bruno Haible  <bruno@clisp.org>
17460         glob: Fix link error on native Windows.
17461         * modules/glob (Depends-on): Add 'lstat'.
17463 2018-03-15  Bruno Haible  <bruno@clisp.org>
17465         glob: Fix compilation error in C++ mode.
17466         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
17468 2018-03-15  Bruno Haible  <bruno@clisp.org>
17470         host-cpu-c-abi: Support for RISC-V CPU.
17471         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
17472         riscv32 and riscv64 ABIs.
17473         References:
17474         https://github.com/riscv/riscv-toolchain-conventions
17475         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
17476         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
17478 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17480         fflush: be more paranoid about libio.h change
17481         Suggested by Eli Zaretskii in:
17482         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
17483         * lib/fbufmode.c (fbufmode):
17484         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17485         (disable_seek_optimization, rpl_fflush):
17486         * lib/fpending.c (__fpending):
17487         * lib/fpurge.c (fpurge):
17488         * lib/freadable.c (freadable):
17489         * lib/freadahead.c (freadahead):
17490         * lib/freading.c (freading):
17491         * lib/freadptr.c (freadptr):
17492         * lib/freadseek.c (freadptrinc):
17493         * lib/fseeko.c (fseeko):
17494         * lib/fseterr.c (fseterr):
17495         * lib/fwritable.c (fwritable):
17496         * lib/fwriting.c (fwriting):
17497         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
17499 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17501         maint: write-file-hooks -> before-save-hook
17502         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
17503         it's time to use the recommended replacement.
17504         Problem reported by Glenn Morris in:
17505         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
17506         * build-aux/announce-gen, build-aux/bootstrap:
17507         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
17508         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
17509         * build-aux/gnu-web-doc-update, build-aux/gnupload:
17510         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
17511         * build-aux/update-copyright, build-aux/useless-if-before-free:
17512         * build-aux/vc-list-files:
17513         Update hook usage for files where Gnulib is the canonical source.
17515 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
17517         binary-io: pacify gcc -Wunused-parameter
17518         Problem reported by Reuben Thomas in:
17519         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
17520         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
17521         Use _GL_UNUSED where appropriate.
17523         fflush: adjust to glibc 2.28 libio.h removal
17524         Problem reported by Daniel P. Berrangé in:
17525         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
17526         * lib/fbufmode.c (fbufmode):
17527         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17528         (disable_seek_optimization, rpl_fflush):
17529         * lib/fpending.c (__fpending):
17530         * lib/fpurge.c (fpurge):
17531         * lib/freadable.c (freadable):
17532         * lib/freadahead.c (freadahead):
17533         * lib/freading.c (freading):
17534         * lib/freadptr.c (freadptr):
17535         * lib/freadseek.c (freadptrinc):
17536         * lib/fseeko.c (fseeko):
17537         * lib/fseterr.c (fseterr):
17538         * lib/fwritable.c (fwritable):
17539         * lib/fwriting.c (fwriting):
17540         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
17541         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
17542         Define if not already defined.
17544 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
17546         environ: fix link error on 32-bit Cygwin
17547         Problem reported for GNU Emacs by Ken Brown in:
17548         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
17549         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
17551 2018-02-24  Bruno Haible  <bruno@clisp.org>
17553         mbrtowc tests: Fix regression on glibc.
17554         Reported by Bernhard Voelker.
17555         * tests/test-mbrtowc.c (main): Fix expected value of wc.
17557 2018-02-24  Bruno Haible  <bruno@clisp.org>
17559         striconveha, uniconv/*: Avoid test failures on musl libc.
17560         * tests/iconvsupport.c: New file.
17561         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
17562         does not support the ISO-2022-JP-2 encoding.
17563         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
17564         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17565         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17566         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17567         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17568         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17569         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
17570         (Makefile.am): Link test-striconveha with iconvsupport.o.
17571         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
17572         tests/iconvsupport.c.
17573         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
17574         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
17575         tests/iconvsupport.c.
17576         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
17577         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
17578         tests/iconvsupport.c.
17579         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
17580         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
17581         tests/iconvsupport.c.
17582         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
17583         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
17584         tests/iconvsupport.c.
17585         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
17586         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
17587         tests/iconvsupport.c.
17588         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
17590 2018-02-24  Bruno Haible  <bruno@clisp.org>
17592         localename: Add support for musl libc.
17593         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
17594         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
17595         on Linux platforms which define NL_LOCALE_NAME.
17597 2018-02-24  Bruno Haible  <bruno@clisp.org>
17599         mbrtowc tests: Don't make assumptions about the charset the C locale.
17600         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
17601         particular mapping in the C locale.
17603 2018-02-24  Bruno Haible  <bruno@clisp.org>
17605         ptsname_r: Don't expect that this function sets errno.
17606         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
17607         from ptsname_r().
17608         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
17610 2018-02-23  Bruno Haible  <bruno@clisp.org>
17612         xmalloca: pacify gcc -Wbad-function-cast
17613         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
17615 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17617         nl_langinfo: pacify gcc -Wunused-function
17618         * lib/nl_langinfo.c (ctype_codeset): Do not define if
17619         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
17620         this case.  Without this change, I got a diagnostic when building
17621         coreutils on Fedora 27 with gcc 7.3.1 20180130.
17623         same: pacify gcc -Wunused-variable
17624         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
17625         Omit unused variable.
17627         malloca: pacify gcc -Wbad-function-cast
17628         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
17629         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
17630         To pacify GCC, I had to cast alloca’s result to some type other
17631         than void * before casting that to uintptr_t.
17633 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17635         utimecmp: new function utimecmpat
17636         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
17637         Do not include utimens.h.
17638         (utimecmpat): New function, generalizing utimecmp.
17639         (utimecmp): Now a thin layer around utimecmpat.
17640         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
17641         utimensat instead of on lstat and utimens.
17643         same: new function same_nameat
17644         * lib/same.c: Include fcntl.h.
17645         * lib/same.c (same_nameat): New function, generalizing same_name.
17646         (same_name): Now a thin layer around same_nameat.
17647         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
17648         * modules/same (Depends-on): Depend on fstatat, openat.
17650 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
17652         warnings: Add support for Objective C.
17653         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
17654         macro.
17656 2018-02-17  Bruno Haible  <bruno@clisp.org>
17658         lock: Fix test-once1 crash on FreeBSD11.
17659         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
17660         'pthread_create', not 'pthread_cancel'.
17662 2018-02-17  Bruno Haible  <bruno@clisp.org>
17664         lock: Add test of gl_once.
17665         * tests/test-once.c: New file.
17666         * modules/lock-tests (Files): Add it.
17667         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
17669 2018-02-17  Bruno Haible  <bruno@clisp.org>
17671         thread: Fix compilation error on IRIX.
17672         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
17673         needed; include it outside the C++ extern "C" {} block.
17674         * doc/posix-headers/pthread.texi: Mention the problem with
17675         pthread_atfork on IRIX.
17677 2018-02-04  Bruno Haible  <bruno@clisp.org>
17679         nl_langinfo: Override the system's nl_langinfo() when needed.
17680         Reported by Jim Meyering.
17681         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
17682         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
17684 2018-02-04  Bruno Haible  <bruno@clisp.org>
17686         signal-h, monetary, strings: Fix build failure in some cases.
17687         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17688         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
17689         as delimiter in sed command, not '|'.
17690         * modules/monetary (Makefile.am): Likewise.
17691         * modules/strings (Makefile.am): Likewise.
17693 2018-02-03  Jim Meyering  <meyering@fb.com>
17695         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
17696         * top/maint.mk (sc_file_system): Don't complain about
17697         "/proc/filesystems".
17699 2018-02-03  Bruno Haible  <bruno@clisp.org>
17701         stdlib: Fix compilation error on OpenIndiana.
17702         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
17703         <sys/time.h>.
17704         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17705         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
17707 2018-02-03  Bruno Haible  <bruno@clisp.org>
17709         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
17710         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
17711         and use $EGREP instead of 'grep -E'.
17712         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
17713         'grep -E'.
17715 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17717         malloca: Add a compile-time verification.
17718         * lib/malloca.c (small_t): Verify that it is wide enough.
17719         * modules/malloca (Depends-on): Add verify.
17721 2018-02-02  Bruno Haible  <bruno@clisp.org>
17723         malloca: Add an argument check.
17724         Suggested by Paul Eggert.
17725         * lib/malloca.c (freea): Check against an invalid argument.
17727 2018-02-02  Bruno Haible  <bruno@clisp.org>
17729         localename: Add support for OpenIndiana.
17730         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
17731         Solaris 11 variants with uselocale() but without getlocalename_l().
17733 2018-02-02  Bruno Haible  <bruno@clisp.org>
17735         malloca, xmalloca: Make multithread-safe.
17736         Reported by Florian Weimer <fweimer@redhat.com>.
17737         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
17738         * lib/malloca.h (malloca): In the stack allocation case, return a
17739         pointer that is a multiple of 2 * sa_alignment_max.
17740         (sa_increment): Remove enum item.
17741         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
17742         a pointer that is a multiple of 2 * sa_alignment_max.
17743         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
17744         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
17745         HASH_TABLE_SIZE, mmalloca_results): Remove.
17746         (small_t): New type.
17747         (mmalloca, free): Rewritten.
17748         * lib/malloca.valgrind: Remove file.
17749         * modules/malloca (Files): Remove it.
17750         (Depends-on): Remove verify.
17752 2018-01-31  Bruno Haible  <bruno@clisp.org>
17754         environ: Fix link error on 64-bit Cygwin.
17755         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
17756         __declspec(dllimport) attribute.
17757         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
17759 2018-01-30  Bruno Haible  <bruno@clisp.org>
17761         get-rusage-data: Add support for Minix 3.
17762         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
17764 2018-01-30  Bruno Haible  <bruno@clisp.org>
17766         vma-iter: Add support for Minix 3.
17767         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
17768         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
17770 2018-01-27  Bruno Haible  <bruno@clisp.org>
17772         Fix malfunction of socket functions on HP-UX in 64-bit mode.
17773         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
17774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
17775         _HPUX_ALT_XOPEN_SOCKET_API.
17776         * modules/accept (Depends-on): Add 'extensions'.
17777         * modules/getpeername (Depends-on): Likewise.
17778         * modules/getsockname (Depends-on): Likewise.
17779         * modules/getsockopt (Depends-on): Likewise.
17780         * modules/recvfrom (Depends-on): Likewise.
17781         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
17782         * doc/posix-functions/getpeername.texi: Likewise.
17783         * doc/posix-functions/getsockname.texi: Likewise.
17784         * doc/posix-functions/getsockopt.texi: Likewise.
17785         * doc/posix-functions/recvfrom.texi: Likewise.
17787 2018-01-27  Bruno Haible  <bruno@clisp.org>
17789         getsockname tests: More tests.
17790         * tests/test-getsockname.c (open_server_socket): New function, mostly
17791         copied from test-poll.c.
17792         (main): Check that getsockname fills in addr.
17793         * modules/getsockname-tests (Depends-on): Add the necessary
17794         dependencies.
17795         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
17797 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17799         manywarnings: fix maintainer comment
17800         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
17801         it does not mistakenly think that ‘-1)’ is an option.
17803 2018-01-26  Bruno Haible  <bruno@clisp.org>
17805         langinfo: Fix last commit.
17806         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17807         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
17809 2018-01-24  Bruno Haible  <bruno@clisp.org>
17811         langinfo, nl_langinfo: Add support for alternative month names.
17812         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
17813         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
17814         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
17815         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
17816         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
17817         * doc/posix-functions/nl_langinfo.texi: Likewise.
17819 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17821         Merge strftime.c changes from glibc
17822         This incorporates:
17823         2017-11-14 [BZ #10871] Implement alternative month names
17824         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
17825         2017-06-20 Use locale_t, not __locale_t, throughout glibc
17826         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
17827         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
17828         Use locale_t, not __locale_t.
17829         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
17830         (__strftime_internal): Add support for alternate months.
17832 2018-01-23  Bruno Haible  <bruno@clisp.org>
17834         doc: Mention another prerequisite for using Gnulib.
17835         Reported at <https://stackoverflow.com/questions/48378214/>.
17836         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
17837         AC_CONFIG_HEADERS.
17839 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
17841         build: GuixSD doesn't have /bin/bash
17842         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
17844 2018-01-21  Bruno Haible  <bruno@clisp.org>
17846         Avoid test failures on Microsoft Windows Subsystem for Linux.
17847         * tests/test-fcntl.c (main): Allow a different errno.
17848         * tests/test-rename.h (test_rename): Likewise.
17849         * tests/test-renameat.c (main): Likewise.
17850         * tests/test-renameat2.c (main): Likewise.
17852 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17854         filenamecat: make base a suffix of result
17855         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
17856         (mfile_name_concat): Always make BASE a suffix of the result, as
17857         cp expects this.  To implement this, separate with '.' instead of
17858         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
17859         * tests/test-filenamecat.c (main): Adjust tests to match
17860         current behavior.  Check that BASE_IN_RESULT points to
17861         a copy of BASE and is a suffix of the resultk, and that DIR
17862         is a prefix of the result that is no longer than the prefix
17863         indicated by BASE_IN_RESULT.
17865 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
17867         update-copyright: Handle use of ©
17868         * build-aux/update-copyright ($circle_c_re): Update regex to
17869         handle use of © in headers.
17871 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
17873         Fix -Wundef warning in user-included header lib/cdefs.h.
17874         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
17876 2018-01-04  Bruno Haible  <bruno@clisp.org>
17878         pthread_sigmask: Avoid compilation error on mingw.
17879         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17880         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
17881         macro.
17883 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17885         test-framework-sh: ‘ps -ef’, not ‘ps ef’
17886         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
17887         Suggested by Bob Proulx (Bug#29968).
17888         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
17890 2018-01-02  Eric Blake  <eblake@redhat.com>
17892         stat-time: silence -Wunused-parameter regression
17893         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17894         Prefer attribute over cast-to-void.
17895         (stat_time_normalize): Mark st as potentially unused.
17897 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17899         test-framework-sh: avoid netstat
17900         Problem reported by Kristýna Streitová (Bug#29947).
17901         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17902         deprecated on SuSE and it's not that important anyway.
17904 2018-01-01  Jim Meyering  <meyering@fb.com>
17906         update-copyright: add code to handle more special cases
17907         After running "make update-copyright" this year, five files
17908         required additional manual changes.  Automate those adjustments
17909         for next year.
17910         * Makefile (_year_and_prev): Define.
17911         (update-copyright): Add perl commands to induce this year's post-
17912         update-copyright adjustments.
17914 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17916         version-etc: new year
17917         * build-aux/gendocs.sh (version):
17918         * doc/gendocs_template:
17919         * doc/gendocs_template_min:
17920         * doc/gnulib.texi:
17921         * lib/version-etc.c (COPYRIGHT_YEAR):
17922         Update copyright dates by hand in templates and the like.
17924         maint: fix 'make update-copyright'
17925         * Makefile (update-copyright): Adjust to 2016-11-23 change
17926         to config/srclist-update, which changed the format of srclist.txt.
17928 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17930         chdir-safer: remove this module
17931         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17932         * NEWS: Document removal.
17933         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17934         * modules/chdir-safer: Remove these files.
17936 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17938         Add cross-compilation results for GNU/Hurd.
17939         * m4/calloc.m4: Add GNU/Hurd guess.
17940         * m4/cbrtl.m4: Likewise.
17941         * m4/ceil.m4: Likewise.
17942         * m4/ceilf.m4: Likewise.
17943         * m4/ceill.m4: Likewise.
17944         * m4/chown.m4: Likewise.
17945         * m4/duplocale.m4: Likewise.
17946         * m4/exp2l.m4: Likewise.
17947         * m4/expm1.m4: Likewise.
17948         * m4/fchdir.m4: Likewise.
17949         * m4/floor.m4: Likewise.
17950         * m4/floorf.m4: Likewise.
17951         * m4/fmod.m4: Likewise.
17952         * m4/fmodf.m4: Likewise.
17953         * m4/fmodl.m4: Likewise.
17954         * m4/getcwd.m4: Likewise.
17955         * m4/getgroups.m4: Likewise.
17956         * m4/gettimeofday.m4: Likewise.
17957         * m4/hypot.m4: Likewise.
17958         * m4/hypotf.m4: Likewise.
17959         * m4/hypotl.m4: Likewise.
17960         * m4/link-follow.m4: Likewise.
17961         * m4/link.m4: Likewise.
17962         * m4/linkat.m4: Likewise.
17963         * m4/log.m4: Likewise.
17964         * m4/log10.m4: Likewise.
17965         * m4/log10f.m4: Likewise.
17966         * m4/log1p.m4: Likewise.
17967         * m4/log1pf.m4: Likewise.
17968         * m4/log1pl.m4: Likewise.
17969         * m4/log2.m4: Likewise.
17970         * m4/log2f.m4: Likewise.
17971         * m4/logf.m4: Likewise.
17972         * m4/lstat.m4: Likewise.
17973         * m4/malloc.m4: Likewise.
17974         * m4/mbrlen.m4: Likewise.
17975         * m4/mbrtowc.m4: Likewise.
17976         * m4/mkdir.m4: Likewise.
17977         * m4/mkfifo.m4: Likewise.
17978         * m4/mknod.m4: Likewise.
17979         * m4/mkstemp.m4: Likewise.
17980         * m4/modf.m4: Likewise.
17981         * m4/modff.m4: Likewise.
17982         * m4/modfl.m4: Likewise.
17983         * m4/printf.m4: Likewise.
17984         * m4/pselect.m4: Likewise.
17985         * m4/ptsname.m4: Likewise.
17986         * m4/putenv.m4: Likewise.
17987         * m4/readlink.m4: Likewise.
17988         * m4/realloc.m4: Likewise.
17989         * m4/remainder.m4: Likewise.
17990         * m4/remainderf.m4: Likewise.
17991         * m4/remainderl.m4: Likewise.
17992         * m4/rmdir.m4: Likewise.
17993         * m4/round.m4: Likewise.
17994         * m4/roundf.m4: Likewise.
17995         * m4/roundl.m4: Likewise.
17996         * m4/select.m4: Likewise.
17997         * m4/setenv.m4: Likewise.
17998         * m4/signbit.m4: Likewise.
17999         * m4/sleep.m4: Likewise.
18000         * m4/stat.m4: Likewise.
18001         * m4/strerror.m4: Likewise.
18002         * m4/strtok_r.m4: Likewise.
18003         * m4/symlink.m4: Likewise.
18004         * m4/symlinkat.m4: Likewise.
18005         * m4/trunc.m4: Likewise.
18006         * m4/truncf.m4: Likewise.
18007         * m4/truncl.m4: Likewise.
18008         * m4/tzset.m4: Likewise.
18009         * m4/ungetc.m4: Likewise.
18010         * m4/usleep.m4: Likewise.
18011         * m4/wcwidth.m4: Likewise.
18013 2017-12-28  Bruno Haible  <bruno@clisp.org>
18015         gnulib-tool: Make --conditional-dependencies work better.
18016         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
18017         * gnulib-tool (Options): Don't reject the combination of
18018         --conditional-dependencies with --with-tests.
18019         (func_emit_autoconf_snippets): Add argument referenceable_modules.
18020         Don't reference $modules.
18021         (func_import, func_create_testdir): Pass it.
18023 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18025         regex: use re_malloc etc. consistently
18026         Problem and original patch reported by Arnold Robbins in:
18027         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
18028         * lib/regcomp.c (re_comp):
18029         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
18030         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
18032 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
18033             Paul Eggert  <eggert@cs.ucla.edu>
18035         glob: Silence warning about void pointer arithmetic.
18036         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18037         arithmetic.
18039 2017-12-15  Bruno Haible  <bruno@clisp.org>
18041         spawn-pipe: Silence a clang warning.
18042         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18043         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
18044         in this file.
18046 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
18048         explicit_bzero: port to macOS + Clang 9.0.0
18049         Problem reported by Marcus Johnson (Bug#29658).
18050         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
18051         Don’t use asm.
18053 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
18055         doc: Improve explanation of supporting relocatable libraries.
18056         * doc/relocatable-maint.texi (Supporting Relocation): Explain
18057         properly how to build the relocatable module for
18058         libraries. (Method and example code from Bruno Haible.)
18060 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
18062         doc: Use better texinfo tags in a few cases.
18063         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
18064         instead of @samp in a few places.
18066 2017-12-11  Bruno Haible  <bruno@clisp.org>
18068         unistr/base: Update comment.
18069         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
18071 2017-12-10  Pádraig Brady  <P@draigBrady.com>
18073         test-faccessat.c: unlink temp file to avoid subsequent test failure
18074         * tests/test-faccessat.c: Remove the file to avoid failure
18075         to open the file on subsequent runs due to being created
18076         with no permissions.
18078 2017-12-10  Bruno Haible  <bruno@clisp.org>
18080         doc: New sect. "Modifying the build rules of a Gnulib import directory".
18081         * doc/gnulib-tool.texi (Modified build rules): New node.
18083 2017-12-10  Bruno Haible  <bruno@clisp.org>
18085         doc: Tweak wording.
18086         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
18087         "binaries".
18089 2017-12-05  Sam Steingold  <sds@gnu.org>
18090             Bruno Haible  <bruno@clisp.org>
18092         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
18093         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
18094         AC_EGREP_CPP pattern.
18096 2017-12-03  Bruno Haible  <bruno@clisp.org>
18098         all: Replace more http URLs by https URLs.
18099         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
18100         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
18101         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
18102         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
18104 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18106         Port better to CentOS 5
18107         Problems reported by Tom G. Christensen in:
18108         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
18109         * doc/glibc-functions/strverscmp.texi (strverscmp):
18110         Document strverscmp bug with glibc 2.9 and earlier.
18111         * doc/posix-functions/tzset.texi (tzset):
18112         Document that TZ with angle brackets is POSIX-2001 and later.
18113         * tests/test-nstrftime.c: Include unistd.h.
18114         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
18115         (TZ): Use it to skip tests with angle brackets in TZ,
18116         for older systems.
18118         stat: add missing module dependencies
18119         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
18120         Add stat-time.
18122 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
18124         stat: fix compilation failure on macOS Sierra
18125         Reported by Marius Schamschula <mschamschula@gmail.com> in:
18126         https://savannah.gnu.org/bugs/?52546
18127         * lib/stat.c: Add missing include of stat-time.h.
18129 2017-11-28  Jim Meyering  <meyering@fb.com>
18131         test-faccessat.c: correct BASE definition to avoid parallel test failure
18132         * tests/test-faccessat.c (BASE): Define using this file's name, not
18133         that of test-lstat.c.  Using the latter caused this test to fail
18134         sometimes when run concurrently with test-lstat.
18136 2017-11-27  Daiki Ueno  <ueno@gnu.org>
18138         unicase: fix VPATH build
18139         * modules/unicase/special-casing (Makefile.am): Ensure that the
18140         base directory is created when generating
18141         unicase/special-casing.h.
18143 2017-11-27  Daiki Ueno  <ueno@gnu.org>
18145         libunistring: update to Unicode 9.0.0
18146         * lib/gen-uni-tables.c (fill_properties): Recognize
18147         Sentence_Terminal and Prepended_Concatenation_Mark.
18148         (is_property_default_ignorable_code_point): Exclude U+08E2.
18149         (fill_arabicshaping): Allow missing whitespace when parsing;
18150         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
18151         (output_blocks): Increase the element size of the level1 table to
18152         accommodate more blocks.
18153         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
18154         Update each class according to the standard.
18155         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
18156         E_Base_GAZ characters.
18157         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
18158         Glue_After_Zwj, and E_Base_GAZ characters.
18159         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
18160         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
18161         enum value.
18162         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
18163         value.
18164         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
18165         LBP_ZWJ, LBP_EB, and LBP_EM.
18166         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
18167         enum value.
18168         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
18169         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
18170         declaration.
18171         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
18172         (uniwbrk_table): Implement WB14.
18173         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
18174         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
18175         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
18176         uc-is-grapheme-break.
18177         * modules/unigbrk/uc-grapheme-breaks: New module.
18178         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
18179         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
18180         enum value.
18181         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
18182         * lib/unigbrk/u-grapheme-breaks.h: New file.
18183         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
18184         u-grapheme-breaks.h instead of uc_is_grapheme_break.
18185         * lib/unigbrk/uc-grapheme-breaks.c: New file.
18186         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
18187         29.
18188         * tests/unigbrk/test-uc-gbrk-prop.c
18189         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
18190         GBP_GAZ, and GBP_EBG.
18191         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
18192         * tests/unigbrk/test-uc-is-grapheme-break.c
18193         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
18194         GBP_GAZ, and GBP_EBG.
18195         (main): Skip unsupported rules involving 3 or more characters,
18196         namely GB10, GB12, and GB13.
18197         * lib/uniwidth/width.c (nonspacing_table_data): Update.
18198         * all generated files under lib/uni* and tests/uni*: Regenerate.
18199         * all the affected modules: Bump version.
18201 2017-11-26  Bruno Haible  <bruno@clisp.org>
18203         strfmon_l: Fix compilation error with glibc 2.5.
18204         Reported by Tom G. Christensen <tgc@jupiterrise.com>
18205         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
18206         * lib/monetary.in.h: Include also <locale.h>.
18208 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18210         posixtm: remove PDS_LEADING_YEAR
18211         This changes the API slightly, in a hopefully-innocuous way.
18212         Without this change the code had undefined behavior when a
18213         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
18214         Problem reported by Pádraig Brady in:
18215         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
18216         * NEWS: Mention this.
18217         * lib/posixtm.c (posix_time_parse): Treat the absence of
18218         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
18219         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
18220         present, but define it as zero, for compatibility with existing
18221         source code).  All other PDS_* values moved up.
18222         * tests/test-posixtm.c (LY): New macro.
18223         (T): Use it.  Do not expect a particular numeric encoding
18224         for PDS_CENTURY etc.
18226 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
18228         stat: work around Solaris bug with tv_nsec < 0
18229         * doc/posix-functions/fstat.texi (fstat):
18230         * doc/posix-functions/fstatat.texi (fstatat):
18231         * doc/posix-functions/lstat.texi (lstat):
18232         * doc/posix-functions/stat.texi (stat):
18233         Mention Solaris 11 bug.
18234         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
18235         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
18236         * lib/lstat.c (rpl_lstat):
18237         * lib/stat.c (rpl_stat):
18238         Normalize resulting timestamps.
18239         * lib/fstatat.c (normal_fstatat): New function.
18240         (rpl_fstatat): Use it.
18241         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
18242         (stat_time_normalize): New function.
18243         * m4/fstat.m4 (gl_FUNC_FSTAT):
18244         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
18245         * m4/lstat.m4 (gl_FUNC_LSTAT):
18246         * m4/stat.m4 (gl_FUNC_STAT):
18247         Replace on Solaris.
18248         * modules/fstat (Depends-on):
18249         * modules/fstatat (Depends-on):
18250         Add stat-time.
18251         * modules/stat-time (Depends-on): Add errno, intprops.
18253 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
18255         regex: merge from glibc
18256         * lib/regcomp.c (init_word_char): Add comments.
18258 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18260         regex: merge from glibc
18261         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
18262         * lib/regex_internal.h (internal_function): Remove.
18263         All uses removed.
18265 2017-11-20  Bruno Haible  <bruno@clisp.org>
18267         crypto/gc-sm3: Fix buffer overrun.
18268         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
18269         Reported by Coverity.
18271 2017-11-12  Jim Meyering  <meyering@fb.com>
18273         maint: shorten https://lists.gnu.org/archive/html/... links
18274         Each /archive/html/ part can be replace with /r/.
18275         Run this to induce the change:
18276         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
18277         * ChangeLog: Perform that substitution.
18278         * Makefile: Likewise.
18279         * STATUS-libposix: Likewise.
18280         * build-aux/bootstrap: Likewise.
18281         * doc/maintain.texi: Likewise.
18282         * gnulib-tool: Likewise.
18283         * lib/allocator.h: Likewise.
18284         * lib/argp-ba.c: Likewise.
18285         * lib/argp-pv.c: Likewise.
18286         * lib/canon-host.c: Likewise.
18287         * lib/canonicalize-lgpl.c: Likewise.
18288         * lib/float.in.h: Likewise.
18289         * lib/fstat.c: Likewise.
18290         * lib/getdelim.c: Likewise.
18291         * lib/getprogname.c: Likewise.
18292         * lib/glthread/thread.h: Likewise.
18293         * lib/intprops.h: Likewise.
18294         * lib/mbsrtowcs-state.c: Likewise.
18295         * lib/safe-read.c: Likewise.
18296         * lib/signal.in.h: Likewise.
18297         * lib/stat.c: Likewise.
18298         * lib/stdbool.in.h: Likewise.
18299         * lib/stdio-impl.h: Likewise.
18300         * lib/stdio.in.h: Likewise.
18301         * lib/sysexits.in.h: Likewise.
18302         * lib/timespec.h: Likewise.
18303         * lib/wcsrtombs-state.c: Likewise.
18304         * m4/alloca.m4: Likewise.
18305         * m4/extern-inline.m4: Likewise.
18306         * m4/fstatat.m4: Likewise.
18307         * m4/gnulib-common.m4: Likewise.
18308         * m4/lib-ignore.m4: Likewise.
18309         * m4/printf.m4: Likewise.
18310         * m4/regex.m4: Likewise.
18311         * m4/stat-size.m4: Likewise.
18312         * m4/std-gnu11.m4: Likewise.
18313         * m4/stdbool.m4: Likewise.
18314         * m4/sys_types_h.m4: Likewise.
18315         * m4/threadlib.m4: Likewise.
18316         * m4/vararrays.m4: Likewise.
18317         * pygnulib/GLImport.py: Likewise.
18318         * tests/test-exp.h: Likewise.
18319         * tests/test-exp2.h: Likewise.
18320         * tests/test-expm1.h: Likewise.
18321         * tests/test-fflush2.c: Likewise.
18322         * tests/test-getopt_long.h: Likewise.
18323         * tests/test-intprops.c: Likewise.
18324         * tests/test-log.h: Likewise.
18325         * tests/test-log10.h: Likewise.
18326         * tests/test-log1p.h: Likewise.
18327         * tests/test-log2.h: Likewise.
18328         * tests/test-printf-posix.h: Likewise.
18329         * tests/test-regex.c: Likewise.
18330         * tests/test-snprintf-posix.h: Likewise.
18331         * tests/test-sprintf-posix.h: Likewise.
18332         * tests/test-stdalign.c: Likewise.
18333         * tests/test-stdbool.c: Likewise.
18334         * tests/test-vasnprintf-posix.c: Likewise.
18335         * tests/test-vasprintf-posix.c: Likewise.
18336         * top/maint.mk: Likewise.
18338 2017-11-12  Bruno Haible  <bruno@clisp.org>
18340         faccessat: Make the last change more robust.
18341         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
18342         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
18344 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18346         faccessat: port to macOS (Bug#29231)
18347         macOS faccessat has the same bug that lstat does: if the file
18348         name ends in '/' it ignores the trailing slash.
18349         Problem reported for Emacs by Vincent Zhang.
18350         * doc/posix-functions/faccessat.texi (faccessat): Document this.
18351         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
18352         around the initial includes.  Include errno.h, string.h, sys/stat.h.
18353         (orig_faccessat) [HAVE_FACCESSAT]: New function.
18354         Include "unistd.h" after defining it.
18355         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
18356         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
18357         Handle in the usual way.
18358         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
18359         lstat dereferences symlinks, since faccessat is likely to
18360         have the same problem.
18361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
18362         * modules/faccessat (Depends-on): Add fstatat.
18363         Depend if REPLACE_FACCESSAT is 1, too.
18364         (configure.ac): Link if REPLACE_FACCESSAT is 1.
18365         * modules/faccessat-tests (Depends-on): Add symlink.
18366         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
18367         * tests/test-faccessat.c (main): Test for the bug.
18369 2017-11-11  Bruno Haible  <bruno@clisp.org>
18371         getprogname: Fix compilation error on IRIX.
18372         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
18373         'namesize'.
18375 2017-11-11  Bruno Haible  <bruno@clisp.org>
18377         year2038: Tweak last patch.
18378         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
18380 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18382         year2038: be more insistent about 64-bit time_t
18383         Applications requiring access to arbitrary files should not be
18384         built with 32-bit time_t on hosts that have 64-bit timestamps,
18385         as this can lead to real trouble at runtime.
18386         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
18387         Check on all systems, not just MinGW.  Use a heuristic involving
18388         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
18389         output a failure or just a warning, to make it more likely that
18390         builders will select 64-bit time_t.
18392 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18394         havelib: fix typo in previous change
18395         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
18397         Don’t use AC_EGREP_CPP if affected by CFLAGS
18398         * m4/float_h.m4 (gl_FLOAT_H):
18399         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
18400         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
18401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
18402         * m4/year2038.m4 (gl_YEAR2038):
18403         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
18404         likely to be affected by the choice of CFLAGS, since CFLAGS are
18405         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
18406         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
18408         fstatat: pacify GCC on unusual platform
18409         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
18410         Omit, as it’s unused in this case.
18412 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
18414         timespec: prefer ‘assume’ to ‘assure’
18415         This avoids some runtime tests.  The rest of the module makes
18416         similar assumptions and there is little point to testing here.
18417         * lib/timespec.h: Include verify.h instead of assure.h.
18418         (timespec_cmp): Use ‘assume’, not ‘assure’.
18419         Also, remove an unnecessary cast to ‘int’, as lots of other
18420         code in this module now causes -Wconversion to complain, and
18421         this is a problem with -Wconversion not with the code.
18423         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
18425         Port recent gnulib-tool change to Dash
18426         * gnulib-tool (func_create_testdir): Don't assume that the shell
18427         retokenizes after expanding "$@" inside the call to
18428         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
18430 2017-10-27  Jim Meyering  <meyering@fb.com>
18432         timespec.h: use "assure" to avoid a spurious warning
18433         * lib/timespec.h: Include "assure.h" and use it to help
18434         gcc7's -Wstrict-overflow avoid a false positive warning
18435         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
18436         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
18437         * modules/timespec (Depends-on): Add assure.
18439 2017-10-29  Bruno Haible  <bruno@clisp.org>
18441         Avoid several test failures with traditional locales on Haiku.
18442         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
18443         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
18444         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
18445         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
18446         LOCALE_ZH_CN=none.
18448 2017-10-29  Bruno Haible  <bruno@clisp.org>
18450         strerror_r-posix: Fix behaviour and test failure on Haiku.
18451         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
18452         are positive. Work around return value 0 instead of ERANGE on Haiku.
18453         For unknown error numbers, use a format string consistent with perror().
18454         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
18455         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
18456         are positive.
18458 2017-10-29  Bruno Haible  <bruno@clisp.org>
18460         get-rusage-data: Avoid crash on Haiku.
18461         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
18463 2017-10-29  Bruno Haible  <bruno@clisp.org>
18465         get-rusage-as: Avoid crash on Haiku.
18466         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
18468 2017-10-29  Bruno Haible  <bruno@clisp.org>
18470         ilogbl: Ensure replacement on Haiku.
18471         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
18472         REPLACE_ILOGBL if ilogbl does not work.
18473         (gl_FUNC_ILOGBL_WORKS): New macro.
18474         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
18475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
18476         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
18477         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
18478         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
18480 2017-10-29  Bruno Haible  <bruno@clisp.org>
18482         expl: Ensure replacement on Haiku.
18483         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
18484         zero.
18485         * doc/posix-functions/expl.texi: Mention the Haiku problem.
18487 2017-10-29  Bruno Haible  <bruno@clisp.org>
18489         math: Fix test failure on Haiku.
18490         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
18491         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
18492         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18493         * doc/posix-headers/math.texi: Mention the Haiku problem.
18495 2017-10-29  Bruno Haible  <bruno@clisp.org>
18497         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
18498         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
18499         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
18501 2017-10-29  Bruno Haible  <bruno@clisp.org>
18503         crypto/*: Verify that the header file is self-contained.
18504         * tests/test-gc-*.c: Include the module's header file immediately after
18505         <config.h>.
18506         * tests/test-hmac-*.c: Likewise.
18507         * tests/test-arcfour.c: Likewise.
18508         * tests/test-arctwo.c: Likewise.
18509         * tests/test-des.c: Likewise.
18510         * tests/test-md2.c: Likewise.
18511         * tests/test-md4.c: Likewise.
18512         * tests/test-md5.c: Likewise.
18513         * tests/test-rijndael.c: Likewise.
18514         * tests/test-sha1.c: Likewise.
18515         * tests/test-sm3.c: Likewise.
18517 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18518             Bruno Haible  <bruno@clisp.org>
18520         crypto/gc: fix build failure with -Werror=suggest-attribute=const
18521         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
18523 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18525         New module: crypto/gc-sm3
18526         * lib/gc.h: Declare SM3-related stuffs.
18527         * lib/gc-gnulib.c: Support sm3 in internal functions.
18528         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
18529         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
18530         * modules/crypto/gc-sm3: Define gc-sm3 module.
18531         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
18532         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
18533         * MODULES.html.sh: List gc-sm3 module.
18535 2017-10-29  Bruno Haible  <bruno@clisp.org>
18537         random, random_r: Mention different prototypes on Haiku.
18538         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
18539         * doc/glibc-functions/random_r.texi: Likewise.
18540         * doc/glibc-functions/initstate_r.texi: Likewise.
18541         * doc/glibc-functions/setstate_r.texi: Likewise.
18543 2017-10-28  Bruno Haible  <bruno@clisp.org>
18545         posix_spawn: Avoid spurious message in configure output.
18546         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
18547         'cmp' command.
18549 2017-10-28  Bruno Haible  <bruno@clisp.org>
18551         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
18552         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
18553         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
18555 2017-10-28  Bruno Haible  <bruno@clisp.org>
18557         ioctl: Override non-POSIX declaration on Haiku.
18558         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
18559         * lib/sys_ioctl.in.h: Add comment about Haiku.
18560         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
18561         * doc/glibc-headers/sys_ioctl.texi: Likewise.
18563 2017-10-28  Bruno Haible  <bruno@clisp.org>
18565         crypto/sm3: Add overview documentation to the .h file.
18566         * lib/sm3.h: Add comments.
18568 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18570         New module: crypto/sm3
18571         This new module can be used to compute SM3 message digest of files or
18572         memory blocks according to the specification GM/T 004-2012
18573         Cryptographic Hash Algorithm SM3, published by State Cryptography
18574         Administration, China.
18575         The official SM3 cryptographic hash algorithm specification is
18576         available at
18577         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
18578         * lib/sm3.h: Declare the APIs of sm3 module.
18579         * lib/sm3.c: Implement SM3 hash algorithm.
18580         * m4/sm3.m4: m4 file for sm3 module.
18581         * modules/crypto/sm3: Define sm3 module.
18582         * tests/test-sm3.c: Implement SM3 test case.
18583         * modules/crypto/sm3-tests: Define sm3 test module.
18584         * MODULES.html.sh: List sm3 module.
18586 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18588         gc-libgcrypt: fix undefined enum type in switch statement
18589         Resolve the following build failure:
18590         lib/gc-libgcrypt.c: In function 'gc_hash_open':
18591         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
18592         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
18593              case 0:
18594              ^~~~
18595         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
18596         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
18598 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18600         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
18601         Resolve the following build failure:
18602         lib/gc-libgcrypt.c: In function 'gc_hash_read':
18603         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
18604         in signedness [-Werror=pointer-sign]
18605             digest = gcry_md_read (ctx->gch, 0);
18606                    ^
18607         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
18609 2017-10-26  Bruno Haible  <bruno@clisp.org>
18611         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
18612         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
18613         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
18615 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
18617         glob: fix another heap buffer overflow
18618         Problem reported by Tim Rühsen in:
18619         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
18620         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
18622 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18624         quotearg: pacify compiler re unsigned
18625         * lib/quotearg.c (quotearg_n_options):
18626         Rewrite to avoid diagnostic from overly-picky compiler.
18627         Problem reported by Sami Kerola in:
18628         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
18630         glob: fix heap buffer overflow
18631         * lib/glob.c (glob): Fix off-by-one error introduced into
18632         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
18633         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
18634         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
18635         Fix suggested by Bruno Haible.
18637 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18639         glob: pacify fuzzer for mempcpy
18640         Problem reported by Tim Rühsen in:
18641         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
18642         * lib/glob.c (glob): Do not pass NULL to mempcpy.
18644 2017-10-12  Bruno Haible  <bruno@clisp.org>
18646         doc: Fix syntax error (regression from 2017-10-03).
18647         * doc/posix-functions/strncpy.texi: Fix syntax error.
18649 2017-10-12  Bruno Haible  <bruno@clisp.org>
18651         doc: Update for Solaris 11.3.
18652         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
18653         mention Solaris 11.3.
18654         * m4/log2.m4: Fix comments.
18655         * m4/log2f.m4: Likewise.
18656         * m4/printf.m4: Update comments.
18657         * m4/rename.m4: Likewise.
18658         * m4/strncat.m4: Likewise.
18660         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
18662 2017-10-10  Bruno Haible  <bruno@clisp.org>
18664         doc: Improve doc about ioctl.
18665         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
18666         prototype.
18668 2017-10-09  Bruno Haible  <bruno@clisp.org>
18670         wcwidth: Don't use obsolete syntax of 'test'.
18671         Reported by Eric Blake.
18672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
18673         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
18675 2017-10-09  Bruno Haible  <bruno@clisp.org>
18677         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
18678         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
18679         and Daniel P. Berrange <berrange@redhat.com>.
18680         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
18681         on glibc systems. The getopt-pfx-core.h file declares exactly what
18682         unistd.h needs, nothing more.
18684 2017-10-08  Bruno Haible  <bruno@clisp.org>
18686         vma-iter: Improve support for FreeBSD.
18687         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
18688         vma_iterate.
18689         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
18691 2017-10-08  Bruno Haible  <bruno@clisp.org>
18693         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
18694         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
18696 2017-10-07  KO Myung-Hun  <komh@chollian.net>
18698         test-framework-sh: Fix 'invalid path dir' error.
18699         On OS/2, a path separator is ';' not ':'. And ':' is used as a
18700         separator between a drive letter and directory parts.
18701         As a result, an absolute path such as x:/path/to/dir on OS/2 is
18702         treated as an invalid path dir.
18703         * tests/init.sh (PATH_SEPARATOR): Set at startup.
18704         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
18705         instead of hard coded ':'.
18707 2017-10-07  Bruno Haible  <bruno@clisp.org>
18709         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
18710         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
18711         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
18712         (rof_open): On Linux, do multiple read() calls and make sure
18713         MIN_LEFTOVER bytes are left when read() returns.
18715 2017-10-07  Bruno Haible  <bruno@clisp.org>
18717         vma-iter: Improve support for GNU/Hurd.
18718         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
18719         API, not the /proc file system.
18721 2017-10-07  Bruno Haible  <bruno@clisp.org>
18723         test-framework-sh: Don't require bash on Windows and OS/2.
18724         Reported by KO Myung-Hun.
18725         * tests/test-init.sh: Use 'shopt' only when running in bash.
18727 2017-10-06  KO Myung-Hun  <komh@chollian.net>
18729         wcwidth: check a macro version of wcwidth () as well
18730         * lib/wchar.in.h: Revert commit from 2016-01-14.
18731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
18733 2017-10-06  Bruno Haible  <bruno@clisp.org>
18735         getopt-posix: Clarify copyright header.
18736         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
18737         * lib/getopt-pfx-core.h: Likewise.
18738         * lib/getopt-pfx-ext.h: Likewise.
18739         * lib/getopt-cdefs.in.h: Likewise.
18741 2017-10-03  Bruno Haible  <bruno@clisp.org>
18743         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
18744         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
18745         gl_HOST_CPU_C_ABI.
18747 2017-10-03  Bruno Haible  <bruno@clisp.org>
18749         doc: warn about misuse of strncpy and wcsncpy.
18750         * doc/posix-functions/strcpy.texi: Describe requirements on prior
18751         memory allocation.
18752         * doc/posix-functions/wcscpy.texi: Likewise.
18753         * doc/posix-functions/strncpy.texi: Describe what this function is not
18754         useful for.
18755         * doc/posix-functions/wcsncpy.texi: Likewise.
18757 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18759         fsuage: fix typo in previous change
18760         * lib/fsusage.c: Remove stray include of full-read.h.
18761         Problem reported by Sam Steingold for macOS (Bug#28669).
18763 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
18765         fsusage: remove SVR2 support
18766         SVR2 was obsolete by 1986 and is no longer supported by anybody,
18767         and its code was getting in the way of use of this module by
18768         Emacs, which has its own ‘read’ function anyway.
18769         * lib/fsusage.c: Do not include sys/filsys.h.
18770         (get_fs_usage): Remove SVR2-specific code.
18771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
18772         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
18773         * modules/fsusage (Depends-on): Do not depend on full-read.
18775         Simplify autoupdate of licenses
18776         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
18777         place.
18779 2017-10-01  Bruno Haible  <bruno@clisp.org>
18781         vma-iter: Add support for GNU/Hurd.
18782         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
18783         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18785 2017-09-30  Bruno Haible  <bruno@clisp.org>
18787         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
18788         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
18789         fail when module 'largefile' is in use.
18790         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
18791         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
18792         Don't test HAVE_SYS_PROCFS_H.
18794 2017-09-30  Bruno Haible  <bruno@clisp.org>
18796         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
18797         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
18798         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
18799         * modules/havelib (Depends-on): Add host-cpu-c-abi.
18801 2017-09-30  Bruno Haible  <bruno@clisp.org>
18803         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
18804         * lib/uniname/uniname.c (unicode_name_character): Add braces around
18805         scope of local variables.
18807 2017-09-28  Bruno Haible  <bruno@clisp.org>
18809         string: code style
18810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
18811         substitutable variables.
18812         * modules/string (Makefile.am): Likewise.
18814 2017-09-26  Bruno Haible  <bruno@clisp.org>
18816         uniname/uniname-tests: Tighten code.
18817         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
18818         local variables into one.
18820 2017-09-26  Bruno Haible  <bruno@clisp.org>
18822         vma-iter: Improvements for Linux and BSD platforms.
18823         - Add support for DragonFly BSD.
18824         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
18825         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
18826         Read the entire file into memory in a single system call.
18827         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
18828         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
18830 2017-09-26  Bruno Haible  <bruno@clisp.org>
18832         vma-iter: Provide the protection flags on FreeBSD.
18833         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
18834         skip three fields between the addresses and the protection flags.
18836 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18838         glob: remove bogus extern decl
18839         * lib/glob.c (__glob_pattern_type): Remove now-spurious
18840         extern declaration.  Problem reported by Adhemerval Zanella in:
18841         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
18843 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18845         uniname/uniname-tests: integer overflow fix
18846         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
18847         Check for integer overflow.
18849         duplocale-tests: fix unlikely crash
18850         * tests/test-duplocale.c (get_locale_dependent_values):
18851         Don’t crash with absurdly long month names.
18853         maint: fix overflow checking in nap.h
18854         * modules/chown-tests:
18855         * modules/fchownat-tests, modules/fdutimensat-tests:
18856         * modules/futimens-tests, modules/lchown-tests:
18857         * modules/stat-time-tests, modules/utime-tests:
18858         * modules/utimens-tests, modules/utimensat-tests:
18859         Depend on intprops.
18860         * tests/nap.h: Include intprops.h.
18861         (diff_timespec): Handle overflow properly.
18863         sys_types: update URL
18864         * m4/sys_types_h.m4: Use https: URL.
18866         parse-datetime: fix dependency
18867         * modules/parse-datetime (Depends-on): Depend
18868         on nstrftime, not strftime.
18870         parse-datetime, posixtm: avoid uninit access
18871         * lib/parse-datetime.y (parse_datetime2):
18872         * lib/posixtm.c (posixtime):
18873         Do not access uninitialized storage, even though the resulting
18874         value is never used.
18876 2017-09-25  Bruno Haible  <bruno@clisp.org>
18878         vma-iter: Improvements for BSD platforms.
18879         - Add support for GNU/kFreeBSD.
18880         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
18881         - Speed up on OpenBSD.
18882         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
18883         (vma_iterate_bsd): New function.
18884         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
18885         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
18886         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18887         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
18889 2017-09-23  Bruno Haible  <bruno@clisp.org>
18891         strfmon_l: New module.
18892         * modules/strfmon_l: New file.
18893         * lib/strfmon_l.c: New file.
18894         * m4/strfmon_l.m4: New file.
18895         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18896         * modules/strfmon_l-tests: New file.
18897         * tests/test-strfmon_l.c: New file.
18899         monetary: New module.
18900         * modules/monetary: New file.
18901         * lib/monetary.in.h: New file.
18902         * m4/monetary_h.m4: New file.
18903         * doc/posix-headers/monetary.texi: Mention the new module.
18904         * modules/monetary-tests: New file.
18905         * tests/test-monetary.c: New file.
18906         * modules/monetary-c++-tests: New file.
18907         * tests/test-monetary-c++.cc: New file.
18908         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18910 2017-09-23  Bruno Haible  <bruno@clisp.org>
18912         duplocale tests: Fix test crash on Linux/x86.
18913         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18914         locale from the current thread before freeing it.
18916 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18918         mktime: port to OpenVMS
18919         Problem reported by John E. Malmberg in:
18920         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18921         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18923 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18925         manywarnings: port to GCC on 64-bit MS-Windows
18926         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18927         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18928         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18930 2017-09-13  Bruno Haible  <bruno@clisp.org>
18932         all: Replace many more http URLs by https URLs. Update stale URLs.
18933         * users.txt: Remove mention of 'newts'.
18934         * lib/localename.c: Update comment about LANG_SOTHO.
18936 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18938         all: Replace many http URLs by https URLs.
18940 2017-09-12  Bruno Haible  <bruno@clisp.org>
18942         doc: Prefer https URLs where possible.
18943         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18944         * doc/ld-output-def.texi: Remove unavailable URL.
18946 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18948         maintainer-makefile: FTP -> HTTPS
18949         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18950         of FTP, which is planned to be decommissioned on 2017-11-01.
18952 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18954         libc-config: Fix __GNUC_PREREQ macro.
18955         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18956         __GNUC_MINOR.
18958 2017-09-09  Bruno Haible  <bruno@clisp.org>
18960         gnulib-tool: Simplify commit from 2015-08-20.
18961         * gnulib-tool (func_add_or_update): Remove local variable
18962         is_binary_file.
18964 2017-09-08  Bruno Haible  <bruno@clisp.org>
18966         stddef: Avoid conflict with system-defined max_align_t.
18967         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18968         Reported by Werner Lemberg <wl@gnu.org> in
18969         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18970         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18971         (max_align_t): Define as a macro.
18972         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18973         definitions of rpl_max_align_t in different copies of gnulib-generated
18974         <stddef.h>.
18976 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18978         libc-config: port to MSVC
18979         Problems reported by Gisle Vanem in:
18980         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18981         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18982         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18983         * m4/__inline.m4: New file.
18984         * modules/libc-config (Files): Add it.
18985         (Depends-on): Use it.
18987         glob: Use enum for __glob_pattern_type result
18988         From a patch proposed by Adhemerval Zanella in:
18989         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18990         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18991         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18992         * lib/glob_internal.h (__glob_pattern_type):
18993         * lib/glob.c (glob):
18994         * lib/glob_pattern_p.c (__glob_pattern_p):
18995         Use them.
18997         glob: fix for use in glibc
18998         Problem reported by Adhemerval Zanella in:
18999         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
19000         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
19001         Do not redefine if _LIBC.
19003 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19005         glob: fix bugs with long login names
19006         Problem reported by Adhemerval Zanella in:
19007         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
19008         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
19009         (glob): Use the same scratch buffer for both getlogin_r and
19010         getpwnam_r.  Don’t require preallocation of the login name.  This
19011         simplifies storage allocation, and corrects the handling of
19012         long login names.
19014 2017-09-02  Bruno Haible  <bruno@clisp.org>
19016         dirent: Update doc.
19017         * doc/posix-headers/dirent.texi: More concrete list of platforms.
19019 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19021         glob: fix getpwnam_r errno typo
19022         * lib/glob.c (glob): Fix longstanding misuse of errno after
19023         getpwnam_r, which returns an error number rather than setting
19024         errno.
19026         glob: fix typo in recent change
19027         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
19028         Fix recently-introduced typo.
19030 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19032         glob: don't save and restore errno unnecessarily
19033         * lib/glob.c (glob): Don't save and restore errno
19034         merely because we have getpwnam_r.
19036         glob: don't assume getpwnam_r
19037         * lib/glob.c (glob): Port recent patches to platforms
19038         lacking getpwnam_r.
19040         scratch_buffer: don’t use private glibc API
19041         Suggested by Florian Weimer in:
19042         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
19043         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
19044         * lib/scratch_buffer_grow.c: Rename to
19045         lib/malloc/scratch_buffer_grow.c.
19046         * lib/scratch_buffer_grow_preserve.c: Rename to
19047         lib/malloc/scratch_buffer_grow_preserve.c.
19048         * lib/scratch_buffer_set_array_size.c: Rename to
19049         lib/malloc/scratch_buffer_set_array_size.c.
19050         * lib/scratch_buffer.h: New file.
19051         * modules/scratch_buffer (Files, Makefile.am):
19052         Adjust to source-file renaming.
19054 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19056         glob: use scratch_buffer instead of extend_alloca
19057         Much of the lib/glob.c part of this patch comes from a glibc patch
19058         proposed by Adhemerval Zanella in:
19059         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
19060         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
19061         included via glob.h, does this for us now.
19062         (__set_errno): Remove, as libc-config does this for us now.
19063         Include <scratch_buffer.h>.
19064         (GETPW_R_SIZE_MAX): Remove.
19065         (glob): Use struct scratch_buffer instead of extend_alloca.
19066         * lib/glob.in.h: Include libc-config.h rather than
19067         including <sys/cdefs.h> conditionally.
19068         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
19069         (__glibc_unlikely, __restrict, weak_alias):
19070         Remove, as libc-config does this for us now.
19071         * m4/glob.m4 (gl_PREREQ_GLOB):
19072         Remove sys/cdefs.h tests; no longer needed.
19073         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
19074         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
19076         scratch_buffer: new module
19077         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
19078         * lib/scratch_buffer_grow_preserve.c:
19079         * lib/scratch_buffer_set_array_size.c:
19080         New files, copied from glibc with very minor changes that can be
19081         copied back.
19082         * modules/scratch_buffer: New file.
19084         libc-config: new module
19085         * MODULES.html.sh: Add libc-config.
19086         * lib/cdefs.h: New file, copied from the GNU C Library with very
19087         minor changes that can be copied back.
19088         * lib/libc-config.h, modules/libc-config: New files.
19090 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19092         glob: match dangling symlinks
19093         This fixes a bug I inadvertently introduced to Gnulib when I
19094         merged glibc glob back into gnulib on 2007-10-16.  This fix is
19095         inspired by a patch proposed for glibc by Adhemerval Zanella in:
19096         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
19097         * doc/posix-functions/glob.texi: Update list of affected platforms.
19098         * lib/glob.c (__lstat64): New macro.
19099         (is_dir): New function.
19100         (glob, glob_in_dir): Match symlinks even if they are dangling.
19101         (link_stat, link_exists_p): Remove.  All uses removed.
19102         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
19103         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
19104         * modules/glob-tests (Depends-on): Add symlink.
19105         * tests/test-glob.c: Include errno.h, unistd.h.
19106         (BASE): New macro.
19107         (main): Test dangling symlinks, if symlinks are supported.
19109         glob, backupfile: inode 0 is a valid inode number
19110         * doc/posix-functions/readdir.texi (readdir):
19111         * doc/posix-headers/dirent.texi (dirent.h):
19112         Document more readdir portability issues.
19113         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
19114         (numbered_backup): Don’t treat inode 0 any differently from
19115         other inode values.
19116         * lib/glob.c (struct readdir_result): Remove skip_entry member.
19117         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
19118         All uses removed.
19119         * modules/glob (Depends-on): Remove d-ino.
19121         glob: simplify symlink detection
19122         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
19123         uint8_t, as C99 does not require uint8_t.
19124         (struct readdir_result): Use it.  Do not define skip_entry unless
19125         it is needed; this saves a byte on platforms lacking d_ino.
19126         (readdir_result_type, readdir_result_skip_entry):
19127         New functions, replacing ...
19128         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
19129         ... these functions, which were removed.  This makes the callers
19130         easier to read.  All callers changed.
19131         (D_INO_TO_RESULT): Now empty if there is no d_ino.
19133 2017-08-30  Pádraig Brady  <P@draigBrady.com>
19135         fts-tests: tag as a longrunning-test so not included by default
19136         * modules/fts-tests: This test takes about 20s on current systems,
19137         and uses about 285M of space on ext4.
19139 2017-08-30  Pádraig Brady  <P@draigBrady.com>
19141         renameat2: fix compilation on alpine linux
19142         * m4/renameat.m4: Check for <linux/fs.h> presence.
19143         * lib/renameat2.h: Only include <linux/fs.h> if present.
19144         Reported by Assaf Gordon on Alpine Linux.
19146 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19148         glob: try to port recent changes to MS-Windows
19149         Problem reported by Bruno Haible in:
19150         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
19151         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
19152         * lib/glob.in.h (__glob_pattern_p): ... to here.
19154 2017-08-24  Eric Blake  <eblake@redhat.com>
19156         warnings: fix compilation with old autoconf
19157         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
19158         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
19159         AC_DEFUN.
19160         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
19161         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
19163 2017-08-24  Bruno Haible  <bruno@clisp.org>
19165         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
19166         * modules/glob (Depends-on): Add c99.
19168 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19170         glob: fix typo that broke platforms lacking d_ino
19171         This typo also hurt performance on GNU/Linux and similar hosts.
19172         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
19173         in previous change.
19175 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19177         glob: merge from glibc with Zanella glob changes
19178         Merge glob from glibc, with changes for glob proposed
19179         by Adhemerval Zanella in the thread starting here:
19180         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
19181         plus some fixes for this merge.
19182         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
19183         New files, ported from glibc.
19184         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
19185         with __restrict.
19186         (__size_t): Remove.  All uses replaced by size_t.
19187         (size_t): Define by defining __need_size_t and including <stddef.h>.
19188         This should work even in non-glibc platforms, where any name
19189         pollution is OK.
19190         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
19191         (struct stat64): Don’t worry about __GLOB_GNULIB.
19192         (glob, globfree, glob_pattern_p): Remove macros for
19193         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
19194         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
19195         but set errno.
19196         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
19197         removed since the glibc behavior works on null pointers.
19198         Do not include stdio.h; old SunOS is irrelevant now.
19199         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
19200         Include glob_internal.h.
19201         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
19202         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
19203         worked only coincidentally.
19204         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
19205         Remove macros; now done in glob.in.h.
19206         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
19207         (glob): Properly initialize glob structure with
19208         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
19209         Remove old code using SHELL since Bash no longer
19210         uses this.
19211         (glob, prefix_array): Separate MS code better.
19212         (glob, glob_in_dir): Use C99 decls before statements when glibc
19213         does.
19214         (glob_in_dir): Remove old Amiga and VMS code.
19215         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
19216         separate files.
19217         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
19218         (__glibc_unlikely):
19219         Move here from glob.c.
19220         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
19221         (weak_alias): New macro.
19222         (__size_t): Remove.  All uses replaced by size_t.
19223         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
19224         * modules/glob (Files): Add +lib/glob_internal.h,
19225         lib/glob_pattern_p.c, lib/globfree.c.
19226         (Depends-on): Remove snippet/arg-nonnull.
19228 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19230         glob: port to clang's Undefined Sanitizer
19231         Problem reported by Tim Rühsen in:
19232         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
19233         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
19234         (glob_in_dir): Do not rely on undefined behavior in accessing
19235         struct members beyond their bounds.  Use a flexible array member
19236         instead.
19238 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19240         vc-list-files: port to Solaris 10
19241         * build-aux/vc-list-files: Don't assume test -e works.
19243 2017-08-21  Karl Berry  <karl@freefriends.org>
19245         * doc/posix-functions/srandom.texi (srandom): typo }.
19247 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19249         git-version-gen: port to Solaris 10
19250         Problem reported by Dagobert Michelsen in:
19251         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
19252         * build-aux/git-version-gen (v_from_git):
19253         Use expr instead of shell substitution.
19255 2017-08-19  Bruno Haible  <bruno@clisp.org>
19257         host-cpu-c-abi: Improve detection of MIPS ABI.
19258         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
19259         _MIPS_SIM.
19261 2017-08-17  Bruno Haible  <bruno@clisp.org>
19263         hypot tests: Fix test failure on FreeBSD 11.0/x86.
19264         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
19266 2017-08-17  Bruno Haible  <bruno@clisp.org>
19268         float: Fix LDBL_MIN value on FreeBSD/x86.
19269         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
19271 2017-08-17  Bruno Haible  <bruno@clisp.org>
19273         random: Fix test compilation failure on Cygwin 1.5.25.
19274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
19275         HAVE_DECL_SETSTATE.
19276         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
19277         declared.
19278         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
19279         HAVE_DECL_SETSTATE.
19280         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
19281         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
19282         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
19283         * doc/posix-functions/random.texi: Likewise.
19284         * doc/posix-functions/setstate.texi: Likewise.
19285         * doc/posix-functions/srandom.texi: Likewise.
19287 2017-08-16  Bruno Haible  <bruno@clisp.org>
19289         stdnoreturn: Fix test compilation failure on Cygwin.
19290         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
19291         <stdnoreturn.h> replacement.
19292         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
19293         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
19295 2017-08-16  Bruno Haible  <bruno@clisp.org>
19297         thread: Fix conflict with pthread_sigmask module.
19298         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
19299         it's defined as a macro.
19300         * modules/thread (Depends-on): Add pthread_sigmask.
19302 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19304         rename: port better to NetBSD
19305         * doc/posix-functions/rename.texi (rename): NetBSD 7
19306         does not have the link-count bug.
19307         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
19308         broken merely because rename ("a", "b") removes "a" when the two
19309         names are hard links to the same file.
19311 2017-08-16  Bruno Haible  <bruno@clisp.org>
19313         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
19314         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
19315         the target file names with '$(srcdir)/'.
19316         * modules/unicase/locale-language (Makefile.am): Likewise.
19317         * modules/unicase/special-casing (Makefile.am): Likewise.
19318         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
19319         * modules/unictype/category-byname (Makefile.am): Likewise.
19320         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
19321         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
19322         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
19323         * modules/unictype/property-byname (Makefile.am): Likewise.
19324         * modules/unictype/scripts (Makefile.am): Likewise.
19325         * modules/uninorm/composition (Makefile.am): Likewise.
19327 2017-08-16  Bruno Haible  <bruno@clisp.org>
19329         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
19330         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
19331         value for OpenBSD.
19333 2017-08-16  Bruno Haible  <bruno@clisp.org>
19335         rename, renameat: Update doc regarding NetBSD.
19336         * doc/posix-functions/rename.texi: Clarify that when using
19337         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
19338         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
19339         version.
19341 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19343         renameat2: port better to macOS
19344         * lib/renameat2.c (renameat2): Use renameatx_np if available.
19346         futimens: don’t assume struct timespec layout
19347         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
19348         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
19349         * tests/test-fdutimensat.c (main):
19350         * tests/test-futimens.h (test_futimens):
19351         * tests/test-lutimens.h (test_lutimens):
19352         * tests/test-utimens.h (test_utimens):
19353         * tests/test-utimensat.c (main):
19354         Don’t assume that struct timespec is a two-member structure in
19355         tv_sec, tv_nsec order.  Although this is true on all platforms we
19356         know about, POSIX does not guarantee it.
19358         rename: document+test NetBSD rename
19359         Test failure reported by Bruno Haible in:
19360         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
19361         This is an area where NetBSD is better-behaved than POSIX,
19362         so allow the NetBSD behavior in tests.
19363         * doc/posix-functions/rename.texi:
19364         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
19365         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
19367 2017-08-15  Bruno Haible  <bruno@clisp.org>
19369         renameat: Ensure declaration in <stdio.h> on NetBSD.
19370         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
19371         * doc/posix-functions/renameat.texi: Mention this problem.
19373 2017-08-15  Bruno Haible  <bruno@clisp.org>
19375         duplocale: Work around NetBSD 7.0 bug.
19376         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
19377         * lib/duplocale.c: Add comment about NetBSD problem.
19378         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
19380 2017-08-15  Bruno Haible  <bruno@clisp.org>
19382         duplocale tests: Verify use with *_l functions.
19383         * modules/duplocale-tests (configure.ac): Test for uselocale and
19384         some *_l functions.
19385         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
19386         from main.
19387         (get_locale_dependent_values_from, test_with_locale_parameter): New
19388         functions.
19389         (main): Test both test_with_uselocale and test_with_locale_parameter.
19391 2017-08-15  Bruno Haible  <bruno@clisp.org>
19393         extensions: Enable NetBSD specific extensions.
19394         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
19396 2017-08-14  Bruno Haible  <bruno@clisp.org>
19398         open, openat: Update doc about O_CLOEXEC.
19399         * doc/posix-functions/open.texi: More concrete list of platforms.
19400         * doc/posix-functions/openat.texi: Likewise.
19402 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19404         open: support O_CLOEXEC
19405         * NEWS, doc/posix-functions/open.texi:
19406         * doc/posix-functions/openat.texi: Document this.
19407         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
19408         (GNULIB_defined_O_CLOEXEC): New symbol.
19409         * lib/open.c: Include cloexec.h.
19410         (open): Support O_CLOEXEC.
19411         * lib/openat.c: Include cloexec.h.
19412         (rpl_openat): Support O_CLOEXEC.
19413         * lib/popen-safer.c: Do not include cloexec.h.
19414         (open_noinherit): Remove.
19415         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
19416         * lib/save-cwd.c: Do not include cloexec.h.
19417         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
19418         * m4/open-cloexec.m4: New file.
19419         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
19420         Replace 'open' if O_CLOEXEC is not present.
19421         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
19422         Replace 'openat' if O_CLOEXEC is not present.
19423         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
19424         * modules/open (Files): Add m4/open-cloexec.m4.
19425         (Depends-on): Depend on cloexec if replacing 'open'.
19426         * modules/openat (Files): Add m4/open-cloexec.m4.
19427         (Depends-on): Depend on cloexec if replacing openat.
19428         * modules/popen-safer (Depends-on): Remove cloexec.
19429         * modules/save-cwd (Depends-on): Remove cloexec, and add
19430         fd-safer-flag and 'open'.
19432 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
19434         reallocarray: minor fixes
19435         * doc/glibc-functions/reallocarray.texi: Update version numbers.
19436         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
19437         * modules/reallocarray (License): Change from GPL to LGPL.
19438         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
19439         Indent properly and don't use tabs.
19441 2017-08-13  Darshit Shah  <darnir@gnu.org>
19443         reallocarray: New module
19444         reallocarray is a new function in glibc 2.26 to safely allocate an array
19445         of memory locations with integer overflow protection.
19446         * MODULES.html.sh: Add reallocarray.
19447         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
19448         * lib/reallocarray.c: New file to implement module reallocarray.
19449         * lib/stdlib.in.h: Add function declarations for reallocarray.
19450         * m4/reallocarray.m4: New file.
19451         * m4/stdlib_h.m4: Declare reallocarray.
19452         * modules/reallocarray: New file.
19453         * modules/reallocarray-test: New file.
19454         * modules/stdlib: Coerce stdlib.h to export reallocarray.
19455         * tests/test-reallocarray.c: New test.
19457 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19459         dirent-safer: fix cloexec race
19460         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
19461         (opendir_safer): Use F_DUPFD_CLOEXEC.
19462         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
19463         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
19464         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
19465         instead of dup_safer.
19467         fts: fix cloexec races
19468         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
19469         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
19470         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
19471         (fd_ring_check): Set cloexec flag on new file descriptors.
19472         (fts_build, fd_ring_check): While we’re at it, make sure the
19473         resulting file descriptor is not 0, 1, or 2, since that is easy.
19475 2017-08-11  Bruno Haible  <bruno@clisp.org>
19477         fts tests: Fix link error.
19478         Reported by Tom G. Christensen in
19479         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
19480         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
19482 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19484         fts: port recent changes to CentOS 6
19485         Problem reported by Tom G. Christensen in:
19486         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
19487         * lib/fts.c (fsword): New type.
19488         (struct dev_type, filesystem_type): Use it.
19489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
19490         Also, check for f_type only if fstatfs and sys/vfs.h work.
19492 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19494         tempname: do not depend on secure_getenv
19495         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
19496         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
19497         * modules/tempname (Depends-on): Remove secure_getenv.
19499 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
19501         extensions: add _OPENBSD_SOURCE
19502         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
19504 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
19505             Bruno Haible  <bruno@clisp.org>
19507         manywarnings: Add support for C++.
19508         * build-aux/g++-warning.spec: New file.
19509         * m4/manywarnings-c++.m4: New file.
19510         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
19511         redirects to manywarnings-c++.m4.
19512         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
19514 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19516         git-version-gen: another fix for tags with "-"
19517         * build-aux/git-version-gen: Improve fix for tags containing "-".
19518         Suggested by Markus Armbruster in:
19519         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
19521 2017-08-06  Bruno Haible  <bruno@clisp.org>
19523         warnings, manywarnings: Add support for multiple languages, not just C.
19524         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
19525         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
19526         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
19527         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
19528         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
19529         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
19530         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
19531         of the current language. If C++ is the current language, modify
19532         WARN_CXXFLAGS instead of WARN_CFLAGS.
19533         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
19534         gl_MANYWARN_ALL_GCC.
19535         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
19537 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
19539         git-version-gen: Fix for tags containing '-'
19541         Really old versions of git-describe (before v1.5.0, Feb 2007)
19542         don't have the number of commits in their long format output,
19543         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
19544         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
19545         recognizes both patterns, and normalizes the old format to the new one.
19547         Unfortunately, this normalization code gets confused when the tag
19548         contains '-'.  Reproducer:
19550             $ git-tag -m test v0.2-rc1
19551             $ build-aux/git-version-gen .tarball-version; echo
19552             build-aux/git-version-gen: WARNING: git rev-list failed
19553             UNKNOWN
19555         We take exact tag "v0.2-rc1" for the old format, extract the presumed
19556         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
19557         commits since tha tag.  Fails, because tag "v0.2" does not exist.
19559         * git-version-gen: We could perhaps drop support for versions from
19560         more than a decade ago.  But tightening the pattern match is easy
19561         enough, so do that.  Still breaks when you use version tags ending in
19562         something matching -g????, but you arguably get what you deserve then.
19564 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19566         valgrind-tests: use ls, and cache
19567         * m4/valgrind-tests.m4: Test ls, not bash.
19568         Problem reported by Reuben Thomas.
19569         Also, cache the result so that it can be overridden.
19571 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
19573         manywarnings: port to 64-bit GCC builds of Emacs
19574         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
19575         object size rather than hardwiring 2147483647.  This is needed to
19576         build GNU Emacs, which has one conditional (and used
19577         only-in-theory) call to malloc with a literal greater than
19578         2147483647.
19580 2017-08-04  Bruno Haible  <bruno@clisp.org>
19582         Relax the license of some modules with no runtime code.
19583         * modules/std-gnu11 (License): Set to 'unlimited'.
19584         * modules/c99 (License): Likewise.
19585         Reported by Reuben Thomas <rrt@sc3d.org>.
19586         * modules/d-ino (License): Set to 'LGPL'.
19587         * modules/host-os (License): Likewise.
19588         * modules/longlong (License): Likewise.
19590 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19592         renameat2: port to RHEL 7 + NFS
19593         * lib/renameat2.c (renameat2) [SYS_renameat2]:
19594         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
19595         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
19597 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19599         renameat2: port to non-renameat platforms
19600         Problem reported for MSVC-2015 by Gisle Vanem in:
19601         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
19602         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
19603         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
19605 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19607         manywarnings: port to 32-bit GCC bug
19608         Problem reported by Pino Toscano in:
19609         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
19610         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
19611         not 2**63 - 1, to work around the following GCC bug:
19612         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
19614 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
19616         backupfile: new function to validate backup suffix
19617         * lib/backupfile.c (set_simple_backup_suffix): New function.
19618         (backupfile_internal): Use it.
19620         canonicalize: fix EOVERFLOW commentary
19621         Problem reported by Bruno Haible in:
19622         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
19623         * lib/canonicalize.c (canonicalize_filename_mode):
19624         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
19626         Don't interpret EOVERFLOW to mean nonexistence
19627         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
19628         may be EOVERFLOW; this is likely more useful than reporting the
19629         stat errno.
19630         * lib/glob.c (link_stat): Rename from link_exists2_p and
19631         return -1/0 instead of 0/1.  Caller changed.
19632         * lib/glob.c (link_exists_p):
19633         * lib/renameat2.c (rename_noreplace, renameat2):
19634         * lib/tempname.c (try_nocreate):
19635         If errno == EOVERFLOW then the directory entry exists, so do not
19636         act as if it does not exist.
19638         backup-rename: new module
19639         It is like backupfile, except it avoids some race conditions,
19640         and it does not output to stderr or exit.
19641         * MODULES.html.sh: Add backup-rename.
19642         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
19643         * modules/backup-rename: New files.
19644         * lib/backupfile.c: Turn this into an internals file, which
19645         contains code common to backupfile and backup_rename.  Include
19646         backupfile-internal.h instead of backupfile.h.  Do not include
19647         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
19648         renameat2.h and fcntl.h.
19649         (BACKUP_NOMEM): New constant.
19650         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
19651         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
19652         (backupfile_internal): Rename from find_backup_file_name.
19653         Support new arg RENAME.
19654         (backup_args, backup_types, get_version, xget_version):
19655         Move to lib/backup-find.c.
19656         * lib/backupfile.h (backup_file_rename): New decl.
19657         * modules/backupfile (Files): Add lib/backup-internal.h,
19658         lib/backup-find.c.
19659         (Depends-on): Add dirfd, fcntl, renameat2.
19660         (lib_SOURCES): Add backup-find.c.
19662         renameat2: port better to older Solaris
19663         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
19664         Add goto to use a label, to silence picky compilers.
19666         fts-tests: port to gcc -Wwrite-strings
19667         * tests/test-fts.c (base, base_d): New static vars.
19668         (argv, remove_tree, main): Use them.
19670 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19672         relocatable-lib{,-lgpl}: improve documentation
19673         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
19674         Various other updates.
19676 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
19677             Bruno Haible  <bruno@clisp.org>
19679         relocatable-lib{,-lgpl}: add Valgrind suppressions
19680         * lib/relocatable.valgrind: New file.
19681         * modules/relocatable-lib (Files): Add relocatable.valgrind.
19682         * modules/relocatable-lib-lgpl: Likewise.
19684 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19686         relocatable: Make the license on the sources the GPL.
19687         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
19688         LGPL, which was a special case so that the relocatable source files
19689         could be used without gnulib-tool, to GPL. They can still be used under
19690         the LGPL, using the --lgpl option to gnulib-tool.
19692 2017-07-30  Bruno Haible  <bruno@clisp.org>
19694         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
19695         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
19696         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
19697         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
19698         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
19700 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
19702         faccessat: document AT_SYMLINK_NOFOLLOW issue
19703         * doc/posix-functions/faccessat.texi: Modernize platform list.
19704         Document AT_SYMLINK_NOFOLLOW limitation.
19706         renameat2: port to Solaris 10
19707         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
19708         with AT_SYMLINK_NOFOLLOW (which is not portable).
19709         (renameat): Undef before using, to avoid endless recursion when
19710         the replacement renameat calls renameat2 which calls the
19711         replacement renameat.
19712         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
19713         * modules/renameat2 (Depends-on): Remove faccessat.
19714         * modules/renameat-tests (test_renameat_LDADD):
19715         * modules/renameat2-tests (test_renameat2_LDADD):
19716         Remove $(LIB_EACCESS).
19718         renameat2: new module
19719         Although the Linux syscall renameat2 is not in glibc (yet?), it is
19720         useful to have access to its RENAME_NOREPLACE flag.
19721         * MODULES.html.sh (func_all_modules): Add renameat2.
19722         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
19723         * modules/renameat2-tests, tests/test-renameat2.c: New files.
19724         * lib/renameat.c (renameat): Move most of the implementation
19725         to renameat2, and just call renameat2.
19726         * modules/renameat (Files): Remove lib/at-func2.c.
19727         (Depends-on): Depend only on renameat2.
19728         (Include): Remove <fcntl.h>.
19729         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
19730         since renameat (via renameat2) might use faccessat.
19732 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
19734         vc-list-files: Adjust the script to support git worktrees
19735         * build-aux/vc-list-files: Require existence, not directory.
19737 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19739         doc: bring MODULES.html.sh up to date
19740         Somehow a few months ago we stopped updating MODULES.html.sh.
19741         I don’t recall explicitly deciding this, so I updated it now.
19742         Alternatively I suppose we could remove it.
19743         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
19744         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
19745         truncate, utime, utime-h, windows-stat-inodes,
19746         windows-stat-override, windows-stat-timespec, year2038.  Sort.
19748 2017-07-26  Jim Meyering  <meyering@fb.com>
19750         fprintftime: fix build-break caused by recent renaming
19751         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
19752         "strftime.c".
19753         * modules/fprintftime: Depend directly on nstrftime.
19755 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19757         regex: work with GCC7's -Werror=implicit-fallthrough=
19758         * lib/regex_internal.h (FALLTHROUGH): New macro.
19759         * lib/regcomp.c (peek_token_bracket, parse_expression):
19760         * lib/regexec.c (check_node_accept): Use it.
19762 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19764         fts: simplify fts_build
19765         * lib/fts.c (fts_build): Simplify, and be lazier about
19766         calling leaf_optimization.
19768         fts: three levels of leaf optimization
19769         * lib/fts.c (enum leaf_optimization): New type with three values.
19770         (S_MAGIC_AFS): New macro.  Sort them.
19771         (leaf_optimization): Rename from leaf_optimization_applies, and
19772         return enum leaf_optimization instead of bool.  All uses changed.
19773         Add cases for unknown type and for AFS.
19774         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
19776         fts: cache dirent_inode_sort_may_be_useful too
19777         * lib/fts.c (struct dev_type): New struct.
19778         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
19779         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
19780         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
19781         Now takes FTSENT const *, not int.  All uses changed.  Use
19782         filesystem_type to cache.
19783         (link_count_optimize_ok): Remove.  Caller changed to use
19784         leaf_optimization_applies, which now uses shared cache.
19786         fts: introduce MIN_DIR_NLINK
19787         * lib/fts.c (MIN_DIR_NLINK): New constant.
19788         Use it instead of 2, whenever we are talking about link counts.
19790         fts: nlink_t signedness fixups
19791         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
19792         so that root need not be a special case later.
19793         (fts_read): Remove now-redundant test for fts_level.
19794         Do not assume that nlink_t is signed.
19795         (fts_build): Remove useless decrement of nlinks.
19796         (fts_stat): Avoid unlikely signed integer overflow later, if
19797         nlink_t is signed.
19799         fts-tests: new module
19800         * modules/fts-tests, tests/test-fts.c: New files.
19802 2017-07-23  Bruno Haible  <bruno@clisp.org>
19804         Rename module 'strftime' to 'nstrftime'.
19805         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
19806         * lib/nstrftime.c: Renamed from lib/strftime.c.
19807         * modules/nstrftime: Renamed from modules/strftime.
19808         (Files, Makefile.am): Update.
19809         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
19810         Fix comment.
19811         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
19812         (Files, Makefile.am): Update.
19813         * modules/strftime: New file, an obsolete indirection.
19814         * doc/posix-functions/strftime.texi: Update reference.
19815         * config/srclist.txt: Update info.
19816         * NEWS: Mention the change.
19818 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
19820         malloca: Silence a warning from clang's memory sanitizer.
19821         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
19822         (freea): Use it.
19824 2017-07-18  Bruno Haible  <bruno@clisp.org>
19826         host-cpu-c-abi: Fix detection of MIPS ABI.
19827         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
19828         ABI, not the CPU instruction set.
19830 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19832         explicit_bzero: new module
19833         The explicit_bzero function has been added to glibc.
19834         This module is intended to supports its use in GNU programs.
19835         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
19836         * m4/explicit_bzero.m4, modules/explicit_bzero:
19837         New files.
19838         * doc/gnulib.texi (Glibc string.h): Link to new doc.
19839         * lib/string.in.h (explicit_bzero): Declare.
19840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
19841         * modules/string (string.h): Substitute its vars.
19843 2017-07-16  Bruno Haible  <bruno@clisp.org>
19845         threadlib: Support static linking.
19846         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
19847         set gl_cv_have_weak to 'no'.
19849 2017-07-16  Bruno Haible  <bruno@clisp.org>
19851         unicase/locale-language: Fix link dependencies.
19852         * modules/unicase/locale-language (Link): New section.
19853         * modules/unicase/locale-language-tests (Makefile.am): Link
19854         test-locale-language program with $(LIBTHREAD).
19856 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19858         sys_socket: Add support for OpenVMS.
19859         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
19860         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
19862 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19864         sys_resource: Add support for OpenVMS.
19865         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
19866         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
19868 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19869             Bruno Haible  <bruno@clisp.org>
19871         math: Add support for OpenVMS.
19872         * lib/math.in.h [__VMS]: Include <fp.h>.
19873         * doc/posix-headers/math.texi: Mention OpenVMS issues.
19875 2017-07-15  Bruno Haible  <bruno@clisp.org>
19877         getdtablesize: Add minimal support for OpenVMS.
19878         Reported by John E. Malmberg <wb8tyw@qsl.net>.
19879         * modules/getdtablesize (Description): Fix.
19880         * lib/getdtablesize.c: Fix comment.
19881         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
19882         getdtablesize() function, even though the test fails.
19883         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
19884         limitation on OpenVMS.
19886 2017-07-13  Bruno Haible  <bruno@clisp.org>
19888         Revisit cross-compilation guesses.
19889         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
19891 2017-07-13  Bruno Haible  <bruno@clisp.org>
19893         Improve cross-compilation guesses for native Windows.
19894         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19895         Windows.
19896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19897         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19898         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19899         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19900         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19901         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19902         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19903         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19904         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19905         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19906         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19907         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19908         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19909         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19910         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19911         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19912         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19914         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19915         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19916         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19917         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19918         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19919         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19920         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19921         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19922         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19923         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19924         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19925         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19926         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19927         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19928         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19929         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19930         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19931         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19932         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19933         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19934         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19935         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19936         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19938         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19939         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19940         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19941         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19942         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19943         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19944         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19945         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19946         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19947         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19948         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19949         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19950         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19951         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19952         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19953         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19954         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19955         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19957         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19958         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19959         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19960         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19961         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19962         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19963         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19964         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19965         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19966         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19967         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19968         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19969         * m4/regex.m4 (gl_REGEX): Likewise.
19970         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19971         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19972         gl_FUNC_REMAINDERF_WORKS): Likewise.
19973         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19974         gl_FUNC_REMAINDERL_WORKS): Likewise.
19975         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19976         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19977         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19978         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19981         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19982         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19983         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19984         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19985         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19986         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19987         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19988         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19989         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19990         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19991         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19992         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19993         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19994         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19995         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19996         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19997         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19998         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19999         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20001         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20002         Likewise.
20003         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20004         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
20005         Windows. Enable also on Autoconf 2.70.
20006         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20007         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20008         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20009         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
20010         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20011         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
20012         for native Windows.
20013         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20014         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
20016 2017-07-13  Bruno Haible  <bruno@clisp.org>
20018         Improve cross-compilation guesses for native Windows.
20019         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
20020         Windows.
20021         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
20022         memchr.m4.
20023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20025 2017-07-13  Bruno Haible  <bruno@clisp.org>
20027         Improve cross-compilation guesses for native Windows.
20028         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
20029         native Windows.
20030         (gl_FUNC_FFLUSH): Update accordingly.
20031         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
20032         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
20034 2017-07-11  Bruno Haible  <bruno@clisp.org>
20036         More systematic m4 quoting and indentation.
20037         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
20038         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20039         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20040         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20041         * m4/host-os.m4 (gl_HOST_OS): Likewise.
20042         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
20043         gl_WINSIZE_IN_PTEM): Likewise.
20044         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
20045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
20046         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
20047         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
20048         Correct indentation.
20049         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
20050         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20051         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
20052         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20053         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20054         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20056 2017-07-10  Bruno Haible  <bruno@clisp.org>
20058         round, roundf: Avoid compiler warning in configure test.
20059         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
20060         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20062 2017-07-10  Bruno Haible  <bruno@clisp.org>
20064         getlogin tests: Avoid #ifdefs when sharing code between modules.
20065         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
20066         * modules/getlogin-tests (Files): Likewise. Remove
20067         tests/test-getlogin_r.c.
20068         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
20069         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
20070         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
20071         getlogin().
20073 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20075         getlogin: don’t assume one name per uid
20076         Problem reported by Wolfgang F. Muthmann (Bug#27640).
20077         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
20078         (ttyname): Remove test.
20079         * modules/getlogin_r-tests (ttyname): Remove test.
20080         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
20081         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
20082         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
20083         getlogin rather than getlogin_r.  This avoids code duplication.
20084         (main): Use isatty and fstat rather than ttyname and stat.
20085         Use getpwnam instead of getpwuid, to be portable to test platforms
20086         that have multiple login names for the same uid.
20088 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
20089             Bruno Haible  <bruno@clisp.org>
20091         glob: Fix more memory leaks.
20092         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
20093         returning.
20094         Reported by Tim Rühsen.
20096 2017-07-10  Bruno Haible  <bruno@clisp.org>
20098         Make sure $host and $host_os are defined when used.
20099         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
20100         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
20101         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20102         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20103         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20105         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
20106         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
20107         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20108         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
20109         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
20110         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
20111         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20112         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
20113         m4_ifdef block.
20115 2017-07-09  Bruno Haible  <bruno@clisp.org>
20117         *printf: Fix cross-compilation guess for Solaris.
20118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
20119         2010-12-21.
20121 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20122             Bruno Haible  <bruno@clisp.org>
20124         vasnprintf: port to macOS 10.13
20125         Problem reported by comex in:
20126         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
20127         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
20129 2017-07-06  Bruno Haible  <bruno@clisp.org>
20131         imaxdiv tests: Fix logic.
20132         * tests/test-imaxdiv.c (main): Use == instead of =.
20133         Reported by Coverity.
20135 2017-07-06  Bruno Haible  <bruno@clisp.org>
20137         uninorm/filter: Fix use-after-free bug.
20138         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
20139         sortbuf == filter->sortbuf invariant.
20140         Reported by Coverity.
20142 2017-07-06  Bruno Haible  <bruno@clisp.org>
20144         glob: Fix more memory leaks.
20145         * lib/glob.c (glob): Free dirname before returning.
20146         Reported by Coverity and Tim Rühsen.
20148 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20150         parse-datetime: fix uninit var bug
20151         Reported by Bruno Haible in:
20152         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
20153         * lib/parse-datetime.y (parse_datetime2): Do not use
20154         uninitialized.
20156 2017-07-05  Bruno Haible  <bruno@clisp.org>
20158         doc: Update for MSVC 14.
20159         * doc/posix-headers/*.texi: Add info about MSVC 14.
20160         * doc/posix-functions/*.texi: Likewise.
20161         * doc/pastposix-functions/*.texi: Likewise.
20162         * doc/glibc-headers/*.texi: Likewise.
20163         * doc/glibc-functions/*.texi: Likewise.
20165 2017-07-05  Bruno Haible  <bruno@clisp.org>
20167         sched: Fix build failure on native Windows (regression from 2017-06-19).
20168         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
20170 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
20172         stdioext: Port to OpenVMS.
20173         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
20174         * lib/fpending.c (fpending): Remove non-working VMS specific code.
20175         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
20176         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
20177         * lib/fpurge.c (fpurge): Likewise.
20178         * lib/freadable.c (freadable): Likewise.
20179         * lib/freadahead.c (freadahead): Likewise.
20180         * lib/freading.c (freading): Likewise.
20181         * lib/freadptr.c (freadptr): Likewise.
20182         * lib/freadseek.c (freadseek): Likewise.
20183         * lib/fseeko.c (fseeko): Likewise.
20184         * lib/fseterr.c (fseterr): Likewise.
20185         * lib/fwritable.c (fwriteable): Likewise.
20186         * lib/fwriting.c (fwriting): Likewise.
20188 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
20190         glob: Declare variables at the very start of their scope.
20191         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
20192         its separate scope, so the functions will compile on Haiku.
20194 2017-07-01  Bruno Haible  <bruno@clisp.org>
20196         logbl: Work around a glibc bug on PowerPC64LE.
20197         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
20198         numbers.
20199         * doc/posix-functions/logbl.texi: Update.
20201 2017-06-29  Bruno Haible  <bruno@clisp.org>
20203         stat, fstat: Compile stat-w32.c only on platforms that need it.
20204         Suggested by Paul Eggert.
20205         * modules/stat (configure.ac): Request stat-w32.o only on native
20206         Windows.
20207         * modules/fstat (configure.ac): Likewise.
20209 2017-06-25  Bruno Haible  <bruno@clisp.org>
20211         stat: Improve last change.
20212         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
20214 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
20216         stat: port to xlc 12.01
20217         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
20218         12.01 complains "Compilation unit is empty."
20220 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
20222         xalloc-oversized: port to icc
20223         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
20224         __builtin_mul_overflow if ICC is defined, as this results in
20225         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
20226         20170213.
20228 2017-06-19  Bruno Haible  <bruno@clisp.org>
20230         classpath: Avoid including config.h twice, as it produces warnings.
20231         Reported by John E. Malmberg <wb8tyw@gmail.com>.
20232         * lib/classpath.h: Conditionalize the include of config.h.
20234 2017-06-19  Bruno Haible  <bruno@clisp.org>
20235             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
20237         sched: Fix compilation failure on OpenVMS.
20238         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
20239         test whether <pthread.h> exists and defines struct sched_param.
20240         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
20242 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
20244         diffseq: port to GCC 7 with --enable-gcc-warnings
20245         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
20246         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
20247         not complain about big_snake being defined but not used.
20249 2017-06-15  Bruno Haible  <bruno@clisp.org>
20251         gettext-h: Update theoretical condition for use of variable size arrays.
20252         Reported by Paul Eggert.
20253         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
20254         to include the theoretical condition for availability of variable size
20255         arrays, if we could trust the value of __STDC_VERSION__.
20257 2017-06-12  Bruno Haible  <bruno@clisp.org>
20259         Relicense some modules under LGPLv2+.
20260         Daiki Ueno's approval is in
20261         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
20262         * modules/uniwidth/base (License): Change to LGPLv2+.
20263         * modules/uniwidth/width (License): Likewise.
20265 2017-06-11  Bruno Haible  <bruno@clisp.org>
20267         localename: Fix test failure on DragonFly BSD.
20268         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
20269         like FreeBSD.
20271 2017-06-11  Bruno Haible  <bruno@clisp.org>
20273         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
20274         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
20275         * lib/float.in.h: Likewise.
20276         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
20278 2017-06-11  Bruno Haible  <bruno@clisp.org>
20280         gnulib-tool: Clean up after autotools.
20281         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
20282         useless directory left over by the Autotools.
20284 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
20286         getopt-posix: port to glibc 2.25.90
20287         Problem reported by Daniel P. Berrange in:
20288         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
20289         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
20290         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
20291         #undef if __GETOPT_PREFIX is defined.
20293 2017-06-11  Bruno Haible  <bruno@clisp.org>
20295         strtod-obsolete: Fix license.
20296         * modules/strtod-obsolete (License): Change to LGPL.
20298 2017-06-10  Jim Meyering  <meyering@fb.com>
20300         maint: update to work with GCC7's -Werror=implicit-fallthrough=
20301         * lib/savewd.c (FALLTHROUGH): Define.
20302         (savewd_save, savewd_restore): Use this, rather than a comment,
20303         whenever one switch case falls through into the next.
20305 2017-06-08  Bruno Haible  <bruno@clisp.org>
20307         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
20308         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
20309         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
20310         case.
20312 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
20314         doc: remove robots, add prereqs
20315         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
20316         builds.  Simon's robot site does not seem to be up, so remove
20317         mentions of it for now.
20319 2017-06-08  Bruno Haible  <bruno@clisp.org>
20321         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
20322         * gnulib-tool (func_symlink_target): New function, extracted from
20323         func_symlink.
20324         (func_symlink, func_symlink_if_changed): Use it.
20326 2017-06-08  Bruno Haible  <bruno@clisp.org>
20328         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
20329         * gnulib-tool (func_ln_s): Determine cp_src correctly.
20331 2017-06-07  Bruno Haible  <bruno@clisp.org>
20333         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
20334         Reported by John E. Malmberg <wb8tyw@gmail.com> in
20335         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
20336         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
20337         override, pass 2 arguments to getcwd, not 3.
20339 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
20341         same-inode: port better to VMS 8.2 and later
20342         Problem reported by John E. Malmberg in:
20343         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
20344         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
20345         Use the usual POSIX definition.
20346         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
20348 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
20350         error: fix POSIX violation for va_end
20351         Problem reported by Bruno Haible in:
20352         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
20353         * lib/error.c (error_tail): Do not call va_end here.
20354         (error, error_at_line): Call it here instead.
20356 2017-05-28  Bruno Haible  <bruno@clisp.org>
20358         c-strtod: Make it usable in C++ mode.
20359         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
20361 2017-05-25  Jim Meyering  <meyering@fb.com>
20363         quotearg: fix compilation failure due to FALLTHROUGH misuse
20364         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
20365         macro back to /* fall through */ comment.  The macro can apply only
20366         to a following case statement.  Reported by Assaf Gordon.
20368 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
20370         intprops: port to recent icc
20371         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
20372         but does not support __builtin_add_overflow etc.
20373         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
20374         Define to 0.
20376 2017-05-23  Karl Berry  <karl@freefriends.org>
20378         * config/srclist.txt (iconv.m4): sync broken, comment out
20379         until (hopefully) the next gettext release.
20381 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
20383         Remove repeated words in comments.
20385 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
20387         fallthrough: reinstate a FALLTHROUGH instance in quotearg
20388         quotearg.c: Reinstate this instance which is significant
20389         when the if branch is not taken.
20391 2017-05-21  Bruno Haible  <bruno@clisp.org>
20393         gnulib-tool: Add options to create hard links.
20394         * gnulib-tool (func_usage): Document options --hardlink,
20395         --local-hardlink, --more-hardlinks.
20396         (func_symlink): Renamed from func_ln.
20397         (func_symlink_if_changed): Renamed from func_ln_if_changed.
20398         (func_hardlink): New function.
20399         (copymode, lcopymode): New variables.
20400         (symbolic, lsymbolic): Remove variables.
20401         (Options): Implement options --hardlink, --local-hardlink,
20402         --more-hardlinks.
20403         (func_should_link): Renamed from func_should_symlink. Set copyaction.
20404         (func_add_file, func_update_file): Update invocation of
20405         func_should_link. Invoke func_hardlink when appropriate.
20406         (func_import): Update comments.
20407         (func_create_testdir): Update invocation of func_should_link. Invoke
20408         func_hardlink when appropriate.
20409         Finally, invoke 'git update-index --refresh' to mitigate the effects of
20410         the hard links on git.
20412 2017-05-20  Bruno Haible  <bruno@clisp.org>
20414         argp: Simplify bit manipulation.
20415         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
20416         on a signed integer type.
20418 2017-05-20  Bruno Haible  <bruno@clisp.org>
20420         Avoid wrong configure results with gcc -fsanitize=address.
20421         This completes the work done on 2016-02-06 on this topic.
20422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
20423         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20425         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20426         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
20427         returning.
20428         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
20429         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
20430         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20431         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20432         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20433         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
20434         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
20435         free allocated memory before returning.
20436         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
20438         objects before returning.
20439         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
20440         returning.
20442 2017-05-20  Bruno Haible  <bruno@clisp.org>
20444         gnulib-tool: Don't create hard links between gnulib and its testdirs.
20445         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
20447 2017-05-20  Bruno Haible  <bruno@clisp.org>
20449         argp, tsearch tests: Fix file list.
20450         * modules/argp-tests (Files): Add tests/macros.h.
20451         * modules/tsearch-tests (Files): Likewise.
20453 2017-05-20  Bruno Haible  <bruno@clisp.org>
20455         getopt-posix tests: Remove redundant include.
20456         * tests/test-getopt.h: Don't include "macros.h". It's already included
20457         by tests/test-getopt-main.h.
20459 2017-05-19  Jim Meyering  <meyering@fb.com>
20461         dfa: two small simplifications
20462         * lib/dfa.c (build_state): Avoid repeating longer expressions.
20464 2017-05-18  Jim Meyering  <meyering@fb.com>
20466         fallthrough: update for GCC 7/8
20467         * lib/quotearg.c (FALLTHROUGH): New macro.
20468         Use it whenever one switch case falls through into the next,
20469         replacing "/* Fall through */" comments.  This exposed one
20470         instance of an unwarranted "fall through" comment: unwarranted
20471         because it preceded a "goto" label not a case statement.
20472         * lib/freopen-safer.c (freopen_safer): Likewise.
20473         * lib/fts.c (leaf_optimization_applies): Likewise.
20474         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
20475         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
20476         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
20477         tests/macros.h for the definition.
20478         * tests/test-argp.c (group1_parser): Likewise.
20479         * tests/test-getopt.h (getopt_loop): Likewise.
20481 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20483         argp: fix shift bug
20484         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
20485         behavior on shift overflow, caught by gcc -fsanitize=undefined.
20487         argp: fix pointer-subtraction bug
20488         * lib/argp-help.c (hol_append): Don’t subtract pointers to
20489         different arrays, as this can run afoul of -fcheck-pointer-bounds.
20490         See the thread containing Bruno Haible’s report in:
20491         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
20493 2017-05-19  Bruno Haible  <bruno@clisp.org>
20495         printf-posix tests: Avoid test failure with "gcc --coverage".
20496         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20497         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
20498         than 5000000.
20499         * tests/test-fprintf-posix2.c (main): Likewise.
20501 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20503         closeout: don’t close stderr when sanitizing
20504         * NEWS: Document this.
20505         * lib/closeout.c (__has_feature): New macro, if not already defined.
20506         (SANITIZE_ADDRESS): New constant.
20507         (close_stdout): Don’t close stderr if sanitizing addresses.
20509 2017-05-19  Bruno Haible  <bruno@clisp.org>
20511         get-rusage-data tests: Avoid failure on Linux/glibc.
20512         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
20513         on glibc systems.
20515 2017-05-18  Bruno Haible  <bruno@clisp.org>
20517         localename: Include necessary header files on Cygwin.
20518         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
20519         where NL_LOCALE_NAME is defined.
20521 2017-05-18  Bruno Haible  <bruno@clisp.org>
20523         gettext: Update macros from gettext git.
20524         * m4/intldir.m4: Require Autoconf >= 2.60.
20525         * m4/progtest.m4: Fix typos in copyright notice.
20527 2017-05-18  Bruno Haible  <bruno@clisp.org>
20529         copy-file tests: Fix link error (regression from 2017-05-01).
20530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20531         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
20532         $(LIB_CLOCK_GETTIME).
20534 2017-05-18  Bruno Haible  <bruno@clisp.org>
20536         unicase/special-casing: Fix incompatibility with gperf-3.0.4
20537         (regression from 2017-02-13).
20538         * lib/unicase/special-casing.in.h: Renamed from
20539         lib/unicase/special-casing.h.
20540         * modules/unicase/special-casing (Files): Add
20541         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
20542         (Makefile.am): Add rule for generating unicase/special-casing.h.
20543         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
20544         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
20545         not "special-casing.h".
20546         * lib/unicase/u*.c: Likewise.
20548 2017-05-17  Bruno Haible  <bruno@clisp.org>
20550         README: Don't ask people to read a TeXinfo file.
20551         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20552         * README: Tell people how to read the HTML formatted manual.
20554 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20556         parse-datetime: Fix memleak
20557         * lib/parse-datetime.y (parse_datetime2): Cleanup on
20558         localtime_rz() failure.
20560 2017-05-16  Bruno Haible  <bruno@clisp.org>
20562         javacomp: Fix handle leak.
20563         Found by Coverity.
20564         * lib/javacomp.c (get_classfile_version): Close fd before returning.
20566 2017-05-16  Bruno Haible  <bruno@clisp.org>
20568         relocate: Make it easier to reclaim allocated memory.
20569         * lib/relocatable.h (relocate2): New declaration/macro.
20570         * lib/relocatable.c (relocate2): New function.
20571         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
20572         relocate2 function.
20573         * lib/localcharset.c (relocate2): Define fallback.
20574         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
20575         allocated memory.
20576         * lib/javaversion.c (relocate2): Define fallback.
20577         (javaexec_version): Invoke relocate2 instead of relocate. Free the
20578         allocated memory.
20580 2017-05-16  Bruno Haible  <bruno@clisp.org>
20582         relocate: Simplify EMX specific code.
20583         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
20584         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
20586 2017-05-16  Bruno Haible  <bruno@clisp.org>
20588         sigpipe tests: Fix file list.
20589         * modules/sigpipe-tests (Files): Add tests/macros.h.
20591 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20593         manywarnings: update for GCC 7
20594         * build-aux/gcc-warning.spec:
20595         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
20596         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
20597         requires a non-comment fallthrough attribute.  This is a bit
20598         cleaner than the comment versions.
20599         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
20600         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
20601         Use it whenever one switch case falls through into the next.
20602         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
20603         Use FALLTHROUGH macro.
20605 2017-05-15  Bruno Haible  <bruno@clisp.org>
20607         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
20608         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
20609         @ALLOCA@, not @LTALLOCA@.
20611 2017-05-15  Bruno Haible  <bruno@clisp.org>
20613         sys_select: Avoid "was expanded before it was required" warning.
20614         * modules/sys_select (configure.ac): Require, not invoke,
20615         gl_HEADER_SYS_SELECT.
20617 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20619         gnulib-tool: improve GNU Make debugging
20620         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
20621         Report autoconf diagnostics when it fails, in the output makefile.
20623 2017-05-14  Bruno Haible  <bruno@clisp.org>
20625         stat-time tests: Improve comment.
20626         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
20628 2017-05-14  Bruno Haible  <bruno@clisp.org>
20630         same-inode: Adapt for windows-stat-inodes.
20631         * lib/same-inode.h: Include <sys/types.h>.
20632         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
20633         * modules/same-inode (Depends-on): Add sys_types.
20635 2017-05-14  Bruno Haible  <bruno@clisp.org>
20637         windows-stat-inodes: New module.
20638         * m4/windows-stat-inodes.m4: New file.
20639         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
20640         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
20641         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
20642         (_GL_WINDOWS_STAT_INODES): New macro.
20643         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
20644         (GetFileInformationByHandleExFunc): New variable.
20645         (initialize): Initialize it.
20646         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
20647         st_ino appropriately.
20648         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
20649         a fallback, because it does not provide st_dev and st_ino values.
20650         * modules/fstat (Depends-on): Add 'verify'.
20651         * modules/windows-stat-inodes: New file.
20652         * doc/windows-stat-inodes.texi: New file.
20653         * doc/gnulib.texi: Include it.
20654         * doc/posix-headers/sys_stat.texi: Mention the new module.
20656 2017-05-14  Bruno Haible  <bruno@clisp.org>
20658         stat-time tests: Workaround for native Windows.
20659         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
20660         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
20661         New variables.
20662         (initialize_filenames): New function.
20663         (main): Invoke it.
20664         (cleanup, prepare_test): Update.
20666 2017-05-14  Bruno Haible  <bruno@clisp.org>
20668         stat-time: Adapt for windows-stat-timespec.
20669         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
20670         entire st_ctim field.
20672 2017-05-13  Jim Meyering  <meyering@fb.com>
20674         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
20675         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
20676         file that uses the assume macro, claiming that verify.h is unused.
20678 2017-05-13  Bruno Haible  <bruno@clisp.org>
20680         Use symbolic values for _WIN32_WINNT.
20681         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
20682         * lib/sethostname.c (_WIN32_WINNT): Likewise.
20684 2017-05-13  Bruno Haible  <bruno@clisp.org>
20686         year2038: New module.
20687         * m4/year2038.m4: New file.
20688         * modules/year2038: New file.
20689         * doc/year2038.texi: New file.
20690         * doc/gnulib.texi: Include it.
20692 2017-05-13  Bruno Haible  <bruno@clisp.org>
20694         largefile: Simplify.
20695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
20696         of _GL_WINDOWS_64_BIT_ST_SIZE.
20698 2017-05-13  Bruno Haible  <bruno@clisp.org>
20700         largefile: Improve and document.
20701         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
20702         the mingw headers already define 'stat' appropriately.
20703         * modules/largefile (Description): Clarify.
20704         * doc/largefile.texi: New file.
20705         * doc/gnulib.texi: Include it.
20706         * doc/posix-headers/sys_types.texi: Update.
20708 2017-05-13  Bruno Haible  <bruno@clisp.org>
20710         truncate: New module.
20711         * lib/unistd.in.h (truncate): New declaration.
20712         * lib/truncate.c: New file.
20713         * m4/truncate.m4: New file.
20714         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
20715         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
20716         REPLACE_TRUNCATE.
20717         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
20718         HAVE_TRUNCATE, REPLACE_TRUNCATE.
20719         * modules/truncate: New file.
20720         * tests/test-unistd-c++.cc (truncate): Test signature.
20721         * doc/posix-functions/truncate.texi: Mention the new module.
20723         * tests/test-truncate.c: New file.
20724         * modules/truncate-tests: New file.
20726 2017-05-13  Bruno Haible  <bruno@clisp.org>
20728         windows-stat-timespec: New module.
20729         * modules/windows-stat-timespec: New file.
20730         * m4/windows-stat-timespec.m4: New file.
20731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
20732         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
20733         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
20734         fields st_atim, st_mtim, st_ctim.
20735         (st_atime, st_mtime, st_ctime): Define as macros.
20736         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
20737         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
20738         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
20739         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
20740         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
20741         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
20742         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20743         FILETIME to 'struct timespec', not 'time_t'.
20744         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20745         FILETIME to 'struct timespec', not 'time_t'.
20746         * lib/stat-time.h (STAT_TIMESPEC): Define also if
20747         _GL_WINDOWS_STAT_TIMESPEC.
20748         * doc/windows-stat-timespec.texi: New file.
20749         * doc/gnulib.texi: Include it.
20751 2017-05-13  Bruno Haible  <bruno@clisp.org>
20753         windows-stat-override: New module.
20754         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
20755         definition. Define GNULIB_defined_struct_stat.
20756         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
20757         link error if this symbol is used and the corresponding module is not
20758         in use.
20759         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
20760         GNULIB_OVERRIDES_STRUCT_STAT.
20761         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20762         GNULIB_OVERRIDES_STRUCT_STAT.
20763         * modules/sys_stat (Makefile.am): Substitute
20764         GNULIB_OVERRIDES_STRUCT_STAT.
20765         * modules/windows-stat-override: New file.
20767 2017-05-13  Bruno Haible  <bruno@clisp.org>
20769         fstat: Fix module dependency conditions.
20770         * modules/fstat (Depends-on): Fix typo.
20772 2017-05-13  Bruno Haible  <bruno@clisp.org>
20774         stat, fstat: Complete removal of old native Windows code.
20775         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
20776         * lib/fstat.c: Likewise.
20777         * lib/stat-w32.c: Likewise.
20779 2017-05-13  Bruno Haible  <bruno@clisp.org>
20781         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
20782         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
20784 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20786         getopt-posix: port to mingw
20787         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
20788         Problem reported by Daniel P. Berrage in:
20789         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
20791 2017-05-11  Bruno Haible  <bruno@clisp.org>
20793         gettimeofday: Increase precision on mingw.
20794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
20795         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
20796         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
20797         GetSystemTimePreciseAsFileTime based implementation always.
20798         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
20799         mingw.
20801 2017-05-11  Bruno Haible  <bruno@clisp.org>
20803         poll: Fix confusion between SOCKETs and FDs on native Windows.
20804         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
20805         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
20807 2017-05-11  Bruno Haible  <bruno@clisp.org>
20809         doc: Clarify doc about socket functions on native Windows.
20810         This reworks doc that was added on 2008-09-29.
20811         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
20812         clearer wording.
20813         * doc/posix-functions/accept.texi: Use clearer wording.
20814         * doc/posix-functions/bind.texi: Likewise.
20815         * doc/posix-functions/connect.texi: Likewise.
20816         * doc/posix-functions/getpeername.texi: Likewise.
20817         * doc/posix-functions/getsockname.texi: Likewise.
20818         * doc/posix-functions/getsockopt.texi: Likewise.
20819         * doc/posix-functions/ioctl.texi: Likewise.
20820         * doc/posix-functions/listen.texi: Likewise.
20821         * doc/posix-functions/recv.texi: Likewise.
20822         * doc/posix-functions/recvfrom.texi: Likewise.
20823         * doc/posix-functions/send.texi: Likewise.
20824         * doc/posix-functions/sendto.texi: Likewise.
20825         * doc/posix-functions/setsockopt.texi: Likewise.
20826         * doc/posix-functions/shutdown.texi: Likewise.
20827         * doc/posix-functions/socket.texi: Likewise.
20829 2017-05-10  Bruno Haible  <bruno@clisp.org>
20831         poll: Fix link error on native Windows.
20832         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
20834 2017-05-10  Bruno Haible  <bruno@clisp.org>
20836         time: Fix missing initialization of HAVE_TIMEZONE_T.
20837         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
20838         here...
20839         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
20840         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
20841         gl_HEADER_SYS_TIME_H_DEFAULTS.
20842         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
20843         (configure.ac): Remove useless quoting.
20845 2017-05-10  Bruno Haible  <bruno@clisp.org>
20847         Implement a way to opt out from MSVC support, part 2.
20848         * modules/msvc-inval (Include): Document recommended idiom.
20849         * modules/msvc-nothrow (Include): Likewise.
20851         Implement a way to opt out from MSVC support.
20852         This is useful for Emacs.
20853         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
20854         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
20855         * lib/error.c: Likewise.
20856         * lib/fcntl.c: Likewise.
20857         * lib/flock.c: Likewise.
20858         * lib/fstat.c: Likewise.
20859         * lib/fsync.c: Likewise.
20860         * lib/ioctl.c: Likewise.
20861         * lib/isapipe.c: Likewise.
20862         * lib/lseek.c: Likewise.
20863         * lib/nonblocking.c: Likewise.
20864         * lib/poll.c: Likewise.
20865         * lib/select.c: Likewise.
20866         * lib/sockets.h: Likewise.
20867         * lib/sockets.c: Likewise.
20868         * lib/stdio-read.c: Likewise.
20869         * lib/stdio-write.c: Likewise.
20870         * lib/utimens.c: Likewise.
20871         * lib/w32sock.h: Likewise.
20872         * lib/w32spawn.h: Likewise.
20873         * tests/test-cloexec.c: Likewise.
20874         * tests/test-dup-safer.c: Likewise.
20875         * tests/test-dup2.c: Likewise.
20876         * tests/test-dup3.c: Likewise.
20877         * tests/test-fcntl.c: Likewise.
20878         * tests/test-pipe.c: Likewise.
20879         * tests/test-pipe2.c: Likewise.
20880         * lib/ftruncate.c: Likewise.
20881         (chsize_nothrow): Renamed from chsize.
20882         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
20883         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20884         * lib/close.c: Likewise.
20885         * lib/dup.c: Likewise.
20886         * lib/fclose.c: Likewise.
20887         * lib/raise.c: Likewise.
20888         * tests/test-fgetc.c: Likewise.
20889         * tests/test-fputc.c: Likewise.
20890         * tests/test-fread.c: Likewise.
20891         * tests/test-fwrite.c: Likewise.
20892         * lib/getdtablesize.c: Likewise.
20893         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
20894         * lib/isatty.c: Don't include msvc-inval.h if
20895         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20896         Include <io.h> as an alternative to msvc-nothrow.h.
20897         * lib/read.c: Likewise.
20898         * lib/write.c: Likewise.
20899         * lib/dup2.c: Likewise.
20900         (dup2_nothrow): New function.
20901         (ms_windows_dup2): Use it.
20902         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20903         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20904         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20905         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20906         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20907         * m4/read.m4 (gl_FUNC_READ): Likewise.
20908         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20909         * doc/windows-without-msvc.texi: New file.
20910         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20911         section.
20913 2017-05-10  Bruno Haible  <bruno@clisp.org>
20915         wait-process: Adjust native Windows support.
20916         * lib/wait-process.c: Use the usual condition for recognizing a native
20917         Windows platform.
20919 2017-05-10  Bruno Haible  <bruno@clisp.org>
20921         doc: New chapter "Native Windows Support".
20922         * doc/gnulib.texi (Native Windows Support): New chapter.
20923         * doc/windows-libtool.texi: Small wording changes.
20924         * doc/windows-sockets.texi: Small wording and formatting changes.
20926 2017-05-10  Bruno Haible  <bruno@clisp.org>
20928         doc: Move section "Library version handling".
20929         * doc/gnulib.texi: Move section "Library version handling"
20930         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20932 2017-05-10  Bruno Haible  <bruno@clisp.org>
20934         doc: Move section "Running self-tests under valgrind".
20935         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20936         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20938 2017-05-10  Bruno Haible  <bruno@clisp.org>
20940         doc: New chapter "Build Infrastructure Modules".
20941         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20943 2017-05-10  Bruno Haible  <bruno@clisp.org>
20945         Prepare for reordering sections in the manual.
20946         * doc/gnulib.texi: Move several sections to separate files. Include
20947         these files.
20948         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20949         * doc/obsolete.texi: Likewise.
20950         * doc/extra-tests.texi: Likewise.
20951         * doc/transversal.texi: Likewise.
20952         * doc/namespace.texi: Likewise.
20953         * doc/check-version.texi: Likewise.
20954         * doc/windows-sockets.texi: Likewise.
20955         * doc/windows-libtool.texi: Likewise.
20956         * doc/licenses-texi.texi: Likewise.
20957         * doc/build-automation.texi: Likewise.
20958         * doc/c-locale.texi: Likewise.
20960 2017-05-10  Bruno Haible  <bruno@clisp.org>
20962         Fix instructions how to update manual on www.gnu.org.
20963         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20965 2017-05-09  Bruno Haible  <bruno@clisp.org>
20967         tzset: Expand comment about TZ problem on native Windows.
20968         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20969         Paul Eggert.
20970         * lib/ctime.c (rpl_ctime): Likewise.
20971         * lib/localtime.c (rpl_localtime): Likewise.
20972         * lib/mktime.c (mktime): Likewise.
20973         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20974         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20976 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20978         intprops: don’t depend on ‘verify’
20979         Problem reported by Ævar Arnfjörð Bjarmason in:
20980         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20981         * lib/intprops.h: Do not include verify.h, and move compile-time
20982         checks from here ...
20983         * tests/test-intprops.c (main): ... to here, if they’re not here
20984         already.  Check widths of other standard integer types.
20985         * modules/intprops (Depends-on): Remove ‘verify’.
20987 2017-05-07  Bruno Haible  <bruno@clisp.org>
20989         utimens: On native Windows, support 100ns resolution also if fd < 0.
20990         * lib/utime.in.h: Include <time.h>.
20991         (_gl_utimens_windows): New declaration.
20992         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20993         (utime): Invoke it.
20994         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20995         instead of utime.
20996         * modules/utime (Depends-on): Add 'time'.
20998 2017-05-07  Bruno Haible  <bruno@clisp.org>
21000         utimens: Improve error code on native Windows.
21001         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
21002         error code EACCES, not EINVAL.
21004 2017-05-07  Bruno Haible  <bruno@clisp.org>
21006         utime: Handle more Windows error codes.
21007         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
21008         Based on explanations by Billy O'Neal.
21010 2017-05-05  Bruno Haible  <bruno@clisp.org>
21012         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
21013         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
21014         union.
21015         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
21016         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
21017         value of cipher->IV.
21019 2017-05-05  Bruno Haible  <bruno@clisp.org>
21021         wctype-h-c++-tests: Update.
21022         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
21024 2017-05-05  Bruno Haible  <bruno@clisp.org>
21026         wchar-c++-tests: Update.
21027         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
21029 2017-05-05  Bruno Haible  <bruno@clisp.org>
21031         utime-h-c++-tests: New module.
21032         * tests/test-utime-h-c++.cc: New file.
21033         (utime): Declare, missing since 2017-04-30.
21034         * modules/utime-h-c++-tests: New file.
21036 2017-05-05  Bruno Haible  <bruno@clisp.org>
21038         unistd-c++-tests: Update.
21039         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
21040         (read): Declare, missing since 2011-04-15.
21041         (sethostname): Declare, missing since 2011-12-03.
21043 2017-05-05  Bruno Haible  <bruno@clisp.org>
21045         time-c++-tests: Update.
21046         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
21047         (localtime, gmtime): Declare, missing since 2017-04-30.
21048         (ctime): Declare, missing since 2017-04-30.
21049         (strftime): Declare, missing since 2017-04-30.
21050         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
21051         2015-07-24.
21053 2017-05-05  Bruno Haible  <bruno@clisp.org>
21055         sys_resource-c++-tests: New module.
21056         * tests/test-sys_resource-c++.cc: New file.
21057         (getrusage): Declare, missing since 2012-04-13.
21058         * modules/sys_resource-c++-tests: New file.
21060 2017-05-05  Bruno Haible  <bruno@clisp.org>
21062         strings-c++-tests: New module.
21063         * tests/test-strings-c++.cc: New file.
21064         (ffs): Declare, missing since 2011-07-12.
21065         * modules/strings-c++-tests: New file.
21067 2017-05-05  Bruno Haible  <bruno@clisp.org>
21069         string-c++-tests: Update.
21070         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
21071         (ffsll): Declare, missing since 2011-07-15.
21073 2017-05-05  Bruno Haible  <bruno@clisp.org>
21075         stdlib-c++-tests: Update.
21076         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
21077         2011-10-18.
21078         (ptsname_r): Declare, missing since 2011-11-07.
21079         (qsort_r): Declare, missing since 2014-08-29.
21080         (random, srandom, initstate, setstate): Declare, missing since
21081         2012-01-14.
21082         (secure_getenv): Declare, missing since 2013-02-05.
21084 2017-05-05  Bruno Haible  <bruno@clisp.org>
21086         stdio-c++-tests: Update.
21087         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
21089 2017-05-05  Bruno Haible  <bruno@clisp.org>
21091         signal-h-c++-tests: Update.
21092         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
21094 2017-05-05  Bruno Haible  <bruno@clisp.org>
21096         math-c++-tests: Update.
21097         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
21098         (fma): Declare, missing since 2011-10-17.
21099         (fmal): Declare, missing since 2011-10-17.
21101 2017-05-05  Bruno Haible  <bruno@clisp.org>
21103         locale-c++-tests: Update.
21104         * tests/test-locale-c++.cc (localeconv): Declare, missing since
21105         2012-03-25.
21107 2017-05-05  Bruno Haible  <bruno@clisp.org>
21109         inttypes-c++-tests: New module.
21110         * tests/test-inttypes-c++.cc: New file.
21111         (strtoimax): Declare, missing since 2012-01-05.
21112         (strtoumax): Declare, missing since 2012-01-05.
21113         * modules/inttypes-c++-tests: New file.
21115 2017-05-05  Bruno Haible  <bruno@clisp.org>
21117         dirent-c++-tests: Update.
21118         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
21119         (rewinddir): Declare, missing since 2011-09-13.
21120         (dirfd): Declare, missing since 2010-03-08.
21122 2017-05-04  Bruno Haible  <bruno@clisp.org>
21124         argp: Fix mistake in 2017-04-23 commit.
21125         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
21126         assume that strerror_r returns 'int', not 'char *'.
21128 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
21130         argp: Fix typo.
21131         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
21133 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21135         utimens: port to Emacs + MS-Windows
21136         Skip the new MS-Windows-specific code if Emacs.
21137         * lib/utimens.c [EMACS_CONFIGUATION]:
21138         Avoid new MS-Windows-specific code.
21139         (USE_SETFILETIME): New macro.
21140         (fdutimens): Use it.
21142 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21144         tzset: update doc for TZ problems on MS-Windows
21145         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
21146         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
21147         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
21148         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
21149         * doc/posix-functions/wcsftime.texi:
21150         Mention some issues with TZ under MS-Windows.
21152 2017-05-01  Bruno Haible  <bruno@clisp.org>
21154         copy-file: Fix build error on mingw.
21155         * modules/copy-file (Depends-on): Add 'close'.
21157 2017-05-01  Bruno Haible  <bruno@clisp.org>
21159         tzset: Work around TZ problem on native Windows.
21160         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
21161         Windows, set REPLACE_TZSET to 1.
21162         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
21163         invoke '_tzset' instead of 'tzset'.
21164         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
21166         * modules/time_rz (Depends-on): Add tzset.
21167         * lib/time_rz.c (tzset): Remove fallback definition.
21168         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
21170 2017-05-01  Bruno Haible  <bruno@clisp.org>
21172         mktime: Fix dependencies.
21173         * modules/mktime (Depends-on): Add 'time'.
21175 2017-05-01  Bruno Haible  <bruno@clisp.org>
21177         New module 'localtime-buffer', split off from module 'gettimeofday'.
21178         * lib/localtime-buffer.h: New file.
21179         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
21180         * lib/time.in.h (tzset): New declaration.
21181         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
21182         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
21183         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
21184         moved to lib/localtime-buffer.c or lib/tzset.c.
21185         * m4/localtime-buffer.m4: New file.
21186         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
21187         HAVE_TZSET, REPLACE_TZSET.
21188         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
21189         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
21190         gl_LOCALTIME_BUFFER_NEEDED.
21191         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
21192         since 2007-01-18.
21193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
21194         tzset.
21195         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
21196         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
21197         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
21198         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
21199         * modules/localtime-buffer: New file.
21200         * modules/time (Depends-on): Remove 'gettimeofday'.
21201         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
21202         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
21203         * modules/tzset (Description): Enable hyperlink to POSIX spec.
21204         (Files): Add lib/tzset.c.
21205         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
21206         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
21207         gl_TIME_MODULE_INDICATOR.
21208         * modules/gettimeofday (Depends-on): Add localtime-buffer.
21210 2017-05-01  Bruno Haible  <bruno@clisp.org>
21212         copy-file: Preserve sub-second time stamps.
21213         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
21214         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
21215         transport the time stamps from the original file to the destination
21216         file.
21217         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
21218         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
21219         utime-h.
21221 2017-05-01  Bruno Haible  <bruno@clisp.org>
21223         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
21224         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
21225         also on MSVC.
21226         Reported by Eli Zaretskii <eliz@gnu.org>.
21228 2017-05-01  Bruno Haible  <bruno@clisp.org>
21230         wchar: Fix compilation error with the original mingw.org mingw.
21231         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
21232         <stddef.h> instead.
21233         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
21234         gl_WCTYPE_H.
21235         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
21236         gl_TYPE_WINT_T_PREREQ instead.
21237         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
21238         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
21239         Reported by Eli Zaretskii <eliz@gnu.org>.
21241 2017-04-30  Bruno Haible  <bruno@clisp.org>
21243         utimecmp: Add support for native Windows.
21244         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
21246 2017-04-30  Bruno Haible  <bruno@clisp.org>
21248         utimens: Add support for native Windows.
21249         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
21250         (fdutimens): Provide a native Windows implementation, like utime.c with
21251         added tv_nsec support.
21252         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
21253         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
21255 2017-04-30  Bruno Haible  <bruno@clisp.org>
21257         wcsftime: New module.
21258         * lib/wchar.in.h (wcsftime): New declaration.
21259         * lib/wcsftime.c: New file.
21260         * m4/wcsftime.m4: New file.
21261         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
21262         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
21263         HAVE_WCSFTIME, REPLACE_WCSFTIME.
21264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
21265         HAVE_WCSFTIME, REPLACE_WCSFTIME.
21266         * modules/wcsftime: New file.
21267         * doc/posix-functions/wcsftime.texi: Mention the new module.
21269 2017-04-30  Bruno Haible  <bruno@clisp.org>
21271         strftime-fixes: New module.
21272         * lib/time.in.h (strftime): New declaration.
21273         * lib/strftime-fixes.c: New file.
21274         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
21275         (gl_FUNC_STRFTIME): Remove macro.
21276         * m4/strftime-fixes.m4: New file.
21277         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
21278         REPLACE_STRFTIME.
21279         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
21280         REPLACE_STRFTIME.
21281         * modules/strftime-fixes: New file.
21282         * doc/posix-functions/strftime.texi: Mention the new module.
21284 2017-04-30  Bruno Haible  <bruno@clisp.org>
21286         mktime: Work around TZ problem on native Windows.
21287         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
21288         from the native Windows workaround.
21289         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
21290         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
21291         'guessing no'.
21292         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
21293         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
21294         NEED_MKTIME_WINDOWS.
21295         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
21296         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
21297         NEED_MKTIME_INTERNAL.
21298         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
21299         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
21300         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
21301         not REPLACE_MKTIME.
21302         * doc/posix-functions/mktime.texi: Mention the native Windows
21303         workaround.
21305 2017-04-30  Bruno Haible  <bruno@clisp.org>
21307         localtime: New module.
21308         * lib/time.in.h (localtime): Declare also if requested by module
21309         'localtime'.
21310         * lib/localtime.c: New file.
21311         * m4/localtime.m4: New file.
21312         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
21313         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
21314         * modules/localtime: New file.
21315         * doc/posix-functions/localtime.texi: Mention the new module.
21317 2017-04-30  Bruno Haible  <bruno@clisp.org>
21319         ctime: New module.
21320         * lib/time.in.h (ctime): New declaration.
21321         * lib/ctime.c: New file.
21322         * m4/ctime.m4: New file.
21323         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
21324         REPLACE_CTIME.
21325         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
21326         * modules/ctime: New file.
21327         * doc/posix-functions/ctime.texi: Mention the new module.
21329 2017-04-30  Bruno Haible  <bruno@clisp.org>
21331         gettimeofday: Provide higher resolution on native Windows.
21332         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
21333         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
21334         (initialize): Initialize it.
21335         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
21336         'struct timeval'. Don't use _ftime().
21337         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
21338         <sys/timeb.h> and _ftime.
21340 2017-04-30  Bruno Haible  <bruno@clisp.org>
21342         Document the problem with the Cygwin environment variable TZ.
21343         * doc/posix-functions/tzset.texi: Add note about TZ.
21344         * doc/posix-functions/ctime.texi: Likewise.
21345         * doc/posix-functions/localtime.texi: Likewise.
21346         * doc/posix-functions/mktime.texi: Likewise.
21347         * doc/posix-functions/strftime.texi: Likewise.
21348         * doc/posix-functions/wcsftime.texi: Likewise.
21349         * doc/pastposix-functions/ftime.texi: Likewise.
21351 2017-04-30  Bruno Haible  <bruno@clisp.org>
21353         utime-tests: New module.
21354         * tests/test-utime.c: New file, based on tests/test-utimens.h.
21355         * tests/test-utimens-common.h: Include <sys/stat.h>.
21356         * modules/utime-tests: New file.
21358 2017-04-29  Bruno Haible  <bruno@clisp.org>
21360         utime: New module.
21361         * lib/utime.in.h: Add comment for snippets.
21362         (utime): New declaration.
21363         * lib/utime.c: New file.
21364         * m4/utime.m4: New file.
21365         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
21366         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
21367         REPLACE_UTIME.
21368         * modules/utime-h (Depends-on): Add snippets.
21369         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
21370         Insert snippets.
21371         * modules/utime: New file.
21372         * doc/posix-functions/utime.texi: Mention the new module.
21374 2017-04-29  Bruno Haible  <bruno@clisp.org>
21376         utime-h: Modernize handling of 'struct utimbuf'.
21377         * lib/utime.in.h: Include next <utime.h> if it exists.
21378         (utimbuf): Define to _utimbuf on native Windows.
21379         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
21380         Set UTIME_H on native Windows.
21381         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
21382         * modules/utime-h (Depends-on): Add include_next.
21383         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
21384         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
21386         * lib/utimens.c (utimbuf): Remove fallback definition.
21387         * m4/utimens.m4 (gl_UTIMENS): Don't require
21388         gl_CHECK_TYPE_STRUCT_UTIMBUF.
21389         * m4/utimbuf.m4: Remove file.
21390         * modules/utimens (Files): Remove m4/utimbuf.m4.
21392 2017-04-29  Bruno Haible  <bruno@clisp.org>
21394         Make use of module 'utime-h'.
21395         * modules/copy-file (Depends-on): Add utime-h.
21396         * lib/copy-file.c: Assume that <utime.h> exists.
21397         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
21399         * modules/utimens (Depends-on): Add utime-h.
21400         * lib/utimens.c: Assume that <utime.h> exists.
21402 2017-04-29  Bruno Haible  <bruno@clisp.org>
21404         utime-h: New module.
21405         * m4/utime_h.m4: New file.
21406         * lib/utime.in.h: New file.
21407         * modules/utime-h: New file.
21408         * doc/posix-headers/utime.texi: Mention the new module.
21410         * tests/test-utime-h.c: New file.
21411         * modules/utime-h-tests: New file.
21413 2017-04-30  Bruno Haible  <bruno@clisp.org>
21415         Fix a few typos.
21416         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
21417         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
21418         * doc/posix-functions/fstat.texi: Fix a plural typo.
21419         * doc/posix-functions/stat.texi: Likewise.
21420         * m4/include_next.m4: Update comments.
21422 2017-04-29  Bruno Haible  <bruno@clisp.org>
21424         error: Fix mistake in 2017-04-23 commit.
21425         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
21426         assume that strerror_r returns 'int', not 'char *'.
21428 2017-04-29  Bruno Haible  <bruno@clisp.org>
21430         stat: Fix time_t values and other problems on native Windows platforms.
21431         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
21432         implementations of stat().
21433         * lib/stat.c: Include filename.h instead of dosname.h. Include
21434         malloca.h, stat-w32.h.
21435         (is_unc_root): New function.
21436         (rpl_stat): New implementation for native Windows. Remove
21437         REPLACE_FUNC_STAT_DIR code.
21438         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
21439         Don't define REPLACE_FUNC_STAT_DIR.
21440         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
21441         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
21442         (Depends-on): Remove dosname. Add filename, malloca.
21443         (configure.ac): Also compile lib/stat-w32.c.
21445 2017-04-29  Bruno Haible  <bruno@clisp.org>
21447         fstat: Fix time_t values on native Windows platforms.
21448         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
21449         * lib/stat-w32.h: New file.
21450         * lib/stat-w32.c: New file.
21451         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
21452         stat-w32.h instead.
21453         (fstat_nothrow): Remove function.
21454         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
21455         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
21456         always.
21457         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
21458         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
21459         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
21460         (configure.ac): Also compile lib/stat-w32.c.
21462 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21464         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
21465         Problem reported by Assaf Gordon and Gavin Smith in:
21466         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
21467         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
21468         #define this, too.
21470 2017-04-29  Bruno Haible  <bruno@clisp.org>
21472         strerror_r-posix: Fixes for MSVC 14.
21473         * lib/strerror_r.c: Include <stdarg.h>.
21474         (strerror_r): Provide error messages for errno values 100...140.
21475         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
21477 2017-04-28  Bruno Haible  <bruno@clisp.org>
21479         noreturn: New module.
21480         * lib/noreturn.h: New file.
21481         * modules/noreturn: New file.
21482         * tests/test-noreturn.c: New file.
21483         * modules/noreturn-tests: New file.
21484         * tests/test-noreturn-c++.cc: New file.
21485         * modules/noreturn-c++-tests: New file.
21487 2017-04-27  Bruno Haible  <bruno@clisp.org>
21489         wctype-h: Fix compilation error with the original mingw.org mingw.
21490         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
21491         HAVE_CRTDEFS_H.
21492         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
21493         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
21494         <stddef.h> instead.
21495         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
21497 2017-04-26  Pádraig Brady  <P@draigBrady.com>
21499         nap.h: Fix compilation on non windows platforms
21500         * tests/nap.h: Move misplaced endif.
21502 2017-04-26  Pádraig Brady  <P@draigBrady.com>
21503         and Paul Eggert  <eggert@cs.ucla.edu>
21505         time_rz: fix heap buffer overflow vulnerability
21506         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
21507         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
21508         whether there is enough buffer space available, thus avoiding
21509         the problematic promotion of signed to unsigned causing an invalid
21510         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
21511         the start of the buffer.
21512         * tests/test-parse-datetime.c (main): Add a test case written by
21513         Paul Eggert, which overwrites enough of the heap so that
21514         standard glibc will fail with "free(): invalid pointer"
21515         without the patch applied.
21517 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21519         xalloc: add missing integer overflow check
21520         * lib/xalloc.h (x2nrealloc): Also check for multiplication
21521         overflow when P is null.
21523 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21525         parse-datetime: make it standalone
21526         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
21527         (_GL_ATTRIBUTE_FORMAT): New macro.
21528         These are needed to get './gnulib-tool --test parse-datetime' to work.
21530 2017-04-23  Bruno Haible  <bruno@clisp.org>
21532         nap.h: Port to native Windows.
21533         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
21534         use nap_fd instead. On native Windows, close and reopen nap_fd.
21535         (nap_works): Don't compare the ctimes, because on native Windows, these
21536         are the creation times.
21537         (nap): Update.
21539 2017-04-23  Bruno Haible  <bruno@clisp.org>
21541         nap.h: Fix logic.
21542         * tests/nap.h (nap): Avoid signed integer overflow in loop.
21544 2017-04-23  Bruno Haible  <bruno@clisp.org>
21546         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
21547         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
21548         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
21549         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
21550         * lib/argp-help.c (__argp_failure): Likewise.
21552 2017-04-23  Bruno Haible  <bruno@clisp.org>
21554         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
21555         * m4/strerror_r.m4: Revert changes since 2016-10-16.
21556         * lib/strerror_r.c: Likewise.
21558 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
21560         Target a C99 subset, not a C89 subset
21561         For many years Gnulib has targeted C89 and has resisted using C99
21562         features, as some Gnulib-using programs still wanted to target
21563         C89.  As this no longer seems to be the case, relax the porting
21564         requirements to allow some C99 features.  This is merely a change
21565         to the documentation, to give other Gnulib developers a chance to
21566         weigh in on the topic.
21567         * doc/extern-inline.texi (extern inline):
21568         * doc/gnulib-readme.texi (Portability guidelines):
21569         * doc/gnulib-tool.texi (Initial import):
21570         * doc/gnulib.texi (Header files):
21571         Modernize to talk about C99 and C11 instead of C89 and C99.
21572         * doc/gnulib-readme.texi (Portability guidelines):
21573         Now a section, not merely a subsection, so that it
21574         can be split up.  Modernize a bit.
21575         (C language versions, C99 features assumed)
21576         (C99 features avoided):
21577         New sections.
21579 2017-04-23  Bruno Haible  <bruno@clisp.org>
21581         doc: New section "Modules that modify the way other modules work".
21582         * doc/gnulib.texi (Modules that modify the way other modules work): New
21583         section.
21585 2017-04-23  Bruno Haible  <bruno@clisp.org>
21587         stat-time: Update comments.
21588         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
21589         * tests/test-utimens-common.h: Add reference regarding st_ctime on
21590         Windows.
21592 2017-04-01  Bruno Haible  <bruno@clisp.org>
21594         glob: Fix more memory leaks.
21595         * lib/glob.c (glob): Free allocated memory before returning.
21596         Reported by Coverity via Tim Rühsen.
21598 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21600         poll: improve fast check for out-of-range NFD
21601         * lib/poll.c: Do not include intprops.h.
21602         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
21603         * modules/poll (Depends-on): Remove intprops.
21605         ftoastr: cite a newer paper
21606         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
21607         instead of Loitsch 2010.
21609 2017-04-22  Bruno Haible  <bruno@clisp.org>
21611         poll: Enable argument check also in the Windows implementation.
21612         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
21613         Reported by Paul Eggert.
21615 2017-04-22  Bruno Haible  <bruno@clisp.org>
21617         getlogin_r: Work around bug in Mac OS X 10.12.
21618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
21619         bug.
21620         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
21621         given size minus 1, call getlogin_r a second time, on a larger buffer.
21622         * modules/getlogin_r (Depends-on): Add malloca.
21623         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
21625 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21627         parse-datetime: fix %z and prefer signed int
21628         %z problem reported by Pádraig Brady in:
21629         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
21630         While fixing it, I decided to prefer signed ints to size_t, as
21631         they are less error-prone (e.g., ubsan catches overflow).
21632         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
21633         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
21634         counts, since signed integers make for better debugging.
21635         (date): Don’t assume %z works in printf formats.
21636         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
21637         sizes of buffers known to be small, e.g., because we’re using snprintf.
21638         (parse_datetime2): Simplify call to debug_mktime_not_ok.
21640 2017-04-22  Bruno Haible  <bruno@clisp.org>
21642         *printf: Work around rounding bug on Mac OS X.
21643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
21644         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
21645         Mac OS X and FreeBSD.
21646         * doc/glibc-functions/*printf.texi: Likewise.
21648 2017-04-22  Bruno Haible  <bruno@clisp.org>
21650         vasnprintf tests: Avoid warnings.
21651         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
21652         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
21653         test.
21655 2017-04-22  Bruno Haible  <bruno@clisp.org>
21657         sys_file tests: Avoid warning.
21658         * tests/test-sys_file.c (main): Add a default clause to the switch
21659         statement.
21661 2017-04-22  Bruno Haible  <bruno@clisp.org>
21663         sethostname: Update doc.
21664         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
21665         Mac OS X.
21667 2017-04-22  Bruno Haible  <bruno@clisp.org>
21669         quotearg tests: Avoid warnings.
21670         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
21671         false.
21673 2017-04-22  Bruno Haible  <bruno@clisp.org>
21675         poll: Enable argument check.
21676         * lib/poll.c: Include intprops.h.
21677         (poll): Check value of nfd correctly.
21678         * modules/poll (Depends-on): Add intprops.
21680 2017-04-22  Bruno Haible  <bruno@clisp.org>
21682         get-rusage-data: Avoid warnings on Mac OS X.
21683         * lib/get-rusage-data.c: On Mac OS X, don't define
21684         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
21685         (get_rusage_data) [Mac OS X]: Just return 0.
21687 2017-04-22  Bruno Haible  <bruno@clisp.org>
21689         xbinary-io: Fix build error.
21690         * modules/xbinary-io (Depends-on): Add gettext-h.
21691         * lib/xbinary-io.c: Include gettext.h and define _().
21692         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
21693         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
21695 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21697         parse-datetime: overflow and debug cleanups
21698         This long patch was triggered by this bug report from Ruediger Meier:
21699         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
21700         I fixed the bug he noted, then found some others nearby, and then
21701         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
21702         up some of the code to follow GNU standards while I was at it.
21703         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
21704         use c_isdigit.
21705         (EPOCH_YEAR): Remove; unused.
21706         (TM_YEAR_BASE): Now an enum rather than a macro.
21707         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
21708         time zone offset, since timezones now are in terms of seconds and
21709         not minutes.
21710         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
21711         appropriate.  Verify that intmax_t is wide enough.
21712         (time_overflow, time_zone_str): New functions, used to deal
21713         more reliably with overflow.
21714         (dbg_printf): Add printf attribute, to help catch integer width errors.
21715         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
21716         (%union, to_hour, yylex, parse_datetime2):
21717         Use intmax_t instead of long int and/or long_time_t.
21718         All uses changed.
21719         (DBGBUFSIZE): Move earlier.
21720         (relative_time, set_hhmmss, parser_control):
21721         Just use int for nanoseconds and for time zones; that’s wide enough.
21722         (parser_control): Use bool for members like year_seen that can
21723         be booleans instead of counters.  All uses changed.
21724         Remove debug_default_input_timezone; no longer needed.
21725         All uses removed.
21726         (apply_relative_time): Return a bool overflow flag.
21727         All uses changed to check for overflow.
21728         (apply_relative_time, zone, date, relunit, relunit_snumber)
21729         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
21730         Check for integer overflow portably.
21731         (str_days): Use just int for N, as it’s wide enough.
21732         Prefer 2D char arrays to arrays of char * when it looks like
21733         2D is a win on typical platforms.
21734         Prefer snprintf to strncpy/strncat, for simplicity;
21735         all buffers are smaller than INT_MAX so this is safe.
21736         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
21737         (debug_print_current_time): Don’t assume tv_nsec is of type long,
21738         as this is not true on x32.  Output "." before any nanoseconds.
21739         (debug_print_current_time, parse_datetime2):
21740         Output local zones using a more-consistent format.
21741         (debug_print_current_time, date, parse_datetime2):
21742         (main) [TEST]:
21743         Don’t assume time_t is the same width as long.
21744         (print_rel_part): New function, replacing ...
21745         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
21746         (debug_print_relative_time): Use bool for boolean.
21747         (local_zone): dsts_seen now counts only tDST instances.
21748         (date): Fix printf of size_t to use %z.  Do not assume numeric
21749         tokens have negative values merely because the context suggests
21750         a syntax with "-" separating tokens.
21751         (time_zone_hhmm): Return bool success indicator, which checks for
21752         overflow.  Store result into PC->time_zone instead.  All callers
21753         changed.
21754         (tm_year_str): New function.  Return a bool success indicator and
21755         store the result into a buffer.  All callers changed.  Output the
21756         numerically correct string even if adding 1900 to the year would
21757         overflow.
21758         (to_tm_year): New function, replacing the old to_year.  All
21759         callers changed.
21760         (tm_diff): Sync with glibc.
21761         (lookup_word): Use to_uchar instead of doing it by hand.
21762         (TZBUFSIZE): Now local to the only function that needs it.
21763         (debug_strfdatetime): Simplify now that time zones are int seconds.
21764         (debug_strfdate): Work even if tm_year + 1900 would overflow.
21765         (get_effective_timezone): Remove.  All uses removed.
21766         (parse_datetime2): Use fprintf in pieces instead of snprintfing
21767         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
21768         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
21769         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
21770         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
21771         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
21772         * modules/parse-datetime (Depends-on): Add inttypes.
21774 2017-04-21  Bruno Haible  <bruno@clisp.org>
21776         gettext-h: Avoid -Wundef warning.
21777         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
21778         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
21779         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
21781 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
21783         error: Avoid "function declaration isn't a prototype" warning.
21784         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
21786 2017-04-21  Bruno Haible  <bruno@clisp.org>
21788         vasnprintf: Fix for MSVC 14.
21789         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
21790         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
21791         of !HAVE_SNPRINTF_RETVAL_C99.
21793 2017-04-21  Bruno Haible  <bruno@clisp.org>
21795         mbrtowc tests: Fix test failures on MSVC 14.
21796         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
21797         behaviour for invalid input.
21799 2017-04-21  Bruno Haible  <bruno@clisp.org>
21801         mbsinit: Fix for MSVC 14.
21802         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
21803         implementation that is in sync with mbrtowc.c. On other platforms, use
21804         an adequate ad-hoc implementation.
21806 2017-04-21  Bruno Haible  <bruno@clisp.org>
21808         Fix test-mbrtowc5.sh failure on native Windows.
21809         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
21810         "C".
21812 2017-04-21  Bruno Haible  <bruno@clisp.org>
21814         Avoid accidental use of native Windows APIs on Cygwin.
21815         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
21816         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
21817         * lib/localename.c (WINDOWS_NATIVE): Likewise.
21819 2017-04-20  Bruno Haible  <bruno@clisp.org>
21821         Remove red warnings from the generated MODULES.html.
21822         * modules/fcntl (Description): Disambiguate function references.
21823         * modules/getcwd-lgpl (Description): Likewise.
21824         * modules/hostent (Description): Likewise.
21825         * modules/servent (Description): Likewise.
21826         * modules/tempname (Description): Likewise.
21828 2017-04-20  Bruno Haible  <bruno@clisp.org>
21830         verify tests: Fix spurious failure with parallel make.
21831         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
21832         EXTRA_PROGRAMS.
21833         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
21834         * tests/test-verify-try.c: New file.
21835         * modules/verify-tests (Files): Add it.
21836         (EXTRA_PROGRAMS): Add test-verify-try.
21837         (MOSTLYCLEANFILES): Update accordingly.
21838         Reported by Adam James Stewart <ajstewart@anl.gov>.
21840 2017-04-18  Bruno Haible  <bruno@clisp.org>
21842         vma-iter: Fix compilation error on Solaris 7.
21843         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
21844         like on IRIX, OSF/1.
21845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21847 2017-04-18  Bruno Haible  <bruno@clisp.org>
21849         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
21850         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
21851         included.
21852         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
21853         <sys/procfs.h>.
21854         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
21855         <sys/procfs.h> cannot be included.
21856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21858 2017-04-18  Bruno Haible  <bruno@clisp.org>
21860         getopt-gnu: Add comments.
21861         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
21862         * modules/getopt-gnu (configure.ac): Likewise.
21864 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
21866         regex: port better to Solaris 10
21867         Solaris 10 <locale.h> includes <libintl.h>, which #defines
21868         gettext, and this causes a double #define.
21869         Problem reported by Gavin Smith in:
21870         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
21871         * lib/regex_internal.h (gettext): #undef before #defining.
21873 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21875         intprops: improve comments
21876         * lib/intprops.h: Improve and shorten commentary.
21877         For the record, if we ever run into a pedantic compiler that
21878         behaves differently from GCC when converting an out-of-range value
21879         to a signed integer, we can work around the problem with something
21880         like the following code, where UCT is the signed counterpart of T
21881         (UCT is sometimes narrower than UT) and all callers are changed
21882         accordingly:
21883         #if __SUNPRO_C <= 0x5120
21884         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21885            ((t) ((ut) (a) op (ut) (b)))
21886         #else
21887         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21888            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
21889             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
21890                + TYPE_MINIMUM (t)) \
21891             : (t) (uct) ((ut) (a) op (ut) (b)))
21892         #endif
21894 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21896         intprops: try to avoid tickling similar bugs
21897         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21898         needs to be the same width as T; it can be wider.
21899         Change callers so that UT is at least as wide as unsigned int,
21900         as I suspect that this is less likely to run into compiler bugs.
21902         intprops: port to Oracle Studio 12.3 x86
21903         Problem reported by Gavin Smith in:
21904         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21905         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21906         Convert unsigned to signed via the usual rather than the standard way,
21907         to avoid a compiler bug in Oracle Studio 12.3 x86.
21909 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21911         getopt: prefer - to _ in new file names
21912         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21913         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21914         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21915         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21916         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21917         All uses changed.
21919         getopt: port recent getopt changes to macOS
21920         Problem reported by Harald Maier (Bug#26398).
21921         The macOS C compiler uses __nonnull for its own purposes and that
21922         clashes with glibc's __nonnull.
21923         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21924         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21925         * lib/getopt_core.h (getopt):
21926         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21927         Use _GL_ARG_NONNULL, not __nonnull.
21928         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21929         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21930         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21931         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21933 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21935         getopt-gnu: omit some duplicate code
21936         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21937         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21938         gnulib-tool already does this.
21939         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21940         getopt-posix, which we depend on.
21942         getopt-posix: use angle-bracket include
21943         * lib/getopt1.c: Include <config.h>, not "config.h".
21945 2017-04-06  Zack Weinberg  <zackw@panix.com>
21947         getopt: annotate files with relationship to glibc
21949         As the final act in this patchset, adjust the message at the top of
21950         each file to indicate which files are synced with glibc.  (This has
21951         already been done for most of the headers.)
21953         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21954         Mention in top-of-file boilerplate that these files are shared
21955         between glibc and gnulib.
21958         getopt: split up getopt.in.h and eliminate __need_getopt
21960         Over in glibc, all of the __need macros are being phased out in favor
21961         of small headers that declare only the necessary components, as this
21962         is much simpler and less prone to bugs.  As getopt is shared with
21963         glibc, gnulib needs to do the same for __need_getopt.
21965         __need_getopt is misnamed; what it really means is "we want only the
21966         getopt features specified in POSIX, not the GNU extensions".  glibc
21967         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21968         these files can be shared verbatim with gnulib.  The portability
21969         wrapper, on the other hand, they have renounced altogether; glibc's
21970         getopt.h will no longer be shared with gnulib at all.  In exchange,
21971         certain glibc-specific quirks (having to do with __posix_getopt) no
21972         longer need appear in gnulib's headers at all.
21974         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21975         splits up the current gnulib-side portability wrapper into three
21976         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21977         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21978         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21979         unistd.in.h just use them.  All new files are clearly marked with
21980         whether they are shared with glibc.
21982         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21983         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21984         with glibc, and ...
21985         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21986         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21987         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21988         instead of defining __need_getopt and including the full getopt.h.
21990         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21991         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21992         * modules/getopt-posix (Files): Add new headers and sort list.
21993         (Depends-on): No longer need snippet/arg-nonnull.
21994         (Makefile.am): Generate getopt_cdefs.h.
21997         getopt: better handling of ambiguous options
21999         glibc's getopt uses alloca to construct a linked list of possibilities
22000         for an "ambiguous" long option.  In gnulib, malloc should be used
22001         instead.  Providing for both cases complicates things a fair bit.
22003         This patch rewrites ambiguous-option handling to use a boolean vector
22004         instead of a linked list.  There is then only one allocation that
22005         might need freeing; in glibc it can honor __libc_use_alloca as usual,
22006         and in gnulib we define __libc_use_alloca to always be false, so we
22007         don't need ifdefs in the middle of the function.  This should also be
22008         slightly more efficient in the normal case of long options being fully
22009         spelled out -- I think most people aren't even aware they _can_
22010         sometimes abbreviate long options.
22012         One interesting consequence is that the list of possibilities is now
22013         printed in exactly the order they appear in the list of long options,
22014         instead of the first possibility being shuffled to the end.
22016         (The patch looks bigger than it really is because there's a fair bit
22017         of reindentation and code rearrangement.)
22019         * lib/getopt.c: When used standalone, define __libc_use_alloca
22020         as always false and alloca to abort if called.
22021         (process_long_option): Rewrite handling of ambiguous long options
22022         to use a single boolean vector, not a linked list; use
22023         __libc_use_alloca to decide whether to allocate this using alloca.
22026         getopt: refactor long-option handling
22028         There were two copies of the bulk of the code to handle long options.
22029         Now there is only one.
22031         This change temporarily removes the logic to avoid using alloca when
22032         standalone; the next patch in the series will restore it.
22034         * lib/getopt.c (process_long_option): New function split out
22035         from _getopt_internal_r.
22036         (_getopt_internal_r): Replace both copies of the long-option
22037         processing code with calls to process_long_option.
22040         getopt: tidy up _getopt_initialize a bit
22042         _getopt_data.__posixly_correct is completely redundant to
22043         _getopt_data.__ordering, and some work that logically belongs in
22044         _getopt_initialize was being done by _getopt_internal_r, making the
22045         code harder to understand.
22047         As a side effect, getenv will no longer be called if the first
22048         character of the options string is '+' or '-', which is probably a
22049         Good Thing.  (Perhaps we should have a flag character that
22050         specifically asks for the permutation behavior?)
22052         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
22053         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
22054         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
22057         getopt: merge from glibc: repetition reduction
22059         The definitions of the entry point functions 'getopt' and
22060         '__posix_getopt' can be made substantially less repetitive with a
22061         helper macro.
22063         While I was merging the const-correctness changes from gnulib into
22064         glibc I noticed there are still some unnecessary casts in
22065         _getopt_internal_r.
22067         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
22068         a macro.  Consistently cast 'argv' to 'char **' when calling
22069         _getopt_internal.
22070         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
22073         getopt: clean up error reporting
22075         getopt can print a whole bunch of error messages, and when used
22076         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
22077         cancellation point and getopt isn't, and also applying fprintf to a
22078         stream in wide-character mode is not allowed.  So every single error
22079         reporting case has an #ifdef _LIBC block in which it calls internal
22080         libc functions instead.  The counterpart patch series in glibc makes
22081         it possible to simplify all of that down to a set of #defines at the
22082         top of the file; core code is written as if it is safe to just call
22083         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
22084         call any *other* stdio functions.)
22086         * lib/getopt.c: When _LIBC is defined, define fprintf to
22087         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
22088         to _IO_funlockfile.  When neither _LIBC nor
22089         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
22090         funlockfile as no-ops.
22091         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
22092         standalone error-printing code can now be used for libc as well.
22093         Add an flockfile/funlockfile pair around one case where the error
22094         message is printed in several chunks.  Don't use fputc.
22097         getopt: fix fencepost error in ambiguous-W-option handling
22099         getopt_long contains an undocumented (AFAICT) feature in which, if you
22100         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
22101         treated as equivalent to '--foo'.  This is implemented with a partial
22102         second copy of the code for handling long options, and that code
22103         increments optind one too many times when recovering from an ambiguous
22104         abbreviated option, which can cause the main loop to walk past the end
22105         of argv and crash.
22107         I discovered this while writing a test case that tries to exercise all
22108         of getopt's error reporting paths; I wouldn't be surprised to learn
22109         that this feature is never used by real applications.
22111         * lib/getopt.c (_getopt_internal_r): Don't increment
22112         d->optind a second time when reporting ambiguous -W options.
22115         getopt: clean up getopt.c and getopt1.c file headers
22117         In getopt.c, there is no need to include wchar.h at all, and it is
22118         safe nowadays to assume that stdlib.h does declare getenv (several
22119         other gnulib modules make this assumption).
22121         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
22122         by using "" inclusions consistently, and there is no actual need to
22123         include stdlib.h (except in the #ifdef TEST block, where it should be
22124         unconditional), nor to provide a backup definition of NULL at all.
22126         * lib/getopt1.c: Simplify #ifdeffage at top of file.
22127         Move inclusion of stdlib.h to #ifdef TEST block and make
22128         unconditional.  Do not define NULL.
22129         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
22130         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
22131         * modules/getopt-gnu, modules/getopt-posix: Don't call
22132         gl_PREREQ_GETENV.
22135         getopt: harmonize comments with glibc
22137         The comments explaining how the behavior of 'getopt' varies depending
22138         on whether it's the standalone version and whether there are special
22139         characters at the beginning of the options string were inconsistent
22140         between gnulib and glibc, and also out of sync with the code.
22142         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
22145         getopt: remove USE_NONOPTION_FLAGS
22147         getopt includes code to parse an environment variable named
22148         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
22149         in decimal); but all of it has been #ifdefed out since 2001, with no
22150         official way to turn it back on.
22152         According to commentary in glibc's config.h.in, bash version 2.0
22153         set this environment variable to indicate argv elements that were
22154         the result of glob expansion and therefore should not be treated
22155         as options, but the feature was "disabled later" because "it
22156         caused problems".  According to bash's CHANGES file, "later" was
22157         release 2.01; it gives no more detail about what the problems
22158         were.
22160         Version 2.0 of bash was released on the last day of 1996, and version
22161         2.01 in June of 1997.  Twenty years later, I think it is safe to
22162         assume that this environment variable isn't coming back.
22164         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
22165         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
22166         __libc_argc and __libc_argv externs, which were only used by
22167         #ifdef USE_NONOPTION_FLAGS blocks.
22170         getopt: tabify, in preparation for merge with glibc
22172         glibc sticks to the GNU default of indenting with a mix of
22173         8-column tabs and spaces; make the gnulib copy match.
22175         getopt.h is not included because it is *not* going to be merged in its
22176         present form.
22178         * getopt.c, getopt1.c, getopt_int.h: Tabify.
22180 2017-04-02  Bruno Haible  <bruno@clisp.org>
22182         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
22183         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
22184         like it was done in modules/relocatable-lib on 2011-05-21 and in
22185         modules/relocatable-prog on 2011-08-15.
22186         Reported by Reuben Thomas <rrt@sc3d.org>.
22188 2017-03-31  Bruno Haible  <bruno@clisp.org>
22190         glob: Fix invalid free() call.
22191         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
22192         static storage to home_dir.
22193         Reported by Coverity via Tim Rühsen.
22195 2017-03-31  Bruno Haible  <bruno@clisp.org>
22197         glob: Fix memory leaks.
22198         * lib/glob.c (glob): Free allocated memory before returning.
22199         Reported by Coverity via Tim Rühsen.
22201 2017-03-31  Bruno Haible  <bruno@clisp.org>
22203         md5, sha1, sha256, sha512: Add comments regarding correctness.
22204         * lib/md5.h (buflen): Add comments regarding range.
22205         * lib/sha1.h (buflen): Likewise.
22206         * lib/sha256.h (buflen): Likewise.
22207         * lib/sha512.h (buflen): Likewise.
22208         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
22209         * lib/sha1.c (sha1_process_bytes): Likewise.
22210         * lib/sha256.c (sha256_process_bytes): Likewise.
22211         * lib/sha512.c (sha512_process_bytes): Likewise.
22212         Reported by Coverity via Tim Rühsen.
22214 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
22216         getopt: merge from glibc
22217         This does not change anything substantial; it merely simplifies
22218         hypothetical merges back to glibc.
22219         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
22220         Change copyright notice to match what is in glibc.
22221         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
22222         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
22223         __open_memstream rather than open_memstream and __glibc_likely
22224         instead of __builtin_expect.
22225         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
22227 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
22229         dfa: make [0-9] faster in non-C locales
22230         Problem reported by John P. Linderman (Bug#26193).
22231         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
22232         If both ends of the range are ASCII digits, do not worry about
22233         multi-character collating sequences and the like.  Be consistent
22234         about using isalpha as a precondition for setbit_case_fold_c.
22236 2017-03-19  Bruno Haible  <bruno@clisp.org>
22238         lock: Fix compilation error with HP-UX IA64 cc.
22239         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
22240         weak on non-glibc platforms.
22242 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22244         stdalign: tweak version# and test for HP-UX IA64
22245         Problems reported by Bruno Haible in:
22246         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
22247         * lib/stdalign.in.h (_Alignas):
22248         * m4/stdalign.m4 (gl_STDALIGN_H):
22249         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
22250         used octal (as that is how they document it), but it is decimal in
22251         practice now and the ancient implementations no longer matter.
22252         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
22254 2017-03-19  Bruno Haible  <bruno@clisp.org>
22256         vma-iter: Add support for Solaris.
22257         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
22258         approach.
22259         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
22260         * lib/get-rusage-as.c: Update comment about Solaris.
22261         * lib/get-rusage-data.c: Likewise.
22263 2017-03-19  Bruno Haible  <bruno@clisp.org>
22265         vma-iter: Prefer HP-UX specific API on HP-UX.
22266         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
22267         * lib/vma-iter.h: Update.
22268         Just in case HP-UX ever implements mquery().
22270 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
22272         stdalign: restore previous behavior for HP-UX IA64
22273         See Bruno Haible's email in:
22274         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
22275         which cites p 150 of a manual saying that 'aligned' works on Itanium.
22276         * lib/stdalign.in.h (_Alignas):
22277         Assume the '061200' applies to Itanium, not to PA-RISC.
22278         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
22280 2017-03-17  Bruno Haible  <bruno@clisp.org>
22282         stat-time, timespec: Support use of the header files in C++ mode.
22283         * lib/stat-time.h: Add "C" linkage declaration.
22284         * lib/timespec.h: Likewise.
22286 2017-03-17  Bruno Haible  <bruno@clisp.org>
22288         stdalign: Make it work with HP-UX cc.
22289         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
22290         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
22291         for HP-UX cc.
22293 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
22295         flexmember: try to detect HP-UX 11.31 cc bug
22296         Problem reported by Bruno Haible in:
22297         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
22298         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22299         Attempt to detect bug in HP-UX 11.31 cc.
22301 2017-03-16  Bruno Haible  <bruno@clisp.org>
22303         stdint: Fix test compilation failure with HP-UX 11 cc.
22304         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
22305         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
22306         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
22307         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
22309 2017-03-14  Bruno Haible  <bruno@clisp.org>
22311         gnulib-tool: Don't produce a tests directory with only snippet .h files.
22312         * gnulib-tool (func_modules_transitive_closure_separately): If
22313         testsrelated_modules ends up with no "real" modules, aside from
22314         modules with applicability 'all', set it to empty.
22316 2017-03-14  Bruno Haible  <bruno@clisp.org>
22318         vma-iter: Add support for HP-UX.
22319         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
22320         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
22321         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
22322         * lib/get-rusage-as.c: Update comment about HP-UX.
22323         * lib/get-rusage-data.c: Likewise.
22324         (get_rusage_data): Use get_rusage_data_via_setrlimit.
22326 2017-03-14  Bruno Haible  <bruno@clisp.org>
22328         limits-h: Make it work with HP-UX cc.
22329         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
22330         defined.
22332 2017-03-14  Bruno Haible  <bruno@clisp.org>
22334         Fix test failures on DragonFlyBSD.
22335         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
22336         * tests/test-select.h (test_bad_fd): Likewise.
22337         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
22339 2017-03-14  Bruno Haible  <bruno@clisp.org>
22341         freadahead: Silence warning on DragonFlyBSD.
22342         * lib/freadahead.c (__sreadahead): Declare ourselves.
22344 2017-03-14  Bruno Haible  <bruno@clisp.org>
22346         vma-iter: Add comment about AIX.
22347         * lib/vma-iter.c: Add comment about why this module is not implemented
22348         on AIX.
22350 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22352         snippets: move unadjusted snippet sources to lib
22353         Problem reported by Michal Privoznik in:
22354         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
22355         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
22356         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
22357         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
22358         * lib/unused-parameter.h: Rename from
22359         build-aux/snippet/unused-parameter.h.
22360         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
22361         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
22362         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
22363         * modules/snippet/c++defs (Files:, CXXDEFS_H):
22364         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
22365         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
22366         Adjust to file renamings.
22368 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
22370         gnulib-tool: don't automatically distribute files from top/
22371         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
22372         not distribute top/README-release by default, don't distribute files
22373         from top/ unconditionally.
22374         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
22375         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
22377 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22379         gnulib-tool: fix typo in comment output
22380         * gnulib-tool (func_import): Fix typo with previous change.
22382         snippets: work around GNU Make 3.82 VPATH
22383         When using 'gnulib-tool --gnu-make' on Emacs, and building
22384         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
22385         an out-of-source (VPATH) build failed because the sans-copyright
22386         snippet file was not built before the file that used it.
22387         Presumably this is some sort of VPATH thing.  Work around the
22388         problem by using the original snippet, i.e., don’t bother to
22389         remove its copyright notice.
22390         * modules/snippet/_Noreturn, modules/snippet/link-warning:
22391         Don’t assume Automake in comments.  Omit long-incorrect comment.
22392         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
22393         (MOSTLYCLEANFILES):
22394         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
22395         (MOSTLYCLEANFILES):
22396         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
22397         (MOSTLYCLEANFILES):
22398         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
22399         (MOSTLYCLEANFILES):
22400         Remove.
22401         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
22402         * modules/snippet/c++defs (CXXDEFS_H):
22403         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
22404         * modules/snippet/warn-on-use (WARN_ON_USE_H):
22405         Don’t bother to remove the copyright notice; just use the
22406         original snippet as-is.
22408 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
22410         gnulib-tool: minor --gnu-make fixups
22411         * gnulib-tool (func_emit_lib_Makefile_am):
22412         Remove useless code that was a blind alley during implementation.
22413         Problem reported by Thien-Thi Nguyen in:
22414         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
22415         (func_import): Note the "--gnu-make" option in the output comment.
22417 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
22419         gnulib-tool: new option --gnu-make
22420         This is for applications like GNU Emacs that use GNU Make
22421         features instead of Automake.
22422         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
22423         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
22424         Do not assume Automake.
22425         * gnulib-tool (func_determine_path_separator)
22426         (func_modules_transitive_closure, func_update_file)
22427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
22428         (func_import): Add support for --gnu-make.
22430 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
22432         gnulib-common.m4: avoid aclocal.m4 bloat
22433         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
22434         Hide AM_PROG_AR from aclocal, so that aclocal does not
22435         install irrelevant macro definitions into aclocal.m4.
22437 2017-03-10  Bruno Haible  <bruno@clisp.org>
22439         vma-iter: Let callers know about error.
22440         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
22441         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
22443 2017-03-05  Bruno Haible  <bruno@clisp.org>
22445         Fix value of LD for 64-bit compilers on AIX.
22446         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
22447         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
22449 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
22451         dtotimespec: simplify
22452         * lib/dtotimespec.c (dtotimespec): Simplify.
22454 2017-03-04  Bruno Haible  <bruno@clisp.org>
22456         test-calloc-gnu: Reenable test also for GCC 7.
22457         * tests/test-calloc-gnu.c (eight): New function.
22458         (main): Don't skip test; use eight() instead.
22460 2017-03-04  Jim Meyering  <meyering@fb.com>
22462         test-calloc-gnu: port to GCC7
22463         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
22464         that attempts to calloc more than SIZE_MAX bytes, because GCC7
22465         and newer would detect that at compilation time.
22467 2017-03-04  Bruno Haible  <bruno@clisp.org>
22469         tests: Avoid compiler warning about uses of null_ptr.
22470         * tests/null-ptr.h: New file.
22471         * tests/test-canonicalize.c: Include null-ptr.h.
22472         (null_ptr): Remove function.
22473         * tests/test-canonicalize-lgpl.c: Likewise.
22474         * tests/test-memmem.c: Likewise.
22475         * tests/test-ptsname_r.c: Likewise.
22476         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
22477         * modules/canonicalize-lgpl-tests: Likewise.
22478         * modules/memmem-tests: Likewise.
22479         * modules/ptsname_r-tests: Likewise.
22480         Reported by Jim Meyering.
22482 2017-03-03  Bruno Haible  <bruno@clisp.org>
22484         doc: Mention Mac OS X deficiencies regarding semaphores.
22485         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
22486         * doc/posix-functions/sem_destroy.texi: Likewise.
22487         * doc/posix-functions/sem_getvalue.texi: Likewise.
22489 2017-03-03  Bruno Haible  <bruno@clisp.org>
22491         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
22492         Reported by Assaf Gordon <assafgordon@gmail.com> via
22493         Pádraig Brady <P@draigBrady.com>.
22494         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
22495         semaphores.
22496         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
22497         (atomic_int_semaphore): New macro.
22499 2017-02-28  Bruno Haible  <bruno@clisp.org>
22501         perror tests: Tweak for z/OS.
22502         Reported by Daniel Richard G. <skunk@iskunk.org>.
22503         * tests/test-perror.sh: Don't fail z/OS style perror output.
22505 2017-02-26  Bruno Haible  <bruno@clisp.org>
22507         nproc: Refactor large function.
22508         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
22509         from num_processors.
22510         (num_processors): In this function, only deal with OMP.
22512 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22514         nproc: adjust handling of OpenMP environment variables
22515         to match the return value from omp_get_num_threads(), i.e.:
22516          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
22517          - Treat 0 as an invalid value and ignore
22518         Also remove the call to omp_get_num_threads() because
22519         it's ineffective without the omp pragmas in place.
22520         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
22521         so that it can be ignored.
22522         (num_processors): Honor OMP_THREAD_LIMIT even without
22523         OMP_NUM_THREADS being set.  Also fix a typo in the environment
22524         variable being checked, from the previous recent commit.
22526 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22528         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
22529         * lib/nproc.c (parse_omp_threads): A new function refactored
22530         from num_processors() to support parsing both of the
22531         above environment variables.
22532         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
22533         to accurately reflect the current OpenMP nesting level.
22534         Also support the OMP_THREAD_LIMIT environment variable
22535         to limit the max value determined from OMP_NUM_THREADS.
22536         * modules/nproc: Depend on minmax header.
22537         Suggested by Oliver Heimlich.
22539 2017-02-25  Bruno Haible  <bruno@clisp.org>
22541         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
22542         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
22544 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22546         ftoastr: port to -Wdouble-promotion
22547         Work around -Wdouble-promotion false alarm in recent GCCs.
22548         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
22549         (ftoastr_snprintf, FTOASTR): Use it.
22551 2017-02-21  Bruno Haible  <bruno@clisp.org>
22553         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
22554         Reported by Rene Saavedra <rennes@openmailbox.org> in
22555         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
22556         * lib/glthread/lock.h: On glibc systems without
22557         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
22558         implementation of rwlocks.
22559         * lib/glthread/lock.c: Likewise.
22561 2017-02-20  Bruno Haible  <bruno@clisp.org>
22563         lock tests: Fix build failure on z/OS.
22564         Reported by Daniel Richard G. <skunk@iskunk.org>.
22565         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
22566         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
22567         exist.
22569 2017-02-19  Bruno Haible  <bruno@clisp.org>
22571         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
22572         This helps when CC=clang.
22573         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
22574         of /usr/bin/gcc.
22576         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
22577         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
22579 2017-02-19  Bruno Haible  <bruno@clisp.org>
22581         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
22582         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
22583         --with-tests --single-configure is specified.
22585 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22587         users.txt: Update links, use HTTPS where possible
22588         * users.txt: Updated to HTTPS where possible,
22589         fixed some links to new locations.
22591 2017-02-16  Bruno Haible  <bruno@clisp.org>
22593         xbinary-io: Fix inlining.
22594         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
22596 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22598         xbinary-io: rename from xsetmode
22599         This patch is taken from suggestions by Bruno Haible in:
22600         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
22601         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
22602         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
22603         not ENOTTY, when it is an inappropriate device.
22604         * lib/binary-io.h (SET_BINARY): Resurrect.
22605         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
22606         (xset_binary_mode_error): Rename from xsetmode_error.
22607         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
22608         (xset_binary_mode): Rename from xsetmode.
22609         All uses changed.
22610         * modules/xbinary-io: Rename from modules/xsetmode.
22611         Update file names.
22612         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
22613         * NEWS: Update to match revised behavior.
22615 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22617         tests: Adjust to recent SET_BINARY change
22618         * tests/test-binary-io.c (main):
22619         * tests/test-binary-io.sh: Remove test for SET_BINARY.
22620         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
22621         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
22622         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
22624         xsetmode: new module
22625         This is to fix a problem noted by Eric Blake.
22626         Code was using xfreopen to change files to binary mode, but this
22627         fails for stdout when in append mode.  Such code should use
22628         xsetmode instead.
22629         * NEWS: Document incompatible changes to binary-io module.
22630         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
22631         New function.
22632         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
22633         (set_binary_mode): New function, which also checks for tty.
22634         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
22636 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22638         headers: fix begin-end typos
22639         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
22640         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
22642         selinux-h: port to PGI 16.10
22643         * lib/se-selinux.in.h: Don't assume that include_next skips over
22644         duplicate -I DIR options.
22646         argp: port to PGI 16.10
22647         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
22649 2017-02-13  Darshit Shah  <darnir@gnu.org>
22651         unicase: Update function protoype to match definition.
22652         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
22653         uses 'size_t' as the datatype for the 'len' parameter in the functions
22654         it generates. Update the prototype specified here to match the newly
22655         generated function.
22657 2017-02-12  Bruno Haible  <bruno@clisp.org>
22659         times test: Avoid gcc warnings on Linux/x32.
22660         * tests/test-times.c (main): Really cast printf arguments from clock_t
22661         to 'long int'.
22663 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22665         glob: port better to emscripten
22666         Problem reported by Bruno Haible in:
22667         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
22668         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
22670 2017-02-11  Bruno Haible  <bruno@clisp.org>
22672         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
22673         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
22674         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
22675         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
22676         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
22677         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
22678         Distinguish hppa64 from hppa.
22680 2017-02-10  Bruno Haible  <bruno@clisp.org>
22682         search: Don't assume that tsearch() exists if 'VISIT' is defined.
22683         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
22684         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
22685         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
22687 2017-02-09  Bruno Haible  <bruno@clisp.org>
22689         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
22690         * doc/gnulib.texi (Libtool and Windows): Recommend
22691         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
22692         Reported by Reuben Thomas <rrt@sc3d.org>.
22694 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22696         stddef-tests: port to SIZE_MAX <= INT_MAX
22697         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
22698         Do not assume that INT_MAX < SIZE_MAX.
22700 2017-02-01  Bruno Haible  <bruno@clisp.org>
22702         lock tests: Fix link error.
22703         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
22704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22706 2017-01-31  Bruno Haible  <bruno@clisp.org>
22708         lock: Fix link error (regression from 2017-01-05).
22709         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
22710         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
22711         pthread_rwlockattr_destroy weak.
22712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22714 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22716         Port to PGI 16.10 x86-64
22717         This patch fixes one real bug in gl_anylinked_list2.h, along with
22718         some minor glitches that are not bugs.  It does not silence PGI’s
22719         thousands of bogus warnings when compiling test-intprops.c.
22720         Fortunately, the warnings do not cause a failure.
22721         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
22722         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
22723         My goodness, PGI goes back a long ways - this predates C89!
22724         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
22725         For example, ASYNCSAFE (const void *) should expand to
22726         ‘const void *volatile’, not to ‘volatile const void *’.
22727         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
22728         * lib/verify.h (verify) [!__GNUC__]:
22729         Use shorter albeit meaningless string to bypass silly compiler limits.
22730         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
22731         * tests/nan.h (NaNf, NaNd, NaNl):
22732         Use static functions to avoid misguided compiler diagnostics.
22733         Is there some reason we don’t use static functions on all platforms?
22735 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22737         parse-datetime: handle timezones reentrantly
22738         This API change was prompted by a report by Pádraig Brady in:
22739         https://bug.debian.org/851934#10
22740         To help fix the bug, make parse_datetime2 more reentrant.
22741         * NEWS: Document this incompatible change.
22742         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
22743         Add two arguments, the timezone and the timezone name.
22744         All callers changed.  If TZ="..." is specified, use it for
22745         calculating defaults.
22746         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
22747         this code should be usable in a library.
22748         (mktime_ok, get_effective_timezone):
22749         Accept timezone arg too.  All callers changed.
22750         (get_tz): Remove.
22751         (get_effective_timezone): Check for failures.
22753 2017-01-20  Eric Blake  <eblake@redhat.com>
22755         localename: port to cygwin 2.6
22756         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
22757         Cygwin.
22758         * modules/localename (Depends-on): Add extensions, since
22759         NL_LOCALE_NAME() is not visible without it.
22761 2017-01-17  Pádraig Brady  <P@draigBrady.com>
22763         parse-datetime: fix dependence on AC_PROG_SED
22764         * modules/parse-datetime: Use `sed` directly like all other modules.
22765         Reported by J William Piggott
22767 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22769         intprops: update doc URLs
22770         * doc/intprops.texi (Integer Range Overflow): Update URLs.
22772 2017-01-16  Bruno Haible  <bruno@clisp.org>
22774         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
22775         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
22776         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
22777         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
22778         distinguish s390 and s390x.
22779         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
22780         * NEWS: Mention the change regarding 'armel'.
22782 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22784         localeinfo: case_folded_counterparts and WEOF
22785         * NEWS: Document this.
22786         * lib/localeinfo.c (case_folded_counterparts):
22787         First arg is now wint_t, not wchar_t.  This generalizes the
22788         function to also work on WEOF, where it returns 0.
22790         dfa: port to gcc -fsanitize=undefined
22791         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
22792         as this runs afoul of gcc -fsanitize=undefined.
22794 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
22796         strftime: %z is -00 if unknown
22797         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
22798         the caller's responsibility to set 'negative_number'.  All uses changed.
22799         (__strftime_internal): Put '-' before a zero UTC offset if the time
22800         zone abbreviation starts with "-", which is the recently-introduced
22801         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
22802         * tests/test-strftime.c: Test for this.
22804 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22806         dfa: port to older GCC
22807         Problem reported by Assaf Gordon in:
22808         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
22809         * modules/c99: New module.  This merely attempts to use the latest
22810         C version, which should be enough to solve this particular problem.
22811         The idea is to document which Gnulib modules assume C99 or later.
22812         * modules/dfa (Depends-on): Add it.
22814 2017-01-10  Bruno Haible  <bruno@clisp.org>
22816         Update DEPENDENCIES.
22817         * DEPENDENCIES: List only https URLs. Update recommended version for
22818         autoconf, automake, gperf.
22820 2017-01-10  Jim Meyering  <meyering@fb.com>
22822         maint.mk: enforce spelling of "timestamp" (i.e., no space)
22823         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
22824         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
22826 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22828         dfa: minor simplification with emptyset
22829         * lib/dfa.c (build_state): Simplify by using emptyset.
22831 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22833         dfa: shrink constraints from 4 bits to 3
22834         * lib/dfa.c (newline_constraint, letter_constraint)
22835         (other_constraint, prev_newline_dependent)
22836         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
22837         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
22838         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
22839         Constraints need only 3 bits, not 4.  Using smaller integers
22840         shrinks the code a bit and makes grep a tad faster on x86-64.
22842         dfa: omit unnecessary ptrdiff_t check
22843         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
22844         overflow, since xnmalloc does that now.
22846         dfa: omit unnecessary allocation
22847         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
22848         an all-zero follow set works just fine.
22850         dfa: omit unused local
22851         * lib/dfa.c (build_state): Fix up recent change.
22853         maint: remove stray .texi files
22854         Although these were superseded by other files like
22855         doc/posix-functions/ctime.texi, the old files were not removed.
22856         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
22858 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
22860         getprogname: fix port to IRIX
22861         * lib/getprogname.c (getprogname) [__sgi]:
22862         Don't dump core if malloc returns NULL.
22864         dfa: fix reallocation bug when matching newlines
22865         Problem reported for sed by S. Gilles (Bug#25390).
22866         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
22867         (dfastate): Reallocate before moving any newline transition ...
22868         (build_state): ... instead of reallocating here, where it is too late.
22870 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22872         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
22873         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
22875 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22877         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
22878         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
22880 2017-01-07  Bruno Haible  <bruno@clisp.org>
22882         stdioext: Port to Minix 3.2 and newer.
22883         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
22884         * lib/fseeko.c (fseeko): Likewise.
22885         Reported by Nelson Beebe via Paul Eggert.
22887 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22889         getprogname: port to IRIX
22890         * lib/getprogname.c (getprogname): Port to IRIX.
22891         Based on an idea by Bastien Roucariès at:
22892         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
22893         via code from Bruno Haible at:
22894         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22896         localename-tests: port to NetBSD 7
22897         Problem reported by Nelson H. F. Beebe.
22898         * tests/test-localename.c:
22899         Test newlocale and uselocale only if both exist.
22901         glob, intprops, xalloc: work around Clang bug
22902         Work around LLVM bug 16404, which is still not fixed.
22903         https://llvm.org/bugs/show_bug.cgi?id=16404
22904         Problem reported by Nelson H. F. Beebe.
22905         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22906         Remove.
22907         * lib/glob.c (size_add_wrapv):
22908         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22909         * lib/xalloc-oversized.h (xalloc_oversized):
22910         Do not use overflow builtins if Clang.
22912         dfa: fix 'return' typo
22913         Problem reported by Nelson H. F. Beebe.
22914         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22916 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22918         parse-datetime: fix generated paths for coverage files
22919         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22920         within parse-datetime.c, so that gcc generates appropriate .gcno
22921         files, allowing lcov to proceed without error.  Previously it
22922         would error trying to find "lib/lib/parse-datetime.y".
22924 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22926         maint.mk: support parallel execution of coverage
22927         * top/maint.mk (coverage): Run dependencies serially,
22928         thus supporting parallel processing of each one,
22929         particularly build-coverage, which builds and runs tests.
22931 2017-01-05  Bruno Haible  <bruno@clisp.org>
22933         lock tests: Prefer semaphore over mutex.
22934         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22935         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22936         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22937         Suggested by Torvald Riegel <triegel@redhat.com>.
22939 2017-01-05  Bruno Haible  <bruno@clisp.org>
22941         lock: Provide guarantee to avoid writer starvation for rwlocks.
22942         The rationale is: 1) Read-preferring read-write locks are prone to
22943         writer starvation if the number of reader threads multiplied by the
22944         percentage of time they have the lock held is too high. 2) Write-
22945         preferring read-write locks are the only reliable way to avoid this.
22946         3) There have been reports of 'test-lock' hanging on glibc systems
22947         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22948         and glibc indeed implements read-preferring rwlocks by default, see
22949         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22950         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22951         * m4/pthread_rwlock_rdlock.m4: New file.
22952         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22953         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22954         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22955         of rwlock initialization on glibc systems without
22956         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22957         of rwlocks altogether on non-glibc systems without
22958         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22959         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22960         * lib/glthread/lock.c [USE_POSIX_THREADS]
22961         (glthread_rwlock_init_for_glibc): New function.
22962         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22963         comment.
22964         [USE_PTH_THREADS]: New implementation of rwlocks.
22965         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22966         readers.
22967         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22968         (Depends-on): Add 'extensions'.
22969         * tests/test-rwlock1.c: New file.
22970         * lock-tests (Files): Add it.
22971         (Depends-on): Add usleep.
22972         (Makefile.am): Add test-rwlock1 to the tests.
22974 2017-01-05  Bruno Haible  <bruno@clisp.org>
22976         thread: Fix pth port.
22977         * lib/glthread/thread.h (pth_init): Declare weak.
22978         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22979         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22980         function.
22982 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22984         parse-datetime: fix debug message on lone year number
22985         Input dates such as
22986           date -d "Apr 11 22:59:00 2011"
22987         are parsed as date (Apr 11, with default year 2016), then time, then a
22988         number (2011). Based on the combination of previously seen tokens,
22989         'digits_to_date_time' determines 2011 to be a year value.
22990         This fixes the debug messages to correctly show the updated year.
22991         Before:
22992             $ date --debug -d 'Apr 11 22:59:00 2011'
22993             date: parsed date part: (Y-M-D) 2016-04-11
22994             date: parsed time part: 22:59:00
22995             date: parsed number part: today/this/now
22996         After:
22997             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22998             date: parsed date part: (Y-M-D) 2016-04-11
22999             date: parsed time part: 22:59:00
23000             date: parsed number part: year: 2011
23001         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
23002         'debug_year_seen' member fields.
23003         (digits_to_date_time): Update 'year_seen' as needed.
23004         (debug_print_current_time): Inform about year updates.
23005         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
23007         parse-datetime: fix local timezone debug messages
23008         "Local timezones" are strings that affect only DST relative to the
23009         default timezone. The debug messages in parse-datetime.y printed
23010         wrong information when encountering local timezones.
23011         Examples:
23012         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
23013              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
23014              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
23015         When the default timezone relates to the zone strings, EET/EEST are
23016         parsed as local timezones (tLOCAL_ZONE), and only change the DST
23017         value (0/1, respectively):
23018              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
23019              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
23020         * lib/parse-datetime.y (debug_print_current_time): If local timezone
23021         was seen, inform about DST change, don't print actual timezone.
23022         (debug_strfdatetime): If local timezone was seen, use default timezone
23023         (and adjust as needed) instead of using incorrect timezone.
23024         (parse_datetime2): Use correct time-zone source string, and adjust
23025         default timezone as needed.
23027         parse-datetime: add debug warning about DST changes
23028         Incorrect date arithmetic due to daylight saving time (DST) are a
23029         common (false) bug report in coreutils.
23030         Detect two such cases and print a warning:
23031         1. year/month/day adjustments (performed on 'struct tm'),
23032            where 'mktime' returns a different isdst value.
23033         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
23034            where the result of 'localtime(3)' on the value will return a
23035            different isdst value.
23036         Note: DST changes could be harmless or unnoticeable.
23037         Examples (with 'TZ=America/New_York'):
23038         Unnoticeable: result is 2016-Dec-14
23039            $ date -d '2016-06-15 EDT + 6 months' +%b
23040            Dec
23041         Unnoticeable: result is 2016-Dec-15 11:00:00
23042            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
23043            2016-12-15
23044         This is unexpected:
23045            $ date -d '2016-06-01 EDT + 6 months' +%F
23046            2016-11-30
23047         The new debug warnings will show:
23048            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
23049            ...
23050            date: warning: daylight saving time changed after date adjustment
23051            ...
23052         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
23053         print an appropriate warning message.
23055         parse-datetime: add debug warning about date arithmetic
23056         Date arithmetic are done directly on the fields of 'struct tm',
23057         which can result in invalid dates. Normalization with 'mktime(3)'
23058         will then produce a different date - which might cause unexpected
23059         results.
23060         Examples:
23061           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
23062           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
23063         Note that date normalization is not inherently wrong and not rejected,
23064         as it has legitimate uses:
23065           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
23066         If the user asked to adjust months but 'mday' changed,
23067         or user asked to adjust years but 'month' changed - warn about it.
23068             $ ./src/date --debug -d '2016-10-31 - 1 month'
23069             ...
23070             date: warning: when adding relative months/years, \
23071                            it is recommended to specify the 15th of the month
23072             ...
23073             date: warning: month/year adjustment resulted in shifted dates:
23074             date:      adjusted Y M D: 2016 09 31
23075             date:    normalized Y M D: 2010 10 01
23076             ...
23077         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
23078         a warning message. Improve recommendation of when to use 15 of the
23079         month or noon for date arithmetic.
23081         parse-datetime: fix debug message of relative part after timezone
23082         Relative part (e.g '+8 days') after a timezone string was not
23083         reported (was only reported after a timezone number). Due to the
23084         parser's structure, timezone strings with numbers were handled
23085         separately.
23086         before:
23087              # Timezone number + relative part: OK
23088              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
23089              ...
23090              date: parsed relative part: -8 day(s)
23091              # Timezone string + relative part: missing
23092              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
23093              [ missing message ]
23094         After: messages are printed in both cases.
23095         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
23097         parse-datetime: fix incorrect debug message on lone number
23098         A lone number is an absolute value, not a relative time part.
23099         before:
23100            $ date --debug -d '20130101'
23101            date: parsed number part: today/this/now
23102         After:
23103            $ ./src/date --debug -d '20130101'
23104            date: parsed number part: (Y-M-D) 2013-01-01
23105         * lib/parse-datetime.y ('item'/'number' tokens): Call
23106         'debug_print_current_time' instead of 'debug_print_relative_time'.
23108 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
23110         doc: modernize for C11 etc.
23111         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
23112         for C11, MinGW, etc.  This responds to Paul Smith's question in:
23113         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
23115         dfa: prefer functions to FETCH_WC macro
23116         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
23117         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
23118         wint_t result into DFA->lex.wctok instead of to a separate arg.
23119         All callers changed.  Move more local decls closer to where
23120         they're used.
23122         dfa: narrow more local var scopes
23123         * lib/dfa.c: Move more local decls to be more local.
23125         dfa: remove duplicate assignment
23126         Problem reported by Bruno Haible in:
23127         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
23128         * lib/dfa.c (parse_bracket_exp): Simplify.
23130 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23132         dfa: simplify constraint-dependency checking
23133         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
23134         (prev_other_constraint): Remove.
23135         (prev_newline_dependent, prev_letter_dependent):
23136         Simplify, to avoid an unnecessary bitwise AND operation.
23138         dfa: prefer functions and constants to macros
23139         * lib/dfa.c: Prefer constants to macros where either will do.
23140         (streq, isasciidigit, newline_constraint)
23141         (letter_constraint, other_constraint, succeeds_in_context)
23142         (prev_newline_constraint, prev_letter_constraint)
23143         (prev_other_constraint, prev_newline_dependent)
23144         (prev_letter_dependent, accepting, accepts_in_context):
23145         Now static functions instead of function-like macros.
23146         Use lower-case names accordingly.  All uses changed.
23148         dfa: narrow more local var scopes
23149         * lib/dfa.c: Move some more local decls down to nearer where
23150         they're needed.
23152 2016-12-31  Jim Meyering  <meyering@fb.com>
23154         dfa: narrow the scope of many local variables
23155         * lib/dfa.c: Now that we are no longer constrained to c89, move
23156         declarations of many variables (often indices) "down" into the
23157         scope(s) where used or to the point of definition.  This is a
23158         no-semantic-change diff.
23160 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23162         version-etc: new year
23163         * build-aux/gendocs.sh (version):
23164         * doc/gendocs_template:
23165         * doc/gendocs_template_min:
23166         * doc/gnulib.texi:
23167         * lib/version-etc.c (COPYRIGHT_YEAR):
23168         Update copyright dates by hand in templates and the like.
23169         * all files: Run 'make update-copyright'.
23171 2016-12-31  Eric Blake  <eblake@redhat.com>
23173         do-release-commit-and-tag: avoid shell syntax error
23174         * build-aux/do-release-commit-and-tag (curr_br): $branch can
23175         contain spaces when rebasing.
23177         maint.mk: hoist gnulib_dir definition earlier
23178         * top/maint.mk (gnulib_dir): Move near top of file.
23180 2016-12-31  Jim Meyering  <meyering@fb.com>
23182         maint.mk: do not always evaluate intprops-related shell
23183         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
23184         using gnulib_dir undefined (gnulib_dir is defined later in the
23185         file, which will be fixed separately), and besides, there is no
23186         need to incur the cost of this shell invocation for every single
23187         use of this .mk file.  Reported by Eric Blake in
23188         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
23190 2016-12-30  Jim Meyering  <meyering@fb.com>
23192         maint.mk: improve sc_prohibit_intprops_without_use
23193         * top/maint.mk (_intprops_names): Don't hard-code the list of
23194         symbol names.  Instead, derive it on the fly.
23196 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
23198         dfa: shorten sbit, success
23199         * lib/dfa.c (struct regex_syntax.sbit):
23200         (struct dfa.success): Use char, not int, for array elements, since
23201         they are all in the range 0..7.
23203         dfa: simplify multibyte_prop etc.
23204         This follows up on a change made when dfa.c was in grep, namely grep
23205         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
23206         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
23207         That earlier simplification allows for some more simplification
23208         and trimming down here.
23209         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
23210         (struct lexer_state): New mamber brack.
23211         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
23212         since they must be in the range 0..3 now.
23213         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
23214         the brack member now supersedes them.
23215         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
23216         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
23217         (dfaparse): Remove unnecessary initializations of already-0 storage.
23218         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
23219         (dfassbuild): No need to clear sup->mbcsets.
23221         dfa: minor performance tweak
23222         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
23224         dfa: wrap charclass inside a struct
23225         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
23226         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
23227         about 5% faster, where list.txt is generated by 'aspell dump
23228         master | head -n 100000 >list.txt'.  See Bug#22239.
23229         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
23230         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
23231         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
23232         Adjust to this, e.g., by using charclass * rather than charclass.
23233         All callers changed as needed.
23234         (copyset): Remove.  All uses changed to simple assignment.
23235         (parse_bracket_exp): Use zeroset instead of memset.
23237 2016-12-30  Jim Meyering  <meyering@fb.com>
23239         maint.mk: update list of intprops.h symbol names
23240         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
23241         This avoids a false failure of the sc_prohibit_intprops_without_use
23242         rule in grep.
23244 2016-12-29  Eric Blake  <eblake@redhat.com>
23246         getopt: fix parallel test failure
23247         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
23248         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
23249         * tests/test-getopt-main.h (main): Use different file names
23250         in case test-getopt-gnu and test-getopt-posix run in parallel.
23252 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23254         xalloc: x2nrealloc check for ptrdiff_t overflow
23255         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
23256         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
23258 2016-12-24  Bruno Haible  <bruno@clisp.org>
23260         lock test: Fix performance problem on multi-core machines.
23261         * tests/test-lock.c (USE_VOLATILE): New macro.
23262         (struct atomic_int): New type.
23263         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
23264         functions.
23265         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
23266         as 'struct atomic_int'.
23267         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
23268         reclock_checker_thread, test_recursive_lock): Use the new functions.
23269         Reported by Eric Blake in
23270         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
23271         and by Pádraig Brady in
23272         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
23274 2016-12-19  Bruno Haible  <bruno@clisp.org>
23276         vma-iter: Fix endless loop on 64-bit Windows.
23277         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
23278         'unsigned long'.
23280 2016-12-19  Bruno Haible  <bruno@clisp.org>
23282         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
23283         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
23284         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
23285         Invoke gt_TYPE_WINT_T instead.
23286         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
23287         * modules/stdint (Files): Add m4/wint_t.m4.
23288         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
23289         * modules/wctype-h (Makefile.am): Likewise.
23290         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
23291         not only on MSVC.
23292         * lib/wctype.in.h (wint_t): Likewise.
23294 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23296         getopt-posix-tests: fix Makefile typo
23297         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
23298         Fix typo: the last ‘_’ was missing in the name.
23299         I suspect that the typo explains this build failure:
23300         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
23301         although I can’t reproduce the problem on Solaris 10 sparc.
23303 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23305         dfa: improve worst-case 'replace' performance
23306         See my note in Bug#22357#71.
23307         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
23308         (merge_constrained): New function, which is like
23309         the old 'merge' function, except with a new argument C2.
23310         Simplify the body by avoiding the need for different sections
23311         of code depending on whether one input is exhausted.
23312         (merge): Use the new function.
23313         (delete): Return the constraint of the deleted position,
23314         not the entire position.  Caller changed.
23315         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
23317 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23319         dfa: performance improvement for removal of epsilon closure
23320         See Bug#22357#32.
23321         * lib/dfa.c (delete): Use binary search to find deleted index.
23322         (replace): New function.  It replaces a position with the followed set.
23323         (epsclosure): Replace it with a new algorithm.  Update caller.
23325 2016-12-18  Bruno Haible  <bruno@clisp.org>
23327         Split tests for getopt-posix and getopt-gnu.
23328         * tests/test-getopt-posix.c: New file.
23329         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
23330         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
23331         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
23332         GNULIB_TEST_GETOPT_GNU.
23333         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
23334         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
23335         (Makefile.am): Test test-getopt-posix instead of test-getopt.
23336         * modules/getopt-gnu-tests: New file.
23337         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
23339 2016-12-18  Bruno Haible  <bruno@clisp.org>
23341         posix-modules: Add options for specific platforms.
23342         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
23343         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
23344         Invoke func_tmpdir. Filter out the excludes.
23346 2016-12-18  Bruno Haible  <bruno@clisp.org>
23348         getopt: Fix link error for users of getopt() in <unistd.h>.
23349         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
23350         __need_getopt is defined. Undefine all macros before defining them.
23351         * modules/getopt (Include): Clarify that including <unistd.h> is also
23352         OK.
23353         * tests/test-getopt.c: Add comment.
23355 2016-12-17  Bruno Haible  <bruno@clisp.org>
23357         getaddrinfo tests: Avoid compilation error on MSVC.
23358         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
23359         getaddrinfo on native Windows.
23361 2016-12-17  Bruno Haible  <bruno@clisp.org>
23363         getlogin, getlogin_r: Fix link errors on MSVC.
23364         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
23365         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
23366         (Link): New section.
23367         * modules/getlogin_r (Files): Add m4/getlogin.m4.
23368         (configure.ac): Require gl_LIB_GETLOGIN.
23369         (Link): New section.
23370         * NEWS: Mention the new link requirements.
23371         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
23372         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
23374 2016-12-17  Bruno Haible  <bruno@clisp.org>
23376         Un-deprecate the 'progname' module.
23377         * NEWS: Describe the appropriate use-cases of 'progname' versus
23378         'getprogname'. Based on discussion summary at
23379         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
23381 2016-12-17  Bruno Haible  <bruno@clisp.org>
23383         Reorganize NEWS a bit.
23384         * NEWS: Move some not so important changes away from section
23385         "Important Notes".
23387 2016-12-17  Bruno Haible  <bruno@clisp.org>
23389         tanhf: Avoid redefinition error on MSVC.
23390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
23391         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
23392         may be defined as an inline function.
23393         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
23394         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
23396 2016-12-17  Bruno Haible  <bruno@clisp.org>
23398         tanf: Avoid redefinition error on MSVC.
23399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
23400         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
23401         may be defined as an inline function.
23402         * modules/math (Makefile.am): Substitute REPLACE_TANF.
23403         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
23405 2016-12-17  Bruno Haible  <bruno@clisp.org>
23407         sqrtf: Avoid redefinition error on MSVC.
23408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
23409         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
23410         may be defined as an inline function.
23411         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
23412         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
23414 2016-12-17  Bruno Haible  <bruno@clisp.org>
23416         sinhf: Avoid redefinition error on MSVC.
23417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
23418         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
23419         may be defined as an inline function.
23420         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
23421         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
23423 2016-12-17  Bruno Haible  <bruno@clisp.org>
23425         sinf: Avoid redefinition error on MSVC.
23426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
23427         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
23428         may be defined as an inline function.
23429         * modules/math (Makefile.am): Substitute REPLACE_SINF.
23430         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
23432 2016-12-17  Bruno Haible  <bruno@clisp.org>
23434         logf: Avoid redefinition error on MSVC.
23435         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
23436         may be defined as an inline function.
23438 2016-12-17  Bruno Haible  <bruno@clisp.org>
23440         log10l: Avoid redefinition error on MSVC.
23441         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
23442         may be defined as an inline function.
23444 2016-12-17  Bruno Haible  <bruno@clisp.org>
23446         log10f: Avoid redefinition error on MSVC.
23447         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
23448         may be defined as an inline function.
23450 2016-12-17  Bruno Haible  <bruno@clisp.org>
23452         hypotl: Avoid redefinition error on MSVC.
23453         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
23454         may be defined as an inline function.
23456 2016-12-17  Bruno Haible  <bruno@clisp.org>
23458         hypotf: Avoid redefinition error on MSVC.
23459         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
23460         may be defined as an inline function.
23462 2016-12-17  Bruno Haible  <bruno@clisp.org>
23464         fmodl: Avoid redefinition error on MSVC.
23465         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
23466         may be defined as an inline function.
23468 2016-12-17  Bruno Haible  <bruno@clisp.org>
23470         fmodf: Avoid redefinition error on MSVC.
23471         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
23472         may be defined as an inline function.
23474 2016-12-17  Bruno Haible  <bruno@clisp.org>
23476         expf: Avoid redefinition error on MSVC.
23477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
23478         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
23479         may be defined as an inline function.
23480         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
23481         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
23483 2016-12-17  Bruno Haible  <bruno@clisp.org>
23485         coshf: Avoid redefinition error on MSVC.
23486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
23487         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
23488         may be defined as an inline function.
23489         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
23490         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
23492 2016-12-17  Bruno Haible  <bruno@clisp.org>
23494         cosf: Avoid redefinition error on MSVC.
23495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
23496         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
23497         may be defined as an inline function.
23498         * modules/math (Makefile.am): Substitute REPLACE_COSF.
23499         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
23501 2016-12-17  Bruno Haible  <bruno@clisp.org>
23503         atan2f: Avoid redefinition error on MSVC.
23504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
23505         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
23506         may be defined as an inline function.
23507         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
23508         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
23510 2016-12-17  Bruno Haible  <bruno@clisp.org>
23512         atanf: Avoid redefinition error on MSVC.
23513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
23514         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
23515         may be defined as an inline function.
23516         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
23517         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
23519 2016-12-17  Bruno Haible  <bruno@clisp.org>
23521         asinf: Avoid redefinition error on MSVC.
23522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
23523         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
23524         may be defined as an inline function.
23525         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
23526         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
23528 2016-12-17  Bruno Haible  <bruno@clisp.org>
23530         acosf: Avoid redefinition error on MSVC.
23531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
23532         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
23533         may be defined as an inline function.
23534         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
23535         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
23537 2016-12-17  Bruno Haible  <bruno@clisp.org>
23539         Avoid redefinition errors on MSVC.
23540         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
23541         the function may be defined as an inline function.
23542         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
23543         the function may be defined as an inline function.
23545 2016-12-17  Bruno Haible  <bruno@clisp.org>
23547         Avoid redefinition errors on MSVC.
23548         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
23549         * lib/unistd.in.h: Include <stdio.h> when necessary.
23551 2016-12-17  Bruno Haible  <bruno@clisp.org>
23553         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
23554         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
23555         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
23556         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
23557         WINT_MAX.
23559 2016-12-17  Bruno Haible  <bruno@clisp.org>
23561         Avoid autoconf warning.
23562         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
23563         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
23565 2016-12-17  Bruno Haible  <bruno@clisp.org>
23567         fpending: Revert workaround against Emacs bug.
23568         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
23569         The Emacs bug is fixed by Eli Zaretskii in
23570         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
23572 2016-12-17  Bruno Haible  <bruno@clisp.org>
23574         getlogin_r tests: Port to mingw.
23575         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
23576         regression introduced on 2014-05-19.
23578 2016-12-17  Bruno Haible  <bruno@clisp.org>
23580         getlogin: Port to newer mingw.
23581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
23582         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
23583         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
23584         HAVE_GETLOGIN.
23585         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
23586         HAVE_GETLOGIN.
23587         * doc/posix-functions/getlogin.texi: Mention the issue.
23588         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
23589         regression introduced on 2014-05-14.
23591 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23593         builtin-expect: improve port to IBM XL C
23594         Problem reported for z/OS by Daniel Richard G. in:
23595         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
23596         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23597         Test for <builtins.h> directly.
23599         builtin-expect: port to IBM XL C
23600         Problem reported for z/OS by Daniel Richard G. in:
23601         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
23602         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23603         Also allow __builtin_expect defined via a standard include file.
23605         regex: fix dependency
23606         Problem reported by Bruno Haible in:
23607         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
23608         * modules/regex: Depend on builtin-expect.
23610         builtin-expect: new module
23611         Fix fnmatch to use it.
23612         Problem reported for z/OS by Daniel Richard G.
23613         * lib/fnmatch.c (__builtin_expect):
23614         * lib/glob.c (__builtin_expect):
23615         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
23616         * lib/memmem.c (__builtin_expect) [!_LIBC]:
23617         * lib/scandir.c (__builtin_expect):
23618         * lib/strstr.c (__builtin_expect) [!_LIBC]:
23619         Remove macro; config.h now does this.
23620         * lib/gl_anytreehash_list1.h (add_to_bucket):
23621         * lib/regex_internal.h (BE):
23622         Assume __builtin_expect.
23623         * m4/builtin-expect.m4, modules/builtin-expect: New files.
23624         * modules/avltreehash-list, modules/fnmatch, modules/glob:
23625         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
23626         * modules/scandir, modules/strstr-simple:
23627         Depend on builtin-expect.
23629 2016-12-15  Bruno Haible  <bruno@clisp.org>
23631         init.sh: Add possibility to not delete temporary files.
23632         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
23633         to yes, don't erase the temporary directory.
23635 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23637         regex: fix integer-overflow bug in never-used code
23638         Problem reported by Clément Pit–Claudel in:
23639         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
23640         * lib/regex_internal.h: Include intprops.h.
23641         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
23642         behavior on integer overflow.
23643         * modules/regex (Depends-on): Add intprops.
23645         fpending: fix port to MinGW on Emacs
23646         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
23647         Problem reported by Eli Zaretskii in:
23648         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
23649         Is Plan 9 still a valid porting target, anyway?
23651 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23653         safe-alloc: use xalloc-oversized
23654         * lib/safe-alloc.c: Include xalloc-oversized.h.
23655         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
23656         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
23658         xalloc: do not exceed PTRDIFF_MAX
23659         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
23660         xalloc_oversized check, since objects larger than PTRDIFF_MAX
23661         bytes have pointer-subtraction problems.
23663         malloca: do not exceed PTRDIFF_MAX
23664         * lib/malloca.h: Include xalloc-oversized.
23665         (nmalloca): Use xalloc_oversized instead of rolling our own.
23666         * modules/malloca (Depends-on):
23667         * modules/relocatable-prog-wrapper (Depends-on):
23668         Add xalloc-oversized.
23670         quotearg: pacify GCC better
23671         * modules/quotearg (Depends-on): Add minmax, stdint.
23672         * lib/quotearg.c: Include minmax.h, stdint.h.
23673         (nslots): Now int, as there seems little point to going to extra
23674         work merely to support the INT_MAX slot, which nobody ever uses.
23675         (quotearg_n_options): Redo size-overflow checks to pacify GCC
23676         and to catch (mostly-theoretical) ptrdiff_t problems too.
23677         This can be done via one comparison.
23679 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
23681         xalloc-oversized: check for PTRDIFF_MAX too
23682         This avoids undefined behavior when subtracting pointers to
23683         objects containing more than PTRDIFF_MAX bytes.
23684         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
23685         Also return 1 if the result would exceed PTRDIFF_MAX>
23686         * modules/xalloc-oversized (Depends-on):
23687         Add stdint.
23689         dfa: fix glitches in previous commit
23690         Sorry, I don't know how I managed to commit the wrong version.
23691         * lib/dfa.c (MIN): Move up.
23692         (xpalloc): Now static.
23694         dfa: fix some unlikely integer overflows
23695         I found these while reviewing the recent Coverity-related fix.
23696         This patch changes part of dfa.c to prefer ptrdiff_t instead of
23697         size_t for object counts.  Using ptrdiff_t is the style typically
23698         used in Emacs; although it wastes a sign bit as sizes can never be
23699         negative, it makes -fsanitize=undefined more likely to catch
23700         integer overflows in index calculation, and nowadays the upside is
23701         typically more important than the downside.  Although perhaps the
23702         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
23703         of dfa.c already does, since it uses state_num which is signed),
23704         that is a bigger change and is not needed to fix the bugs I found.
23705         * lib/dfa.c: Include stdint.h and intprops.h.
23706         (TOKEN_MAX): New macro.
23707         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
23708         (charclass_index, parse_bracket_exp, addtok, insert, merge)
23709         (realloc_trans_if_necessary, free_mbdata):
23710         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
23711         This is safe because xpalloc checks that the sizes do not exceed
23712         either SIZE_MAX or PTRDIFF_MAX.
23713         (xpalloc): New function, mostly taken from Emacs.
23714         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
23715         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
23716         (charclass_index): Check for integer overflow in computing
23717         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
23718         added to it later.
23719         (alloc_position_set): Check for integer overflow.  On typical
23720         platforms this check has zero overhead, since the constant
23721         expression is false.
23722         (realloc_trans_if_necessary):
23723         Remove assertion, which I hope Coverity no longer needs.
23725         * modules/dfa (Depends-on): Add intprops, stdint.
23727 2016-12-12  Jim Meyering  <meyering@fb.com>
23729         dfa: add an assertion to avoid coverity false positive
23730         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
23731         warned that "newalloc1 - 2" could overflow.
23733 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
23735         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
23736         * dfa.h (DFA_CASE_FOLD): Remove.
23737         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
23739 2016-12-13  John W. Eaton  <gnu@jweaton.org>
23741         link: fix test to declare use of rename()
23742         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
23743         -Werror=implicit-function-declaration
23745 2016-12-12  Bruno Haible  <bruno@clisp.org>
23747         fpending: Port to native Windows with MSVC.
23748         * lib/fpending.c: Include stdio-impl.h.
23749         (__fpending): Include all known implementations. Err out if it's not
23750         ported.
23751         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
23752         * modules/fpending (Files): Add lib/stdio-impl.h.
23753         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
23755 2016-12-12  Bruno Haible  <bruno@clisp.org>
23757         stdioext: Port to native Windows with MSVC.
23758         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
23759         (struct _gl_real_FILE): New type.
23760         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
23761         Windows.
23762         * lib/fbufmode.c (fbufmode): Add code for native Windows.
23763         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
23764         other SystemV derived implementations.
23765         * lib/fpurge.c (fpurge): Likewise.
23766         * lib/freadable.c (freadable): Likewise.
23767         * lib/freadahead.c (freadahead): Likewise.
23768         * lib/freading.c (freading): Likewise.
23769         * lib/freadptr.c (freadptr): Likewise.
23770         * lib/freadseek.c (freadptrinc): Likewise.
23771         * lib/fseeko.c (fseeko): Likewise.
23772         * lib/fseterr.c (fseterr): Likewise.
23773         * lib/fwritable.c (fwritable): Likewise.
23774         * lib/fwriting.c (fwriting): Likewise.
23775         Reported by Gisle Vanem <gvanem@yahoo.no>.
23777 2016-12-11  Jim Meyering  <meyering@fb.com>
23779         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
23780         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
23781         to work with most shells, but not with the one provided by many
23782         Solaris 10 systems, so running configure with such a /bin/sh evokes
23783         e.g., "./configure: syntax error at line 33602: `(' unexpected".
23784         Reported by Assaf Gordon in
23785         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
23787 2016-12-10  Bruno Haible  <bruno@clisp.org>
23789         threadlib: Optimize out runtime test on Solaris >= 10.
23790         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
23791         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
23792         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
23794 2016-12-10  Bruno Haible  <bruno@clisp.org>
23796         stdint: Update doc about Solaris 9.
23797         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
23799 2016-12-09  Bruno Haible  <bruno@clisp.org>
23801         c-ctype tests: Fix link error on Solaris 9.
23802         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
23803         Reported at <https://savannah.gnu.org/bugs/?46827>.
23805 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23807         dfa: fix performance bug that recomputes trans
23808         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
23809         25 on-demand changes.  The bug caused build_state to reset all
23810         d->trans elements to -2 even when d->trans was already non-null.
23811         Use C99 style decls after statements in this function.
23813         same-inode: port to MinGW
23814         Here st_ino is always 0, so change the definition of SAME_INODE so
23815         that 1 means the two files are the same, 0 with st_ino != 0 means
23816         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
23817         reported by Bruno Haible (Bug#25146).
23818         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
23819         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
23821 2016-12-04  Bruno Haible  <bruno@clisp.org>
23823         javacomp-script: Support Java 7 and 8.
23824         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
23825         target-version 1.7, 1.8.
23827 2016-12-02  Daiki Ueno  <ueno@gnu.org>
23829         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
23830         GPLv2" rewriting.
23832 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
23834         * gnulib-tool (func_import): Adhere to the license guideline when
23835         rewriting the license text to "LGPLv3+ or GPLv2":
23836         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
23838 2016-12-02  Bruno Haible  <bruno@clisp.org>
23840         localcharset: Avoid theoretical buffer overrun.
23841         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
23842         return value from setlocale if it would lead to a buffer overrun.
23844 2016-12-01  Bruno Haible  <bruno@clisp.org>
23846         Relicense some modules under LGPLv2+.
23847         Kevin Cernekee's approval is in
23848         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
23849         * modules/fseterr (License): Change to LGPLv2+.
23850         * modules/mbchar (License): Likewise.
23851         * modules/mbiter (License): Likewise.
23852         * modules/mbsnlen (License): Likewise.
23853         * modules/wcwidth (License): Likewise.
23855 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23857         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
23858         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
23859         OS/2 kLIBC.
23861 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23863         alphasort, scandir: Port to OS/2 kLIBC
23864         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
23865         declaration.
23866         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
23868 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23870         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
23871         * lib/relocatable.c (relocate): Do not touch pathname if it is started
23872         with '/@unixroot'.
23874 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23876         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
23877         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
23878         OS/2 kLIBC unless TCPV40HDRS is defined.
23880 2016-11-29  Jim Meyering  <meyering@fb.com>
23882         dfa: avoid new infinite loop
23883         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
23884         * lib/dfa.c (dfastate): When constructing a new state table, we could
23885         initially declare that we had found a match, and later find that
23886         constraints eliminate that possibility, yet continue to use the
23887         now stale "matched" indicator.  That would lead to an infinite loop.
23888         The solution is to update "matched" when necessary.
23889         Introduced by commit v0.1-983-g403adf1.
23891 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23893         dfa: avoid match middle in multibyte character
23894         * lib/dfa.c (transit_state): If fails in matching single byte characters
23895         on a state including period expression in non-UTF8 multibyte locales,
23896         skip trailing bytes.
23897         (dfa_supported): Revert previous change.
23899 2016-11-27  Jim Meyering  <meyering@fb.com>
23901         dfa: avoid false match in non-UTF8 multibyte locales
23902         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23903         as "not supported" so that callers will resort to using regex-based
23904         matcher.  This will surely hurt performance, but correctness trumps
23905         performance here, and the affected locales are less and less relevant,
23906         these days.  See grep's bug report https://bugs.gnu.org/24975.
23908 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23910         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23911         * lib/ptsname_r.c: Include the appropriate headers.
23912         [__sun]: Delete sys/sysmacros.h include.
23913         [_AIX || __osf__]: Likewise.
23914         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23916 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23918         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23919         * lib/md4.c (md4_process_bytes): The existing define is made internal
23920         in recent versions of glibc, so also use this new public define.
23921         * lib/md5.c (md5_process_bytes): Likewise.
23922         * lib/sha1.c (sha1_process_bytes): Likewise.
23923         * lib/sha256.c (sha256_process_bytes): Likewise.
23924         * lib/sha512.c (sha512_process_bytes): Likewise.
23926 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23928         maint: use a more standard return from mbrtowc test
23929         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23930         from the test program as this often indicates an
23931         unhandled case in the test program.
23932         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23933         (gl_MBRTOWC_SANITYCHECK): Likewise.
23934         (gl_MBRTOWC_NULL_ARG2): Likewise.
23935         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23937 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23939         freopen: work around glibc bug with closed fd
23940         Work around glibc bug#15589, where freopen mishandles the case
23941         where stdin etc. are already closed.
23942         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23943         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23944         instead of __need_FILE, as the latter does not work with glibc.
23945         Include <fcntl.h>, for open flags.
23946         (rpl_freopen): Work around glibc bug.
23947         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23948         * modules/freopen (Depends-on): Add fcntl-h.
23949         * tests/test-freopen.c (main): Test for bug.
23951 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23953         fnmatch: fix typo introduced on 2016-08-17
23954         This fixes the port to non-GCC compilers that lack __builtin_expect.
23955         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23957         dfa: simplify with new function fillset
23958         * lib/dfa.c (fillset): New function.
23959         Use it for clarity when applicable.
23961         dfa: fix glitches with on-demand states
23962         Also, adjust commentary to better match new code.
23963         Some of these glitches predate the recent change.
23964         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23965         only non-initial states.
23966         (dfastate): Rename locals to better match new roles.
23967         Move them into nested scopes if this is easy.
23968         Omit unnecessary calls to zeroset.
23969         Simplify test for whether to throw in the positions of state 0.
23970         Omit C99-ism (decl after statement) since Gawk still wants C89.
23971         (build_state): Omit unnecessary test and assignment.
23972         Fix some confusion that counted transition tables inaccurately
23973         and could cause a memory leak.
23974         (dfaexec_main): Redo to make it clearer to the compiler that
23975         -1 and -2 are the only negative state numbers here.
23977 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23979         dfa: addition of new state on demand
23980         * src/dfa.c (dfastate): Add argument UC, the current input character.
23981         Fill only a group including the character in transition table.
23982         (realloc_trans_if_necessary): Add the dummy state which means that a
23983         transition table is assigned but the next state is not assigned.
23984         (build_state): Return the next state.  All callers updated.
23985         (transit_state_singlebyte): If we get the dummy state,
23986         fill the transition table.
23987         (dfaexec_main): Handle the dummy state.
23988         (free_mbdata, dfafree): Consider the dummy state.
23990 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23992         srclist: sync with released gettext
23993         * config/srclist.txt: Set "release" option to the files under
23994         $GETTEXT.
23996 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23998         srclist: add "release" option
23999         * config/srclist.txt: Change the format so that the first column
24000         of each line points to the top-level directory of the source
24001         archive.
24002         * config/srclist-update: Accept "release" option that checks files
24003         from the most recently tagged revision in the source archive.
24005 2016-11-21  Bruno Haible  <bruno@clisp.org>
24007         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
24008         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
24009         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
24010         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
24011         Inline and remove member function 'rpl ()' of the wrapper struct.
24013 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24015         dfa: fix logic typo
24016         Problem reported by Stephane Chazelas (Bug#24973).
24017         * lib/dfa.c (using_simple_locale): Fix typo that caused some
24018         non-simple locales like fr_FR to be treated as simple.
24020 2016-11-20  Jim Meyering  <meyering@fb.com>
24022         fix test driver leaks: exclude, malloc, realloc
24023         * tests/test-exclude.c (main): Fix trivial leak.
24024         * tests/test-malloc-gnu.c (main): Likewise.
24025         * tests/test-realloc-gnu.c (main): Likewise.
24026         With these changes, grep's tests are now leak free.
24027         I.e., running them with ASAN elicits no failure:
24028           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
24029             AM_LDFLAGS='-fsanitize=address -static-libasan' check
24031 2016-11-11  Bruno Haible  <bruno@clisp.org>
24033         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
24034         * modules/libunistring: (License): Change from LGPL to
24035         "LGPLv3+ or GPLv2".
24036         * modules/libunistring-optional: Likewise.
24037         * modules/unicase/*: Likewise.
24038         * modules/uniconv/*: Likewise.
24039         * modules/unictype/*: Likewise.
24040         * modules/unigbrk/*: Likewise.
24041         * modules/unilbrk/*: Likewise.
24042         * modules/uniname/*: Likewise.
24043         * modules/uninorm/*: Likewise.
24044         * modules/unistdio/*: Likewise.
24045         * modules/unistr/*: Likewise.
24046         * modules/uniwbrk/*: Likewise.
24047         * modules/uniwidth/*: Likewise.
24049 2016-11-12  Bruno Haible  <bruno@clisp.org>
24051         Relicense some modules under LGPLv2+.
24052         Paul Eggert's approval is in
24053         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
24054         Eric Blake's approval is in
24055         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
24056         Ludovic Courtès's approval is in
24057         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
24058         * modules/isnand-nolibm (License): Change to LGPLv2+.
24059         * modules/isnanf-nolibm (License): Likewise.
24060         * modules/isnanl-nolibm (License): Likewise.
24062 2016-11-19  Bruno Haible  <bruno@clisp.org>
24064         Relicense some modules under LGPLv2+.
24065         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
24066         modules/vasnprintf.
24067         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
24068         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
24069         All other significant changes to the files in lib/ of these modules
24070         are from me.
24071         * modules/memcmp2 (License): Change to LGPLv2+.
24072         * modules/amemxfrm (License): Likewise.
24073         * modules/fpieee (License): Likewise.
24074         * modules/fpucw (License): Likewise.
24075         * modules/frexp-nolibm (License): Likewise.
24076         * modules/frexpl-nolibm (License): Likewise.
24077         * modules/printf-frexp (License): Likewise.
24078         * modules/printf-frexpl (License): Likewise.
24079         * modules/printf-safe (License): Likewise.
24080         * modules/signbit (License): Likewise.
24082 2016-11-17  Bruno Haible  <bruno@clisp.org>
24084         Enable Unicode decoder safety unconditionally.
24085         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
24086         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
24087         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24088         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24089         * lib/unistr/u8-prev.c (u8_prev): Likewise.
24090         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
24091         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
24092         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
24093         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
24094         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
24095         * lib/unistr/u16-prev.c (u16_prev): Likewise.
24096         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
24097         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
24098         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
24099         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
24100         * lib/unistr/u32-prev.c (u32_prev): Likewise.
24101         * lib/unistr/u32-next.c (u32_next): Likewise.
24102         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
24103         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
24104         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24105         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
24106         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
24107         CONFIG_UNICODE_SAFETY tests unconditionally.
24108         * tests/unistr/test-u32-mblen.c (main): Likewise.
24109         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
24110         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
24111         * tests/unistr/test-u32-next.c (main): Likewise.
24112         * tests/unistr/test-u32-strmblen.c (main): Likewise.
24113         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
24114         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
24115         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
24116         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
24117         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24118         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
24119         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
24120         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
24121         * lib/unistr/u16-check.c (u16_check): Update comment.
24122         * NEWS: Mention the changes that callers should be aware of.
24124 2016-11-19  Bruno Haible  <bruno@clisp.org>
24126         relocatable-prog-wrapper: Fix breakage on Cygwin.
24127         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
24128         (Depends-on): Remove intprops.
24129         * lib/relocwrapper.c: Update dependency tree.
24130         (strerror): Undefine.
24131         * build-aux/install-reloc (func_create_wrapper): Do not compile
24132         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
24134 2016-11-19  Bruno Haible  <bruno@clisp.org>
24136         strerror: Make it compile in C++ mode.
24137         * lib/strerror.c (strerror): Ignore the return value of memcpy().
24139 2016-11-15  Pedro Alves  <palves@redhat.com>
24141         sys_time: add gnulib::timeval for C++
24142         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
24143         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
24144         timeval macro.
24146 2016-11-14  Pedro Alves  <palves@redhat.com>
24148         snippet/c++defs: fix real-floating arg functions in C++ mode
24149         Also, define isfinite, isinf, isnan, signbit in the gnulib
24150         namespace instead of in the global namespace.
24151         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
24152         (_GL_END_NAMESPACE): New.
24153         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
24154         (isfinite, isinf, isnan, signbit) [__cplusplus &&
24155         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
24156         instead of in the global namespace.
24157         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
24158         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
24159         of in the global namespace.
24161 2016-11-13  Jim Meyering  <meyering@fb.com>
24163         strftime: don't use __THROW
24164         Each use of __THROW would provoke this from gcc-7-to-be:
24166           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
24167             on unit local functions [-Wattributes]
24168           static int iso_week_days (int, int) __THROW;
24169           ^~~~~~
24170         * lib/strftime.c (__THROW): Don't define.
24171         Remove each use of __THROW.
24172         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
24173         (tm_diff, iso_week_days, __strftime_internal): Likewise.
24175 2016-11-14  Paul Eggert  <eggert@union>
24177         obstack: port to gcc -fcheck-pointer-bounds
24178         Problem found by 'make check' failure on bleeding-edge coreutils
24179         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
24180         6.2.0-5ubuntu12), configured via "./configure
24181         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
24182         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
24183         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
24184         New macro, copied from fts_.h.
24185         (struct _obstack_chunk.contents): Use it.
24187 2016-11-14  Eric Blake  <eblake@redhat.com>
24189         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
24190         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
24191         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
24193 2016-11-14  Pádraig Brady  <P@draigBrady.com>
24195         strptime: fix compile error in recent change
24196         * lib/strptime.c (__strptime_internal): Fix ported code.
24198 2016-11-11  Bruno Haible  <bruno@clisp.org>
24200         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
24201         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
24202         (func_import): Extend determination of license_incompatibilities.
24203         (func_create_testdir): Extend table of license compatibility. Handle
24204         also the licenses GPLv3+, GPL, LGPLv3+.
24206 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
24208         strftime: tune %q
24209         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
24211         Merge strftime.c changes from glibc
24212         This incorporates:
24213         2007-10-16 [BZ #5184] Add tzset_called argument
24214         2008-06-13 [BZ #6612] pass reference to tzset_called around
24215         2009-10-30 Implement Burmese language locale for Myanmar
24216         2010-01-09 Add support for XPG7 testing
24217         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
24218         2015-10-20 Convert miscellaneous function definitions to prototype style
24219         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
24220         it anyway and this lessens the difference between gnulib and glibc.
24221         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
24222         (__THROW): Define if standard headers do not.
24223         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
24224         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
24225         Declare with __THROW.
24226         (__strftime_internal): Rename from strftime_case_. Add arg for
24227         whether tzset is called.  All uses changed.  Call tzset at most
24228         once.  Allow %OC, for Burmese.
24229         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
24230         Don't assume values are in range.
24232 2016-11-12  Eric Blake  <eblake@redhat.com>
24234         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
24235         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
24236         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
24237         different value.
24239 2006-11-12  Pedro Alves  <palves@redhat.com>
24241         Fix gnulib C++ namespace support and std::frexp
24242         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
24243         _GL_CXXALIASWARN.
24245 2006-11-12  Pedro Alves  <palves@redhat.com>
24247         GNULIB_NAMESPACE::func need not pull in rpl_func
24248         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
24249         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
24250         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
24251         struct instead of a function pointer.
24253 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
24255         manywarnings: fix -Wno-missing-field-initializers detection
24256         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
24257         to be independent of -Wunused-variable.  I.E. ensure the latter
24258         warning doesn't occur so that detection of the former is accurate.
24260 2016-11-05  Pádraig Brady  <pbrady@fb.com>
24262         strftime,strptime: support %q to represent the quarter
24263         * lib/strftime.c (strftime_case_): Add %q case.
24264         * lib/strptime.c (__strptime_internal): Likewise.
24265         * tests/test-strftime.c (quarter_test): A new test case.
24267 2016-11-03  Eric Blake  <eblake@redhat.com>
24269         bootstrap: Fix get_version() for AIX 5.3
24270         * build-aux/bootstrap (get_version): Factor out sed script, since
24271         indented comments choke AIX 5.3 sed.
24272         Reported-by: Michael Felt <aixtools@gmail.com>
24274 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
24276         intprops: port to older XL C
24277         Problem reported by Alexander Samoilov in:
24278         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
24279         http://savannah.nongnu.org/bugs/?49448
24280         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
24281         Define to 1 only for XL C 12.1 or later, since this bug
24282         occurs in XL C for AIX 6.0 but not in 12.1.
24284 2016-11-02  Pádraig Brady  <P@draigBrady.com>
24286         backupfile: initialize default suffix within the implementation
24287         * lib/backupfile.c (find_backup_file_name): Initialize the
24288         global variable here, to simplify usage, and to only call
24289         getenv() when needed.
24291 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24293         futimens: remove FIXME for old Linux kernels
24294         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
24295         this in 2012" FIXME, like that for utimensat.
24297         utimensat: remove FIXME for old Linux kernels
24298         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
24299         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
24300         this in 2012" FIXME, by assuming the file system bug is absent
24301         unless demonstrated to be present.  We no longer need to worry
24302         about Linux kernel 2.6.32 when building with newer kernels.
24304 2016-10-16  Bruno Haible  <bruno@clisp.org>
24306         qsort_r: Fix macrology for platforms that lack the function.
24307         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
24308         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
24309         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
24310         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
24311         not exist.
24312         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
24313         the function exists.
24314         * modules/qsort_r: Add comments.
24316 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24318         sys_types: fix Texinfo typos
24319         * doc/glibc-functions/gnu_dev_major.texi:
24320         * doc/glibc-functions/gnu_dev_makedev.texi:
24321         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
24323 2016-10-26  John David Anglin  <dave.anglin@bell.net>
24325         getprogname: port to HP-UX
24326         See Bug#24805.
24327         * lib/getprogname.c (getprogname) [__hpux]: Port.
24328         * tests/test-getprogname.c (STREQ) [__hpux]:
24329         Special-case for HP-UX limitations on program name length.
24331 2016-10-20  Bruno Haible  <bruno@clisp.org>
24333         Update doc about target platforms.
24334         * doc/gnulib-intro.texi (Target Platforms): Update list.
24336 2016-10-15  Bruno Haible  <bruno@clisp.org>
24338         opendir, readdir, closedir: Relicense under LGPLv2+.
24339         * modules/opendir (License): Change to LGPLv2+.
24340         * modules/readdir (License): Likewise.
24341         * modules/closedir (License): Likewise.
24343 2016-10-16  Bruno Haible  <bruno@clisp.org>
24345         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
24347         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
24348         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
24349         HAVE_DECL_STRERROR_R.
24351 2016-10-16  Bruno Haible  <bruno@clisp.org>
24353         Make the 'argp' module work without the 'error' module.
24354         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
24356 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
24358         diffseq: restore TOO_EXPENSIVE heuristic
24359         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
24360         (Bug#24715).  The simplest solution is to restore the
24361         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
24362         using a higher threshold to avoid Bug#16848 on smaller files.
24363         * lib/diffseq.h (struct context): Restore member too_expensive.
24364         (struct partition): Restore members lo_minimal, hi_minimal.
24365         (diag, compareseq): Restore arg find_minimal.  All uses changed.
24366         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
24367         1993 to make 'diff' run faster (but not as well) on large inputs,
24368         but use a threshold of 4096 instead of the old 256.
24369         * lib/fstrcmp.c (strcmp_bounded):
24370         * lib/git-merge-changelog.c (compute_differences):
24371         Adjust to diffseq.h changes.
24373 2016-10-22  Bruno Haible  <bruno@clisp.org>
24375         iconv: Avoid compilation error when bootstrapping GNU libiconv.
24376         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
24377         declaration yet, define ICONV_CONST to empty.
24379 2016-10-15  Bruno Haible  <bruno@clisp.org>
24381         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
24382         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
24383         module.
24385 2016-10-16  Bruno Haible  <bruno@clisp.org>
24387         system-quote tests: Avoid compiler warning on AIX.
24388         * tests/test-system-quote-child.c (fopen): Redefine like the system's
24389         <stdio.h> does.
24391 2016-10-16  Bruno Haible  <bruno@clisp.org>
24393         Fix some "gcc -Wall" warnings.
24394         * tests/test-ffsl.c (main): Use variable x, not i.
24395         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
24396         freopen.
24397         * tests/test-sethostname1.c (main): Explicitly ignore the return value
24398         of sethostname.
24400 2016-10-16  Bruno Haible  <bruno@clisp.org>
24402         gnulib-tool: Make --create-testdir on all modules work again.
24403         * gnulib-tool (func_create_testdir): Don't include the
24404         non-recursive-gnulib-prefix-hack module.
24406 2016-10-21  Daiki Ueno  <ueno@gnu.org>
24408         libunistring: change the maintainer to 'all'
24409         * modules/gen-uni-tables, modules/libunistring:
24410         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
24411         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
24412         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
24413         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
24414         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
24415         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
24416         * modules/uniwidth/*: Change the maintainer to 'all'.
24418 2016-10-16  Bruno Haible  <bruno@clisp.org>
24420         Simplify "configure: checking ..." messages.
24421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
24422         AC_MSG_NOTICE.
24423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24425 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
24427         quotearg-tests: pacify gcc -Wall
24428         Problem reported by Bruno Haible in:
24429         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
24430         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
24431         * tests/test-quotearg.h: ... from here.
24433 2016-10-20  Pádraig Brady  <P@draigBrady.com>
24435         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
24436         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
24437         Needed on Centos <= 4.
24439 2016-10-20  Jim Meyering  <meyering@fb.com>
24441         printf.m4: fix a bug in detecting printf %j support
24442         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
24443         uintmax_t is defined in neither stdint.h nor inttypes.h.
24444         Before, this macro might have mistakenly set
24445         gl_cv_func_printf_sizes_c99=yes on such a system.
24446         Spotted by Zev Weiss.
24448 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
24450         sched: substitute HAVE_SYS_CDEFS_H too
24451         Problem reported by Tom G. Christensen in:
24452         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
24453         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
24454         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
24456 2016-10-19  Pádraig Brady  <P@draigBrady.com>
24458         quotearg: never write beyond the returned length
24459         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
24460         scan of the string when we initially encounter a single quote when
24461         shell quoting, so that if we then switch to a more concise quoting method
24462         we will not have written beyond that returned length.
24463         This is significant for sh-quote, which has separate routines
24464         to determine the length and do the actual quoting.
24465         * tests/test-quotearg.h: Reinstate the buffer bounds checking
24466         now that we never write more than the returned length.
24468 2016-10-18  Bruno Haible  <bruno@clisp.org>
24470         getprogname tests: Avoid failure in packages that use libtool.
24471         * tests/test-getprogname.c (main): Strip "lt-" prefix.
24472         Based on a patch by Jim Meyering.
24474 2016-10-16  Bruno Haible  <bruno@clisp.org>
24476         getprogname: Fix test failure on Cygwin. Comments.
24477         * lib/getprogname.h: Add comments.
24478         * lib/getprogname.c: Add comments. Fix #elif indentation.
24479         * tests/test-getprogname.c (main): On Cygwin, expect a result without
24480         ".exe" suffix.
24482 2016-10-16  Bruno Haible  <bruno@clisp.org>
24484         Make sure the libunistring detection rejects older versions with a
24485         known bug.
24486         * modules/unistr/u8-strtok (configure.ac): Bump required version.
24487         * modules/unistr/u16-strtok (configure.ac): Likewise.
24488         * modules/unistr/u32-strtok (configure.ac): Likewise.
24490 2016-10-18  Bruno Haible  <bruno@clisp.org>
24492         sh-quote, system-quote: revert regression of unit test.
24493         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
24494         * tests/test-system-quote-main.c (check_one): Likewise.
24496 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24498         quotearg: fix stale tests
24499         * tests/test-quotearg.c [locale_results]: Add the missing str7
24500         entries to the expected results.
24501         * tests/test-system-quote-main.c (check_one): Don't enforce that we
24502         don't write beyond the returned length, since that's no longer the
24503         case if we switch to a more concise quoting style.
24504         * tests/test-sh-quote.c (check_one): Likewise.
24505         (main): Adjust for the new more concise quoting style.
24506         Reported by Bruno Haible.
24508 2016-10-16  Jim Meyering  <meyering@fb.com>
24510         non-recursive-gnulib-prefix-hack: fix inconsequential typo
24511         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
24512         to "$1".  This macro is always invoked with $1 == lib.
24513         Spotted by Bruno Haible
24515 2016-10-16  Bruno Haible  <bruno@clisp.org>
24517         Fix a test crash.
24518         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
24519         fails.
24521 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24523         test-limits-h: suppress -Woverlength-strings
24524         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
24526 2016-10-15  Bruno Haible  <bruno@clisp.org>
24528         gettime, timespec, utimens: Relicense under LGPL.
24529         * modules/gettime (License): Change to LGPL.
24530         * modules/timespec (License): Likewise.
24531         * modules/utimens (License): Likewise.
24533 2016-10-14  Bruno Haible  <bruno@clisp.org>
24534             Pádraig Brady  <P@draigBrady.com>
24536         canonicalize-lgpl: Support the case path_max > INT_MAX.
24537         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
24538         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
24540 2016-10-13  Jim Meyering  <meyering@fb.com>
24542         getprogname: IBM z/OS: avoid NULL-dereference
24543         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
24544         upon strdup failure.
24546 2016-10-12  Jim Meyering  <meyering@fb.com>
24548         test-stdint: use _GL_VERIFY rather than "verify" for some tests
24549         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
24550         and an abbreviated diagnostic rather than verify with the full one,
24551         because the full-length strings would evoke warnings from gcc with
24552         -Woverlength-strings.
24554 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24556         stdint: port SIZE_MAX to glibc s390
24557         Problem reported by Eric Blake in:
24558         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
24559         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
24560         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
24561         correct type, if possible.
24563 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
24565         getprogname: port to IBM z/OS
24566         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
24568 2016-10-11  Jim Meyering  <meyering@fb.com>
24570         maint: remove stray space after "." in AC_DEFINE comment.
24571         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
24572         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24574 2016-10-05  Jim Meyering  <meyering@fb.com>
24576         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24577         * lib/long-options.c (parse_long_options): Add a break statement
24578         to avoid this new warning/failure:
24579         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24580           --create-testdir --dir=/t/x --with-tests --test long-options
24581         ../../gllib/long-options.c: In function 'parse_long_options':
24582         ../../gllib/long-options.c:66:12: error: this statement may \
24583           fall through [-Werror=implicit-fallthrough]
24584                    (*usage_func) (EXIT_SUCCESS);
24585                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24587 2016-10-05  Jim Meyering  <meyering@fb.com>
24589         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24590         Testing this module would fail when using GCC 7 like this:
24591         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24592           --dir=/tmp/x --with-tests --test utimecmp
24593         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24594         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24595           [-Werror=bool-operation]
24596                          time_t s = src_s & ~ (res == 2 * BILLION);
24597                                             ^
24598         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24599           [-Werror=bool-operation]
24600                src_s &= ~ (res == 2 * BILLION);
24601                         ^
24602         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24603         Instead, make it explicit that we intend to apply it to 0 or 1.
24605 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24607         dfa: save memory for states
24608         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
24609         states if dfa has a lot of caches.
24611 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
24613         wchar, wctype-h: fix for MinGW 3.22.2
24614         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
24615         special invocation, to fix issues with MinGW 3.22.2 wchar.h
24616         when included from <string.h>.
24617         * lib/wctype.in.h [__MINGW32__]: Add special invocation
24618         convention for MinGW 3.22.2, to solve issues with their
24619         wctype.h when included from <ctype.h>.
24621 2016-10-05  Jim Meyering  <meyering@fb.com>
24623         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24624         * lib/long-options.c (parse_long_options): Add a break statement
24625         to avoid this new warning/failure:
24626         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24627           --create-testdir --dir=/t/x --with-tests --test long-options
24628         ../../gllib/long-options.c: In function ‘parse_long_options’:
24629         ../../gllib/long-options.c:66:12: error: this statement may \
24630           fall through [-Werror=implicit-fallthrough]
24631                    (*usage_func) (EXIT_SUCCESS);
24632                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24634         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24635         Testing this module would fail when using GCC 7 like this:
24636         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24637           --dir=/tmp/x --with-tests --test utimecmp
24638         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24639         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24640           [-Werror=bool-operation]
24641                          time_t s = src_s & ~ (res == 2 * BILLION);
24642                                             ^
24643         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24644           [-Werror=bool-operation]
24645                src_s &= ~ (res == 2 * BILLION);
24646                         ^
24647         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24648         Instead, make it explicit that we intend to apply it to 0 or 1.
24650 2016-10-03  Pádraig Brady  <P@draigBrady.com>
24652         quotearg: minimize shell quoting using double quotes
24653         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
24654         quote in encountered then use double quotes (c style quoting)
24655         when possible, as it simplifies the quoting.
24656         * tests/test-quotearg-simple.c: Add test cases.
24657         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
24658         for the fact we now may write beyond the returned length.
24660 2016-10-02  Jim Meyering  <meyering@fb.com>
24662         vasnprintf.c: avoid spurious warning from GCC 7
24663         The presence of cpp directives renders this "FALLTHROUGH" comment
24664         ineffective, so does not suppress the -Wimplicit-fallthrough warning
24665         from GCC 7 built from git on 2016-10-02.
24666         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
24667         directives, so that it takes effect once again.  This is clearly
24668         not a proper change, and I will revert it once this bug is fixed:
24669         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
24671 2016-10-01  Jim Meyering  <meyering@fb.com>
24673         getprogname: correct the test for a __progname variable
24674         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
24675         and AC_LINK_IFELSE to check for a global __progname.  If found,
24676         define HAVE_VAR___PROGNAME.
24677         * lib/getprogname.c (getprogname): Reflect the new name of the
24678         feature- checked preprocessor symbol:
24679         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
24681 2016-09-28  Jim Meyering  <meyering@fb.com>
24683         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
24684         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
24685         fall-through case with a /* fallthrough */ comment.
24687         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
24688         * lib/dfa.c (dfassbuild): Mark the end of this case with a
24689         /* fallthrough */ comment.
24691         getprogname: avoid __progname vs program_invocation_short_name pitfall
24692         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
24693         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
24694         not with Fedora 24's glibc-2.23.1-10.
24695         * lib/getprogname.c (__progname): Move this declaration down...
24696         (getprogname): ... into the #elif block where used, and make it
24697         explicitly "extern".
24699         getprogname: port to OpenBSD 5.1
24700         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
24701         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
24702         * modules/getprogname (configure.ac): Move most of this code...
24703         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
24704         increment serial number, and add a test for __progname.
24705         https://bugs.gnu.org/24562
24706         Reported by Nelson H. F. Beebe.
24708 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24710         sched: port to GCC 6.2.1 on macOS Sierra
24711         Problem reported by Denis Davydov in:
24712         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
24713         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
24714         Include <sys/cdefs.h> before <sched.h>.
24715         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
24716         so that we needn’t worry about the sched.h include bug here.
24717         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
24718         and include it before <sched.h> if it exists, when
24719         checking for <sched.h>.
24721         tests/init.sh: port Alpine fix to AIX 7.1
24722         * tests/init.sh (compare_): When attempting to use diff -U3,
24723         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
24724         diff -u not outputting a space after leading '+', as the users
24725         of 'compare' should not be that picky about its output format.
24726         In the AIX 7.1 case, return with diff exit status (or with 2 if
24727         trouble), instead of some random nonzero exit status.
24728         * tests/test-init.sh (test_compare): Remove space after leading
24729         '+', so that AIX 7.1 'diff' passes the test.
24731 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24733         nl_langinfo: pacify GCC
24734         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
24735         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
24737         stdint: also set GL_GENERATE_LIMITS_H
24738         Problem reported by Jim Meyering in:
24739         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
24740         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
24742         limits-h, stdint: Don't assume extensions, fix typo
24743         * m4/limits-h.m4 (gl_LIMITS_H):
24744         * m4/stdint.m4 (gl_STDINT_H):
24745         Don't assume AC_USE_SYSTEM_EXTENSIONS.
24746         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
24747         reported by Jim Meyering in:
24748         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
24750 2016-09-21  Jim Meyering  <meyering@fb.com>
24752         getprogname: port to AIX
24753         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
24754         and strdup to obtain a short program name string.  Using code from
24755         Bruno Haible and an idea from Bastien ROUCARIÈS, in
24756         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24757         Assaf Gordon reported that this new file would fail to compile on
24758         AIX-7.1 32bit.
24760 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24762         extensions: fix typo in comment
24763         * m4/extensions.m4: Sync from Autoconf master.
24765         stdint: support new _WIDTH macros
24766         * doc/posix-headers/stdint.texi: Document this.
24767         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
24768         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
24769         support for INTMAX_WIDTH, etc. as well as for support for just C99.
24770         * modules/stdint (Depends-on): Add limits-h.
24771         (Makefile.am): Substitute HAVE_C99_STDINT_H.
24772         * modules/stdint-tests (Depends-on): Add extensions, so that
24773         INTMAX_MAX etc. are defined.
24774         * tests/test-stdint.c: Verify the new macros.
24776         limits-h: new module
24777         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
24778         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
24779         * doc/posix-headers/limits.texi: Document new module.
24780         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
24781         * modules/limit-h-tests, tests/test-limits-h.c: New files.
24783         stdio: don't redefine __USE_MINGW_ANSI_STDIO
24784         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
24785         if it is already defined.  Apparently GNU Emacs relies on this.  See:
24786         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
24788 2016-09-15  Eric Blake  <eblake@redhat.com>
24790         sys_types: avoid glibc 2.25 warnings about major()
24791         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
24792         older autoconf.
24793         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
24794         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
24795         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
24796         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
24798         mountlist: include sysmacros.h for glibc
24799         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
24800         AC_HEADER_MAJOR.
24801         * lib/mountlist.c (includes): Use correct headers.
24803 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24805         extensions: port to more ISO C TSes
24806         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
24807         master, to add support for more recent ISO C TRs and TSes.
24809 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24811         intprops: new macro TYPE_WIDTH
24812         * lib/intprops.h (TYPE_WIDTH): New macro.
24813         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
24814         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
24815         * lib/parse-datetime.y (parse_datetime2):
24816         Use it.
24818         extensions: port to recent ISO C TRs
24819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24820         Sync from Autoconf master, to add support for recent ISO C TRs.
24821         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
24822         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
24823         the MinGW option is not an extension.
24825 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24827         dfa: port to Solaris 9
24828         Problems reported by Tom G. Christensen in:
24829         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
24830         * modules/dfa (Depends-on): Add isblank.
24831         * modules/dfa-tests (dfa_match_aux_LDADD):
24832         Rename from test_stat_LDADD, to fix typo.
24833         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
24835 2016-09-10  Jim Meyering  <meyering@fb.com>
24837         strverscmp: avoid link failure on OS X
24838         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
24839         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
24841 2016-08-16  Jim Meyering  <meyering@fb.com>
24843         dfa: new module, importing grep's DFA matcher
24844         Since grep's DFA matcher is now being used by two gnulib-enabled
24845         projects, grep and sed, it makes sense to version-control its
24846         sources and unit tests in one place: here.
24847         * modules/dfa: New module.
24848         * modules/dfa-tests: New file.
24849         * lib/dfa.c: New file, from grep.
24850         * lib/dfa.h: Likewise.
24851         * lib/localeinfo.c: Likewise.
24852         * lib/localeinfo.h: Likewise.
24853         * tests/dfa-match-aux.c: Likewise.
24854         * tests/dfa-invalid-char-class.sh: Likewise.
24855         * tests/dfa-match.sh: Likewise, with minor changes.
24856         * MODULES.html.sh (Misc): Add "dfa" to this list.
24858 2016-09-09  Jim Meyering  <meyering@fb.com>
24860         getprogname-tests: don't depend on assert-h
24861         * modules/getprogname-tests (Depends-on): Remove assert-h.
24862         It was not needed, and in fact would cause build failure for
24863         coreutils on some systems.  Reported by Assaf Gordon in https:
24864         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
24866 2016-09-07  Jim Meyering  <meyering@fb.com>
24868         getprogname-tests: work also when EXEEXT is nonempty
24869         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
24870         * tests/test-getprogname.c (main): Use it.
24871         Suggested by Gisle Vanem.
24873 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
24875         getprogname: fix errors in previous change
24876         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
24877         s/program_invocation_name/base/
24878         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
24880 2016-09-08  Pádraig Brady  <P@draigBrady.com>
24882         parse-datetime: restrict debug output to input string
24883         * lib/parse-datetime.y (parse_datetime2): If we parse
24884         all of the input but determine it's invalid, ensure
24885         we don't output the now invalid input pointer.
24886         This issue was seen with `date -d 'now +1'`.
24888 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24890         flexmember: new macro FLEXALIGNOF
24891         * lib/flexmember.h: Include <stddef.h>, for offsetof.
24892         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
24893         this macro.  Update comments.
24895 2016-09-07  Jim Meyering  <meyering@fb.com>
24897         getprogname: port to systems with __argv (mingw, msvc)
24898         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24899         last_component: more general than open coding it with hard-coded "/".
24900         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24901         * modules/getprogname (Depends-on): Add dirname-lgpl.
24902         (configure.ac): Check for __argv in <stdlib.h>.
24903         * modules/getprogname-tests: New file.
24904         * tests/test-getprogname.c: New file.
24905         Suggested by Gisle Vanem in
24906         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24908 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24910         flexmember: port better to GCC + valgrind
24911         With a char[] flexible array member in a struct with nontrivial
24912         alignment, GCC-generated code can access past the end of the
24913         array, because GCC assumes there are padding bytes to get the
24914         struct aligned.  So the common idiom of malloc (offsetof (struct
24915         s, m), n) does not properly allocate an n-byte trailing member, as
24916         malloc’s argument should be the next multiple of alignof (struct s).
24917         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24918         Although C11 apparently permits this GCC optimization (i.e., there
24919         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24920         See the thread containing:
24921         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24922         * lib/flexmember.h: New file.
24923         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24924         * lib/localename.c, lib/time_rz.c:
24925         Include flexmember.h.
24926         * lib/fnmatch_loop.c (struct patternlist):
24927         * lib/localename.c (struct hash_node):
24928         Use FLEXIBLE_ARRAY_MEMBER.
24929         * lib/fnmatch_loop.c (EXT):
24930         * lib/fts.c (fts_alloc):
24931         * lib/glob.c (glob_in_dir):
24932         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24933         * lib/localename.c (gl_lock_define_initialized):
24934         * lib/time_rz.c (tzalloc):
24935         Use FLEXSIZEOF instead of offsetof.
24936         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24937         Check that the size of the struct can be taken.
24938         * modules/flexmember (Files): Add lib/flexmember.h.
24939         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24940         Add flexmember.
24942 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24944         getprogname: port to Solaris 10
24945         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24946         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24947         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24949         stdalign: correct mistake in alignof doc
24950         Problem reported by Joseph Myers in:
24951         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24952         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24953         alignof(S) where S is a structure containing a flexible array
24954         member.  The Gnulib substitute does not support this, but C11 does.
24956 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24958         main.mk: remove sc_program_name, since there is no more need to
24959         use set_program_name in tools (getprogname is enough for most
24960         of the cases).
24961         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24962         * top/maint.mk (sc_program_name): Remove.
24964 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24966         Port tests away from progname, since modules that need the
24967         program name already depend on getprogname.
24968         * modules/acl-tests (Depends-on): Remove progname.
24969         * modules/argmatch (Depends-on): Likewise.
24970         * modules/argmatch-tests (Depends-on): Likewise.
24971         * modules/argp-tests (Depends-on): Likewise.
24972         * modules/argp-version-etc-tests (Depends-on): Likewise.
24973         * modules/array-list-tests (Depends-on): Likewise.
24974         * modules/array-oset-tests (Depends-on): Likewise.
24975         * modules/avltree-list-tests (Depends-on): Likewise.
24976         * modules/avltree-oset-tests (Depends-on): Likewise.
24977         * modules/avltreehash-list-tests (Depends-on): Likewise.
24978         * modules/carray-list-tests (Depends-on): Likewise.
24979         * modules/copy-file-tests (Depends-on): Likewise.
24980         * modules/exclude-tests (Depends-on): Likewise.
24981         * modules/fchownat-tests (Depends-on): Likewise.
24982         * modules/fdopendir-tests (Depends-on): Likewise.
24983         * modules/filenamecat-tests (Depends-on): Likewise.
24984         * modules/fstatat-tests (Depends-on): Likewise.
24985         * modules/fstrcmp-tests (Depends-on): Likewise.
24986         * modules/linked-list-tests (Depends-on): Likewise.
24987         * modules/linkedhash-list-tests (Depends-on): Likewise.
24988         * modules/mkdirat-tests (Depends-on): Likewise.
24989         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24990         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24991         * modules/obstack-printf-tests (Depends-on): Likewise.
24992         * modules/openat-tests (Depends-on): Likewise.
24993         * modules/parse-datetime-tests (Depends-on): Likewise.
24994         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24995         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24996         * modules/quotearg-simple-tests (Depends-on): Likewise.
24997         * modules/quotearg-tests (Depends-on): Likewise.
24998         * modules/rbtree-list-tests (Depends-on): Likewise.
24999         * modules/rbtree-oset-tests (Depends-on): Likewise.
25000         * modules/rbtreehash-list-tests (Depends-on): Likewise.
25001         * modules/spawn-pipe-tests (Depends-on): Likewise.
25002         * modules/system-quote-tests (Depends-on): Likewise.
25003         * modules/uniname/uniname-tests (Depends-on): Likewise.
25004         * modules/uninorm/nfc-tests (Depends-on): Likewise.
25005         * modules/uninorm/nfd-tests (Depends-on): Likewise.
25006         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
25007         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
25008         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
25009         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
25010         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
25011         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
25012         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
25013         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
25014         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
25015         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
25016         * modules/unlinkat-tests (Depends-on): Likewise.
25017         * modules/version-etc-tests (Depends-on): Likewise.
25018         * modules/xalloc-die-tests (Depends-on): Likewise.
25019         * modules/xmemdup0-tests (Depends-on): Likewise.
25020         * modules/xprintf-posix-tests (Depends-on): Likewise.
25021         * modules/xvasprintf-tests (Depends-on): Likewise.
25022         * tests/test-argmatch.c: Do not include progname.h.
25023         (main) Stop calling set_program_name.
25024         * tests/test-argp-version-etc.c: Likewise.
25025         * tests/test-argp.c: Likewise.
25026         * tests/test-argv-iter.c: Likewise.
25027         * tests/test-array_list.c: Likewise.
25028         * tests/test-array_oset.c: Likewise.
25029         * tests/test-avltree_list.c: Likewise.
25030         * tests/test-avltree_oset.c: Likewise.
25031         * tests/test-avltreehash_list.c: Likewise.
25032         * tests/test-carray_list.c: Likewise.
25033         * tests/test-copy-acl.c: Likewise.
25034         * tests/test-copy-file.c: Likewise.
25035         * tests/test-exclude.c: Likewise.
25036         * tests/test-fchownat.c: Likewise.
25037         * tests/test-fdopendir.c: Likewise.
25038         * tests/test-filenamecat.c: Likewise.
25039         * tests/test-fstatat.c: Likewise.
25040         * tests/test-fstrcmp.c: Likewise.
25041         * tests/test-linked_list.c: Likewise.
25042         * tests/test-linkedhash_list.c: Likewise.
25043         * tests/test-mkdirat.c: Likewise.
25044         * tests/test-nonblocking-pipe-main.c: Likewise.
25045         * tests/test-nonblocking-socket-main.c: Likewise.
25046         * tests/test-obstack-printf.c: Likewise.
25047         * tests/test-openat.c: Likewise.
25048         * tests/test-parse-datetime.c: Likewise.
25049         * tests/test-pipe-filter-gi1.c: Likewise.
25050         * tests/test-pipe-filter-gi2-main.c: Likewise.
25051         * tests/test-pipe-filter-ii1.c: Likewise.
25052         * tests/test-pipe-filter-ii2-main.c: Likewise.
25053         * tests/test-quotearg-simple.c: Likewise.
25054         * tests/test-quotearg.c: Likewise.
25055         * tests/test-rbtree_list.c: Likewise.
25056         * tests/test-rbtree_oset.c: Likewise.
25057         * tests/test-rbtreehash_list.c: Likewise.
25058         * tests/test-sameacls.c: Likewise.
25059         * tests/test-set-mode-acl.c: Likewise.
25060         * tests/test-spawn-pipe-main.c: Likewise.
25061         * tests/test-system-quote-main.c: Likewise.
25062         * tests/test-unlinkat.c: Likewise.
25063         * tests/test-version-etc.c: Likewise.
25064         * tests/test-xalloc-die.c: Likewise.
25065         * tests/test-xfprintf-posix.c: Likewise.
25066         * tests/test-xmemdup0.c: Likewise.
25067         * tests/test-xprintf-posix.c: Likewise.
25068         * tests/test-xvasprintf.c: Likewise.
25069         * tests/uniname/test-uninames.c: Likewise.
25070         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25071         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25072         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25073         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25074         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25075         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25076         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25077         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25078         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25079         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25080         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25081         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25082         * tests/test-c-stack.c: (program_name): Do not define.
25083         (main): Do not set program_name.
25084         * tests/test-closein.c: Likewise.
25085         * tests/test-xstrtol.c: Likewise.
25086         * tests/test-yesno.c: Likewise.
25088 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
25090         Port modules to use getprogname explicitly, instead of requiring
25091         progname to be used (or program_name to be provided).
25092         * lib/argmatch.c: Do not include progname.h.
25093         [TEST] (program_name): Do not define.
25094         [TEST] (main): Call getprogname instead of using program_name.
25095         * lib/c-stack.c: Do not include progname.h.
25096         (program_name): Do not define.
25097         (die): Call getprogname instead of using program_name.
25098         * lib/chdir-long.c: Do not include progname.h.
25099         [TEST_CHDIR] (main): Do not set program_name.
25100         * lib/error.c [!_LIBC]: Include progname.h.
25101         [!_LIBC] (program_name): Define using getprogname.
25102         * lib/euidaccess.c: Do not include progname.h.
25103         [TEST] (main): Do not set program_name.
25104         * lib/git-merge-changelog.c: Include getprogname.h instead of
25105         progname.h.
25106         (usage): Call getprogname instead of using program_name.
25107         (main): Likewise.  Stop calling set_program_name.
25108         * lib/group-member.c: Do not include progname.h.
25109         [TEST] (main): Do not set program_name.
25110         * modules/argmatch (Depends-on): Add getprogname.
25111         * modules/c-stack (Depends-on): Likewise.
25112         * modules/error (Depends-on): Likewise.
25113         * modules/git-merge-changelog (Depends-on): Likewise.
25114         Also remove progname.
25116 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
25118         * NEWS: Document the deprecation of the 'progname' module.
25120 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
25122         getprogname: new module
25123         This provides a LGPL module for getting the name of the current
25124         program, using the same API found on *BSD systems.
25125         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
25126         * modules/getprogname: New files.
25127         * MODULES.html.sh (Misc): Add getprogname.
25129 2016-09-02  Jim Meyering  <meyering@fb.com>
25131         manywarnings: add -fno-common
25132         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
25133         to the list.  Quoting the manual, "Compiling with -fno-common is
25134         useful on targets for which it provides better performance, or if
25135         you wish to verify that the program will work on other systems that
25136         always treat uninitialized variable declarations this way [putting
25137         it in the data section]."  If diffutils had been using this sooner,
25138         it would have prevented this duplicate declaration issue:
25139         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
25141 2016-08-31  Simon Josefsson  <simon@josefsson.org>
25143         parse-datetime: Fix typo.
25144         * lib/parse-datetime.y (parse_datetime2): Fix typo.
25146 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
25148         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
25149         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
25150         GCC 5 and 6 that have __builtin_sub_overflow but not
25151         __builtin_sub_overflow_p.  With the recent changes, these
25152         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
25153         implementation than with INT_SUBTRACT_OVERFLOW implementation,
25154         since the former needs just one runtime comparison whereas the
25155         latter needs two.
25157         strverscmp: sync with glibc
25158         Although this doesn't exactly synchronize with glibc
25159         byte-for-byte, it makes the code behave the same as glibc.
25160         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
25161         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
25162         difference shouldn't matter in practical use.  All uses changed
25163         back to isdigit.
25164         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
25165         (next_state): Now unsigned char array; redo elements.
25166         (result_type): Now signed char array; redo elements.
25167         (__strverscmp): Fix glibc bug 9913 by using new states.
25168         * tests/test-strverscmp.c (main): Test glibc bug 9913.
25170 2016-08-29  Jim Meyering  <meyering@fb.com>
25172         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
25173         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
25174         similarly to how it was done to intprops.h.
25176 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
25178         intprops.h: port recent changes to GCC 6.2.0
25179         * lib/intprops.h (__has_builtin): Move earlier.
25180         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
25181         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
25182         the last argument can be null.  All uses changed.
25183         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
25184         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
25185         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
25186         and it's not clear which GCC versions it works for.
25187         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
25188         its definiens.
25190         intprops.h: use __typeof__ with GCC 7
25191         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
25192         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
25193         This avoids computing the expression's value (which might overflow!).
25195 2016-08-29  Jim Meyering  <meyering@fb.com>
25197         intprops.h, xalloc-oversized.h: work with gcc 7
25198         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
25199         __builtin_mul_overflow each accept a NULL pointer as the third
25200         argument.  However in gcc 7, that is no longer accepted.
25201         Instead, one must use the "_p"-suffixed names, with which, the
25202         third parameter is no longer a pointer.
25203         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
25204         the definition: not true for gcc 7 and subsequent.
25205         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
25206         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
25207         Provide new definitions for gcc 7 and subsequent.
25208         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
25209         that works with gcc-7.
25211         intprops.h: fix missing-backslash problems
25212         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
25213         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
25215 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25217         intprops: fix paren typo on old platforms
25218         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
25219         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
25220         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
25221         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
25222         && !defined LLONG_MAX]:
25223         Remove stray paren.
25225         intprops: port to OpenVMS
25226         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
25227         * doc/posix-headers/limits.texi: Document the problem.
25228         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
25229         Define if not already defined.
25231 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
25233         parse-datetime: improve debug implementation
25234         Follow-up to commit 12ad79069 ("add optional debug printing").
25235         Improve parse-datetime's debug implementation: remove macros,
25236         replace global debug flag variable with a function parameter,
25237         use nstrftime for formatting.
25238         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
25239         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
25240         (parse_datetime2): New function, accepts 'flags' parameter, supporting
25241         debug flag. Existing interface 'parse_datetime' left unmodified.
25242         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
25243         (struct parser_control): add 'parse_datetime_debug' member variable.
25244         (parse_datetime): Call new function 'parse_datetime2' without debug.
25245         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
25246         pc.parse_datetime_debug variable as needed.
25247         (to_year): Accept new flags parameter, instead of using global variable.
25248         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
25249         use struct 'debug' variable instead of global variable.
25250         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
25251         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
25252         correspnding functions directly instead of using macros.
25253         * modules/parse-datetime: Add gnulib's strftime module.
25255 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
25257         c-strcase-tests: port to EBCDIC
25258         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
25259         which assume ASCII encoding semantics to run only in ASCII
25260         mode, as they fail in EBCDIC.
25262         sigpipe-tests: fix typo
25263         * tests/test-sigpipe.sh: C, not B.
25265 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25267         canonicalize-lgpl: fix errno after malloca fails
25268         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
25269         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
25270         * lib/canonicalize-lgpl.c (__realpath):
25271         Don't assume malloca sets errno on failure.
25273 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25275         strtod: port errno handling to z/OS
25276         * lib/strtod.c (strtod): Save and restore errno more reliably.
25278 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
25280         strtod: port to z/OS
25281         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
25282         implementation.
25284 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25286         strtod: port to z/OS
25287         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
25288         implementation.
25290         regex, string: rename to avoid '__string'
25291         * lib/regex.h, lib/string.in.h: Do not use the identifier
25292         '__string', as it is effectively reserved by string.h on z/OS.
25294         c-strcase-tests, wcwidth-tests: depend on c-ctype
25295         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
25296         Add c-ctype.
25298 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
25300         thread: port to z/OS
25301         * lib/glthread/thread.c, lib/glthread/thread.h:
25302         Rudimentary gl_thread support for z/OS.
25304         maint: port tests to z/OS errno behavior
25305         * tests/test-nonblocking-reader.h:
25306         * tests/test-nonblocking-writer.h:
25307         Accommodate z/OS errno code preferences. (I believe this should
25308         still be within spec; IBM is good at following the letter if not
25309         the spirit of such things.)
25311         maint: preprocessor changes to support z/OS
25312         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
25313         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
25314         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
25315         * tests/test-nonblocking-pipe.h:
25317         fclose, strstr-simple, wchar: port to z/OS
25318         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
25319         Changes to the Autoconf M4 code to support z/OS.  Note that
25320         fclose() is broken in a different way on z/OS than it is on other
25321         systems, thus the special-case in fclose.m4.
25323         iconv_open-utf-tests, iconv-tests: port to EBCDIC
25324         * tests/test-iconv-utf.c, tests/test-iconv.c:
25325         Added appropriately conditional #pragmas so that the test strings
25326         in test-iconv-utf.c are correctly interpreted in ASCII instead of
25327         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
25328         addressed in a more portable way by simply rewriting all the ASCII
25329         literal characters as octal escapes, but then you would lose the
25330         partial readability that the strings have now. Also, iconv_open()
25331         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
25333         c-strcase-tests, wcwidth-tests: port to EBCDIC
25334         * tests/test-c-strcasecmp.c: Include c-ctype.h.
25335         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
25336         * tests/test-wcwidth.c: Likewise.
25338 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25340         stdbool: don't require _Bool for C++
25341         Problem reported by David Seifert in:
25342         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
25343         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
25344         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
25345         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
25346         stricter about checking that bool and _Bool are compatible in C.
25348 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25350         getdelim: remove dependency on realloc-posix
25351         * lib/canonicalize-lgpl.c (alloc_failed)
25352         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
25353         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
25354         Use __set_errno where needed, for consistency.
25355         * lib/getdelim.c (alloc_failed): New function.
25356         (getdelim): Use it.
25358 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
25360         parse-datetime: add optional debug printing
25361         Print parsing information, warnings, and errors to stderr.
25362         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
25363         * lib/parse-datetime.y:
25364         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
25365         (PROGRESS*): Same as DEBUG, for progress reporting.
25366         (dbg_printf): Print message to stderr, with 'date' prefix.
25367         (struct parser_control): Add 'debug_*_seen' variables.
25368         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
25369         (debug_print_current_time, debug_print_relateive_time): Prints the
25370         current/relative date/time value of parser_control.
25371         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
25372         (to_year): Warn about 2-digit year parsing.
25373         (yylex):   Warn about unrecognized words.
25374         (get_effective_timezone): Returns current timezone in minutes.
25375         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
25376         clearly and unambigiously as possible.
25377         (debug_mktime_not_ok): Print detailed information about failed
25378         date/time values.
25379         (parse_datetime): Add DEBUG messages for failures, warnings. Add
25380         PROGRESS messages for status messages.
25381         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
25383 2016-08-06  Jim Meyering  <meyering@fb.com>
25385         tests/init.sh: exclude dash with bad "local" semantics
25386         * tests/init.sh (gl_shell_test_script_): Add a function to
25387         eliminate a shell like "dash" (unlike bash, zsh) that has
25388         surprising/risky "local var='...'" semantics.  Inspired by
25389         the problem and discussion in https://bugs.gnu.org/24116#11.
25391 2016-08-02  Ján Tomko  <jtomko@redhat.com>
25393         maint.mk: expand the prohibit_doubled_word regex
25394         This check has a static list of words that are checked for
25395         repetitions.  Expand it before running the perl script to
25396         avoid using expensive captures.  This decreases the cost
25397         for libvirt from 1.66s to 0.66s.
25398         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
25399         (sc_prohibit_doubled_word): Use it.
25401 2016-07-26  Ján Tomko  <jtomko@redhat.com>
25403         useless-if-before-free: skip non-matching lines early
25404         * build-aux/useless-if-before-free: First match each line with the
25405         simple/quick /\bif\b/ and reject if there is no match. This often
25406         saves the cost of the much more involved regular expression.
25407         For libvirt, this decreases the cost from 1.44s to 1.02s.
25409 2016-07-26  Ján Tomko  <jtomko@redhat.com>
25411         maint.mk: speed up sc_po_check
25412         sc_po_check would skip files based on their names, or on the
25413         existence of files with derived names. Rewrite it to use perl
25414         instead of shell to make the check faster.
25415         * top/maint.mk (perl_translatable_files_list_): Define.
25416         (sc_po_check): Use it.
25418 2016-07-30  Ján Tomko  <jtomko@redhat.com>
25420         maint.mk: speed up require_config_h_first
25421         Instead of spawning three processes per file,
25422         rewrite the check in perl and run it once for all the files.
25423         * top/maint.mk (perl_config_h_first_): Define.
25424         (sc_require_config_h_first): Use it in place of shell code.
25426 2016-07-26  Ján Tomko  <jtomko@redhat.com>
25428         maint.mk: speed up sc_po_check
25429         sc_po_check would skip files based on their names, or on the
25430         existence of files with derived names. Rewrite it to use perl
25431         instead of shell to make the check faster.
25432         * top/maint.mk (perl_translatable_files_list_): Define.
25433         (sc_po_check): Use it.
25435 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25437         obstack: pacify GCC 6 with -Wnull-dereference
25438         Problem reported by Assaf Gordon in:
25439         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
25440         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
25441         Declare with __attribute_noreturn__.
25442         * lib/obstack.h (__attribute_noreturn__): New macro.
25444 2016-07-13  Eric Blake  <eblake@redhat.com>
25446         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
25447         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
25448         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
25450 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
25452         doc: mention glibc SSIZE_MAX buglet
25453         * doc/posix-headers/limits.texi (limits.h): Document the bug.
25455 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
25457         printf-posix: Fix mingw build
25458         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
25459         expression for detecting C symbol prefixes but forgot to qoute square
25460         brackets in the command line arguments for grep.  That way when
25461         building with mingw the condition was false although it ought to be
25462         true instead.  In particular scenarios this led to the following
25463         compile error:
25465             Cannot export rpl_printf: symbol not found
25466             Cannot export rpl_scanf: symbol not found
25467             collect2: error: ld returned 1 exit status
25469         Fix this by properly quoting square brackets.
25471 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25473         mktime: call tzset as per POSIX
25474         Problem reported by Ludovic Courtès in:
25475         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
25476         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
25477         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
25479 2016-06-26  Pádraig Brady  <P@draigBrady.com>
25481         fts: handle readdir() errors
25482         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
25483         but also upon error when it will also set errno.  Therefore
25484         flag the error case from readdir().  We treat the case where
25485         no items are read the same as if the dir can't be accessed,
25486         i.e. by setting fts_errno to FTS_DNR.
25488 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
25490         intprops: port better to GCC 7
25491         GCC 7 __builtin_add_overflow supports a new usage form, where the
25492         last argument is a null pointer, and which merely returns 1 if an
25493         overflow would occur.  This is a constant expression if all
25494         arguments are constants, and should generate faster code when code
25495         needs to be generated.
25496         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
25497         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
25498         Use builtin operations if available.
25499         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
25500         operations are available, as it's almost surely faster.
25502 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
25504         intprops-test: port to GCC 6
25505         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
25506         since the bug is not fixed in GCC 6.1.
25508 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
25510         xalloc-oversized: port to GCC 7; fewer warnings
25511         GCC 7 will have a better way to deal with integer overflow.
25512         Plus, fix a warnings problem reported by Tim Ruehsen in:
25513         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
25514         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
25515         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
25516         For GCC 5, use __xalloc_oversized if both args are constants,
25517         or if pedantic.
25519 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
25521         regex: port to Sun C
25522         Reported by Daiki Ueno.
25523         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
25524         __restrict, in prototype.  This fixes a problem I introduced in
25525         the 2016-02-19 merge from glibc.
25527 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25529         stdbool: Restore __bool_true_false_are_defined check
25530         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
25531         __bool_true_false_are_defined is still defined, even with C++11.
25533 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
25535         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
25536         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
25538 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25540         Use GCC_LINT, not lint
25541         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
25542         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
25543         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
25544         Document problem with lint and _Noreturn.
25545         * lib/diffseq.h (IF_LINT, IF_LINT2):
25546         * lib/fts.c (sccsid):
25547         * lib/getndelim2.c (IF_LINT):
25548         * lib/gl_anylinked_list2.h (gl_linked_iterator)
25549         (gl_linked_iterator_from_to):
25550         * lib/gl_anytree_list2.h (gl_tree_iterator)
25551         (gl_tree_iterator_from_to):
25552         * lib/gl_anytree_oset.h (gl_tree_iterator):
25553         * lib/gl_array_list.c (gl_array_iterator)
25554         (gl_array_iterator_from_to):
25555         * lib/gl_array_oset.c (gl_array_iterator):
25556         * lib/gl_carray_list.c (gl_carray_iterator)
25557         (gl_carray_iterator_from_to):
25558         * lib/idcache.c:
25559         * lib/inet_ntop.c (IF_LINT):
25560         * lib/regcomp.c (build_charclass_op, create_tree):
25561         * lib/regex_internal.c (re_acquire_state)
25562         (re_acquire_state_context):
25563         * lib/trigl.c (rcsid):
25564         * lib/trim.c (IF_LINT):
25565         * lib/vasnprintf.c (IF_LINT):
25566         * lib/verify.h (assume):
25567         Treat GCC_LINT like lint.
25569 2016-05-29  Bruno Haible  <bruno@clisp.org>
25571         secure_getenv: Port to many more platforms.
25572         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
25573         functions.
25574         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
25575         for non-BSD Unix platforms and for native Windows.
25576         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
25577         Prompted by a request from Nikos Mavrogiannopoulos.
25579 2016-05-27  Eric Blake  <eblake@redhat.com>
25581         canonicalize: Fix broken probe for realpath.
25582         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
25583         in logic introduced in 54615b95.
25585 2016-05-26  Eric Blake  <eblake@redhat.com>
25587         unsetenv: relax to LGPLv2+
25588         * modules/unsetenv (License): Match setenv license.
25590 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
25592         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
25593         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
25594         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
25595         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
25596         (commonarg, dirargs, dirs, infoarg, generate_ascii)
25597         (generate_html, generate_info, generate_tex, outdir)
25598         (source_extra, split, srcfile, texarg): Move above 'version'.
25599         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
25601 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25603         manywarnings: update for GCC 6.1
25604         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
25605         Add GCC 6.1 options that apply to C.
25606         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
25607         do not apply to C, are obsolescent, etc.
25609 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
25611         glob: size_t overflow checks
25612         * lib/glob.c (__has_builtin): New macro.
25613         (size_add_wrapv, glob_use_alloca): New static functions.
25614         (glob, glob_in_dir): Check for size_t overflow in several places,
25615         and fix some size_t checks that were not quite right.
25617         glob: don't assume INT_MAX < SIZE_MAX
25618         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
25619         latter is not portable to (probably theoretical) hosts where
25620         SIZE_MAX <= INT_MAX.
25622 2016-05-09  Bruno Haible  <bruno@clisp.org>
25624         Fix undefined behaviour in gettext.h.
25625         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
25626         pointer's value after the storage it points to has been freed.
25627         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
25628         Spotted by Coverity.
25630 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
25632         git-version-gen: avoid undefined shift
25633         Problem reported by Mosè Giordano in:
25634         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
25635         * build-aux/git-version-gen: Avoid undefined behavior if invoked
25636         with --prefix or --fallback but without a later argument.  While
25637         we're at it, omit unnecessary quotes.
25639 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
25641         glob: merge glibc changes into lib/glob.c
25642         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
25643         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
25644         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
25645           struct dirent [BZ #19779]
25646         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
25647           callback gl_readdir
25648         2015-10-20 Convert miscellaneous function definitions to prototype style
25649         2015-10-20 Convert 113 more function definitions to prototype style
25650           (files with assertions)
25651         2015-06-12 Fix getlogin_r namespace (bug 18527).
25652         2014-02-10 Use glibc_likely instead __builtin_expect.
25653         2013-10-20 When glob pattern contains a trailing slash match only
25654           directories. Fixes bug 10278.
25655         2013-09-04 glob: silence -Wattribute warnings
25656         2013-06-07 Avoid use of "register" as optimization hint.
25657         2012-09-25 Use size_t instead of int for internal variables in glob
25658           (bug 14621)
25659         2011-07-20 Check for overflows in expressions
25660         2011-05-28 Remove unused variable
25661         2011-05-22 Add a few more alloca size checks
25662         2010-03-27 Whitespace fixes
25663         2010-03-27 Fix one more issue with the glob patch
25664         2010-03-24 Fix glob with empty pattern
25665         2008-05-27 Remove useless more "if" tests before "free"
25666         * modules/glob (Depends-on): Add stdint.
25668 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25670         mktime: port to stricter signed overflow checking
25671         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
25672         (long_int): Require width for INT_MAX * 3 * (seconds per year),
25673         instead of merely for INT_MAX * 2.  In practice platforms that
25674         do the latter also do the former.
25675         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
25676         (shr): New static function, replacing SHR.  All uses changed.
25677         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
25678         and TIME_T_MAX.  All uses changed.
25679         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
25680         Use long_int, not time_t.
25681         (long_int_avg): New static function, replacing time_t_avg.
25682         All uses changed.  Round toward positive infinity, as that
25683         generates slightly better code.
25684         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
25685         by INT_ADD_WRAPV.
25686         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
25687         (convert_time): New static function.
25688         (ranged_convert): Use it
25689         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
25690         Use simpler test for loop exit.
25691         (__mktime_internal): Store negative of guessed offset, to simplify
25692         overflow checking.  Remove no-longer-needed test for small time_t
25693         overflows.
25695         mktime: speed up DEBUG_MKTIME benchmarks
25696         Call tzset just once, at the start, rather than for every test
25697         case.  This lets us measure the CPU cost of mktime as opposed to
25698         that of tzset.  This is relevant when TZ is not set and glibc is
25699         being used.  This speeds up tests by a factor of 40 on my Fedora
25700         23 x86-64 platform.
25701         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
25702         to call tzset and as a sanity check.  Later on, use localtime_r
25703         instead of localtime.
25705         mktime: resurrect DEBUG_MKTIME testing
25706         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
25707         Include <string.h>, for strcmp.
25709         mktime: simplify DEBUG_MKTIME
25710         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
25711         Simplify later usage accordingly.
25713         Port mktime_internal offset to unsigned time_t
25714         This avoids some assumptions about wraparound arithmetic on
25715         signed integer overflow.
25716         * lib/mktime-internal.h (mktime_offset_t): New type.
25717         (mktime_internal): Use it in decl.
25718         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
25720         * lib/mktime.c (__mktime_internal, localtime_offset):
25721         * lib/timegm.c (timegm): Use it.
25722         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
25723         (gl_FUNC_MKTIME): Require it.
25725 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
25727         xstrtol: prohibit monstrosities like "1bB"
25728         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
25729         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
25730         "B" only if the first suffix needs a base.
25731         * tests/test-xstrtol.sh: Test this.
25733 2016-04-21  Pádraig Brady  <P@draigBrady.com>
25735         xstrtod: reinstate setting of *result upon ERANGE
25736         * lib/xstrtod.c (XSTRTOD): The user may decide to use
25737         the returned limits upon ERANGE, so allow and document that.
25739 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
25741         xstrtod: modify *result only if no errors
25742         * lib/xstrtod.c (XSTRTOD).
25744 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25746         btowc: document problems in C locale
25747         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
25748         with mbrtowc.  See: http://bugs.gnu.org/23269#32
25750 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25752         mktime: improve integer overflow checking
25753         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
25754         (WRAPV): Remove; no longer needed.
25755         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
25756         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25757         Remove.  Use intprops.h defns instead.
25758         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
25759         Use bool for Boolean, for clarity.
25760         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
25761         detect integer overflow.
25762         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
25764         intprops: check two's complement assumption
25765         Suggested by Eric Blake in:
25766         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
25767         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
25768         short, int, long, and (if available) long long are two's complement.
25769         * modules/intprops (Depends-on): Add 'verify'.
25771         intprops, mktime, strtol: assume two's complement
25772         These macros were not portable to every conforming C11 ones'
25773         complement platform.  It's not worth the hassle of porting to some
25774         platforms that use ones' complement or signed magnitude, as such
25775         platforms are almost purely theoretical nowadays and porting even
25776         to some of them makes the code harder to review for little
25777         practical benefit.  Problem reported by Florian Weimer in:
25778         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
25779         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25780         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
25781         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
25782         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25783         (TYPE_SIGNED_MAGNITUDE):
25784         Remove.  All uses rewritten to assume two's complement, which is
25785         all we can reasonably test nowadays anyway.
25786         * top/maint.mk (_intprops_names): Remove the removed macros.
25788 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25790         stdint: port to strict C11 left shift
25791         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
25792         Pacify clang -Wshift-negative-value, which should be an issue only
25793         on clang setups where stdint.h does not conform to C11 or to C++11.
25794         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
25796 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
25798         mbrtowc: work around glibc bug#19932
25799         Fix mbrtowc so that it never returns -1 in the C locale,
25800         as this conflicts with a future version of POSIX
25801         http://austingroupbugs.net/view.php?id=663#c2738
25802         and causes problems with GNU grep: http://bugs.gnu.org/23234
25803         See glibc bug 19932:
25804         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
25805         * doc/posix-functions/mbrlen.texi (mbrlen):
25806         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25807         Document the glibc bug.
25808         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
25809         Include hard-locale.h, locale.h.
25810         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
25811         if the bug is possible.
25812         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
25813         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
25814         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
25815         * modules/mbrtowc (Depends-on): Add hard-locale.
25816         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
25817         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
25818         * tests/test-mbrtowc5.sh: New file.
25820 2016-04-03  Pedro Alves  <palves@redhat.com>
25822         stdint: detect good enough pre-C++11 stdint.h in C++ mode
25823         When gnulib is configured in C++ mode for a system with a working C99
25824         implementation of stdint.h that predates C++11, gnulib ends up
25825         substituting stdint.h anyway.  This works on most targets, but on e.g.,
25826         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
25827         MinGW is LLP64.  Instead of trying to detect the right types, detect
25828         good-enough-pre-C++11 stdint.h and in such case define
25829         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
25830         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
25831         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
25832         conforms to C99.  If it does, check whether it hides symbols
25833         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
25834         does, define those macros in config.h.
25836 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25838         argp: merge changes from glibc
25839         Among other things, this should fix problems found by a Coverity
25840         scan and reported by Andrei Borzenkov:
25841         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
25842         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
25843         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
25844         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
25845         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
25846         * lib/argp.h:
25847         Merge changes from glibc.
25848         * tests/test-argp-2.sh: Adjust to match new behavior.
25850 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
25852         stddef: support configuring with g++
25853         Problem reported by Ángel González in:
25854         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
25855         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
25856         Do not define if _GCC_MAX_ALIGN_T is defined.
25858 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25860         test-framework-sh: minor cleanups
25861         * tests/init.sh (testdir_prefix_): Output a trailing newline,
25862         since strictly speaking POSIX requires this.
25863         (setup_): Do not use the variable 'fail', as that makes the
25864         trace output harder to read ('fail' is typically used by
25865         tests to mean the test failed).  Treat // portably.
25866         Check that new directory is not merely a sibling of the tmp dir.
25867         Avoid unnecessary invocation of tr.
25869         test-framework-sh: revert port to NetBSD 7.0
25870         It was a false alarm; I misinterpreted Assaf Gordon's report.
25871         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25872         Restore.
25873         (test_dir_): Adjust to mktempd_ change.
25874         (mktempd_): Restore 2nd arg.  Use -t again.
25875         (base_template_, template_, nx_): Resurrect old code.
25877         Port better to Alpine Linux
25878         Its diff implementation does not support -c, but does support -U3.
25879         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25880         * tests/init.sh (diff_opt_): New var.
25881         (compare_): Prefer diff -U3 to diff -c to plain diff.
25883 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25885         test-framework-sh: port to NetBSD 7.0
25886         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25887         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25888         Remove.  All uses removed.
25889         (test_dir_): Adjust to mktempd_ change.
25890         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
25891         (base_template_, template_, nx_): Simplify by hardcoding.
25893 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25895         gitlog-to-changelog: suppress ignored chatter
25896         * build-aux/gitlog-to-changelog: Do not warn about skipping
25897         an SHA if it would have been ignored anyway.
25899 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25901         setlocale: add "sv" to Windows language table
25902         * lib/setlocale.c (language_table) [W32]: Add "sv".
25903         Reported in <https://savannah.gnu.org/bugs/?44588>.
25905 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25907         sys_select: port to new Cygwin
25908         Problem reported by Ken Brown in:
25909         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25910         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25911         diagnostics.
25913 2016-03-17  Jim Meyering  <meyering@fb.com>
25915         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25916         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25917         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25918           test-userspec.c:176:9: error: statement is indented as if it were \
25919             guarded by... [-Werror=misleading-indentation]
25920                    {
25921                    ^
25922           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25923                  if (!diag && !T[i].result)
25924                  ^~
25926 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25928         time_rz: port to clang -Wunused-const-variable
25929         * lib/time_rz.c (TZ): Remove.  All uses removed.
25931         std-gnu11: improve clang support
25932         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25933         2016-03-15 Also try clang
25934         2016-03-15 Port C11 and C++11 testing to clang
25936         select: port more to Intel 2016.1.150 compiler
25937         Problem reported by Balázs Hajgató in:
25938         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25939         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25941 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25943         select: try to port to 2016.1.150 compiler
25944         Problem reported by Balázs Hajgató in:
25945         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25946         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25947         POSIX specifies 'restrict'.
25949 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25951         localename-tests: memory allocation fixes
25952         * tests/test-localename.c (test_locale_name)
25953         (test_locale_name_thread): Don't call freelocale on a locale
25954         that was the base of a successful newlocale, as that
25955         results in a double free.  Problem reported by Assaf Gordon.
25956         (test_locale_name_thread): Free saved names after use, to pacify
25957         gcc -fsanitize=address.
25959 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25961         intprops: make .h file license match module
25962         * lib/intprops.h: Change the license wording to match glibc format.
25963         This is what is in modules/intprops anyway.  See:
25964         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25966 2016-03-08  Eric Blake  <eblake@redhat.com>
25968         acl: fix missing return on Cygwin
25969         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25970         fall off end of function. Fixes http://bugs.gnu.org/22949
25972 2016-03-05  Bruno Haible  <bruno@clisp.org>
25974         extern-inline: port to PGI CC
25975         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25976         keyword 'inline'.
25977         Reported by Adam James Stewart in:
25978         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25980 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25982         signbit: port back to pre-C++11 GCC
25983         * lib/math.in.h (signbit): Do previous change only if
25984         __cplusplus < 201103.  See Jonathan Wakely in:
25985         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25987 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25989         mountlist: recognize autofs-mounted remote file systems, too
25990         Originally reported at: https://bugzilla.redhat.com/1309247
25991         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25992         "-hosts" because it is used by autofs to mount remote file systems.
25994 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25996         signbit: port to C++ with GCC 6
25997         * lib/math.in.h (signbit) [__cplusplus]:
25998         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25999         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
26001         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
26003         regex: make it closer to libc
26004         Make Idx a signed type, rather than possibly unsigned.
26005         The unsignedness was not really buying us anything, since the code
26006         overflows for other reasons before getting to PTRDIFF_MAX.  Making
26007         it signed allows us to use -1 and -2 with abandon, like libc does,
26008         thus lessening the number of differences between gnulib and libc.
26009         Also, it should help avoid gratuitous warnings like the one
26010         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
26011         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
26014         regex: merge patches from libc
26016         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
26017         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
26018         Convert miscellaneous function definitions to prototype style.
26019         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
26020         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
26021         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
26022         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
26023         (re_search_internal):
26024         Convert to prototype-style function definition.
26025         Use internal_function for internal functions.
26027 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
26029         stdalign: port to older HP and IBM cc
26030         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
26031         C compilers, by checking their version numbers.  These version
26032         numbers appear in MariaDB and in Qt code that dates way back and
26033         that conditiionally uses the 'aligned' attribute.
26035 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26037         stdalign: port to clang 3.7.0
26038         Problem reported by Herbert J. Skuhra in:
26039         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
26040         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
26041         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
26042         https://llvm.org/bugs/show_bug.cgi?id=26547
26044 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
26046         readdir_r: now obsolescent
26047         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
26048         * lib/mountlist.c (read_file_system_list): Add a FIXME.
26050 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
26052         misc: port better to gcc -fsanitize=address
26053         Without these patches, ./configure CFLAGS='-fsanitize=address'
26054         would compute incorrect values.  This patch fixes some (but not all)
26055         test failures with recent glibc, with this configuration.
26056         * m4/acl.m4 (gl_ACL_GET_FILE):
26057         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
26058         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
26059         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
26060         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
26061         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
26062         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
26063         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
26064         * m4/getline.m4 (gl_FUNC_GETLINE):
26065         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
26066         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
26067         * m4/regex.m4 (gl_REGEX):
26068         * m4/strndup.m4 (gl_FUNC_STRNDUP):
26069         * tests/test-calloc-gnu.c (main):
26070         * tests/test-duplocale.c (main):
26071         * tests/test-getgroups.c (main):
26072         * tests/test-getline.c (main):
26073         * tests/test-inttostr.c (main):
26074         * tests/test-localename.c (test_locale_name)
26075         (test_locale_name_thread, test_locale_name_environ)
26076         (test_locale_name_default):
26077         * tests/test-regex.c (main):
26078         * tests/test-setlocale1.c (main):
26079         * tests/test-stat.h (test_stat_func):
26080         Free heap-allocated storage before exiting.
26081         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
26082         Don't match *_foo symbols inserted by AddressSanitizer.
26083         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
26085 2016-02-02  Jim Meyering  <meyering@fb.com>
26087         verify-tests: also remove stray test-verify.Tpo
26088         * modules/verify-tests (Makefile.am): Arrange for "make clean"
26089         to remove the test-verify.Tpo file that is left behind by
26090         the automake-generated rule upon compilation failure.
26091         Otherwise, that .Tpo file would cause a failed "make distcheck"
26092         at least for grep.
26094 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
26096         std-gnu11: new module
26097         This makes it easier for applications to prefer C11 and C++11
26098         to older variants, when compiling C and C++ code.
26099         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
26100         a nontrivial chunk of GPLed Autoconf source code.
26101         * COPYING: Mention the m4/*.m4 copyright situation.
26102         * MODULES.html.sh (std-gnu11): New module.
26103         * m4/std-gnu11.m4, modules/std-gnu11: New files.
26105 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26107         get-permissions, strftime: fix grammar in comments
26108         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
26109         some grammar fixes Alan Mackenzie made to GNU Emacs.
26111 2016-01-25  Daiki Ueno  <ueno@gnu.org>
26113         gettext: mark as obsolete
26114         Suggested by Paul Eggert in:
26115         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
26116         * modules/gettext (Status): Mark as obsolete.
26117         (Notice): Suggest to use 'gettext-h' instead.
26118         * modules/gettext-h (Description): Suggest GNU gettext, instead of
26119         the 'gettext' module.
26121 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
26123         gnulib-tool: don't give up on ln -s so easily
26124         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
26125         because an earlier one failed.  The targets could be on different
26126         file systems.  Problem reported by KO Myung-Hun in:
26127         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
26129         closedir: fix OS/2-related typos
26130         Problem reported by KO Myung-Hun in:
26131         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
26132         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
26133         in the last couple of changes.
26135 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
26137         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
26138         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
26139         copying a directory.
26141 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
26143         regex: treat [x] as x if x is a unibyte encoding error
26144         Problem reported by Aharon Robbins in:
26145         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
26146         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
26147         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
26149         closedir, dirfd, opendir: port to OpenSolaris 5.10
26150         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
26151         * m4/dirfd.m4 (gl_FUNC_DIRFD):
26152         * m4/opendir.m4 (gl_FUNC_OPENDIR):
26153         Don't use ${word##pat} substitution, as it doesn't work in
26154         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
26155         http://bugs.gnu.org/22443#11
26157 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26159         bootstrap: use American spelling
26160         * build-aux/bootstrap: Honor American spelling.
26162 2016-01-22  Karl Berry  <karl@freefriends.org>
26164         * doc/posix-functions/localtime.texi,
26165         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
26167 2016-01-21  Bruno Haible  <bruno@clisp.org>
26169         hash-pjw-bare: fix comment
26170         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
26172         wcwidth: Replace also on OpenBSD 5.8
26173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
26174         * doc/posix-functions/wcwidth.texi: Update.
26176 2016-01-20  Pádraig Brady  <P@draigBrady.com>
26178         gnu-web-doc-update: fix addition of new files
26179         If there were already added (emnpty) dirs,
26180         then cvs aborts the add with the message:
26181           cvs [add aborted]: there is a version in <./dirname> already
26182         * build-aux/gnu-web-doc-update: Add directories separately
26183         to the addition of files, to avoid the above issue
26184         impacting the addition of files.
26186 2016-01-19  Daiki Ueno  <ueno@gnu.org>
26188         utimens-tests: avoid pulling gettext .m4 files
26189         Although this is not the right fix to the original problem:
26190         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
26191         it makes it possible again for consumer projects to use arbitrary
26192         version of gettext, through the steps described at:
26193         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
26194         See here for details:
26195         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
26196         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
26197         'gettext'.
26198         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
26199         'gettext'.
26201 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26203         regex: pacify static checkers
26204         Problem and draft fix reported by Aharon Robbins in:
26205         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
26206         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
26207         Clear memory to pacify static checkers.
26209         regex: fix [ diagnostic
26210         Problem and fix reported by Aharon Robbins in:
26211         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
26212         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
26214         regex: fix memory leaks
26215         Problem and draft fix reported by Aharon Robbins in:
26216         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
26217         * lib/regcomp.c (build_range_exp, build_charclass_op)
26218         * lib/regex_internal.c (re_dfa_add_node):
26219         Fix memory leak on failure.
26221 2016-01-18  Pádraig Brady  <P@draigBrady.com>
26223         fts: don't unconditionally use leaf optimization for NFS
26224         NFS st_nlink are not accurate on all implementations,
26225         leading to aborts() if that assumption is made.
26226         See <https://bugzilla.redhat.com/1299169>
26227         * lib/fts.c (leaf_optimization_applies): Remove NFS from
26228         the white list, and document the issue.
26230 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26231             KO Myung-Hun  <komh@chollian.net>
26233         gnulib-tool: don't assume ln -s works
26234         * gnulib-tool (func_ln_s): New function.
26235         (func_ln): Use it.
26237 2016-01-15  KO Myung-Hun  <komh@chollian.net>
26239         utimes: detect utimes() correctly on OS/2 kLIBC
26240         utimes() of OS/2 kLIBC has some limitations.
26241         1. OS/2 itself supports a file date since 1980 year in local time.
26242         2. OS/2 itself supports only even seconds for a file time.
26243         3. utimes() of OS/2 kLIBC does not work on an opened file.
26244         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
26245         * doc/posix-functions/utimes.texi: Document the above limitations of
26246         utimes() on OS/2 kLIBC.
26248 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26249             KO Myung-Hun  <komh@chollian.net>
26251         openat_proc_name: port to OS/2 kLIBC
26252         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
26253         instead of /proc/self/fd.
26254         * lib/openat-proc.c (openat_proc_name):
26255         Don't assume file name length is less than INT_MAX.
26256         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
26258 2016-01-14  KO Myung-Hun  <komh@chollian.net>
26260         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
26261         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
26262         definitions of intptr_t and uintptr_t (which use int and unsigned)
26263         to avoid clashes with declarations of system functions like sbrk.
26264         * lib/stdint.in.h (intptr_t, uintptr_t): Check
26265         _INTPTR_T_DECLARED before defining them.
26267         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
26268         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
26269         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
26270         Declare on kLIBC.
26271         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
26272         fd associated with dirp.
26273         (_gl_register_dirp_fd): New. Register fd associated with dirp to
26274         dirp_fd_list.
26275         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
26276         (dirfd): Implemented for kLIBC.
26277         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
26278         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
26279         succeeds.
26280         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
26281         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26282         (REPLACE_DIRFD): Define to 1 if replaced.
26283         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
26284         * modules/closedir (Depends-on): Add dirfd.
26285         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
26286         condition.
26287         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
26288         * modules/opendir (Depends-on): Add dirfd.
26290         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
26291         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
26292         * lib/dup.c (dup_nothrow): New.
26293         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
26294         (klibc_dup2): New.
26295         * lib/fcntl.c (klibc_fcntl): New.
26296         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
26297         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
26298         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
26299         fd.
26301         pipe_filter_ii_execute: port to OS/2 kLIBC
26302         Pipes on kLIBC do not support O_NONBLOCK like Win32.
26303         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
26304         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
26305         Reuse Win32 code on OS/2 kLIBC.
26306         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
26307         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
26309         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
26310         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
26311         static inline function.  The implementation of wcwidth in wcwidth.c
26312         causes a "conflicting types" error.
26313         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
26315         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
26316         spawn() on OS/2 kLIBC is not silly like one on Windows
26317         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
26318         empty string on OS/2 kLIBC.
26320         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
26321         On OS/2 kLIBC, select() works only on sockets.
26322         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
26324         binary-io: don't put fd in binary mode if it is a console on EMX
26325         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
26326         a console on EMX.
26328 2016-01-15  Pádraig Brady  <P@draigBrady.com>
26330         doc: mention unfixed issues with unsupported localtime() values
26331         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
26332         returns nonsense for localtime(2^56).
26333         * doc/posix-functions/localtime_r.texi: Likewise.
26335 2016-01-14  Pádraig Brady  <P@draigBrady.com>
26337         doc: mention setlocale() issues on OpenBSD
26338         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
26339         never fails, and the need to check categories individually.
26341 2016-01-14  Pádraig Brady  <P@draigBrady.com>
26343         sig2str: list all signals on FreeBSD >= 7
26344         FreeBSD >= 7 is contravening POSIX by not defining NSIG
26345         to the maximal statically defined signal value.
26346         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
26347         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
26348         where available, even when NSIG is defined.
26350 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
26352         acl-permissions: port to USE_ACL==0 platforms
26353         I ran into this problem when building bleeding-edge GNU Emacs
26354         with gcc -fsanitize=address on Fedora 23.  On this platform
26355         the ACL library does not pass the 'configure' test and Emacs
26356         then does not build due in part to what appear to be typos in the
26357         ACL part of Gnulib.
26358         * lib/acl-internal.c (free_permission_context):
26359         * lib/acl-internal.h (struct permission_context):
26360         Test whether USE_ACL is nonzero, not whether it is defined.
26362 2016-01-12  Martin Sebor  <msebor@redhat.com>
26364         mktime: rename macro to avoid glibc clash
26365         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
26366         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
26368 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
26370         Port "$@" to OpenIndiana ksh93
26371         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
26372         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
26373         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
26374         bug long-dead shells, so remove the workaround.
26375         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
26376         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
26377         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
26378         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
26379         Use "$@" instead of ${1+"$@"}.
26381         Port Universal Time settings to strict POSIX
26382         * build-aux/announce-gen, build-aux/bootstrap:
26383         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
26384         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
26385         * build-aux/gnupload, build-aux/mkinstalldirs:
26386         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
26387         * build-aux/update-copyright, build-aux/useless-if-before-free:
26388         * build-aux/vc-list-files, tests/test-strftime.c:
26389         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
26390         but POSIX says the behavior of TZ="UTC" is undefined.
26392 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26394         msvc-inval: fix problem with unset shell var
26395         Problem reported by Karl Berry in:
26396         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
26397         * modules/msvc-inval (Depends-on):
26398         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
26399         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
26401 2016-01-01  Pádraig Brady  <P@draigBrady.com>
26403         tests: for compare_(), use cmp -s where available
26404         * tests/init.sh (compare_): Only fall back to cmp without
26405         the POSIX defined -s option, where this is not available.
26407 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26409         version-etc: new year
26410         * build-aux/gendocs.sh (version):
26411         * doc/gendocs_template:
26412         * doc/gendocs_template_min:
26413         * doc/gnulib.texi:
26414         * lib/version-etc.c (COPYRIGHT_YEAR):
26415         Update copyright dates by hand in templates and the like.
26416         * all files: Run 'make update-copyright'.
26418 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
26420         human: fix output buffer overrun by 1
26421         * lib/human.c (human_readable): Fix off-by-one typo in buffer
26422         calculation that could lead to a one-byte buffer overrun.
26424 2015-12-28  Daiki Ueno  <ueno@gnu.org>
26426         maint: fix operator precedence in mbrtowc test
26427         This is a fix for test breakage introduced by commit 45228d96; the
26428         equality expression must be parenthesized when negated with '!',
26429         otherwise we always get:
26431           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
26433         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
26434         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26436 2015-12-23  James Youngman  <jay@gnu.org>
26438         regexprops-generic: update from regex.h
26439         * doc/regexprops-generic.texi: update by running the regexprops binary
26440         from findutils (the command line is 'regexprops "Regular Expressions"
26441         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
26442         gnulib with GNU grep had made this document out-of-date.
26444 2015-12-23  Pádraig Brady  <P@draigBrady.com>
26446         strftime-tests: avoid false failure on OS X
26447         * tests/test-strftime.c (struct localtime_rz_test): Add an
26448         ahistorical member which is used to warn rather than fail
26449         when tm_isdst isn't set for such entries.  This is the case for
26450         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
26452 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
26454         fts: ensure leaf optimization is used for NFS
26455         NFS provides usable dirent.d_type but not necessarily for all entries
26456         of large directories.  See <https://bugzilla.redhat.com/1252549>
26457         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
26459 2015-12-20  Pádraig Brady  <P@draigBrady.com>
26461         fts: enable leaf optimization for XFS
26462         XFS provides usable dirent.d_type only for DT_DIR,
26463         but the noleaf optimization still applies.
26464         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
26466 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
26468         intprops: comment fix
26469         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
26470         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
26472         intprops-test: work around GCC bug 68971
26473         Problem reported by Pádraig Brady in:
26474         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
26475         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
26476         (main): Add a case that better tests 64-bit long in this area.
26478 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
26480         gnulib-tool: allow multiple --local-dir usage
26481         * gnulib-tool: Use --local-dir to construct compound
26482         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
26483         PATH_SEPARATOR early.
26484         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
26485         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
26486         func_determine_path_separator because that needs to be detected
26487         earlier now.
26488         (func_determine_path_separator): New function.
26489         (func_path_foreach, func_path_foreach_inner): New functions.
26490         (func_path_prepend, func_path_append): Likewise.
26491         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
26492         (func_lookup_file, func_all_modules): Use new functions to work
26493         with local_gnulib_path.
26494         (func_modules_in_dir, func_exists_module): New callbacks for
26495         func_path_foreach.
26496         (func_exists_module, func_get_tests_module): Likewise.
26497         (func_is_local_file, func_should_symlink): New helper methods.
26498         (func_add_file, func_update_file): Use new func_should_symlink
26499         instead, DRY.
26500         (func_reconstruct_cached_local_gnulib_path): New helper.
26501         (func_reconstruct_cached_dir): New callback.
26502         (func_import): The cached_local_gnulib_dir renamed to
26503         cached_local_gnulib_path similarly to local_gnulib_dir.
26504         Use new func_reconstruct_cached_local_gnulib_path.
26505         (func_count_relative_local_gnulib_path): New sub-method.
26506         (func_create_testdir): Use func_should_symlink, DRY.
26507         (func_create_megatestdir): Use new functions to work with
26508         local_gnulib_path correctly.
26509         (func_append_local_dir): New helper.
26511 2015-12-08  Pádraig Brady  <P@draigBrady.com>
26513         fix freadptr to work with ungetc on all uClibc configs
26514         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
26515         where GNU coreutils cut(1) generates invalid output on uClibc
26516         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
26517         * lib/freadptr.c (freadptr): Return NULL if there are
26518         ungotten chars.  In this case freadseek() will iterate
26519         again to process the ungotten character.
26521 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
26523         xalloc-oversized: improve performance with GCC 5
26524         * lib/xalloc-oversized.h (xalloc_oversized):
26525         Improve performance with GCC 5 by using __builtin_mul_overflow.
26527 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26529         intprops: new public macro EXPR_SIGNED
26530         Emacs can use this macro, so make it public.
26531         * doc/intprops.texi (Arithmetic Type Properties): Rename from
26532         'Integer Type Determination', since some of these macros apply
26533         to non-integer types.  Clarify what kinds of constant expressions
26534         these macros return.  Say when the arguments can be non-integers.
26535         Mention newly published macro EXPR_SIGNED.
26536         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
26537         make it public.  All uses changed.
26539         intprops: fix typo in clang port
26540         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
26541         '__builtin_add_overflow' that is not caught by compiler.
26543 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26545         test-timespec: fix typo in previous change
26546         * tests/test-timespec.c (main): Fix typo that reduced test quality.
26548         timespec-sub: fix overflow bug; add tests
26549         * lib/timespec-add.c (timespec_add):
26550         * lib/timespec-sub.c (timespec_sub):
26551         Work even if time_t is narrower than int (a theoretical
26552         possibility).  Redo code for a bit more clarity.
26553         * lib/timespec-sub.c (timespec_sub):
26554         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
26555         * modules/timespec-tests, tests/test-timespec.c: New files.
26557         intprops-test: suppress -Woverlength-strings
26558         Problem reported by Pádraig Brady in:
26559         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
26560         It is not worth the hassle to port this test to compilers that
26561         cannot handle long strings in diagnostics.
26562         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
26564 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26566         quotearg: add quotearg_n_style_colon()
26567         This quotes with default options of the specified style,
26568         but with quoting enabled for instances of ':'.
26569         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
26570         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
26572 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26574         intprops: revise _WRAPV macros, revert _OVERFLOW
26575         The incompatible changes to the _OVERFLOW macros were too much of
26576         a hassle in practice, so revert them.  Instead, change the new
26577         _WRAPV macros to make them closer in behavior to GCC 5's new
26578         builtin_add_overflow etc. functions.  No other software was using
26579         these newly-added macros yet, so this should be OK.
26580         * NEWS: Revert previous change, since the incompatible change
26581         has been reverted, and nobody used the incompatible version.
26582         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
26583         Document revised behavior.
26584         (Integer Range Overflow): Adjust example to match above revisions.
26585         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
26586         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
26587         these can be used in integer constant expressions again.
26588         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
26589         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
26590         needed.
26591         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26592         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26593         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
26594         Remove, as they did not seem that useful.
26595         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
26596         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
26597         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
26598         Support new semantics.
26599         (__has_builtin): New macro, if not alreay defined.
26600         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
26601         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26602         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26603         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26604         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
26605         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
26606         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
26607         New macros.
26608         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
26610 2015-11-03  Jim Meyering  <meyering@fb.com>
26612         intprops: add parentheses for when OP has precedence lower than "-"
26613         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
26614         "a OP b" must be parenthesized for when OP is like "<<", which has
26615         lower precedence than the following "-". Reported by Pádraig Brady.
26617 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26619         quotearg: constify get_quoting_style parameters
26620         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
26621         * lib/quotearg.c (get_quoting_style): Likewise.
26623 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26625         quotearg: add support for $'' shell escaping
26626         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
26627         items and descriptions.
26628         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
26629         above types by quoting like "shell", but using $'...' syntax
26630         for non printable characters, which should provide unambiguous
26631         printable output for any input.
26632         * tests/test-quotearg-simple.c: Update accordingly.
26634 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26636         maint: use a more standard return from mbrtowc test
26637         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
26638         from the test program as this is non standard and often
26639         indicates an unhandled case in the test program.
26640         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26642 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26644         intprops: add WRAPV and const flavors for GCC 5
26645         If available, use GCC 5's builtin functions for efficient integer
26646         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
26647         and safely compute the low-order bits of the correct answer.
26648         A downside of these efficient functions is that they cannot be
26649         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
26650         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
26651         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
26652         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
26653         Document the changes.
26654         (Wraparound Arithmetic): New section.
26655         (Integer Range Overflow):
26656         Put this subsection last, since it's least useful.
26657         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
26658         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
26659         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
26660         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26661         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26662         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
26663         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
26664         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
26665         New macros.
26666         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
26667         Generate calls to GCC builtins if available, for speed.
26668         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26669         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26670         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26671         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
26672         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
26673         (CHECK_QUOTIENT, CHECK_REMAINDER):
26674         Test WRAPV and CONST flavors (when available) too.
26676 2015-10-30  Pádraig Brady  <P@draigBrady.com>
26678         doc: use extended timezone format in iso-8601 example
26679         * doc/parse-datetime.texi: The standard states that extended format
26680         is to be used consistently throughout.
26681         Note that lib/parse-datetime.y can handle either tz format.
26683 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26685         stdalign: port to Sun C 5.9
26686         * doc/posix-headers/stdalign.texi: Document this.
26687         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
26688         __attribute__ ((__aligned__ (...))).
26690 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26692         time_rz: fix comment about tzalloc
26693         * lib/time_rz.c (tzalloc): Fix comment.
26695 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26697         stdalign: work around pre-4.9 GCC x86 bug
26698         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
26699         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
26700         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
26702 2015-10-18  Pádraig Brady  <P@draigBrady.com>
26704         maint.mk: sc_tight_scope: remove extraneous expressions
26705         * top/maint.mk (tight_scope): This is not really required since
26706         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
26707         that matches all nm entries.  But it does remove extraneous entries
26708         that may be confusing or cause issue in future maintenance.
26710 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26712         time_rz: return NULL if localtime_r fails
26713         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
26714         while still attempting to pacify bleeding-edge GCC.
26716         fts: port to C11 alignof
26717         * doc/posix-headers/stdalign.texi (stdalign.h):
26718         Document the C11 restriction.
26719         * lib/fts.c: Include stddef.h, for max_align_t.
26720         (fts_alloc): Align using max_align_t, not FTSENT.
26721         * modules/fts (Depends-on): Add stddef.
26723 2015-10-18  Jim Meyering  <meyering@fb.com>
26725         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
26726         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
26727         would see this:
26729         lib/time_rz.c: In function 'localtime_rz':
26730         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
26731           [-Werror=nonnull]
26732                    if (tm && !save_abbr (tz, tm))
26733                        ^
26735         That was complaining about "tm" because it is a parameter that was
26736         declared with the __nonnull__ attribute.
26737         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
26738         result of localtime_r.
26740 2015-10-17  Jim Meyering  <meyering@fb.com>
26742         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
26743         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
26744         name-extraction regexp mistakenly used \S+, and would mistakenly
26745         extract "*F" from "extern int *F()" rather than the desired "F".
26746         Use \w+ instead.
26748 2015-10-17  Jim Meyering  <meyering@fb.com>
26750         maint.mk: sc_tight_scope: factor and support OS X
26751         * top/maint.mk (_gl_tight_scope): Address three issues:
26752         - factor out four instances of code that wraps a string in "^...$"
26753         - allow nm-reported symbol names to have an optional leading "_"
26754         - add "main" to the list of ignored variable names, because on os x,
26755         "main" has nm-reported type "S" in the variable-checking section.
26757 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
26759         safe-alloc-tests: fix typo in license header
26760         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
26762 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
26764         copy-file: fix mem leak in error case
26765         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
26766         upon error opening or performing I/O to the src and dest files.
26768 2015-10-15  Mike Frysinger  <vapier@chromium.org>
26770         localename: control langinfo.h inclusion
26771         This header is only used to work around buggy behavior in old
26772         versions of glibc, so do not include it all the time.  Otherwise
26773         we get build failures on systems that do not provide langinfo.h.
26774         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
26775         in the source later on.
26776         The patch was originally submitted to gettext as:
26777         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
26779 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26781         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
26782         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
26783         * lib/u64.c, lib/unistd.c:
26784         Append 'typedef int dummy;', to pacify compilers that are picky
26785         about empty translation units.
26787 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
26789         accept4-tests: fix to avoid non portable flags
26790         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
26791         as they are the only documented ones, and passing others may trigger
26792         EINVAL (seen on FreeBSD 10.1-RELEASE).
26793         * doc/glibc-functions/accept4.texi: Mention that we don't provide
26794         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
26796 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
26798         gnulib-tool: fix tests of 'extensions' module
26799         This complements f8fe25fab60e3c687a124 commit.
26800         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
26801         emitting of initial gl_EARLY macros.
26802         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
26803         replaced with func_emit_pre_early_macros call.
26805 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26807         unicase/locale-language: fix typo in utf-8 cookie
26808         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
26809         Problem reported by Zbigniew Jędrzejewski-Szmek.
26811 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26813         xalloc: do not worry about GCC 5 warning on 32 bit
26814         * lib/xalloc.h: Revert previous change.
26815         I found a better way to fix this in coreutils.
26817 2015-10-02  Pádraig Brady  <P@draigBrady.com>
26819         xalloc: avoid GCC 5.1 warning on 32 bit
26820         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
26821         xalloc_oversized(), which was seen to give this warning
26822         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
26823         when simplifying conditional".
26825 2015-10-02  Daiki Ueno  <ueno@gnu.org>
26827         uniname/uniname-tests: avoid compiler warnings
26828         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
26829         unused local variables.
26830         (test_alias_lookup): Fix alias name display in failure cases.
26832 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26834         c-ctype: do not worry about EBCDIC + char signed
26835         Drop support for EBCDIC with char being signed, as this breaks too
26836         many programs.  Problem reported by Ben Pfaff in:
26837         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
26838         * lib/c-ctype.h: Verify that we are not using EBCDIC with
26839         char being signed.
26840         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
26841         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
26842         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
26843         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
26844         * tests/test-c-ctype.c (test_all):
26845         Simplify by assuming standard char values cannot be negative.
26846         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
26848 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26850         c-ctype: port better to z/OS EBCDIC
26851         Problems reported by Daniel Richard G. in:
26852         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
26853         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
26854         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
26855         (_C_CTYPE_OTHER_CNTRL): New macro.
26856         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
26857         from SCHAR_MIN, as the functions are defined only from values
26858         promoted from char or from unsigned char, not necessarily from
26859         signed char.
26861 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
26863         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
26865         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
26866         and ARFLAGS variables.  Doing this unconditionally could break
26867         later Automake's AM_PROG_AR invocation (at least it's
26868         AC_CHECK_TOOLS call to detect correct 'ar' binary).
26870         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
26871         Amsterdam Compiler Kit, so make the previous code to have effects
26872         only on ACK, and rather automatically call the Automake's
26873         AM_PROG_AR as soon as possible to decide other cases.
26875         References:
26876         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
26878         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
26879         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
26880         is possible, keep setting AR/ARFLAGS to reasonable defaults.
26881         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
26882         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
26883         'extensions' module is used.
26884         * modules/extensions (configure.ac-early): Remove as this snippet
26885         is added to gnulib-comp.m4 earlier anyway.
26887 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26889         sockets: MS Windows initalization fixes
26890         Problem reported by Test User in:
26891         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
26892         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
26893         Correct the endianness.
26894         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26895         number mismatch, not just on <.  Cleanup before any such failure.
26897 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26899         gc: fix detection of installed libgcrypt version
26900         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26901         at least as recent as 1.4.4.  The previously used macro is not
26902         available now, since modules were removed in version 1.6.0.
26904 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26906         c-ctype: rewrite to use inline functions
26907         This simplifies maintenance, since it makes for just one
26908         implementation of each function, letting the compiler have the fun
26909         of optimization.  In practice this works well nowadays with GCC.
26910         E.g., c_isascii might need only three instructions even though the
26911         source code lists every ASCII character individually in a large
26912         switch statement.
26913         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26914         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26915         * NEWS: Document the API change.
26916         * lib/c-ctype.c: Drastically simplify, since this now just expands
26917         inline functions.
26918         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26919         (C_CTYPE_INLINE): New macro.
26920         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26921         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26922         Verify that either ASCII or EBCDIC is being used.
26923         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26924         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26925         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26926         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26927         New private macros.
26928         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26929         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26930         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26931         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26932         (c_tolower, c_toupper): When converting, return the unsigned char,
26933         as that is what z/OS does.
26934         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26935         of some c-ctype.h macros.
26936         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26937         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26938         c_tolower promotion to be compatible with z/OS.
26940 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26942         gitlog-to-changelog: trim only trailing whitespaces
26943         This is fix for --format regression introduced by commit
26944         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26945         doubled %n string) had no effect anymore.  This format
26946         specification has been used e.g. by GNU paxuitils (commit
26947         edfd8bcc3).
26949         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26950         newlines in commmit messages.
26952 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26954         Test that c_iscntrl agrees with iscntrl, etc.
26955         Suggested by Daniel Richard G. in:
26956         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26957         * modules/c-ctype-tests (Depends-on): Add ctype.
26958         * tests/test-c-ctype.c: Include <ctype.h>.
26959         (NCHARS): New constant.
26960         (test_agree_with_C_locale): New function.
26961         (main): Use it.
26962         (test_all): Use named constants.
26964         c-ctype: improve c_isascii testing
26965         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26966         Add a test to count the number of ASCII characters.
26968 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26970         savewd: remove SAVEWD_CHDIR_READABLE
26971         It was problematic in the light of file systems that ignore umask.
26972         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26973         * NEWS: Document this.
26974         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26975         successful, -1 (setting errno) on failure, rather than something
26976         more complicated than that.
26977         * lib/mkdir-p.c (make_dir_parents):
26978         Do not use SAVEWD_CHDIR_READABLE.
26979         * lib/savewd.c (savewd_chdir):
26980         Remove support for SAVEWD_CHDIR_READABLE.
26981         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26983         c-ctype: port better to EBCDIC
26984         Problems reported by Daniel Richard G. in
26985         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26986         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26987         Include "verify.h".
26988         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26989         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26990         Define as enum constants with value false, if not defined, so that
26991         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26992         code more portable, as both branches of the 'if' are compiled on
26993         all platforms.
26994         (C_CTYPE_EBCDIC): New constant.
26995         Verify that the character set is either ASCII or EBCDIC.
26996         (to_char): New static function.
26997         (c_isascii, c_iscntrl):
26998         Assume standard control-character assignments for EBCDIC.
26999         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
27000         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
27001         Rewrite to use 'if' instead of 'ifdef'.
27002         Use to_char if non-ASCII.  Prefer <= to >=.
27003         Prefer true and false to 1 and 0, for booleans.
27004         (c_iscntrl): Use 'if', not 'ifdef'.
27005         * modules/c-ctype (Depends-on): Add verify.
27006         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
27007         (to_char): New function.
27008         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
27010 2015-09-21  Pádraig Brady  <P@draigBrady.com>
27012         nanosleep: fix return code for interrupted replacement
27013         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
27014         that we return -1 in the case the call is interrupted by a signal,
27015         rather than the current value of 1.
27016         Diagnosed and tested by Daniel Richard G.
27018 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
27020         Diagnose ERE '()|\1'
27021         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
27022         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
27023         track of the set of previously-completed subexpressions available
27024         before the first alternative, and restore this set just before
27025         parsing each subsequent alternative.  This lets us diagnose the
27026         invalid back-reference in the ERE '()|\1'.
27028         regex: merge patches from libc
27030         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
27031         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
27032         * lib/regex_internal.h:
27033         Include <libc-lock.h> instead of <bits/libc-lock.h>.
27035         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
27036         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
27037         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
27038         wcscoll.
27039         * lib/regexec.c (check_node_accept_bytes): Likewise.
27041         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
27042         Fix regex wcrtomb namespace (bug 18496).
27043         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
27044         instead of wcrtomb.
27046         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
27047         Fix regex wctype namespace (bug 18495).
27048         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
27049         instead of towlower.
27050         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
27051         instead of iswlower.  Call __towupper instead of towupper.
27052         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
27053         instead of iswalnum.
27055         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
27056         * lib/regcomp.c (parse_bracket_exp): Initialize type to
27057         COLL_SYM in a couple of places to avoid uninitialized variable
27058         wanings on tilegx gcc 4.8.2.
27060         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27061         * lib/regex_internal.h: Remove NOT_IN_libc.
27063         2014-11-17  Andreas Schwab  <schwab@suse.de>
27064         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
27066         2014-09-11  Roland McGrath  <roland@hack.frob.com>
27067         Move findidx nested functions to top-level.
27068         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
27069         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27070         Pass new arguments to findidx.
27071         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27072         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27073         Don't #include it inside the function.  Pass new arguments to findidx.
27074         * lib/regex_internal.h:
27075         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27076         (re_string_elem_size_at): Don't #include it inside the function.
27077         Pass new arguments to findidx.
27079         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27080         Check if DEBUG is defined in regex_internal.c
27081         * lib/regex_internal.c: Check if DEBUG is defined and is set.
27083 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
27085         ceill: detect buggy OpenBSD implementation
27086         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
27087         which returns zero for small values.  Discussed here:
27088         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
27090 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
27092         mountlist: add me_mntroot field on Linux machines
27093         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
27094         mount_entry so Linux machines based on /proc/self/mountinfo can
27095         distinguish between bind mounts and original mounts.  In reality bind
27096         mounts aren't treated differently than mountroot=/ mounts by the
27097         kernel, but the user often wants these bind mounts distinguished.
27098         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
27099         More details at https://pad.lv/1432871
27101 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
27103         doc: Describe to use multiple instances of gnulib
27104         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
27105         instances of gnulib with different modules can be used, for example one
27106         for a lib and another one for associated tools.
27108 2015-09-01  Pádraig Brady  <P@draigBrady.com>
27110         base32: mark function as __attribute__ const
27111         * lib/base32.h (isbase32): Mark __attribute__ const as
27112         suggested by GCC, and consistent with the base64 module.
27114 2015-08-20  Daiki Ueno  <ueno@gnu.org>
27116         gnulib-tool: don't transform binary files with sed
27117         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
27118         .mo and .class files.
27119         Reported by Denis Denisov.
27121 2015-08-10  Daiki Ueno  <ueno@gnu.org>
27123         gperf: respect silent rules
27124         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
27125         V_GPERF_0 for silent rules.
27126         * modules/iconv_open (Makefile.am): Use V_GPERF.
27127         * modules/unicase/locale-language (Makefile.am): Likewise.
27128         * modules/unicase/special-casing (Makefile.am): Likewise.
27129         * modules/unictype/category-byname (Makefile.am): Likewise.
27130         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
27131         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
27132         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
27133         * modules/unictype/property-byname (Makefile.am): Likewise.
27134         * modules/unictype/scripts (Makefile.am): Likewise.
27135         * modules/uninorm/composition (Makefile.am): Likewise.
27137 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27139         Improve port of stdalign to C++11
27140         Problem reported by Sundaram in:
27141         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
27142         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
27143         (__alignas_is_defined): Define if C++11 or newer.
27145 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
27147         pmccabe2html: fix gawk regex escaping
27148         * build-aux/pmccabe2html: Add one more backslash to properly
27149         escape the gsub replacement value.  Fixes this error:
27150         gawk: ./build-aux/pmccabe2html:425: \
27151         warning: escape sequence `\&' treated as plain `&'
27153 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
27155         time_rz: port to pedantic memcpy
27156         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
27157         that reject memcpy (..., NULL, 0).
27159 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
27161         time_rz: port better to MinGW
27162         Don't change tzname, as this makes MinGW dump core (Bug#21020).
27163         Instead, store the tzname copy in the struct tm_zone object.
27164         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
27165         * lib/strftime.c [!_LIBC]:
27166         * lib/time_rz.c: Include time-internal.h.
27167         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
27168         name from *TZ rather than from TZNAME, doable because *TZ now has
27169         a tzname_copy member.
27170         * lib/time-internal.h: New file, with contents taken from
27171         lib/time_rz.c.  It's separate because strftime.c now accesses
27172         struct tm_zone members.
27173         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
27174         New member tzname_copy.
27175         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
27176         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
27177         Initialize tzname_copy member.
27178         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
27179         in tzname_copy member.
27180         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
27181         (restore_tzname): Remove; no longer needed.  All calls removed.
27182         * modules/time_rz (Files): Add lib/time-internal.h.
27184         time: port __need_time_t to MinGW
27185         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
27186         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
27188 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27190         strftime: fix newly-introduced bug on Solaris
27191         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
27192         consistently at the start, rather than doing some of the setup at
27193         the start and some in the %Z format spec.  This is cleaner, and
27194         works better with time_rz on platforms like Solaris where struct
27195         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
27196         mktime_z and localtime_rz can mess up the tzname cache.
27198         test-strftime: test for Solaris bug
27199         * modules/strftime-tests (Depends-on): Add strerror.
27200         * tests/test-strftime.c: Include <errno.h>.
27201         (posixtm_test): New function, containing the old 'main'.
27202         (struct tzalloc_test, struct localtime_rz_test): New types.
27203         (TZ, LT): New static vars.
27204         (tzalloc_test): New function.
27205         (main): Rewrite in terms of posixtm_test and tzalloc_test.
27207         time_rz: port to Solaris etc.
27208         Works around a tzname problem on platforms like Solaris that have
27209         tzname but not tm_zone, by setting tzname at the appropriate time
27210         and restoring it later.
27211         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
27212         New static vars.
27213         (save_abbr) [HAVE_TZNAME]: Set them.
27214         (revert_tz) [HAVE_TZNAME]: Clear or use them.
27215         (restore_tzname): New function.
27216         (localtime_rz, mktime_z): Use it.
27218         time_rz: now LGPL
27219         * modules/time_rz (License): Now LGPL, because strftime depends on it.
27221         time_rz: make a constant 'const'
27222         * lib/time_rz.c (local_tz): Now const.
27224         time_rz: fix off-by-one typo
27225         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
27227 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
27229         fprintftime, strftime: use timezone_t args
27230         * NEWS: Document the change.
27231         * lib/fprintftime.h (fprintftime):
27232         * lib/strftime.c (extra_args) [my_strftime]:
27233         * lib/strftime.h (nstrftime):
27234         Time zone arg is now of type timezone_t, not int.
27235         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
27236         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
27237         (my_strftime) [emacs && !my_strftime]:
27238         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
27239         Remove; Emacs doesn't need this any more.
27240         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
27241         fprintftime and nstrftime to call tzset.
27242         (ut) [!my_strftime]: Remove, replacing with ...
27243         (tz) [!my_stftime]: ... this new macro.  All uses changed.
27244         (strftime_case_): Use localtime_rz and mktime_z instead
27245         of localtime_r and mktime.
27246         * modules/fprintftime (Depends-on): Add time_rz.
27247         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
27248         * tests/test-strftime.c (main): Adjust to new nstrftime API.
27250         time_rz: new module
27251         * MODULES.html.sh: Add time_rz.
27252         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
27253         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
27254         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
27255         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
27256         New var HAVE_TIMEZONE_T (default 0).
27257         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
27258         New var GNULIB_TIME_RZ (default 0).
27259         * modules/time (time.h): Substitute the new vars.
27261         flexmember: license is now unlimited
27262         * modules/flexmember (License): Change to unlimited,
27263         since its only source file gives an unlimited license.
27265 2015-07-15  Eric Blake  <eblake@redhat.com>
27267         maint: update copyright paper procedures
27268         * config/srclist.txt: Drop outdated files.
27269         * doc/Copyright/conditions.txt: Update to latest.
27270         * doc/Copyright/assign.changes.manual: Delete.
27271         * doc/Copyright/assign.future.manual: Likewise.
27272         * doc/Copyright/assign.manual: Likewise.
27273         * doc/Copyright/assign.translation.manual: Likewise.
27274         * doc/Copyright/disclaim.changes.manual: Likewise.
27275         * doc/Copyright/disclaim.manual: Likewise.
27276         * doc/Copyright/disclaim.program: Likewise.
27278 2015-07-07  Daiki Ueno  <ueno@gnu.org>
27280         localename: fix link error on Illumos
27281         Illumos defines __sun, but does not have getlocalename_l nor the
27282         equivalent.  This partially reverts commit 387c214.
27283         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
27284         available, as well as uselocale.
27285         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
27286         use getlocalename_l if it is not available.
27288 2015-07-07  Daiki Ueno  <ueno@gnu.org>
27290         unistr/uN-strtok-tests: avoid a trivial leak
27291         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
27292         input and delim after the multibyte delimiter tests.
27294 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
27296         file-has-acl, acl-permissions: fix HP-UX typos
27297         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
27298         * lib/file-has-acl.c (file_has_acl):
27299         * lib/set-permissions.c (context_acl_from_mode)
27300         (context_aclv_from_mode, set_acls):
27301         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
27302         They were introduced by the recent ACL changes.
27304         regex: match current GNU grep behavior
27305         These symbols have not matched GNU grep behavior for quite some time.
27306         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
27307         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
27308         Change to match current GNU behavior.
27309         Simplify by expressing it as differences from POSIX BREs and EREs.
27310         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
27312 2015-07-03  Jim Meyering  <meyering@fb.com>
27314         set-permissions.c: adjust acl_from_mode's cpp guard
27315         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
27316         directives identical to those guarding the sole use.
27317         Otherwise, on some systems, we'd get a warning about
27318         the function being defined but not used.
27319         Also, filter through cppi to correct misleading indentation
27320         of cpp directives.
27322 2015-07-03  Pádraig Brady  <P@draigBrady.com>
27324         tests: restrict shells to those that support 'local'
27325         The local keyword is very widely supported and used
27326         in tests in coreutils and grep at least.  Therefore
27327         restrict to testing with shells that support it.
27328         This mainly excludes /bin/sh on Solaris.
27329         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
27331 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
27332         and Daiki Ueno  <ueno@gnu.org>
27334         unistr/uN-strtok: handle multibyte delimiters
27335         Previously, uN_strtok moved PTR to the next unit to the token end.
27336         When DELIM contained a multibyte character, the new position could
27337         be a middle of a multibyte character.
27338         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
27339         after the token.
27340         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
27341         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
27342         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
27343         * modules/unistr/u8-strtok (Depends-on): Depend on
27344         unistr/u8-strmblen.
27345         * modules/unistr/u16-strtok (Depends-on): Depend on
27346         unistr/u16-strmblen.
27347         * modules/unistr/u32-strtok (Depends-on): Depend on
27348         unistr/u32-strmblen.
27349         * tests/unistr/test-u-strtok.h: New file.
27350         * tests/unistr/test-u8-strtok.c: New file.
27351         * tests/unistr/test-u16-strtok.c: New file.
27352         * tests/unistr/test-u32-strtok.c: New file.
27353         * modules/unistr/u8-strtok-tests: New file.
27354         * modules/unistr/u32-strtok-tests: New file.
27355         * modules/unistr/u16-strtok-tests: New file.
27357 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
27359         update-copyright: fix test failure with perl >= 5.22 (trivial)
27360         * build-aux/update-copyright: Escape a literal left curly bracket,
27361         required with perl >= 5.22
27363 2015-07-02  Daiki Ueno  <ueno@gnu.org>
27365         u{16,32}-strstr-tests: relax timeout condition
27366         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
27367         tests can take longer than 5 seconds to complete.
27368         Reported by Dagobert Michelsen in:
27369         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
27370         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
27371         seconds to 10 seconds.
27372         * tests/unistr/test-u32-strstr.c (main): Likewise.
27374 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
27376         gnulib-common.m4: change the ARFLAGS default to 'cr'
27377         In some GNU/Linux distributions people started to compile 'ar'
27378         binary with --enable-deterministic-archives (binutils project).
27379         That, however, in combination with previous autotools long time
27380         working default AR{_,}FLAGS=cru causes warnings on such
27381         installations:
27382         ar: `u' modifier ignored since `D' is the default (see `U')
27383         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
27384         set already.
27386 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
27388         selinux-h: avoid double free after *getfilecon()
27389         Originally reported by Ben Shelton on bug-tar:
27390         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
27391         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
27392         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
27393         param should be freed by freecon(3) (regardless the return value).
27395 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
27397         fix pty related tests issues on Windows (trivial)
27398         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
27399         however it's still present in tests/ subdirectory of the final project.
27400         Therefore avoid it to pass `make check`.
27401         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
27402         will just return -ENOSYS, so avoid this non applicable test allowing
27403         the build to proceed.
27405 2015-07-01  Pádraig Brady  <P@draigBrady.com>
27407         acl: fix definition of acl_from_mode on FreeBSD
27408         This was causing basic coreutils copy operations to fail
27409         with ENOTSUP or ENOENT error messages.
27410         * lib/acl-internal.h (acl_from_mode): Only define when
27411         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
27412         of acl_from_mode() defined in lib/set-permissions.c to
27413         be used on FreeBSD at least.
27414         * lib/set-permissions.c: Fix up comment spelling,
27415         and a redundant variable assignment; noticed in passing.
27417 2015-06-30  Pádraig Brady  <P@draigBrady.com>
27419         readutmp: port to FreeBSD >= 9
27420         * lib/readutmp.h: Map utmpxname() to setutxdb().
27421         With that coreutils who(1) and pinky(1) tests pass.
27423 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
27425         mgetgroups: port to strict OS X
27426         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
27427         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
27428         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
27429         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
27431 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
27433         mgetgroups: port to strict OS X
27434         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
27435         Document the getgrouplist problem.
27436         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
27437         New macro.
27438         (mgetgroups): Use it.
27439         * m4/mgetgroups.m4 (gl_MGETGROUPS):
27440         Check for OS X signature for getgrouplist.
27442 2015-06-29  Jim Meyering  <meyering@fb.com>
27444         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
27445         It started like this when building coreutils' latest on OS X,
27446         invoking ./configure with a nonempty --cache=.cache:
27448           lib/linkat.c:46:42: error: operator '||' has no right operand
27449           lib/linkat.c: In function 'rpl_linkat':
27450           lib/linkat.c:330:27: error: #if with no expression
27452         Here's linkat.c's line 46:
27454           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
27456         Here's some context:
27458           $ grep linkat_nofoll .cache
27459           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
27460           $ grep LINKAT_SYM lib/config.h
27461           #define LINKAT_SYMLINK_NOTSUP
27463         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
27464         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
27465         but that violates a tenet of AC_CACHE_CHECK: it must
27466         have no side effect other than setting its cache variable.
27468         What happens is that when the cache is set, we'd skip the
27469         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
27470         defined to whatever value it happened to have in configure's
27471         environment.  In my case, it was not defined, so this later code:
27473           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
27474             [Define to 1 if linkat can create hardlinks to symlinks])
27476         would emit code with an empty RHS.
27478         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
27479         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
27481 2015-06-28  Jim Meyering  <meyering@fb.com>
27483         mountlist: avoid an unused-label warning on OS X
27484         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
27485         Building on OS X, I saw a warning about the "free_then_fail" label
27486         being unused.  Give it the _GL_UNUSED_LABEL attribute.
27488         error.c: correct printf-style format: %d -> %u
27489         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
27490         rather than %d, to match the type of "line_number", unsigned int.
27492 2015-06-25  Pádraig Brady  <P@draigBrady.com>
27494         fts: avoid reading beyond the heap allocation
27495         GCC 5.1.1 with -O2 and -fsanitize=address reports
27496         a read of size 4 from a heap object of size 3 is indeed invalid,
27497         though this may be due to incorrect padding assumptions by GCC, see:
27498         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27499         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
27500         * modules/fts: Depend on stdalign.
27502 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27504         savedir: avoid undefined behavior in qsort call
27505         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27506         "runtime error: null pointer passed as argument 1,
27507          which is declared to never be null"
27508         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
27510 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27512         userspec: avoid undefined behavior in gettext call
27513         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27514         "runtime error: null pointer passed as argument 2,
27515          which is declared to never be null"
27516         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
27518 2015-06-20  Glenn Morris  <rgm@gnu.org>
27520         gitlog-to-changelog: improve gitmerge.el commits
27521         Let the Emacs ChangeLog generation process exclude "skipped"
27522         messages from merge commits (Bug#20717).
27523         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
27525 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27527         wchar: fix MinGW compilation warnings
27528         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
27529         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
27530         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
27532 2015-06-20  Daiki Ueno  <ueno@gnu.org>
27534         uniname/uniname-tests: use pristine data files
27535         For copyright and maintenance reasons, use the data files from UCD
27536         without modification.
27537         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
27538         (getfield): Remove.
27539         (aliases_count): New global variable.
27540         (fill_names): Skip comments and empty lines in the input.  Don't
27541         use getfield.
27542         (fill_aliases): Likewise.
27543         (main): Change the expected command line arguments to:
27544         NAMES... ["--" ALIASES...].
27545         * tests/uniname/test-uninames.sh: Adjust to the change in
27546         test-uninames.c.
27547         * tests/uniname/UnicodeDataNames.txt: Remove.
27548         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
27549         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
27550         file from Unicode 8.0.0.
27552 2015-06-19  Pádraig Brady  <P@draigBrady.com>
27554         linked-list, linkedhash-list: avoid compiler warnings
27555         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27556         -Werror=suggest-attribute=pure (from GCC 5.1.1).
27558 2015-06-19  Daiki Ueno  <ueno@gnu.org>
27560         libunistring: bump minimum version to 0.9.6
27561         * all modules depending on updated Unicode data: Regenerate.
27562         The modules are listed by a script that does:
27563         - for each file listed by: git show --oneline --name-only 705f4efc
27564           - deduce the containing modules, based on "Files:"
27565         - deduce the modules which depend on the containing modules, based
27566           on "Depends-on:"
27568 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27570         uniname/uniname: update to Unicode 8.0.0
27571         * lib/uniname/uninames.h: Regenerate.
27572         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
27573         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
27575 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27577         libunistring: update to Unicode 8.0.0
27578         * lib/gen-uni-tables.c (SIZEOF): New macro.
27579         (output_numeric): Increase the maximum number of fractions from
27580         128 to 160.  Increase the level3 value width from 7 bits to 8
27581         bits.  Use SIZEOF instead of a hard-coded integer.
27582         (output_blocks): Decrease the cut-off threshold from 0x30000 to
27583         0x28000.
27584         (fill_blocks): Increase the maximum number of blocks from 256 to
27585         384.  Use SIZEOF instead of a hard-coded integer.
27586         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
27587         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
27588         value width.
27589         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
27590         a new case added to LBP22.
27591         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
27592         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
27593         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
27594         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
27595         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
27596         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27597         lib/uniwidth/width.c.
27598         * all generated files under lib/uni* and tests/uni*: Regenerate.
27600 2015-06-16  Pádraig Brady  <P@draigBrady.com>
27602         gnu-web-doc-update: add --mirror to remove stale files
27603         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
27604         out of date files from the CVS server.  Since this is usually
27605         appropriate, a prompt is given when the option is not specified,
27606         along with the `cvs remove` command that would be run.
27608 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27610         acl-permissions: pacify -Wsuggest-attribute=const
27611         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
27612         * lib/acl-internal.h (free_permission_context):
27613         Declare with attribute const if ! (defined USE_ACL &&
27614         (HAVE_ACL_GET_FILE || defined GETACL)).
27616         fsync: document AIX misbehavior
27617         * doc/posix-functions/fsync.texi (fsync):
27618         Document failure on AIX with read-only file descriptor.
27620 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
27622         stdio: Don't redefine gets when using C++
27623         * lib/stdio.in.h (gets): Disable warning on C++.
27625 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
27627         acl-permissions: port to AIX, C89 HP-UX
27628         Problems reported by Michael Felt.
27629         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
27630         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
27631         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
27632         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
27633         Add cast for AIX, whose system calls are declared to accept
27634         char * even though the arguments are really char const *.
27635         * lib/get-permissions.c (get_permissions):
27636         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
27637         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
27638         that broke a build.
27639         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
27640         Rework types to pacify xlc.
27642 2015-06-03  Pádraig Brady  <P@draigBrady.com>
27644         vasprintf-posix: avoid compiling vasnprintf where possible
27645         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
27646         module where not required.  For example on a GNU/Linux system
27647         when gnulib-tool is run with the --conditional-dependencies option.
27649 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27651         file-has-acl: fix build on Mac OS X 10
27652         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
27653         which has an incompatible 6 parameter getxattr() call.
27654         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
27655         call on Mac OS X >= 10.4.
27656         * doc/glibc-functions/fgetxattr.texi: Likewise.
27657         * lib/file-has-acl.c: Revert to more complete combined check.
27658         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
27659         Reported by Jack Howarth.
27661 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27663         prefix-gnulib-mk: remove no longer needed special case
27664         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
27665         continued lib_SOURCES lines are no longer present,
27666         so special case handling of such entries is not required.
27668 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27670         acl: don't depend on the deprecated qacl module
27671         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
27673 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27675         gnulib-tool: concatenate lib_SOURCES to a single line
27676         * gnulib-tool: Refactor the line merging sed logic,
27677         and use that to output a single lib_SOURCES line for each module.
27678         gnulib using projects often postprocess this output to prepend
27679         subdir paths to each item, and having a single line simplifies this
27680         processing allowing better decoupling from the gnulib-tool output.
27682 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
27684         pthread_sigmask: discount system version if a simple macro (trivial)
27685         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
27686         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
27687         function to ensure it's available.
27689 2015-05-31  Pádraig Brady  <P@draigBrady.com>
27691         readlinkat: avoid OS X 10.10 trailing slash bug
27692         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
27693         has this bug.
27694         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
27695         that OS X 10.10 has this function.
27696         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
27697         as done for readlink().
27698         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
27699         trailing slash bug, and assume readlinkat() has the same issue.
27700         Also fix a typo where $gl_cv_decl_readlink_works was tested,
27701         rather than the correct $gl_cv_decl_readlinkat_works.
27703 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27705         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
27706         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
27707         module rewrite.
27709         acl-permissions: Fix build on Solaris and Cygwin
27710         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
27711         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
27712         ace_entries variables have moved into struct permission_context but
27713         they were still accessed as local variables here.
27715 2015-05-29  Pádraig Brady  <P@draigBrady.com>
27717         linkat: avoid OS X 10.10 trailing slash with symlink bug
27718         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
27719         causes the symlink to be dereferenced, and if it points
27720         to a non existent file, that file will be created as
27721         a hard link to "path1".
27722         This fixes a test failure in test-linkat.c.
27723         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
27724         this case.  The existing workaround in linkat.c for
27725         trailing slash issues, suffices for this case.
27726         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
27727         the list of platforms with trailing slash issues.
27729 2015-05-28  Pádraig Brady  <P@draigBrady.com>
27731         unlinkat: handle ignoring of ".." on Darwin 14
27732         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
27733         on Mac OS X 10.10, where it ignores paths with a trailing "..",
27734         so handle in the same manner.
27735         * m4/unlinkat.m4: Comment on this Darwin issue.
27736         * doc/posix-functions/unlink.texi: Update the latest version
27737         where the issue was seen.
27738         * doc/posix-functions/unlinkat.texi: Mention this issue.
27739         Fixes a test failure in test-unlinkat.c.
27741 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27743         qacl: split into qcopy-acl and qset-acl
27744         Emacs needs the former, but not the latter.
27745         * modules/acl-permissions: New file, containing most of the old qacl.
27746         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
27747         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
27748         * modules/qcopy-acl, modules/qset-acl: New files.
27749         * MODULES.html.sh (File system functions):
27750         Mention the new modules, and mention qacl while we're at it.
27752 2015-05-27  Glenn Morris  <rgm@gnu.org>
27754         gitlog-to-changelog: new option --ignore-line
27755         (This patch is imported from the GNU Emacs master.)
27756         This option ignores individual commit lines matching a pattern.
27757         * build-aux/gitlog-to-changelog: Add --ignore-line option.
27759 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
27761         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
27762         Implement get_permissions and set_permissions primitives for getting all
27763         the permissions of a file, storing them, and later setting them. (In the
27764         minimal case, the permissions consist only of a file mode.) Reimplement
27765         qset_acl and qcopy_acl based on these new primitives: this avoids code
27766         duplication and makes error handling more consistent.
27767         The Solaris and Cygwin code still uses duplicate code paths for setting
27768         a file mode while making sure that no acls exist and setting an explicit
27769         acl; this is no worse than before, but could be cleaned up.  The AIX
27770         code still doesn't read ACLs, it only makes sure that acls don't get in
27771         the way when setting a file mode.
27772         * lib/acl-internal.h (struct permission_context): New data structure.
27773         (get_permissions, set_permissions, free_permission_context): Declare.
27774         * lib/acl-internal.c (free_permission_context): New helper function.
27775         * lib/get-permissions.c (get_permissions): New helper function split off
27776         from qcopy_acl.
27777         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
27778         AIX, set a file's permissions based only on a file mode.
27779         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
27780         other platforms construct a temporary acl from the file mode and set
27781         that acl in the same way as setting an acl read from the source file.
27782         This should help avoid code duplication and inconsistent / buggy
27783         behavior.
27784         (set_acls): New helper function Split off from qcopy_acl.
27785         (chmod_or_fchmod): Moved here from qset-acl.c.
27786         (set_permissions): New helper function.
27787         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
27788         set_permissions.
27789         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
27790         * modules/qacl: Add get-permissions.c and set-permissions.c.
27792         file-has-acl: Split feature tests again (Bug#20667)
27793         * lib/file-has-acl.c: Instead of testing for
27794         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
27795         define them when needed.
27796         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
27797         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
27799 2015-05-27  Pádraig Brady  <P@draigBrady.com>
27801         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
27802         This avoids a conflict with "FORTIFY_SOURCE" variants
27803         of the string functions when they're replaced on NetBSD-6.0.1
27804         and Darwin-14.3.0 at least.
27805         * lib/string.in.h: Avoid including our "lib/string.h" while
27806         including the system <string.h>.
27808 2015-05-26  Eric Blake  <eblake@redhat.com>
27810         stdio: limit __gnu_printf__ witness to gcc 4.4+
27811         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
27812         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
27814         error: use correct printf attributes on mingw
27815         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
27817         inttypes: force correct mingw PRIdMAX even without <stdio.h>
27818         * modules/inttypes (Depends-on): Require extensions, so that mingw
27819         always uses GNU style inttypes.
27820         * lib/inttypes.in.h: On mingw, include <stdio.h>.
27822         stdio: fix probe on mingw under gcc 5.1
27823         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
27824         around new gcc preprocessor rules.
27826 2015-05-07  Glenn Morris  <rgm@gnu.org>
27828         gitlog-to-changelog: parse "Tiny-change"
27829         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
27830         "Copyright-paperwork-exempt".  (Bug#20324)
27832 2015-05-06  Pádraig Brady  <P@draigBrady.com>
27834         doc: document glibc posix_fallocate() issues
27835         * doc/posix-functions/posix_fallocate.texi: Mention the
27836         glibc efficiency problems and issues with NFS.
27838 2015-05-05  Karl Berry  <karl@freefriends.org>
27840         * build-aux/gendocs.sh (usage): document new css default
27841         for HTML (--htmlarg).
27843 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27845         extern-inline: no need for workaround in GCC 5.1
27846         * doc/extern-inline.texi (extern inline):
27847         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
27848         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
27849         around these bugs in GCC 5.1 and later.  Maybe in a decade or
27850         two we can remove these workarounds.
27852 2015-04-28  Pádraig Brady  <P@draigBrady.com>
27854         eealloc, pagealign_alloc, xalloc: avoid clang warnings
27855         Avoid [-Wunknown-attributes] warnings like:
27856         warning: unknown attribute '__alloc_size__' ignored
27857         * lib/xalloc.h: Don't use the __alloc_size__  attribute
27858         with clang, as support has been fully removed as of clang 3.5:
27859         https://github.com/llvm-mirror/clang/commit/c047507a
27860         * lib/eealloc.h: Likewise.
27861         * lib/pagealign_alloc.h: Likewise.
27863 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27865         tests: pacify GCC 5.1's stricter printf checking
27866         * tests/test-dirname.c (main):
27867         * tests/test-getaddrinfo.c (simple):
27868         * tests/test-getlogin.c (main):
27869         * tests/test-getndelim2.c (main):
27870         * tests/test-inttostr.c (CK):
27871         * tests/test-md5.c (main):
27872         * tests/test-read-file.c (main):
27873         * tests/test-sha1.c (main):
27874         Fix mismatches between printf format and value signedness.
27875         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
27876         Remove, as CAST_VAL always returned a value of type uintmax_t.
27878         fts: port to GCC 5.1 with --enable-gcc-warnings
27879         Without this fix, GCC 5.1 (correctly) warns about a subscript
27880         error on the fts_name component of FTSENT.  It's actually a
27881         flexible member, so define it that way on C99 or later hosts.
27882         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
27883         structure that now has a flexible array member.
27884         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
27885         (FTSENT): fts_name is now flexible on C99-or-later platforms.
27886         * modules/fts (Depends-on): Add flexmember.
27888 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
27890         file-has-acl: port to CentOS 6
27891         Problem reported by Tom G. Christensen in:
27892         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
27893         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
27894         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27895         HAVE_GETXATTR.
27896         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27897         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27898         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27899         file-has-acl.c actually needs.
27901 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27903         file-has-acl: always return false when ACLs aren't supported
27904         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27905         change the GNU/Linux getxattr path, to transform "not supported"
27906         errors to a false return rather than an error.  This is handled
27907         within file_has_acl() due to the platform specific tests to
27908         determine if ACLs are not supported.
27910 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27912         gettext: propagate po/Makefile.in.in too
27913         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27914         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27915         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27916         between Makefile.in.in and the gettext-runtime m4 files.
27918 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27920         file-has-acl: new module, split from acl
27921         And add a new module file-has-acl-tests to match.
27922         I ran into a problem with the recent changes to the acl module,
27923         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27924         When using the fixed version with Emacs, I discovered that
27925         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27926         had multiple libraries, but needed only one), so I fixed that too.
27927         * NEWS: Document this incompatible change.
27928         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27929         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27930         Initialize gl_need_lib_has_acl.
27931         (gl_FUNC_ACL): Require it.
27932         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27933         Move the file-has-acl.c-relevant stuff to ...
27934         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27935         use_xattrs = 0' typo, and omit some needless work.  Set
27936         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27937         when gl_FUNC_ACL is called.
27938         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27939         (Link): Remove $(LIB_HAS_ACL).
27940         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27941         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27942         modules/file-has-acl-tests.
27943         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27945         manywarnings: add GCC 5.1 warnings
27946         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27947         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27948         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27949         -Wsuggest-override, -Wuse-without-only.  Change
27950         -Wnormalized=... operands to match 5.1.
27951         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27952         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27953         -Wdiscarded-qualifiers, -Wformat-signedness,
27954         -Wincompatible-pointer-types, -Wint-conversion,
27955         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27956         -Wshift-count-negative, -Wshift-count-overflow,
27957         -Wsizeof-array-argument, -Wsuggest-final-methods,
27958         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27959         and add -Warray-bounds=2 as a special case.
27961 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27963         doc: update FDL template to match FDL examples.
27964         * doc/alloca-opt.texi:
27965         * doc/alloca.texi:
27966         * doc/c-ctype.texi:
27967         * doc/c-strcase.texi:
27968         * doc/c-strcaseeq.texi:
27969         * doc/c-strcasestr.texi:
27970         * doc/c-strstr.texi:
27971         * doc/c-strtod.texi:
27972         * doc/c-strtold.texi:
27973         * doc/ctime.texi:
27974         * doc/error.texi:
27975         * doc/gcd.texi:
27976         * doc/gnulib-tool.texi:
27977         * doc/inet_ntoa.texi:
27978         * doc/intprops.texi:
27979         * doc/lib-symbol-visibility.texi:
27980         * doc/maintain.texi:
27981         * doc/parse-datetime.texi:
27982         * doc/quote.texi:
27983         * doc/regexprops-generic.texi:
27984         * doc/standards.texi: Remove spurious 'with' in FDL license
27985         template.
27987 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27989         lstat: fix cross-compilation 'ln -s' problem
27990         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27991         Have the test program call 'symlink' rather than a separate
27992         script run 'ln -s'; this is more likely to work in
27993         cross-compilation environments.  Reported by Pavel Fedin in:
27994         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27996 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27998         gendocs.sh: default to a common CSS style sheet for HTML output
27999         * build-aux/gendocs.sh (htmlarg): Change default value.
28001 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
28003         gnulib-tool: output bold attribute more portably
28004         * gnulib-tool (func_show_module_list): Change hexadecimal
28005         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
28006         encoded numbers as arguments to `printf' is not portable,
28007         and is not claimed by POSIX.  This is the case with FreeBSD.
28009 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
28011         qacl: Simplify HP-UX acl_nontrivial check
28012         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
28013         acl_nontrivial. Check if the acl has at most three entries instead (it must
28014         have exactly three entries according to the HP-UX documentation). Ignore
28015         uids and gids as long as an entry is either for a user (i.e., the owner),
28016         a group (i.e., the owning group), or others.
28017         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
28018         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
28020 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
28022         acl: On Linux, check for acls without libacl
28023         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
28024         library function to check for the presence of acls, avoiding a library.
28025         * lib/file-has-acl.c: Include xattr headers if we have them.
28026         (file_has_acl): On Linux, use getxattr().
28027         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
28028         file_has_acl(). Check for xattr headers and getxattr().
28030 2015-04-14  Ángel González  <keisial@gmail.com>
28032         tempname: avoid unused parameter warnings (trivial)
28033         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
28034         (try_nocreate): Likewise.
28036 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
28038         fseeko: fix build failure on NetBSD >= 6 (trivial)
28039         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
28040         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
28042 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28044         gitlog-to-changelog: port to MS-Windows
28045         * build-aux/gitlog-to-changelog (git_dir_option):
28046         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
28047         MS-Windows Perl.  Reported by Eli Zaretskii in:
28048         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
28050 2015-04-07  Karl Berry  <karl@gnu.org>
28052         gendocs: new option --tex for passing args to texi2dvi.
28053         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
28054         (TEXI2DVI): cut to just command name.
28055         (usage): mention new option, and update copyright.
28056         <generate_tex>: use it.
28058 2015-04-07  Karl Berry  <karl@gnu.org>
28060         * config/srclistvars.sh (GETTEXT): new definition.
28061         * config/srclist.txt: use it for gettext .m4 files.
28062         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
28063         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
28064         and continuing into April.
28066 2015-04-07  Daiki Ueno  <ueno@gnu.org>
28068         uniname/uniname-tests: fix failure due to alias
28069         Reported by Jack Howarth in:
28070         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
28071         * tests/uniname/test-uninames.c (name_has_alias): New function.
28072         (test_inverse_lookup): Exclude character name with valid alias,
28073         from randomly generated character names.
28074         (main): Fill unicode_aliases before calling test functions.
28076 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
28078         hash: remove deprecated hash_insert0 function
28079         * lib/hash.h (hash_insert0): Remove deprecated function.
28080         * lib/hash.c (hash_insert0): Likewise.
28082 2015-04-02  Pádraig Brady  <P@draigBrady.com>
28084         mountlist: remove dependency on libmount
28085         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
28086         directly, rather than depending on libmount, which has many
28087         dependencies due to its dependence on libselinux, as detailed at:
28088         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
28089         Note we restrict this to __linux__ as that's probably where this
28090         interface will remain.  If ever porting, it would be best
28091         to first pull the makedev() wrapper from coreutils to a gnulib module.
28092         Note also we don't add a getline dependency to the mountlist module,
28093         as all Linux versions are sufficient.
28095 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
28097         stddef: port to pre-C11 GCC on x86
28098         On this platform, max_align_t should have an alignment of 8 even
28099         though the storage alignments of double, long, etc. max out at 4.
28100         Inspired by a comment of Andreas Schwab's here:
28101         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
28102         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
28103         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
28104         * tests/test-stddef.c: Test __alignof__ too, if available.
28106 2015-03-24  Pádraig Brady  <P@draigBrady.com>
28108         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
28109         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
28111 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
28113         yesno: make EOL optional in ENABLE_NLS case also (trival)
28114         * lib/yesno.c (yesno): Check for EOL before replacing.
28115         * tests/test-yesno.sh: Add a test case (test along with gettext).
28117 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28119         fdopendir-tests: test it does not close its arg
28120         * tests/test-fdopendir.c (main): Test that fdopendir does not
28121         close its argument.  From a suggestion by David Grayson in:
28122         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
28124 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
28126         gitlog-to-changelog: trim trailing white space
28127         * build-aux/gitlog-to-changelog (main):
28128         Trim trailing white space from commit message lines.
28129         This is helpful for processing the GNU Emacs repository,
28130         which dates back to 1985 and contains a lot of such lines.
28132         gitlog-to-changelog: new option --ignore-matching
28133         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
28134         Support new option --ignore-matching=PAT, which ignores all
28135         commit messages whose first line matches PAT.
28137 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
28139         fdopendir: port better to MinGW
28140         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
28141         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
28142         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
28143         * modules/fdopendir (Depends-on): Add dirfd.
28145 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
28147         fdopendir: fix typo in comment
28148         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
28150 2015-03-09  Eric Blake  <eblake@redhat.com>
28152         error: document all entry points provided
28153         * doc/glibc-functions/error_print_progname.texi
28154         (error_print_progname): Mention the error module.
28155         * doc/glibc-functions/error_at_line.texi (error_at_line):
28156         Likewise.
28157         * doc/glibc-functions/error_message_count.texi
28158         (error_message_count): Likewise.
28159         * doc/glibc-functions/error_one_per_line.texi
28160         (error_one_per_line): Likewise.
28162 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
28164         vasnprintf: pacify clang 3.5.0
28165         Problem reported by Werner Lemberg in:
28166         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
28167         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
28168         The casts aren't needed, since the characters in question are ASCII.
28170 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28172         glob, etc.: port to MSVC v18 on MS-Windows 8.1
28173         * lib/dirent--.h (GNULIB_defined_opendir):
28174         * lib/dirent.in.h (GNULIB_defined_opendir)
28175         (GNULIB_defined_closedir):
28176         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
28177         #undef only if Gnulib defined it.
28179         poll: port to MSVC v18 on MS-Windows 8.1
28180         Problem reported by Gisle Vanem in:
28181         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
28182         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
28183         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
28184         Add sys_socket.
28186 2015-02-24  Pádraig Brady  <P@draigBrady.com>
28188         tests: support stderr verification with returns_()
28189         * tests/init.sh (returns_): Disable tracing for this wrapper
28190         function, so that stderr of the wrapped command is unchanged,
28191         allowing for verification of the contents.
28193 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
28195         passfd: avoid valgrind uninitalised data warning
28196         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
28197         to include just the fd we've initialized, rather than including
28198         the extra space used for alignment.
28200 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
28202         uniwbrk/u32-wordbreaks-tests: fix copyright
28203         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
28205         dup2: doc and test for Android bug
28206         Reported by Kevin Cernekee in:
28207         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
28208         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28209         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
28211 2015-02-23  Kevin Cernekee  <cernekee@google.com>
28213         Replace dup2() on Android
28214         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
28215         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
28216         fails.  Using rpl_dup2() fixes this because it has an explicit test
28217         for this condition.
28219 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
28221         Android doesn't define RLIM_SAVED_*
28222         Portability problem reported by Kevin Cernekee in:
28223         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
28224         * doc/posix-headers/sys_resource.texi (sys/resource.h):
28225         Mention the portability problem.
28226         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
28227         Define if not defined.
28228         * m4/dup2.m4 (gl_FUNC_DUP2):
28229         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28230         Likewise.
28232 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
28234         vasnprintf-posix-tests: use consistent test
28235         * tests/test-vasnprintf-posix.c (test_function):
28236         Use "<" in assert instead of "<=", for consistency with other tests.
28238 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28240         printf, isinf, etc.: noncanonical != NaN
28241         Do not require that isinf, printf, etc. treat noncanonical
28242         values as NaNs.  Instead, require only that they do not crash.
28243         Problem reported by Joseph Myers in:
28244         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
28245         * doc/posix-functions/dprintf.texi (dprintf):
28246         * doc/posix-functions/fprintf.texi (fprintf):
28247         * doc/posix-functions/isfinite.texi (isfinite):
28248         * doc/posix-functions/isinf.texi (isinf):
28249         * doc/posix-functions/isnan.texi (isnan):
28250         * doc/posix-functions/printf.texi (printf):
28251         * doc/posix-functions/snprintf.texi (snprintf):
28252         * doc/posix-functions/sprintf.texi (sprintf):
28253         * doc/posix-functions/vdprintf.texi (vdprintf):
28254         * doc/posix-functions/vfprintf.texi (vfprintf):
28255         * doc/posix-functions/vprintf.texi (vprintf):
28256         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28257         * doc/posix-functions/vsprintf.texi (vsprintf):
28258         Document this.
28259         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
28260         * m4/isinf.m4 (gl_ISINFL_WORKS):
28261         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
28262         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
28263         * tests/test-isfinite.c (test_isfinitel):
28264         * tests/test-isinf.c (test_isinfl):
28265         * tests/test-isnan.c (test_long_double):
28266         * tests/test-isnanl.h (main):
28267         * tests/test-snprintf-posix.h (test_function):
28268         * tests/test-sprintf-posix.h (test_function):
28269         * tests/test-vasnprintf-posix.c (test_function):
28270         * tests/test-vasprintf-posix.c (test_function):
28271         Test only that noncanonical values do not cause crashes, not that
28272         they are treated as NaNs.  In some cases this means a larger
28273         output buffer is needed.
28275 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
28277         fts: remove redundant close() (trivial)
28278         * lib/fts.c (fts_read): Remove redundant call to close().
28279         Spotted by coverity.
28281 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28283         getdtablesize: port better for Android
28284         Problem reported by Kevin Cernekee in:
28285         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
28286         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
28287         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
28288         Instead, just use getrlimit, taking care to avoid Cygwin bug.
28290         poll: fixes for large fds
28291         * lib/poll.c (poll): Don't check directly for NFD too large.
28292         Don't rely on undefined behavior in FD_SET when an arg exceeds
28293         FD_SETSIZE.  Always set revents afterwards, even if to zero.
28294         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
28295         as that makes the test a bit stricter.
28297 2015-02-19  Kevin Cernekee  <cernekee@google.com>
28299         fcntl: Fix cross compiling
28300         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
28301         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
28303 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
28305         dup2, fcntl: cross-compile better for Android
28306         Problem reported by Kevin Cernekee in:
28307         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
28308         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
28309         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
28310         there's little need to cross-compile for older kernels nowadays.
28311         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
28312         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
28314 2015-02-18  Pádraig Brady  <P@draigBrady.com>
28316         getopt: don't crash on memory exhaustion
28317         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
28318         memory exhaustion.  In the _LIBC case we use alloca() as is
28319         already done in glibc, so we don't need to consider the separate
28320         error path in that awkward case.  Also fix a memory leak when
28321         ambiguous options are present.
28322         Reported by Tobias Stoeckmann
28324 2015-02-17  Mike Miller  <mtmiller@ieee.org>
28326         tempname: allow compilation with C++ (trivial)
28327         * lib/tempname.h [C++]: Specify extern "C" linkage.
28328         * lib/tempname.h (try_tempname):
28329         * lib/tempname.c (__try_tempname, __gen_tempname):
28330         Rename 'try' to 'tryfunc'.
28332 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
28334         dup2, fcntl: port to AIX
28335         * m4/dup2.m4 (gl_FUNC_DUP2):
28336         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28337         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
28338         The former works on AIX 7.1 but the latter does not.
28339         Also, this may work better with Android; see:
28340         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
28342 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
28344         getdtablesize, dup2, fcntl: port to Android
28345         Problem reported by Kevin Cernekee in:
28346         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
28347         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
28348         Mention that getdtablesize doesn't work on Android.
28349         * lib/getdtablesize.c: Use getrlimit substitute only if
28350         getdtablesize is declared.  This should suffice for Cygwin
28351         while not breaking Android.
28352         * m4/dup2.m4 (gl_FUNC_DUP2):
28353         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28354         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
28355         standardized but the latter is not, and sysconf works on Android.
28356         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
28357         Also check that getdtablesize is declared.
28358         This removes the need for a special case for Android.
28360 2015-02-16  Kevin Cernekee  <cernekee@google.com>
28362         localename: Implement gl_locale_name_thread_unsafe for Android
28363         * lib/localename.c: Android API level >= 21 supports two hardcoded
28364         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
28365         the internal __locale_t struct.
28367 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
28369         fts: avoid crash when a cycle is added while traversing
28370         This could be triggered by auto-mounting a recursive bind mount.
28371         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
28372         * lib/fts.c (fts_read): Avoid removing the original hash table item
28373         when leaving a directory that caused a cycle, and preserve the FTS_DC
28374         flag.
28376 2015-02-16  Daiki Ueno  <ueno@gnu.org>
28378         uniname/uniname: support character alias
28379         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
28380         Generate one-way mapping from aliases to codepoints in the
28381         generated tables.  Special case variation selectors to reduce
28382         table size.
28383         * lib/uniname/uniname.c (unicode_character_name): Special case
28384         variation selectors.
28385         (unicode_name_character): Special case variation selectors and
28386         their aliases.
28387         * lib/uniname/uninames.h: Regenerate.
28388         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
28389         * modules/uniname/uniname-tests (Files): Add
28390         tests/uniname/NameAliases.txt.
28391         * tests/uniname/test-uninames.c: Mark as static.
28392         (ALIASLEN): Define.
28393         (struct unicode_alias): New struct.
28394         (unicode_aliases): New variable.
28395         (fill_aliases): New function.
28396         (test_alias_lookup): New test function.
28397         (main): Run the 'test_alias_lookup' test if the second argument is
28398         given.
28399         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
28400         second argument.
28402 2015-02-11  Kevin Cernekee  <cernekee@google.com>
28404         Fix FILE struct compatibility with Android API level >= 21
28405         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
28406         __sferror.  Recent versions of Bionic's stdio.h no longer define
28407         __sferror.
28408         * lib/fbufmode.c: Likewise.
28409         * lib/fflush.c: Likewise.
28410         * lib/fpurge.c: Likewise.
28411         * lib/freadable.c: Likewise.
28412         * lib/freadahead.c: Likewise.
28413         * lib/freading.c: Likewise.
28414         * lib/freadptr.c: Likewise.
28415         * lib/freadseek.c: Likewise.
28416         * lib/fseeko.c: Likewise.
28417         * lib/fseterr.c: Likewise.
28418         * lib/fwritable.c: Likewise.
28420         Assume unbroken ungetc() on Android
28421         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
28422         test case passed when running on an Android host, and the code
28423         hasn't really changed since 2009.
28425         getdtablesize: Fix Android build
28426         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
28427         versions have this symbol in the .so library (at least 32-bit
28428         platforms) but are missing the declaration in the header file,
28429         causing the m4 logic to guess incorrectly.
28431         localename: Fix Android build
28432         * modules/localename (Depends-on): Add langinfo.
28434         getugroups: Fix Android build
28435         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
28436         functions.
28438         euidaccess: Fix Android build
28439         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
28440         AT_EACCESS gets declared.
28442         linkat_nofollow: Add fallback case for cross compiling
28443         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
28445         net_if: Handle content-free <net/if.h> system headers
28446         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
28447         struct if_nameindex.  If not, enable the replacement header.
28449         signal_h: Fix Android build
28450         * lib/signal.in.h: Add Android to the list of platforms that declare
28451         pthread_sigmask() in <pthread.h> instead of <signal.h>.
28453         duplocale: Fix Android build of duplocale-tests
28454         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
28455         is included by test-duplocale.c (but not by duplocale.c).
28456         * modules/duplocale-tests (configure.ac): Check for monetary.h.
28457         * tests/test-duplocale.c: Skip test if monetary.h is absent.
28458         * doc/posix-headers/monetary.texi: Add Android to the list of
28459         platforms missing monetary.h.
28461 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28463         tests: avoid recent -Werror=unused-variable regression in test-locale
28464         * tests/test-locale.c (main): Reference the variable to avoid the
28465         "unused variable" warning.
28467 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28469         maint: various whitespace cleanups in tempname
28470         * lib/tempname.c: Normalize spacing and line length.
28471         * lib/tempname.h: Likewise.
28472         * modules/tempname: Likewise.
28474 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28476         tests: provide returns_() to simplify exit status checking
28477         * tests/init.sh (returns_): A new function for use in tests,
28478         to allow for easier checking of return values, where you expect
28479         a command to exit with failure status.  By checking for a particular
28480         exit code, you don't hide any crashes for example.
28482 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28484         mountlist: only use libmount when specified
28485         There are currently many shared libs dependencies introduced by
28486         libmount with associated runtime and virt mem overhead.
28487         Therefore don't enable by default.
28488         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
28490 2015-02-08  Daiki Ueno  <ueno@gnu.org>
28492         uniname/unimame-tests: don't link with -lunistring
28493         * modules/uniname/uniname-tests (Makefile.am): Don't link against
28494         $(LIBUNISTRING).  Document the rationale why we need to
28495         conditionalize the test.
28497 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28499         fstrcmp: don't assume strlen < INT_MAX
28500         * lib/fstrcmp.c: Include stddef.h and stdint.h.
28501         (uintptr_t): Remove, as we're now assuming stdint.
28502         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
28503         Prefer ptrdiff_t to int when the value could exceed INT_MAX
28504         if the input string is long.
28505         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
28506         uintptr_t to size_t when the underlying value is a pointer casted
28507         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
28508         * modules/fstrcmp (Depends-on): Add stdint.
28510         diffseq: prefer ptrdiff_t to ssize_t
28511         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
28512         ptrdiff_t is the natural type for signed indexes.
28513         On a few older platforms, ssize_t is narrower than size_t.
28515         xalloc: fix typo that suppressed warnings
28516         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
28517         This typo, introduced a couple of years ago, mistakenly suppressed
28518         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
28519         -Wmissing-declarations warnings.
28521         full-read: fix license notice typo
28522         * lib/full-read.h: Remove a stray line in the license notice.
28523         Reported by Sam Ellis in: http://bugs.gnu.org/19808
28525         crypto/gc: fix a -Wswitch warning
28526         Reported by Bruce Korb in:
28527         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
28528         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
28530 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28532         gnulib-tool: fix handling of patch(1) diagnostics
28533         * gnulib-tool: Send diagnostics from patch(1) to stderr,
28534         as otherwise gnulib-tool will reparse that output and attempt
28535         to lookup modules.
28537 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28539         bootstrap: exit immediately upon gnulib-tool failure
28540         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
28541         This was noticed when gnulib-tool exited early due to failure
28542         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
28543         but various confusing errors were then given as the build proceeded.
28545 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
28547         symlinkat: include all required header files
28548         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
28549         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
28550         Reported at https://savannah.gnu.org/bugs/index.php?44151
28551         and by Jack Howarth.
28553 2015-01-29  Pádraig Brady  <P@draigBrady.com>
28555         localename: support Solaris 12 and illumos
28556         * lib/localename.c (gl_locale_name_thread_unsafe): call
28557         getlocalename_l() on newer __sun platforms.
28558         Reported by Alexander Pyhalov.
28559         Fix suggested by Rich Burridge.
28561 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
28563         locale: fix tests on illumos (trivial)
28564         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
28565         so move from global scope to main().
28567 2015-01-24  Daiki Ueno  <ueno@gnu.org>
28569         unictype: avoid undefined left-shift behavior
28570         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
28571         gcc's -fsanitize=shift and running its tests triggered:
28572           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
28573             places cannot be represented in type 'int'
28574         Cast LHS to 'unsigned int' after integer promotion.
28575         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
28576         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
28578 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28580         libunistring: bump version of unitypes dependants
28581         Due to the header file search order, all the headers which depend
28582         on unitypes.h need to be generated, when the preinstalled
28583         libunistring is older.
28584         * modules/unicase/base (configure.ac): Bump minimum version to
28585         0.9.4.
28586         * modules/uniconv/base (configure.ac): Likewise.
28587         * modules/unilbrk/base (configure.ac): Likewise.
28588         * modules/uninorm/base (configure.ac): Likewise.
28589         * modules/unistdio/base (configure.ac): Likewise.
28590         * modules/unistr/base (configure.ac): Likewise.
28591         * modules/uniwbrk/base (configure.ac): Likewise.
28592         * modules/uniwidth/base (configure.ac): Likewise.
28594 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28596         unictype/category-none: fix link with libunistring
28597         Since _UC_CATEGORY_NONE is not a public symbol, it will be
28598         prefixed with "libstring_" when compiled as part of libunistring.
28599         To avoid undefined symbol at link time, increase the minimum
28600         version when the dependant modules are updated.
28601         * modules/unictype/category-none (configure.ac): Bump minimum
28602         version to 0.9.5.
28604 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28606         unitypes: fix build with installed libunistring
28607         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
28608         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
28609         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
28611 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28613         time: port to MinGW32 3.21
28614         Problem reported by Eli Zaretskii in:
28615         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
28616         * lib/time.in.h:
28617         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
28618         * modules/time (Depends-on):
28619         Fall back on unistd.h if the other include files don't define
28620         struct timespec.
28622         update-copyright: apply to self
28623         * build-aux/update-copyright: Fix copyright date.  How ironic!
28625 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28627         libunistring: update to Unicode 7.0.0
28628         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
28629         Manichaean names.
28630         * lib/unictype/joininggroup_name.h: Likewise.
28631         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
28632         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
28633         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
28634         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
28635         (fill_arabicshaping, joining_group_as_c_identifier): Support those
28636         enum values.
28637         (is_property_alphabetic): Accept newly added characters to
28638         cuneiform numeric signs.
28639         (is_property_default_ignorable_code_point): Reject U+0605.
28640         (FIELDLEN): Increase from 120 to 160.
28641         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
28642         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
28643         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
28644         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
28645         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
28646         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
28647         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
28648         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
28649         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
28650         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
28651         U+1E8D0..U+1E8D6.
28652         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
28653         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28654         lib/uniwidth/width.c.
28655         * all generated files under lib/uni* and tests/uni*: Regenerate.
28657 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28659         libunistring: update to Unicode 6.3.0
28660         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28661         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
28662         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
28663         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
28664         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
28665         Update WB5, WB9, WB10, WB13a, and WB13b.
28666         * tests/uniwbrk/test-uc-wordbreaks.c
28667         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
28668         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28669         (UC_BIDI_PDI): New enumeration values.
28670         (bidi_category_byname): Support those enum values.
28671         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
28672         dedicated property assigned.
28673         (is_property_case_ignorable): Check 0x0027.
28674         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28675         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28676         (output_wbp): Support those enum values.
28677         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28678         (UC_BIDI_PDI): New enumeration values.
28679         * lib/unictype/bidi_byname.gperf: Add those property names.
28680         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
28681         U+180E, U+1A1B, and U+2066..U+2069.
28682         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28683         lib/uniwidth/width.c.
28684         * all generated files under lib/uni* and tests/uni*: Regenerate.
28686 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28688         libunistring: update to Unicode 6.2.0
28689         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
28690         (unilbrk_table): Adjust table size.
28691         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28692         for LBP_RI.
28693         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
28694         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
28695         Normalize table index skipping ignored properties.
28696         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
28697         WBP_EXTEND and WBP_FORMAT, which are now computed without using
28698         the table.
28699         * lib/uniwbrk/wbrktable.h: Adjust table size.
28700         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
28701         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
28702         Support rule GB8a.
28703         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
28704         * tests/unigbrk/test-uc-is-grapheme-break.c
28705         (graphemebreakproperty_to_string): Support GBP_RI.
28706         * tests/uniwbrk/test-uc-wordbreaks.c
28707         (wordbreakproperty_to_string): Support WBP_RI.
28708         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
28709         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
28710         (output_lbp): Support LBP_RI.  Adjust some characters changed from
28711         LBP_AL to LBP_ID.
28712         (output_lbp): Support LBP_RI.
28713         (WBP_RI): New enumeration value.
28714         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28715         (output_wbp): Support WBP_RI.
28716         (GBP_RI): New enumeration value.
28717         (output_gbp_test, fill_org_gbp): Support GBP_RI.
28718         * all generated files under lib/uni* and tests/uni*: Regenerate.
28720 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28722         libunistring: update to Unicode 6.1.0
28723         * lib/gen-uni-tables.c (output_joining_group): Switch to
28724         3-level table to accommodate joining groups defined with higher
28725         codepoint value.  Since there are only 88 groups defined in
28726         Unicode 7.0.0, use 7-bit packed format for level3 entries.
28727         (get_lbp): Update for Unicode 6.1.0.
28728         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
28729         3-level table.
28730         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
28731         joining group name.
28732         * lib/unictype/joininggroup_name.h: Likewise.
28733         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
28734         (unilbrk_table): Adjust table size.
28735         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28736         for LBP_HL.
28737         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
28738         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
28739         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
28740         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
28741         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
28742         U+302E..U+302F.
28743         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28744         lib/uniwidth/width.c.
28745         * all generated files under lib/uni* and tests/uni*: Regenerate.
28746         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
28748 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28750         uniwbrk/u32-wordbreaks-tests: add conformance test
28751         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
28752         tests/uniwbrk/test-uc-wordbreaks.c,
28753         tests/uniwbrk/test-uc-wordbreaks.sh, and
28754         tests/uniwbrk/WordBreakTest.txt.
28755         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
28756         test-uc-wordbreaks to $(check_PROGRAMS), and define
28757         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
28758         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
28759         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
28761 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28763         uniwbrk: ignore Extended/Format characters at BOL not BOS
28764         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
28765         characters if the previous character property is one of
28766         WBP_NEWLINE, WBP_CR, and WBP_LF.
28768 2015-01-11  Jim Meyering  <meyering@fb.com>
28770         test-strstr.c: avoid a trivial leak
28771         * tests/test-strstr.c (main): Free haystack.
28773         update-copyright: recognize groff's \(co marker
28774         * build-aux/update-copyright (circle_c_re): Also accept
28775         uses of \(co, as found in gzip.1.
28777 2015-01-08  Pádraig Brady  <P@draigBrady.com>
28779         maint.mk: fix compatibility with OS X nm
28780         * top/maint.mk (_gl_tight_scope): Use the -g option to
28781         show exported items rather than the -e option which is
28782         ignored on all platforms except OS X where it gives an error.
28783         Reported by Assaf Gordon.
28785 2015-01-07  KO Myung-Hun  <komh@chollian.net>
28787         localcharset: improve charset detection on OS/2
28788         Use system codepage when appropriate.  Map OS/2 codepages to
28789         GNU canonical charset names if possible.
28790         * lib/config.charset: Don't output aliases if "$os" is os2*.
28791         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
28792         result for OS/2.
28793         (locale_charset) [OS2]: Use system codepage if codeset is omitted
28794         from the locale name which is neither "C" nor "POSIX".
28796 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28798         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
28799         This reverts the last patch but one, as it shouldn't be needed now
28800         that the typo is fixed.
28801         * lib/count-leading-zeros.h (count_leading_zeros_ll):
28802         * lib/count-trailing-zeros.h:
28803         * lib/count-one-bits.h:
28804         Go back to using 64-bit intrinsics.
28806         count-leading-zeros: fix pragma typos
28807         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
28808         Fix typos in declaration of intrinsics when _MSC_VER.
28810 2015-01-06  Pádraig Brady  <P@draigBrady.com>
28812         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
28813         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
28814         intrinsics in this case.
28815         * lib/count-trailing-zeros.h: Likewise.
28816         * lib/count-one-bits.h: Likewise.
28818 2015-01-06  Daiki Ueno  <ueno@gnu.org>
28820         uniname/uniname: update to Unicode 7.0.0
28821         To accommodate new characters added since Unicode 5.1.0, this
28822         changes the internal representation of codepoint ranges.
28823         Previously, we grouped codepoint ranges by manually assigned 4-bit
28824         tag, which only allowed 16 groups.  This removes the limitation by
28825         switching to binary search on a table.  For the detail rationale
28826         and the benchmark results, see:
28827         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
28828         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
28829         to INDEX, as it no longer represents a codepoint.
28830         (range): New struct.
28831         (main): Switch to intervals list from a bit-pattern based
28832         classification.
28833         * lib/uniname/uninames.h: Regenerate.
28834         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
28835         * modules/uniname/base (configure.ac): Bump minimum version to
28836         0.9.5.
28837         * modules/uniname/uniname (configure.ac): Bump minimum version to
28838         0.9.5.
28840 2015-01-05  Eric Blake  <eblake@redhat.com>
28842         doc: update INSTALL from autoconf
28843         * doc/install.texi: Resync from autoconf.
28844         * doc/INSTALL: Reflect recent autoconf update.
28845         * doc/INSTALL.ISO: Likewise.
28846         * doc/INSTALL.UTF-8: Likewise.
28848         stdio: fix use of PRIdMAX on modern mingw
28849         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
28850         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
28851         to work with modern mingw.
28853 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
28855         pthread: detect git mingw builds with only partial pollution
28856         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
28857         pollution, as seen temporarily in Fedora 21.
28859 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28861         lib-symbol-versions: cache script check
28862         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
28863         Cache the check for linker version scripts.
28864         From a suggestion by Christophe Curis in:
28865         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
28867 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
28869         maint: fix grammar nits in propername (trivial change)
28870         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
28871         and use an adequate verb and tense.
28873 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
28875         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28876         * module/gendocs: Add 'doc/gendocs_template_min'.
28878         * build-aux/gendocs.sh: Change email addresses and upstream URLs
28879         from to Gnulib's.
28880         (scripturl, templateurl): Adjust accordingly.
28882 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28884         gendocs: copyright date and version fix
28885         Reported by Karl Berry in:
28886         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
28887         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
28888         Fix copyright date.
28889         * build-aux/gendocs.sh (scriptversion): Update.
28891 2015-01-01  Karl Berry  <karl@gnu.org>
28893         * doc/install.texi,
28894         * build-aux/mdate-sh,
28895         * build-aux/depcomp,
28896         * build-aux/config.guess,
28897         * build-aux/config.sub,
28898         * build-aux/ar-lib,
28899         * build-aux/compile: revert copyright updates (some from last
28900         year) in slaved files.
28902 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28904         version-etc: new year
28905         * doc/gnulib.texi:
28906         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28907         * all files: Run 'make update-copyright'.
28909 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28911         xstrtol: ensure errno is reset
28912         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28913         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28915         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28917 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28919         utimens: fix dependency typo
28920         * modules/utimens (Depends-on): Remove 'assure'.
28921         This bug was introduced in the recent 'assure' patch.
28923 2014-12-22  Eric Blake  <eblake@redhat.com>
28925         docs: mention why libgen.h is bad
28926         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28928 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28930         assure: new module
28931         This works better than 'assert' when compiling with -DNDEBUG,
28932         as it avoids some compiler diagnostics in that case.
28933         Reported by Norihiro Tanaka in:
28934         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28935         * MODULES.html.sh (func_all_modules): Add 'assure'.
28936         * lib/assure.h, modules/assure: New files.
28937         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28938         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28939         Prefer 'assure' to 'assert'.
28940         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28941         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28942         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28943         Depend on 'assure'.
28945 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28947         stdalign: port better to HP compilers
28948         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28949         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28951         stdalign: work around Apple GCC 4.0 bug
28952         Reported by David Fang in:
28953         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28954         * lib/stdalign.in.h (_Alignas):
28955         * m4/stdalign.m4 (gl_STDALIGN_H):
28956         Do not use aligned attribute with GCC 4.0 on Apple.
28958 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28960         getcwd: fix test failure on OS X 10.9
28961         * m4/getcwd-path-max.m4: Avoid the replacement if it
28962         won't be effective due to the PATH_MAX limitation of lstat().
28963         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28964         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28965         for this case for use in tests, and also exclude this
28966         case when setting REPLACE_GETCWD.
28967         * tests/test-getcwd.c (test_long_name): Restrict the
28968         tested path length so that lstat() will not be passed
28969         a path greater than PATH_MAX.
28970         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28971         than AT_FDCWD, since the latter is set unconditionally
28972         since Sep 2009 in commit 52c658e9.
28974 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28976         parse-datetime: avoid a compiler warning with byacc (trivial)
28977         * lib/parse-datetime.y (yylex): Use the same prototype in the
28978         function definition as the declaration, to avoid a -Wstrict-prototypes
28979         warning seen when using byacc.
28981 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28983         unicase/locale-language-tests: fix LOCALE_FR test
28984         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28985         a French locale with traditional encoding.
28986         Reported by umerqayam in:
28987         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28989 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28991         stddef: support C11's max_align_t
28992         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28993         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28994         Do not undef, as that might cause max_align_t to be defined twice.
28995         Instead, change use to check for _GL_STDDEF_WINT_T too.
28996         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28997         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28998         Check for max_align_t.
28999         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
29000         * modules/stddef-tests (Depends-on): Add stdalign.
29001         * tests/test-stddef.c: Test max_align_t.
29003 2014-12-11  Daiki Ueno  <ueno@gnu.org>
29005         unistd: fix iOS check conditional
29006         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
29007         as 0 or 1 in <TargetConditionals.h>, and the previous check always
29008         yielded true on non-iOS environment.
29009         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
29010         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
29011         they are defined.
29013 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
29015         posixtm: avoid compiler warning in a better way
29016         * lib/posixtm.c (IF_LINT): Remove.
29017         (year, posix_time_parse):
29018         Return true (not 0) if successful.  All callers changed.
29019         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
29021 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
29023         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
29024         started with '/' on EMX.
29026 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
29028         freopen: workaround freopen() on OS/2 kLIBC
29029         * lib/freopen.c (rpl_freopen): Workaround.
29030         * m4/freopen.m4: Add os2* case.
29032         get_shared_library_fullname: port to EMX
29033         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
29034         on EMX, respectively.
29035         (_DLL_InitTerm): New on EMX.
29036         (get_shared_library_fullname): Implement on EMX.
29038         find_executable: port to EMX
29039         * lib/progreloc.c (find_executable): Implement on EMX.
29041         sched: check struct sched_param in spawn.h as well
29042         * lib/sched.in.h: Include spawn.h on kLIBC.
29043         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
29045 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
29047         bootstrap: Allow perl modules in $buildreq
29048         * build-aux/bootstrap: Add case for perl modules.
29050 2014-12-08  Pádraig Brady  <P@draigBrady.com>
29052         apply _GL_ATTRIBUTE_PURE to some inline functions
29053         clang 3.4.2 flagged these inline functions as pure
29054         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
29055         * lib/sig-handler.h (get_handler): Likewise.
29056         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
29057         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
29059 2014-12-06  Pádraig Brady  <P@draigBrady.com>
29061         vasnprintf: fix potential use after free
29062         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
29063         flagged by clang-analyzer 3.4.2.
29065 2014-12-05  Pádraig Brady  <P@draigBrady.com>
29067         filevercmp, posixtm: avoid compiler warnings with -O3
29068         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
29069         * lib/posixtm.c: (IF_LINT): Define.
29070         (posix_time_parse): Use it to void a "may be used uninitialized"
29071         warning, seen only with -O3.
29073 2014-12-05  Bruno Haible  <bruno@clisp.org>
29075         Fix LDBL80_WORDS macro on big endian platforms.
29076         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
29077         LDBL80_WORDS macro.
29078         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
29079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29080         * tests/test-isfinite.c (test_isfinitel): Likewise.
29081         * tests/test-isinf.c (test_isinfl): Likewise.
29082         * tests/test-isnan.c (test_long_double): Likewise.
29083         * tests/test-isnanl.h (main): Likewise.
29084         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
29085         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
29086         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
29087         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
29088         Reported by Pádraig Brady.
29090 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
29092         git-version-gen: do not print new line characters
29093         * build-aux/git-version-gen: Use printf instead of echo and tr.
29095         gnulib-tool: recognize x:* as an absolute path
29096         * gnulib-tool (func_gnulib_dir): Add ?:* case.
29097         (func_relconcat): Likewise.
29099 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
29101         argp: avoid extraneous translation and mem leak with empty pre doc
29102         * lib/argp-help.c (argp_doc): Never translate the empty string,
29103         when "\v" is the first or last character of the string, as that
29104         has a reserved meaning to return the header info from a po file.
29105         This also fixes a small memory leak in the !post case.
29106         The issue can be seen with this command for example:
29107         LC_MESSAGES=en_US grub2-mknetdir --help
29109 2014-11-27  Daiki Ueno  <ueno@gnu.org>
29111         uniname/uniname-tests: skip if system's libunistring is used
29112         * modules/uniname/uniname-tests (Makefile.am): Skip test if
29113         uniname/uniname module is not compiled.
29115 2014-11-27  Pádraig Brady  <P@draigBrady.com>
29117         printf: fix configure check on big endian systems
29118         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
29120 2014-11-22  Daiki Ueno  <ueno@gnu.org>
29122         pipe-filter-gi, pipe-filter-ii: port to AIX
29123         On AIX 7.1, 'select' is defined as static and cannot be referred
29124         to from inline function.
29125         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
29126         the definition...
29127         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
29128         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
29130 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29132         gitlog-to-changelog: add --until
29133         * build-aux/gitlog-to-changelog: Support new --until option.
29134         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
29136 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
29138         extern-inline: update commentary about GCC bugs
29139         * m4/extern-inline.m4: Add another GCC bug number to comments.
29141 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29143         gen-uni-tables: untabify
29144         * lib/gen-uni-tables.c: Untabify.
29146 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29148         gen-uni-tables: check out-of-range values added to 3-level tables
29149         * lib/gen-uni-tables.c (output_category, output_bidi_category)
29150         (output_joining_type, output_ident_category): Check out-of-range
29151         values added to 3-level tables.
29153 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29155         gen-uni-tables: utilize 'assert'
29156         * lib/gen-uni-tables.c: Include <assert.h>.
29157         (output_category, output_combclass, output_decimal_digit_test)
29158         (output_decimal_digit, output_digit_test, output_digit)
29159         (output_numeric, get_mirror_value, fill_properties)
29160         (fill_property30, is_property_alphabetic)
29161         (is_property_default_ignorable_code_point)
29162         (is_property_uppercase, is_property_lowercase)
29163         (is_property_cased, is_property_case_ignorable)
29164         (is_property_changes_when_lowercased, is_property_iso_control)
29165         (is_property_math, fill_arabicshaping, output_joining_group)
29166         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
29167         (output_wbp, fill_org_gbp, get_decomposition)
29168         (output_decomposition, fill_composition_exclusions)
29169         (debug_output_composition_tables, output_composition_tables)
29170         (redistribute_casefolding_rules, output_casing_rules): Use
29171         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
29172         reporting.
29174 2014-11-13  Daiki Ueno  <ueno@gnu.org>
29176         gen-uni-tables: cosmetic improvements
29177         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
29178         variables specification.
29179         (is_outdigit): Remove unused function.
29181 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
29183         fcntl-h-tests: port to PA-RISC GNU/Linux
29184         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
29186 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29188         fts: port to C89
29189         Problem reported for MSVC 16 by Gisle Vanem in:
29190         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
29191         * lib/fts.c (fts_build): Avoid declaration before statement.
29193 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29195         unistd: port to iOS
29196         Problem reported by André Klitzing in:
29197         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
29198         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
29200 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29202         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
29203         Problem reported by Alan Modra in:
29204         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
29205         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
29206         Always cast the function arg, reverting this part of the previous
29207         change.
29209 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29211         obstack: avoid potentially-nonportable function casts
29212         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
29213         Remove, replacing with ...
29214         (call_chunkfun, call_freefun): New static functions.
29215         All uses changed.  Avoid potentially-nonportable casts.
29216         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
29217         (_obstack_begin_worker): Omit last two args, since they
29218         rely on potentially-nonportable casts.  All callers changed.
29219         * lib/obstack.h (_OBSTACK_CAST): New macro.
29220         Use it everywhere the old API used a potentially-nonportable cast.
29221         The new API doesn't cast.
29222         (struct obstack): Use unions rather than requiring
29223         potentially-nonportable casts.
29224         (obstack_chunkfun, obstack_freefun): Return void.
29226 2014-11-03  Alan Modra  <amodra@gmail.com>
29228         obstack: fix macro return values
29229         * lib/obstack.h (obstack_next_free): Return void *.
29230         (obstack_1grow_fast, obstack_blank_fast): Return void.
29231         For __GNUC__ macros:
29232         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
29233         For !__GNUC__ macros:
29234         (obstack_make_room, obstack_grow, obstack_grow0)
29235         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
29237 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29239         obstack: do not assume system-supplied obstack is size_t safe
29240         * m4/obstack.m4: New file.
29241         * modules/obstack (Files): Add it.
29243         obstack: port to platforms that #define __alignof__
29244         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
29245         not if !_LIBC.  We don't know of any platforms that #define
29246         __alignof__, but it might be useful in tests.  Conversely,
29247         glibc assumes GCC.
29249 2014-11-03  Pádraig Brady  <P@draigBrady.com>
29251         linkat: don't unconditionally replace on GNU/Linux
29252         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
29253         was redundant for a few reasons.  It was present to support compiling
29254         on new systems but running on the old narrow window of Linux 2.6.1[67].
29255         It setup and cleaned up test files which weren't actually used.
29256         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
29257         implicit in the following check.
29259 2014-11-03  Pádraig Brady  <P@draigBrady.com>
29261         linkat: wrap to handle symlinks on OS X 10.10
29262         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
29263         but not usable because it doesn't support creating hardlinks
29264         to symlinks.  Therefore add a generic test for this capability
29265         and fallback to our emulation if linkat() fails with ENOTSUP.
29267 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29269         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
29270         * doc/posix-functions/open.texi (open):
29271         * doc/posix-functions/openat.texi (openat):
29272         Document that these functions do not set errno to ELOOP when
29273         a symlink is opened with O_NOFOLLOW.
29275 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29277         obstack: add NEWS entry for recent incompatible changes
29278         * NEWS: Describe recent changes.
29280 2014-10-30  Pádraig Brady  <P@draigBrady.com>
29282         mountlist: don't use libmount to decide on dummy/remote
29283         * lib/mountlist.c (read_file_system_list): Don't use the libmount
29284         routines to determine whether a file system is dummy or remote,
29285         as they're not currently compatible.  For example the remoteness
29286         is determined on file system type (for which the list seems incomplete),
29287         rather than simply checking for a ':' in the device name.
29288         Also libmount currently determines that 'tmpfs' is a dummy file system
29289         even though it has associated storage.
29291 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29293         obstack: prefer __alignof__ to alignof
29294         This is for portability to pre-4.7 GCC when compiling glibc.
29295         See Joseph S. Myers in:
29296         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
29297         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
29298         New macro, defined by including and using <alignof.h>.
29299         (MAX): New macro.
29300         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
29301         Do not use enums as they are not portable to some broken compilers.
29302         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
29304         obstack: prefer alignof to calculating alignments by hand
29305         * lib/obstack.c: Include <stdalign.h>.
29306         (struct fooalign): Remove.
29307         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
29308         * modules/obstack (Depends-on): Add stdalign.
29310 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29312         obstack: use size_t alignments and check for overflow
29313         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
29314         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
29315         * lib/obstack.h (struct obstack.alignment_mask):
29316         Use _OBSTACK_SIZE_T, not int, for alignments.
29317         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
29318         overflows, e.g., when adding the alignment.
29320 2014-10-29  Alan Modra  <amodra@gmail.com>
29322         obstack: 64-bit obstack support, part 3
29323         This finally enables full 64-bit obstack support.  The glibc
29324         shared library specific code is removed from obstack.c too, and
29325         the error handling code conditionally compiled under control of
29326         another macro, _OBSTACK_NO_ERROR_HANDLER.
29327         * lib/obstack.h: Include string.h earlier.
29328         (_OBSTACK_INTERFACE_VERSION): Define.
29329         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
29330         * lib/obstack.c: Don't include shlib-compat.h.
29331         (OBSTACK_INTERFACE_VERSION): Delete.
29332         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
29333         glibc code is compatible with version 2.  Don't include stdio.h for
29334         __GNU_LIBRARY.
29335         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
29336         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
29337         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
29338         glibc shared library specific source.
29340         obstack: 64-bit obstack support, part 2
29341         This gets us 4G obstack support, without changing ABI
29342         compatibility, apart from possibly introducing some
29343         signed/unsigned comparison warnings in code that uses obstack.h.
29344         a) Replace "int" size parameters, return values, and macro local vars
29345            with _OBSTACK_SIZE_T, an "unsigned int" for now.
29346         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
29347         c) Make all obstack macros checking available room use obstack_room.
29348            "next_free + desired > chunk_limit" may wrap the lhs for chunks
29349            allocated near the top of memory.
29350         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
29351         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
29352         in place of "int" size parameters, return values and local vars.
29353         (_CHUNK_SIZE_T): Define.
29354         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
29355         union use an _OBSTACK_SIZE_T integer type.
29356         For __GNUC__ versions of the following macros...
29357         (obstack_room): Rename local var.
29358         (obstack_make_room): Use obstack_room.
29359         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
29360         obstack_int_grow, obstack_blank): Likewise.
29361         (obstack_finish): Use unsigned comparison when comparing aligned
29362         next_free against chunk_limit.
29363         (obstack_free): Cast OBJ to remove possible const qualifier.
29364         For !__GNUC__ versions of the following macros...
29365         (obstack_make_room): Use obstack_room.
29366         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
29367         obstack_int_grow, obstack_blank): Likewise.
29368         (obstack_finish): Use unsigned comparision when comparing aligned
29369         next_free against chunk_limit.
29370         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
29371         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
29372         _OBSTACK_SIZE_T.
29373         (_obstack_begin, _obstack_begin_1): Likewise.
29374         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
29375         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
29377         obstack: 64-bit obstack support, part 1
29378         a) Correct calls to alloc function, to use a size_t arg.  "long" is
29379            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
29380            and "size_t" 64 bits.
29381         b) Consolidate _obstack_begin and _obstack_begin1 code.
29382         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
29383         use "size_t" rather than "long".
29384         (_obstack_begin, _obstack_begin1): Likewise.
29385         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
29386         obstack_chunkfun): Update alloc function casts.
29387         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
29388         (chunkfun_type, freefun_type): New typdefs.
29389         (_obstack_begin_worker): Split out from ..
29390         (_obstack_begin, _obstack_begin_1): ..here.
29392         obstack: tidy part 2
29393         a) Don't be concerned about "not polluting the namespace with stddef.h
29394            symbols" in obstack.h, since gnulib string.h includes stddef.h
29395            anyway, and it seems unlikely that anyone would care.
29396         b) Don't roll our own slow memcpy in _obstack_newchunk.
29397         c) Rename obstack_free to _obstack_free.  This makes the naming
29398            consistent with other obstack functions and obviates the need for
29399            __obstack_free.  Ancient obstack.c defined both obstack_free and
29400            _obstack_free.  We continue to do that for _LIBC via an alias.
29401         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
29402            is clever, but nowadays gcc warns on undefined macros.  You'll get
29403            an undefined macro warning if simulating an old gcc with -U__GNUC__
29404            -U__GNUC_MINOR__ -D__GNUC__=1.
29405         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
29406         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
29407         (__obstack_free): Delete, update refs.
29408         (_obstack_free): Rename from obstack_free.
29409         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
29410         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
29411         * lib/obstack.c: Don't include stddef.h.
29412         (COPYING_UNIT): Delete.
29413         (_obstack_begin): Formatting fix.
29414         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
29415         (_obstack_free): Rename from __obstack_free, update alias.  Move
29416         undef of obstack_free to where it is needed.
29418         obstack: tidy part 1
29419         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
29420            to me, and result in overlong lines after later patches.
29421         b) Move error handling code, to avoid a forward declaration and to
29422            simplify later patches in this series.
29423         * lib/obstack.h (struct obstack <temp>): Rename fields of union
29424         and update all uses.
29425         * lib/obstack.c: Include stdlib.h earlier.
29426         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
29427         in file.
29428         (print_and_abort): Remove now redundant forward declaration.
29430 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29432         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
29433         Without this change, in bleeding-edge fileutils Autoconf complains
29434         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
29435         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
29436         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
29437         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
29439 2014-10-24  Daiki Ueno  <ueno@gnu.org>
29441         iconv: avoid false detection of non-working iconv
29442         The INBUF arguments of iconv can be either 'const char **'
29443         or 'char **'.  If CC is g++, the difference causes a compile error
29444         and thus leads to a false detection of non-working iconv.
29445         Reported by Eli Zaretskii and Werner LEMBERG in:
29446         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
29447         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
29448         iconv.  Bump serial number.
29450 2014-10-23  Pádraig Brady  <P@draigBrady.com>
29452         bootstrap: print more diagnostics for missing programs
29453         * build-aux/bootstrap: only suppress stderr when checking for
29454         alternative program names.  This supports programs issuing non
29455         standard error messages.
29457 2014-10-23  Pádraig Brady  <P@draigBrady.com>
29459         bootstrap: only update the gnulib submodule
29460         * build-aux/bootstrap: Restrict the "submodule update" command
29461         to the gnulib path.
29463 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29465         symlinkat: port to AIX 7.1
29466         * doc/posix-functions/symlinkat.texi (symlinkat):
29467         Mention AIX porting problem.
29468         * lib/symlinkat.c: Always include errno.h.
29469         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
29470         * lib/unistd.in.h (symlinkat): Add replacement machinery.
29471         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
29472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
29473         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
29474         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
29475         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
29477         readlinkat: port to AIX 7.1
29478         * doc/posix-functions/readlink.texi (readlink):
29479         * doc/posix-functions/readlinkat.texi (readlinkat):
29480         Mention AIX porting problem.
29481         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
29482         New function.
29483         * lib/unistd.in.h (readlinkat): Add replacement machinery.
29484         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
29485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
29486         * modules/readlinkat (configure.ac): Also compile replacement
29487         if REPLACE_READLINKAT.
29488         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
29490 2014-10-12  Karl Berry  <karl@gnu.org>
29492         * doc/posix-functions/dirname.texi: remove spurious {.
29494 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
29496         basename, dirname: Improve documentation.
29497         * doc/posix-functions/basename.texi: Mention dirname module and
29498         base_name() function.
29499         * doc/posix-functions/dirname.texi: Mention dir_name() and
29500         mdir_name() functions.
29501         Suggested by Werner LEMBERG <wl@gnu.org>.
29503 2014-09-24  Jim Meyering  <meyering@fb.com>
29505         exclude: declare exclude_patopts static
29506         * lib/exclude.c (exclude_patopts): Declare static,
29507         to avoid triggering a -Wmissing-prototypes warning.
29508         The alternative (declaring it in the .h file) would
29509         require publicizing the private "struct patopts".
29511 2014-09-21  Werner Lemberg  <wl@gnu.org>
29513         dirname: support compilation with C++
29514         * lib/dirname.h: Add necessary C linkage declarations.
29516 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29518         qsort_r: include <config.h>
29519         Problem reported by Tom G. Christensen in:
29520         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
29521         * lib/qsort.c [!_LIBC]: Include <config.h> first.
29523 2014-09-16  Dylan Cali  <calid1984@gmail.com>
29525         avltree-list: avoid compiler warnings (trivial)
29526         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29527         -Werror=suggest-attribute=pure.
29528         * lib/gl_array_list.c: Likewise.
29529         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
29530         declaration to avoid -Werror=missing-prototypes.  This is not added
29531         to a header as only exported for tests.  Add (void) to the
29532         check_invariants() call to indicate we're discarding the result
29533         in this context which avoids -Werror=unused-value.  Note we don't
29534         use ignore_value here to avoid a dependency as we know we'll not
29535         be adding __attribute__((warn_unused_result)) to check_invariants().
29536         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
29538 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29540         qsort_r: new module, for GNU-style qsort_r
29541         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
29543 2014-09-15  Werner LEMBERG  <wl@gnu.org>
29545         strerror_r-posix: support compilation with C++
29546         * lib/strerror_r.c: Add necessary C linkage declarations.
29548 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
29550         fcntl-h: fix compilation with Intel C++ compiler (trivial)
29551         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
29553 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
29555         mountlist: use /proc/self/mountinfo when available
29556         Use libmount to propagate device IDs provided by Linux in
29557         /proc/self/mountinfo.  This will give more accurate output when
29558         using df in chroot'ed environments as the device IDs are not
29559         determined by stat() which may be inaccurate within the chroot.
29560         * lib/mountlist.c (read_file_system_list): Use the libmount routines
29561         from util-linux to parse "/proc/self/mountinfo" or fall back to
29562         standard getmntent() processing.
29563         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
29564         getmntent() is used, as is the case on GNU/Linux.
29566 2014-09-07  Eric Wong  <normalperson@yhbt.net>
29568         users.txt: add cmogstored
29569         cmogstored has used gnulib since the beginning in 2012 to support
29570         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
29572 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29574         Trivial change.
29575         * gnulib-tool: Use same options as build-aux/bootstrap to download
29576         PO files.
29578 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29580         Trivial change.
29581         * gnulib-tool: Fallback to wget when rsync of PO files fails.
29583 2014-09-04  Eric Blake  <eblake@redhat.com>
29585         maintainer-makefile: add syntax check for useless ';;'
29586         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
29588 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
29590         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
29591         Problem reported by Assaf Gordon in:
29592         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
29593         Apparently Ubuntu is doing some fancy link-time optimization
29594         that doesn't work with -lpthread but does work with -pthread.
29595         Work around the bug by preferring -pthread to -lpthread.
29596         * m4/pthread.m4 (gl_PTHREAD_CHECK):
29597         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
29598         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29599         Treat -pthread like -lpthread.
29601 2014-09-04  Eric Blake  <eblake@redhat.com>
29603         error: drop spurious semicolon
29604         * lib/error.c (__error_at_line): Fix ';;'.
29606 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29608         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
29609         * m4/gnulib-common.m4 (AC_C_RESTRICT):
29610         Override AC_C_RESTRICT unconditionally.
29611         Update from autoconf, incorporating:
29612         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
29613         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
29615 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29617         manywarnings: add GCC 4.9 warnings
29618         Also, make it easier to maintain this in the future.
29619         * build-aux/gcc-warning.spec: Add -Wabi-tag,
29620         -Wconditionally-supported, -Wdelete-incomplete,
29621         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
29622         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
29623         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
29624         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
29625         only for older GCC versions that need them.  Handle
29626         -Wnormalized=nfc specially, so that the 'comm' command used
29627         for maintenance doesn't get confused.
29629 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29631         vasnprintf: fix bugs in width computation
29632         * lib/vasnprintf.c (VASNPRINTF):
29633         Rework previous change, which introduced a bug,
29634         to avoid the warning in a different way.
29635         Avoid undefined behavior if the width arg is less than -INT_MAX.
29636         Avoid unnecessary use of HAS_WIDTH local.
29638 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
29640         vasnprintf: Avoid signed/unsigned comparison warning.
29641         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
29642         compare end addr of generated string w/ maximum end addr.
29644 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
29646         parse-datetime: Avoid pointer difference.
29647         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
29648         instead of calculating difference of pointers.  This removes an
29649         annoying warning, devoid of any use.
29651 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29653         qsort_r: new module, for GNU-style qsort_r
29654         This works even on FreeBSD, which has an incompatible qsort_r API.
29655         * MODULES.html.sh: Add it.
29656         * doc/glibc-functions/qsort_r.texi: It's now supported.
29657         * lib/qsort.c: New file, taken from glibc with minor changes
29658         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
29659         removed.
29660         * lib/qsort_r.c: New file, compiled only on FreeBSD.
29661         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
29662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
29663         * modules/qsort_r, modules/qsort_r-tests: New files.
29664         * modules/stdlib (Makefile): Set up its defaults.
29665         * tests/test-qsort_r.c: New file.
29667 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29669         vla: new module
29670         GNU RCS can use this, mostly for documentation I expect.  See:
29671         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
29672         * MODULES.html.sh: Add vla.
29673         * lib/vla.h, modules/vla: New files.
29675 2014-08-07  Daiki Ueno  <ueno@gnu.org>
29677         localename: make gl_locale_name_thread really thread-safe on Windows
29678         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
29679         "glthread/lock.h".
29680         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
29681         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
29683 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
29685         getpass: don't assume struct termios
29686         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
29687         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
29688         * lib/getpass.c (getpass): Port to systems lacking struct termios.
29690         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
29691         Problem reported by Jonas 'Sortie' Termansen in:
29692         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
29693         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
29694         Implement via sysconf for platforms that lack getdtablesize.
29696         vararrays: modernize AC_C_VARARRAYS for C11
29697         This backports a change I recently made to Autoconf.
29698         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
29699         VLAs are not supported, as this is what C11 does.  The old macro
29700         HAVE_C_VARARRAYS is still defined if they are supported, but is
29701         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
29703 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
29705         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
29706         * build-aux/install-reloc (func_create_wrapper): Also wrap
29707         strerror-override, stat, stat.
29709 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29711         sys_select: fix FD_ZERO problem on Solaris 10
29712         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
29713         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
29714         to expand to an expression that invoked memset without necessarily
29715         including <string.h>.  The problem was that the first include
29716         defined _SYS_TIME_H, causing the second include to short-circuit.
29717         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
29718         Also, fix what appears to be a cut-and-paste typo, by replacing
29719         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
29720         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
29722         accept: document Solaris 10 type glitch
29723         * doc/posix-functions/accept.texi (accept): Mention that
29724         Solaris 10 'accept' takes void * last arg, not socklen_t *.
29726 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
29728         extern-inline: port to FreeBSD, DragonFly
29729         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
29730         is present if either __DragonFly__ or __FreeBSD__ is defined.
29731         FreeBSD problem reported by Andrey Borzenkov in:
29732         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
29733         Also, worry about __APPLE__ only if __MACH__ is also defined,
29734         as this is more consistent with the rest of gnulib.
29735         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
29736         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
29738 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29740         regex: Make #if/#ifdef usage consistent for DEBUG
29741         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
29742         of the inconsistent usage of #if and #ifdef as that works with
29743         both Glibc and Gnulib's style.
29745 2014-07-31  Eric Blake  <eblake@redhat.com>
29747         openat-die: use _Noreturn markup
29748         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
29749         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
29750         _Noreturn.
29752 2014-07-30  Eric Blake  <eblake@redhat.com>
29754         test-open: port to cygwin, which lacks Fortify
29755         * tests/test-open.h (ALWAYS_INLINE): New macro.
29756         (__always_inline): Don't abuse internal symbol on non-glibc.
29758 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
29760         localename: Enforce declarations before statements.
29761         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
29762         first statement.
29764 2014-07-18  Jim Meyering  <meyering@fb.com>
29766         test-userspec: don't look up numeric user names
29767         * tests/test-userspec.c: I found a system for which getpwnam("0")
29768         returned a pointer to a non-root user's entry, and that made the
29769         test fail.
29770         (T): Prefix each numeric input with "+", to inhibit lookup.
29772 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
29774         localcharset, localename: MS-Windows support for non-default locales
29775         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
29776         falling back on the default system codepage, try extracting
29777         the codepage from what 'setlocale' returns.  This allows to
29778         take into account changes of the codeset due to non-default
29779         locale set by a previous call to 'setlocale'.
29780         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
29781         Define if not already defined.
29782         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
29783         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
29784         current locale by calling 'setlocale', then converting the
29785         locale name into LCID by calling 'get_lcid'.  This allows to
29786         take into account changes in the current locale from the
29787         default one, in contrast to GetThreadLocale.
29789 2014-07-14  Daiki Ueno  <ueno@gnu.org>
29791         announce-gen: avoid failure when Digest::SHA is installed
29792         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
29793         Digest::SHA1->new in print_checksums fails.
29794         * build-aux/announce-gen (digest_classes): New associative array
29795         for available message digest implementations.
29796         (print_locations): Use it.
29798 2014-07-13  Pádraig Brady  <P@draigBrady.com>
29800         gettext: revert "update macros to version 0.19"
29801         This reverts commit 9b9370ca, as it currently requires that
29802         developers of any project that explicitly uses the gettext module
29803         or implicitly uses it through the utimens-tests or
29804         futimens-tests modules, use gettext >= 0.19.
29805         However there are some stability and availablity issues with
29806         that version at present.  We can reinstate this soon, when stability
29807         is addressed and packages are more readily available.
29809 2014-07-12  Jim Meyering  <meyering@fb.com>
29811         regex: don't deref NULL upon heap allocation failure
29812         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
29813         failure in one more place.
29814         To trigger the segfault, configure grep -with-included-regex,
29815         build it, and run these commands:
29816         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
29817         I discovered this while replying to a private report from
29818         Jens Schleusener about excessive memory consumption by grep
29819         when using a regular expression like the one above.
29821 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29823         regex: fix memory leak in compiler
29824         Fix by Andreas Schwab in:
29825         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
29826         * lib/regcomp.c (parse_reg_exp): Deallocate partially
29827         constructed tree before returning error.
29829 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29831         announce-gen: avoid perl warnings
29832         * build-aux/announce-gen: add two minor checks to avoid
29833         "use of uninitialized value" warnings when command-line parameters are
29834         missing.
29836 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29838         localename: avoid -Wsuggest-attribute={const,pure} warnings
29839         * lib/localename.c (string_has): Tag internal function as pure.
29840         * lib/localename.h (gl_locale_name_default): Tag extern declaration
29841         as const when appropriate.
29843 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
29845         nl_langinfo: Fix last change.
29846         * lib/nl_langinfo.c (includes): Drop redundant include.
29848 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
29850         error: Fix -Wundef warnings in glibc
29851         * lib/error.c [_LIBC]: Define default macros for
29852         glibc.
29853         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
29854         Check _LIBC before STRERROR_R_CHAR_P.
29856         error: Sync from glibc master
29857         * lib/error.c [_LIBC]: Remove INTUSE usage.
29858         (error_tail): Remove unused macro ALLOCA_LIMIT.
29859         Fix potential buffer overflow.  Fix potential NULL dereference
29860         in strcmp.
29862 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
29864         nl_langinfo: fix build under mingw
29865         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
29867 2014-07-09  Andrew D Warshall  <warshall@99main.com>
29869         mountlist: do not classify a bind-mounted dir entry as "dummy"
29870         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
29871         1-argument getmntent() (instead of assuming absence).
29873 2014-07-08  Eric Blake  <eblake@redhat.com>
29875         maint.mk: less syntax-check noise when SIGPIPE is ignored
29876         * top/maint.mk (_sc_header_without_use)
29877         (sc_require_config_h_first): Parse full list.
29879 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
29880             Paul Eggert  <eggert@cs.ucla.edu>
29882         nl_langinfo: CODESET on MS-Windows and more items from localeconv
29883         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
29884         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
29885         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
29886         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
29887         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
29888         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
29889         Include <stdio.h> if Microsoft Windows.
29890         Include <time.h> if !REPLACE_NL_LANGINFO.
29891         (ctype_codeset): New function, taken from rpl_nl_langinfo,
29892         and with improvements for Microsoft Windows.
29893         (rpl_nl_langinfo): Use it.
29894         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29895         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29896         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29897         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29898         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29899         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29900         corresponding values returned by 'localeconv'.  Compute the values
29901         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29902         'strftime' with a suitable struct tm value.
29904 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29906         Bruno Haible has stepped down as maintainer.
29907         See Karl Berry in:
29908         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29909         Daiki Ueno has volunteered to maintain libunistring; see:
29910         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29911         * modules/gen-uni-tables, modules/libunistring:
29912         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29913         * modules/unicase/base, modules/unicase/cased:
29914         * modules/unicase/empty-prefix-context:
29915         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29916         * modules/unicase/locale-language, modules/unicase/special-casing:
29917         * modules/unicase/tocasefold, modules/unicase/tolower:
29918         * modules/unicase/totitle, modules/unicase/toupper:
29919         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29920         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29921         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29922         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29923         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29924         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29925         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29926         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29927         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29928         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29929         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29930         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29931         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29932         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29933         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29934         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29935         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29936         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29937         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29938         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29939         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29940         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29941         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29942         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29943         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29944         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29945         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29946         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29947         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29948         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29949         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29950         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29951         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29952         * modules/uniconv/u16-conv-to-enc:
29953         * modules/uniconv/u16-strconv-from-enc:
29954         * modules/uniconv/u16-strconv-from-locale:
29955         * modules/uniconv/u16-strconv-to-enc:
29956         * modules/uniconv/u16-strconv-to-locale:
29957         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29958         * modules/uniconv/u32-strconv-from-enc:
29959         * modules/uniconv/u32-strconv-from-locale:
29960         * modules/uniconv/u32-strconv-to-enc:
29961         * modules/uniconv/u32-strconv-to-locale:
29962         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29963         * modules/uniconv/u8-strconv-from-enc:
29964         * modules/uniconv/u8-strconv-from-locale:
29965         * modules/uniconv/u8-strconv-to-enc:
29966         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29967         * modules/unictype/bidicategory-all:
29968         * modules/unictype/bidicategory-byname:
29969         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29970         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29971         * modules/unictype/bidiclass-byname:
29972         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29973         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29974         * modules/unictype/block-all, modules/unictype/block-list:
29975         * modules/unictype/block-of, modules/unictype/block-test:
29976         * modules/unictype/category-C, modules/unictype/category-Cc:
29977         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29978         * modules/unictype/category-Co, modules/unictype/category-Cs:
29979         * modules/unictype/category-L, modules/unictype/category-LC:
29980         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29981         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29982         * modules/unictype/category-Lu, modules/unictype/category-M:
29983         * modules/unictype/category-Mc, modules/unictype/category-Me:
29984         * modules/unictype/category-Mn, modules/unictype/category-N:
29985         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29986         * modules/unictype/category-No, modules/unictype/category-P:
29987         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29988         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29989         * modules/unictype/category-Pi, modules/unictype/category-Po:
29990         * modules/unictype/category-Ps, modules/unictype/category-S:
29991         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29992         * modules/unictype/category-Sm, modules/unictype/category-So:
29993         * modules/unictype/category-Z, modules/unictype/category-Zl:
29994         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29995         * modules/unictype/category-all, modules/unictype/category-and:
29996         * modules/unictype/category-and-not, modules/unictype/category-byname:
29997         * modules/unictype/category-longname, modules/unictype/category-name:
29998         * modules/unictype/category-none, modules/unictype/category-of:
29999         * modules/unictype/category-or, modules/unictype/category-test:
30000         * modules/unictype/category-test-withtable:
30001         * modules/unictype/combining-class:
30002         * modules/unictype/combining-class-all:
30003         * modules/unictype/combining-class-byname:
30004         * modules/unictype/combining-class-longname:
30005         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
30006         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
30007         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
30008         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
30009         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
30010         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
30011         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
30012         * modules/unictype/digit, modules/unictype/joininggroup-all:
30013         * modules/unictype/joininggroup-byname:
30014         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
30015         * modules/unictype/joiningtype-all:
30016         * modules/unictype/joiningtype-byname:
30017         * modules/unictype/joiningtype-longname:
30018         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
30019         * modules/unictype/mirror, modules/unictype/numeric:
30020         * modules/unictype/property-all, modules/unictype/property-alphabetic:
30021         * modules/unictype/property-ascii-hex-digit:
30022         * modules/unictype/property-bidi-arabic-digit:
30023         * modules/unictype/property-bidi-arabic-right-to-left:
30024         * modules/unictype/property-bidi-block-separator:
30025         * modules/unictype/property-bidi-boundary-neutral:
30026         * modules/unictype/property-bidi-common-separator:
30027         * modules/unictype/property-bidi-control:
30028         * modules/unictype/property-bidi-embedding-or-override:
30029         * modules/unictype/property-bidi-eur-num-separator:
30030         * modules/unictype/property-bidi-eur-num-terminator:
30031         * modules/unictype/property-bidi-european-digit:
30032         * modules/unictype/property-bidi-hebrew-right-to-left:
30033         * modules/unictype/property-bidi-left-to-right:
30034         * modules/unictype/property-bidi-non-spacing-mark:
30035         * modules/unictype/property-bidi-other-neutral:
30036         * modules/unictype/property-bidi-pdf:
30037         * modules/unictype/property-bidi-segment-separator:
30038         * modules/unictype/property-bidi-whitespace:
30039         * modules/unictype/property-byname:
30040         * modules/unictype/property-case-ignorable:
30041         * modules/unictype/property-cased:
30042         * modules/unictype/property-changes-when-casefolded:
30043         * modules/unictype/property-changes-when-casemapped:
30044         * modules/unictype/property-changes-when-lowercased:
30045         * modules/unictype/property-changes-when-titlecased:
30046         * modules/unictype/property-changes-when-uppercased:
30047         * modules/unictype/property-combining:
30048         * modules/unictype/property-composite:
30049         * modules/unictype/property-currency-symbol:
30050         * modules/unictype/property-dash:
30051         * modules/unictype/property-decimal-digit:
30052         * modules/unictype/property-default-ignorable-code-point:
30053         * modules/unictype/property-deprecated:
30054         * modules/unictype/property-diacritic:
30055         * modules/unictype/property-extender:
30056         * modules/unictype/property-format-control:
30057         * modules/unictype/property-grapheme-base:
30058         * modules/unictype/property-grapheme-extend:
30059         * modules/unictype/property-grapheme-link:
30060         * modules/unictype/property-hex-digit:
30061         * modules/unictype/property-hyphen:
30062         * modules/unictype/property-id-continue:
30063         * modules/unictype/property-id-start:
30064         * modules/unictype/property-ideographic:
30065         * modules/unictype/property-ids-binary-operator:
30066         * modules/unictype/property-ids-trinary-operator:
30067         * modules/unictype/property-ignorable-control:
30068         * modules/unictype/property-iso-control:
30069         * modules/unictype/property-join-control:
30070         * modules/unictype/property-left-of-pair:
30071         * modules/unictype/property-line-separator:
30072         * modules/unictype/property-logical-order-exception:
30073         * modules/unictype/property-lowercase, modules/unictype/property-math:
30074         * modules/unictype/property-non-break:
30075         * modules/unictype/property-not-a-character:
30076         * modules/unictype/property-numeric:
30077         * modules/unictype/property-other-alphabetic:
30078         * modules/unictype/property-other-default-ignorable-code-point:
30079         * modules/unictype/property-other-grapheme-extend:
30080         * modules/unictype/property-other-id-continue:
30081         * modules/unictype/property-other-id-start:
30082         * modules/unictype/property-other-lowercase:
30083         * modules/unictype/property-other-math:
30084         * modules/unictype/property-other-uppercase:
30085         * modules/unictype/property-paired-punctuation:
30086         * modules/unictype/property-paragraph-separator:
30087         * modules/unictype/property-pattern-syntax:
30088         * modules/unictype/property-pattern-white-space:
30089         * modules/unictype/property-private-use:
30090         * modules/unictype/property-punctuation:
30091         * modules/unictype/property-quotation-mark:
30092         * modules/unictype/property-radical:
30093         * modules/unictype/property-sentence-terminal:
30094         * modules/unictype/property-soft-dotted:
30095         * modules/unictype/property-space:
30096         * modules/unictype/property-terminal-punctuation:
30097         * modules/unictype/property-test, modules/unictype/property-titlecase:
30098         * modules/unictype/property-unassigned-code-value:
30099         * modules/unictype/property-unified-ideograph:
30100         * modules/unictype/property-uppercase:
30101         * modules/unictype/property-variation-selector:
30102         * modules/unictype/property-white-space:
30103         * modules/unictype/property-xid-continue:
30104         * modules/unictype/property-xid-start:
30105         * modules/unictype/property-zero-width, modules/unictype/scripts:
30106         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
30107         * modules/unictype/syntax-c-whitespace:
30108         * modules/unictype/syntax-java-ident:
30109         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
30110         * modules/unigbrk/u16-grapheme-breaks:
30111         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
30112         * modules/unigbrk/u32-grapheme-breaks:
30113         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
30114         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
30115         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
30116         * modules/unigbrk/uc-is-grapheme-break:
30117         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
30118         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
30119         * modules/unilbrk/u16-width-linebreaks:
30120         * modules/unilbrk/u32-possible-linebreaks:
30121         * modules/unilbrk/u32-width-linebreaks:
30122         * modules/unilbrk/u8-possible-linebreaks:
30123         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
30124         * modules/unilbrk/ulc-possible-linebreaks:
30125         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
30126         * modules/uniname/uniname, modules/uninorm/base:
30127         * modules/uninorm/canonical-decomposition:
30128         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
30129         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
30130         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
30131         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
30132         * modules/uninorm/nfkc, modules/uninorm/nfkd:
30133         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
30134         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
30135         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
30136         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
30137         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
30138         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
30139         * modules/unistdio/base, modules/unistdio/u-printf-args:
30140         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
30141         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
30142         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
30143         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
30144         * modules/unistdio/u16-u16-sprintf:
30145         * modules/unistdio/u16-u16-vasnprintf:
30146         * modules/unistdio/u16-u16-vasprintf:
30147         * modules/unistdio/u16-u16-vsnprintf:
30148         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
30149         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
30150         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
30151         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
30152         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
30153         * modules/unistdio/u32-u32-asnprintf:
30154         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
30155         * modules/unistdio/u32-u32-sprintf:
30156         * modules/unistdio/u32-u32-vasnprintf:
30157         * modules/unistdio/u32-u32-vasprintf:
30158         * modules/unistdio/u32-u32-vsnprintf:
30159         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
30160         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
30161         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
30162         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
30163         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
30164         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
30165         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
30166         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
30167         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
30168         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
30169         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
30170         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
30171         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
30172         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
30173         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
30174         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
30175         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
30176         * modules/unistr/u16-check, modules/unistr/u16-chr:
30177         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
30178         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
30179         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
30180         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
30181         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
30182         * modules/unistr/u16-move, modules/unistr/u16-next:
30183         * modules/unistr/u16-prev, modules/unistr/u16-set:
30184         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
30185         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
30186         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
30187         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
30188         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
30189         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
30190         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
30191         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
30192         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
30193         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
30194         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
30195         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
30196         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
30197         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
30198         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
30199         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
30200         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
30201         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
30202         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
30203         * modules/unistr/u32-next, modules/unistr/u32-prev:
30204         * modules/unistr/u32-set, modules/unistr/u32-startswith:
30205         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
30206         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
30207         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
30208         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
30209         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
30210         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
30211         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
30212         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
30213         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
30214         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
30215         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
30216         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
30217         * modules/unistr/u8-check, modules/unistr/u8-chr:
30218         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
30219         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
30220         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
30221         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
30222         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
30223         * modules/unistr/u8-next, modules/unistr/u8-prev:
30224         * modules/unistr/u8-set, modules/unistr/u8-startswith:
30225         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
30226         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
30227         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
30228         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
30229         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
30230         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
30231         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
30232         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
30233         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
30234         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
30235         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
30236         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
30237         * modules/uniwbrk/base, modules/uniwbrk/table:
30238         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
30239         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
30240         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
30241         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
30242         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
30243         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
30244         * modules/uniwidth/width, modules/utf16-ucs4:
30245         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
30246         * modules/utf8-ucs4-unsafe:
30247         Change maintainer from Bruno Haible to Daiki Ueno.
30248         This is my guess at the libunistring modules; please feel free
30249         to fix if I guessed incorrectly.
30250         * modules/accept4, modules/acl, modules/acos, modules/acosf:
30251         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
30252         * modules/areadlink, modules/array-list, modules/array-mergesort:
30253         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
30254         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
30255         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
30256         * modules/binary-io, modules/bison-i18n, modules/btowc:
30257         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
30258         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
30259         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
30260         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
30261         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
30262         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
30263         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
30264         * modules/closedir, modules/concat-filename, modules/copy-file:
30265         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
30266         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
30267         * modules/csharpcomp-script, modules/csharpexec:
30268         * modules/csharpexec-script, modules/ctype, modules/diffseq:
30269         * modules/dprintf, modules/dprintf-posix, modules/dup:
30270         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
30271         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
30272         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
30273         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
30274         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
30275         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
30276         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
30277         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
30278         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
30279         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
30280         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
30281         * modules/findprog, modules/findprog-lgpl, modules/floor:
30282         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
30283         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
30284         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
30285         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
30286         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
30287         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
30288         * modules/freadable, modules/freadahead, modules/freadptr:
30289         * modules/freadseek, modules/freopen, modules/frexp:
30290         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
30291         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
30292         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
30293         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
30294         * modules/ftello, modules/full-read, modules/full-write:
30295         * modules/fwritable, modules/fwriteerror, modules/gcd:
30296         * modules/get-rusage-as, modules/get-rusage-data:
30297         * modules/getdtablesize, modules/getrusage, modules/gettext:
30298         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
30299         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
30300         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
30301         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
30302         * modules/iconv, modules/iconv-h, modules/iconv_open:
30303         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
30304         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
30305         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
30306         * modules/integer_length_ll, modules/ioctl, modules/isatty:
30307         * modules/isblank, modules/isnand, modules/isnand-nolibm:
30308         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
30309         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
30310         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
30311         * modules/javaexec, modules/javaexec-script, modules/javaversion:
30312         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
30313         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
30314         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
30315         * modules/lib-symbol-visibility, modules/libsigsegv:
30316         * modules/linked-list, modules/linkedhash-list, modules/list:
30317         * modules/localcharset, modules/locale, modules/localeconv:
30318         * modules/localename, modules/lock, modules/log, modules/log-ieee:
30319         * modules/log10, modules/log10-ieee, modules/log10f:
30320         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
30321         * modules/log1p, modules/log1p-ieee, modules/log1pf:
30322         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
30323         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
30324         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
30325         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
30326         * modules/logf, modules/logf-ieee, modules/login_tty:
30327         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
30328         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
30329         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
30330         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
30331         * modules/mbscspn, modules/mbsinit, modules/mbslen:
30332         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
30333         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
30334         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
30335         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
30336         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
30337         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
30338         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
30339         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
30340         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
30341         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
30342         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
30343         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
30344         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
30345         * modules/posix_spawn, modules/posix_spawn-internal:
30346         * modules/posix_spawn_file_actions_addclose:
30347         * modules/posix_spawn_file_actions_adddup2:
30348         * modules/posix_spawn_file_actions_addopen:
30349         * modules/posix_spawn_file_actions_destroy:
30350         * modules/posix_spawn_file_actions_init:
30351         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
30352         * modules/posix_spawnattr_getpgroup:
30353         * modules/posix_spawnattr_getschedparam:
30354         * modules/posix_spawnattr_getschedpolicy:
30355         * modules/posix_spawnattr_getsigdefault:
30356         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
30357         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
30358         * modules/posix_spawnattr_setschedparam:
30359         * modules/posix_spawnattr_setschedpolicy:
30360         * modules/posix_spawnattr_setsigdefault:
30361         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
30362         * modules/pow, modules/powf, modules/printf-frexp:
30363         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
30364         * modules/progname, modules/propername, modules/pselect:
30365         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
30366         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
30367         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
30368         * modules/read, modules/readdir, modules/readlink:
30369         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
30370         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
30371         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
30372         * modules/relocatable-script, modules/remainder:
30373         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
30374         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
30375         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
30376         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
30377         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
30378         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
30379         * modules/setlocale, modules/sh-quote, modules/shutdown:
30380         * modules/signal, modules/signbit, modules/sigpipe:
30381         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
30382         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
30383         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
30384         * modules/snippet/link-warning, modules/snippet/unused-parameter:
30385         * modules/snprintf, modules/snprintf-posix, modules/spawn:
30386         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
30387         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
30388         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
30389         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
30390         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
30391         * modules/streq, modules/strerror_r-posix, modules/striconv:
30392         * modules/striconveh, modules/striconveha, modules/strncat:
30393         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
30394         * modules/sublist, modules/sys_resource, modules/sys_utsname:
30395         * modules/sys_wait, modules/system-posix, modules/system-quote:
30396         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
30397         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
30398         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
30399         * modules/truncf, modules/truncf-ieee, modules/truncl:
30400         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
30401         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
30402         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
30403         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
30404         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
30405         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
30406         * modules/wait-process, modules/waitpid, modules/wcpcpy:
30407         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
30408         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
30409         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
30410         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
30411         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
30412         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
30413         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
30414         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
30415         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
30416         * modules/write, modules/xconcat-filename, modules/xlist:
30417         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
30418         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
30419         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
30420         * modules/y0, modules/y1, modules/yn:
30421         Remove Bruno Haible as maintainer; if he's the sole maintainer,
30422         change the maintainer to 'all'.  Let's hope someone volunteers.
30424 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
30426         mktime: merge #if/#ifdef usage from glibc
30427         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
30428         as that works with both Glibc's and Gnulib's style.
30429         See thread starting at Siddhesh Poyarekar's bug report at:
30430         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
30432 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
30434         git-version-gen: improve option descriptions
30435         * build-aux/git-version-gen: Mention that --prefix and --fallback
30436         have a mandatory argument.
30438 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30440         regex: fix memory leak in compiler
30441         Fix by Andreas Schwab in:
30442         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
30443         * lib/regcomp.c (parse_expression): Deallocate partially
30444         constructed tree before returning error.
30446         regex: merge patch from libc
30447         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
30448         Combine __USE_BSD and __USE_SVID into __USE_MISC.
30449         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
30451 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
30453         acl: port to gcc -Wredundant-decls
30454         From a request by Dmitry Antipov in:
30455         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
30456         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
30457         "#ifndef _GL_ACL_H".
30459 2014-06-11  Bruce Korb  <bkorb@gnu.org>
30460         Jim Meyering  <meyering@fb.com>
30462         parse-duration: eliminate 68-year duration limit
30463         * lib/parse-duration.c: Include "intprops.h".
30464         (TIME_MAX): Rename to MAX_DURATION and define to
30465         TYPE_MAXIMUM(time_t).
30466         * modules/parse-duration (Depends-on): Add intprops.
30467         Reported by Jonas 'Sortie' Termansen.
30469 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30471         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
30472         * modules/pthread (Depends-on): Add 'extensions', as it defines
30473         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
30474         (configure.ac-early): New section.
30475         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
30476         it is no longer needed.
30478 2014-06-14  Pádraig Brady  <P@draigBrady.com>
30480         pthread: define thread-safe macros on some platforms
30481         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
30482         for thread-safe operation on some platforms.
30484 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
30486         regex: don't be multithreaded if USE_UNLOCKED_IO.
30487         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
30488         * lib/regex_internal.h: Do not use multithreaded version if
30489         USE_UNLOCKED_IO is defined.  This is a hack, but it works
30490         around a porting bug with coreutils 8.22 on AIX 7.1.
30492 2014-06-11  Daiki Ueno  <ueno@gnu.org>
30494         gettext: update macros to version 0.19
30495         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
30496         depend on gl_EXTERN_INLINE and drop support for older Bison
30497         versions.
30499 2014-06-10  Pádraig Brady  <P@draigBrady.com>
30501         select,poll: fix console handle check on windows 8
30502         lib/poll.c (IsConsoleHandle): Change from testing the lower
30503         2 bits of the handle to the more expensive but accurate syscall.
30504         lib/select.c: Likewise.
30506 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30508         select: fix waiting on anonymous pipes on MS-Windows
30509         * lib/select.c (rpl_select): Fall back to polling when select()
30510         indicates there is nothing to check, while due to the timeout not
30511         expiring, activity is indicated on one of the handles.
30512         Also clear the TIMEOUT argument if the timer does expire.
30514 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30516         times: fix to return non constant value on MS-Windows
30517         * lib/times.c (times): Don't use the process creation time,
30518         rather clock() which on windows returns the number of
30519         clock ticks since the process started.
30521 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
30523         isatty: fix to work on windows 8
30524         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
30525         2 bits of the handle to the more expensive but accurate syscall.
30527 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
30529         maint: fix typo in fdl.texi
30530         * doc/fdl.texi: Fix typo (missing '@').
30531         Somehow this was in fdl.texi but not fdl-1.3.texi.
30533 2014-06-06  Ben Walton  <bdwalton@gmail.com>
30535         mountlist: avoid hasmntopt const type warning on solaris
30536         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
30537         with char * instead of const char *.  Passing the constant string
30538         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
30539         to avoid the warning.
30541 2014-06-04  Eric Blake  <eblake@redhat.com>
30543         maintainer-makefile: delete obsolete code
30544         * top/maint.mk (build_aux): Drop old code, as threatened.
30546         maintainer-makefile: avoid spurious error messages
30547         * top/maint.mk (syntax-check): Guard definition and use of
30548         $(shell) by whether Makefile is present.
30550 2014-06-03  Ben Walton  <bdwalton@gmail.com>
30552         rename: avoid unused-but-set-variable compiler warning
30553         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
30554         it is possible that dst_exists may be set but not used.  Mark it with
30555         the unused attribute to avoid compiler warnings.
30557 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30559         rename: mark a label as potentially unused
30560         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
30561         by marking the out label as potentially unused.
30562         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
30564 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30566         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
30567         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
30569 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30571         acl: apply pure attribute to two functions
30572         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
30573         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
30575 2014-06-01  Pádraig Brady  <P@draigBrady.com>
30577         gnulib-common.m4: add _GL_UNUSED_LABEL
30578         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
30579         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
30581 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
30583         dup2, fcntl, fcntl-h: port to AIX 7.1
30584         This fixes some porting problems discovered when testing the latest
30585         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
30586         in grep but it could be important for other applications.
30587         * doc/posix-functions/dup2.texi:
30588         * doc/posix-functions/fcntl.texi:
30589         * doc/posix-headers/fcntl.texi:
30590         Document AIX bugs.
30591         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
30592         Define to 0 if outside 'int' range.
30593         * m4/dup2.m4 (gl_FUNC_DUP2):
30594         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30595         Check for getdtablesize.  If it's available, test a value just
30596         outside its range instead of testing 1000000.  When cross-compiling,
30597         guess that AIX will fail this improved test.
30599 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30601         printf, config.rpath: Port to FreeBSD 10.
30602         Problem reported by Tijl Coosemans in:
30603         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
30604         * build-aux/config.rpath (hardcode_libdir_flag_spec)
30605         (hardcode_direct): Simplify FreeBSD configuration.
30606         (library_names_spec): Don't mishandle FreeBSD 10+.
30607         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
30608         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
30609         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
30610         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
30611         Don't mishandle FreeBSD 10+ when cross-compiling.
30613         ftoastr: work around compiler bug in IBM xlc 12.1
30614         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
30615         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
30616         around a compiler bug in IBM xlc 12.1.0.0: it complains
30617         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
30618         _GL_FLT_PREC_BOUND.'
30620 2014-05-30  Kieran Colford  <colfordk@gmail.com>
30622         valgrind-tests: fixed misleading help message
30623         * m4/valgrind-tests.m4: The help message generated by configure
30624         implied that valgrind was disabled by default, which it wasn't.
30625         Adjusted the help message using s/enable/disable/ to clarify.
30627 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
30629         isfinite, isinf, isnan tests: fix for little-endian PowerPC
30630         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
30631         first double of a PowerPC "double double" pair.
30632         * tests/test-isinf.c (test_isinfl): Likewise.
30633         * tests/test-isnan.c (test_long_double): Likewise.
30634         * tests/test-isnanl.h (main): Likewise.
30635         * tests/test-signbit.c (test_signbitl): Likewise.
30637 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30639         exclude-tests: port to AIX 7.1
30640         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
30641         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
30642         the regex code uses locks.
30644 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
30646         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
30647         Without this fix, Emacs would sometimes call sigprocmask instead
30648         of pthread_sigmask, which is a no-no in multithreaded applications.
30649         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
30650         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30651         Suppress check for pthread_sigmask working without -lpthread if
30652         the application always links with -lpthread.  Do not link with
30653         $LIBMULTITHREAD if gl_THREADLIB is not defined.
30654         * m4/timer_time.m4 (gl_TIMER_TIME):
30655         Require gl_THREADLIB only if it is defined.  Do not append
30656         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
30658 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
30660         gnulib-tool: wget translations using --no-verbose rather than --quiet
30661         This allows the user to see error messages if any (--quiet hides them)
30662         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
30664 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
30666         gnulib-tool: adjust translation wget to avoid a https redirection
30667         Context: http://translationproject.org/latest/gnulib redirects to
30668            https://translationproject.org/latest/gnulib/
30669         Rationale: if the user falls back to wget, she doesn't have rsync and
30670         is probably in a minimal build environment, where packages such as
30671         'ca-certificates' are missing as well, resulting in a failed (and
30672         difficult to detect since ignored) translation initial fetch.
30673         Consequently let's avoid https if possible, and add the missing
30674         trailing slash.  This also avoids an unnecessary 302 redirection.
30675         * gnulib-tool: Add trailing slash to gnulib URL.
30677 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30679         getlogin_r-tests: check return value rather than errno
30680         * tests/test-getlogin_r.c (main): As per POSIX we should be
30681         verifying the return value from getlogin_r() rather than errno.
30683 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30685         getlogin_r-tests: fix various issues in recent change
30686         * tests/test-getlogin_r.c: Include required headers that were
30687         missed in recent commit eec20b4e.
30688         Also consistently check the errno rather than the return value from
30689         getlogin_r as POSIX only specifies that non zero is returned on error.
30690         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
30692 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
30694         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
30695         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
30696         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
30697         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
30698         * lib/spawn-pipe.c:
30699         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
30700         and then 'int open64(const char *, int, ...);', which means the
30701         declaration for 'open' gets lost if we later '#undef open'.
30702         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
30703         where the compilation reported the non-fatal error "In function
30704         'openat_proc_name' ... warning: implicit declaration of function
30705         'open'".  In this case the error is relatively harmless, but in
30706         other cases it might not be so minor.
30708 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30710         xalloc: don't potentially generate invalid code for xmemdup calls
30711         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
30712         this function can initialize the newly-allocated storage with new
30713         pointers, which means this function is not malloc-like.  See:
30714         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
30716 2014-05-19  Pádraig Brady  <P@draigBrady.com>
30718         getlogin_r-tests: avoid false failure under sudo/ssh etc.
30719         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
30720         changes from commit 97249cf29 to not depend on environment variables.
30722 2014-05-18  Pádraig Brady  <P@draigBrady.com>
30724         getlogin-tests: avoid false failure under cron
30725         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
30726         since that's not what's under test.  Centos 6 was seen to return
30727         EINVAL for ttyname() when run from cron.
30729 2014-05-16  Jim Meyering  <meyering@fb.com>
30731         mbrtowc.m4: fix a comment typo
30732         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
30733         emitted documentation string.
30735 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30737         mbrlen, mbrtowc: fix bug with empty input
30738         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
30739         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
30740         so this is mainly for documentation.
30741         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
30742         (gl_FUNC_MBRTOWC): Use it.
30743         * tests/test-mbrtowc.c (main): Test for the bug.
30745 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30747         doc: document mbrtowc and mbrlen problem with empty input
30748         * doc/posix-functions/mbrlen.texi (mbrlen):
30749         * doc/posix-functions/mbrtowc.texi (mbrtowc):
30750         Document portability problem when the input string is empty.  See:
30751         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
30753         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
30754         Problem reported by Eli Zaretskii in:
30755         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
30756         * doc/posix-functions/execl.texi (execl):
30757         * doc/posix-functions/execle.texi (execle):
30758         * doc/posix-functions/execlp.texi (execlp):
30759         * doc/posix-functions/execv.texi (execv):
30760         * doc/posix-functions/execve.texi (execve):
30761         * doc/posix-functions/execvp.texi (execvp):
30762         Mention spawn+exit problem on non-Cygwin Windows platforms.
30764 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
30766         getlogin-tests: avoid false failure under sudo/ssh etc.
30767         * modules/getlogin-tests (configure.ac): Check for ttyname().
30768         * tests/test-getlogin.c (main): Don't depend on environment variables
30769         to correlate with getlogin(), since sudo and ssh etc. can tamper
30770         with the LOGNAME and USER env vars.  Instead lookup the name from
30771         the uid associated with the stdin tty.
30773 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30775         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
30776         These were found when building the latest grep snapshot on IRIX 6.5.
30777         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
30778         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
30779         never used later.
30780         * lib/quotearg.c (quoting_options_from_style):
30781         * lib/xstrtol.c (__xstrtol):
30782         Use enum instead of 0, to pacify IRIX 6.5 cc.
30784 2014-04-18  Pádraig Brady  <P@draigBrady.com>
30786         gitlog-to-changelog: revert inclusion of git-log-fix file
30787         * build-aux/git-log-fix: Delete dummy file.
30788         * modules/gitlog-to-changelog: Don't reference (overwrite)
30789         the project specific git-log-fix file.
30791 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
30793         maint.mk: Relax the copyright check to cater for non FSF projects
30794         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
30795         to not require the "Free" suffix after the copyright years.
30797 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
30799         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
30800         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
30801         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
30802         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
30803         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
30805 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
30807         exclude: port to strict C99
30808         Strict C does not allow converting a function pointer to void *
30809         and vice versa.  Pass a pointer to a function pointer instead.
30810         * lib/exclude.c (add_exclude_file):
30811         Pass the address of the function pointer.
30812         (call_addfn): And deference the address here, to match.
30814 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30816         regex: do not depend on malloc-gnu
30817         * modules/regex (Depends-on): Remove malloc-gnu.
30818         It's no longer needed, because of the 2012-12-29 patch
30819         "regex: port to hosts where malloc (0) == NULL".
30820         Reported by Nathan Kennedy in:
30821         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
30823 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
30825         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
30826         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
30827         * doc/posix-functions/expl.texi: Mention the workaround.
30829 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30831         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
30832         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
30833         size to be zero even when the pointer is nonnull.  This
30834         accommodates the use case where P is malloc (0) and *PN is 0 on a
30835         host where malloc (0) yields nonnull.
30837 2014-04-09  Eric Blake  <eblake@redhat.com>
30839         fts: avoid unnecessary strlen calls
30840         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
30842 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30844         fts: avoid unnecessary strlen calls
30845         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
30846         when that can be faster than strlen.
30848 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30850         fts: avoid unnecessary strlen calls
30851         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
30852         (fts_build): Store the length of the dp->d_name entry in a local variable
30853         instead of calling strlen() several times via the above, removed macro.
30854         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
30855         run by ~4%, yet this reduces the execution time by about a third if run
30856         via "ltrace -c rm -rf some-dir".
30858 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30860         obstack: Remove ancient NeXTSTEP gcc support conditional
30861         This change will ease merging with glibc.  The "#if ... __NEXT__"
30862         causes a warning with -Wundef which glibc now enables by default.
30863         Problem reported by Will Newton in
30864         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
30865         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
30866         so go with that.
30867         * lib/obstack.h (__extension__):
30869 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30871         obstack: merge with glibc changes
30872         * lib/obstack.c, lib/obstack.h: Merge from glibc.
30873         This is mostly indenting and commentary changes.
30874         Instances of 'register' have been removed.
30876 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30878         strftime: wrap macros in "do {...} while(0)"
30879         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
30880         this macro in "do {...} while(0)" to prevent false use as a
30881         single statement, e.g., in an un-braced "{}" else-block.
30882         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
30883         (strftime_case_): Remove 'else' after 'goto' - which was the
30884         only non-fatal, un-braced use of one of the above macros.
30885         Spotted by coverity (NESTING_INDENT_MISMATCH).
30887 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30889         modechange: avoid memory leaks for invalid octal modes
30890         * lib/modechange.c (mode_compile): During the parsing of
30891         notations like +40, free the 'mc' buffer for invalid mode
30892         strings like +17777 (greater than the maximum octal mode),
30893         =18 (bad octal mode characters) or u=1 ('affected' with
30894         octal modes).
30895         Reproducer, e.g.:
30896             $ valgrind --leak-check=full chmod +17777 file
30897         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30898         add notations +40, 00440, etc.".
30899         Spotted by coverity (RESOURCE_LEAK).
30901 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30903         gitlog-to-changelog: include a dummy git-log-fix file
30904         Problem reported by Nathan Stratton Treadway in:
30905         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30906         * build-aux/git-log-fix: New file.
30908 2014-03-13  Jim Meyering  <meyering@fb.com>
30910         gitlog-to-changelog: also include the file, git-log-fix
30911         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30912         Reported by Assaf Gordon.
30914 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30916         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30917         This fixes a bug when ignoring case and when comparing the
30918         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30919         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30920         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30921         titlecase letter is neither lowercase nor uppercase, but
30922         uppercasing the titlecase letter (via towupper) yields the
30923         uppercase letter, so the two letters should match when ignoring case.
30924         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30925         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30926         Don't test whether a character is lowercase before uppercasing it.
30928 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30930         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30931         This is basically one of the options Bruno Haible proposed in:
30932         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30933         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30934         * lib/stdint.in.h: Use it.
30935         * modules/stdint (Depends-on): Add sys_types.
30937 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30939         parse-datetime: fix crash or infloop in TZ="" parsing
30940         * lib/parse-datetime.y (parse_datetime): Break out of the
30941         TZ="" parsing loop once the second significant " is found.
30942         Also skip over any subsequent whitespace to be consistent
30943         with the non TZ= case.
30944         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30946 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30948         savedir: new symbol for fast-read version
30949         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30950         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30951         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30952         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30954 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30956         unistd: port readlink to Mac OS X 10.3.9
30957         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30958         around self-include problem in Mac OS X 10.3.9 when combined with
30959         readlink module.  Problem reported by Klaus Zietler in
30960         <http://bugs.gnu.org/16825>.
30962 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30964         diffseq: remove TOO_EXPENSIVE heuristic
30965         Problem with diffutils reported by Vincent Lefevre in
30966         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30967         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30968         Although appropriate for circa-1993 hardware, these days the heuristic
30969         seems to be more trouble than it's worth.
30970         * lib/diffseq.h: Modernize citations.
30971         (struct context): Remove member too_expensive.
30972         All uses changed.
30973         (struct partition): Remove members lo_minimal, hi_minimal.
30974         All uses changed.
30975         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30976         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30977         1993 to make 'diff' run faster (but not as well) on large inputs.
30978         These days, computers are fast enough that it's typically better
30979         to run slower but more accurately.
30980         * lib/fstrcmp.c: Remove duplicate comment.
30981         * lib/fstrcmp.c (strcmp_bounded):
30982         * lib/git-merge-changelog.c (compute_differences):
30983         Adjust to diffseq.h changes.
30984         * NEWS: Document the change.
30986         savedir: simplify by using stpcpy
30987         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30988         (streamsavedir): Use stpcpy instead.
30989         * modules/savedir (Depends-on): Add stpcpy.
30991 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30993         spawn: fix link error on uclibc
30994         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30995         to incorporate -lrt if needed (on uclibc for example).
30996         * modules/posix_spawn: Reference the substituted LIB.
30998 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30999         timer: fix uClibc detection of threading
31000         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
31001         enabled in uClibc.
31003 2014-02-21  Eric Blake  <eblake@redhat.com>
31005         maintainer-makefiles: provide AC_PROG_SED for older autoconf
31006         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
31008 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
31010         exclude: add support for posix regexps
31012         This commit adds support for POSIX extended regular expressions
31013         and fixes a long-standing memory leak (pattern buffer was never
31014         freed).  It also implements a new interface function to read
31015         exclude patterns from a FILE, which passes an additional parameter
31016         to its callback function, thereby allowing to preserve its state
31017         between invocations.
31019         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
31020         (pattern_buffer): New struct.
31021         (exclude): New member patbuf.
31022         (exclude_add_pattern_buffer): New function.
31023         (free_exclude_segment): Free regexps.
31024         (free_exclude): Free allocated pattern buffers.
31025         (exclude_patopts): New function.
31026         (file_pattern_matches): Use exclude_patopts.
31027         (add_exclude): support regexps.
31028         (add_exclude_fp): New function.
31029         (add_exclude_file): Rewrite using add_exclude_fp.
31030         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
31031         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
31032         (add_exclude_fp)
31033         (add_exclude_file): Rewrite using add_exclude_fp.
31034         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
31035         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
31036         (add_exclude_fp)
31037         (exclude_add_pattern_buffer): New prototypes.
31038         * modules/exclude: Depends on regex and filename.
31040 2014-02-20  Eric Blake  <eblake@redhat.com>
31042         maintainer-makefiles: use $(SED) for syntax check
31043         * modules/maintainer-makefile (configure.ac): Check for sane sed.
31044         * top/maint.mk: Change sed to $(SED).
31046 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
31047             Paul Eggert  <eggert@cs.ucla.edu>
31049         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
31050         Patch based on an idea by Dick Streefland in
31051         <https://savannah.gnu.org/patch/?7892>.
31052         * NEWS: Document this.
31053         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
31054         (direntry_t, comparison_function): New types.
31055         (direntry_cmp_name): New function.
31056         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
31057         (streamsavedir, savedir): New arg OPTION.
31058         (streamsavedir): Simplify memory allocation.
31059         (fdsavedir): Remove.
31060         * lib/savedir.h (enum savedir_option): New type.
31061         (streamsavedir, savedir): New arg OPTION.
31062         (fdsavedir): Remove.
31064 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
31066         file-type: add support for doors and other less-common file types
31067         Problem with S_ISDOOR reported by Rich Burridge.
31068         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
31069         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
31070         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
31072 2014-01-23  Eric Blake  <eblake@redhat.com>
31074         pthread: work around winpthread header pollution on mingw
31075         * lib/time.in.h: Move pthread workarounds...
31076         * lib/pthread.in.h: ...here.
31077         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
31078         detect macro pollution on mingw.
31079         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
31081 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31083         qacl: check for fchmod
31084         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
31085         and qset-acl.c both use HAVE_FCHMOD.
31087 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31089         fdopen-tests: port to Tru64
31090         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
31091         descriptor that is not open, as POSIX doesn't specify the
31092         resulting behavior and the test does not work on Tru64.
31093         Problem reported by Steven M. Schweda in:
31094         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
31096         stdalign: port to HP-UX compilers
31097         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
31098         if __HP_cc or __HP_aCC are nonzero.
31100 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31102         strtoimax: port to platforms lacking 'long long'
31103         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
31104         check whether strtoll is declared, which causes the C file to
31105         wrongly report an error.  Problem reported by Steven M. Schweda in:
31106         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
31107         * lib/strtoimax.c (strtoull):
31108         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
31109         (strtoll): Declare only if HAVE_LONG_LONG_INT.
31111 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
31113         relocatable-perl: fix texi syntax
31114         * doc/relocatable-maint.texi: Escape braces.
31116 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
31118         relocatable-perl: like relocatable-script, but for Perl scripts
31119         * build-aux/relocatable.pl.in: Add.
31120         * doc/relocatable-maint.texi: Add documentation.
31121         * modules/relocatable-perl: Add.
31123 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
31125         tests: fix export bug in previous patch
31126         Problem reported by Jim Meyering.
31127         * tests/init.sh (re_shell): New var, which is exported instead of
31128         re_shell_.
31130         tests: simplify porting to Solaris 10 /bin/sh
31131         Some test cases in 'grep' need a shell that groks '$(';
31132         export re_shell_ for their benefit.  Problem reported for 'grep'
31133         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
31134         * tests/init.sh (re_shell_): Export if it's used.
31136 2014-01-06  Eric Blake  <eblake@redhat.com>
31138         md5, sha1, sha256, sha512: support older autoconf
31139         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
31140         for autoconf < 2.63b.
31142         include_next: port to autoconf 2.63
31143         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
31145 2014-01-04  Jim Meyering  <meyering@fb.com>
31147         maint: add a gnulib-local rule to keep non-ascii out of .texi files
31148         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
31149         so that "make sc_maint" will ding anyone who puts non-ascii
31150         in any of gnulib's .texi files.
31152 2014-01-03  Jim Meyering  <meyering@fb.com>
31154         freadable, fwritable, fwriting: declare with the "pure" attribute
31155         * lib/freadable.h (freadable): Declare with the "pure" attribute.
31156         * lib/fwritable.h (fwritable): Likewise.
31157         * lib/fwriting.h (fwriting): Likewise.
31158         Suggested by Bruno Haible.
31160         maint.mk: adapt openat.h-include-without-use test
31161         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
31162         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
31163         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
31164         With this change, running "make sc_maint" in gnulib's top-level
31165         directory now passes for me.
31167 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31169         doc: use ASCII in .texi files where UTF-8 isn't needed
31170         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
31171         * doc/posix-functions/setkey.texi, doc/regex.texi:
31172         Use ASCII input, not UTF-8.
31174 2014-01-02  Jim Meyering  <meyering@fb.com>
31176         freading: declare with the "pure" attribute
31177         * lib/freading.h (freading): Declare with the "pure" attribute.
31179         manywarnings: remove -Wmudflap
31180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
31181         it is no longer supported in gcc-4.9-to-be.
31183 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31185         relocatable-script: remove unused code
31186         Problem reported by Reuben Thomas in:
31187         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
31188         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
31190 2014-01-01  Jim Meyering  <meyering@fb.com>
31192         maint: fix public-submodule-commit to work with newer git
31193         * top/maint.mk (public-submodule-commit): Remove excess quoting.
31194         We were over-quoting the test arguments, and somewhere prior to
31195         version 1.8.5.2.229, git stopped removing those excess quotes,
31196         which made the test fail, since the unexpanded strings would
31197         always differ; using GIT_TRACE=1 confirmed that the git merge-base
31198         command wasn't even being run.
31200 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31202         doc: update main copyright year
31203         * doc/gnulib.texi: Update copyright date.
31205 2014-01-01  Eric Blake  <eblake@redhat.com>
31207         version-etc: new year
31208         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
31209         * all files: run 'make update-copyright'
31211 2013-12-24  Eric Blake  <eblake@redhat.com>
31213         passfd: give nicer error for recvfd at eof
31214         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
31215         * tests/test-passfd.c (main): Enhance test to cover this.
31217 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
31219         gettimeofday: port recent C++ fix to Emacs
31220         Without this further patch, Emacs won't build due to
31221         the portcheck failing.  Also, this simplifies the patch a bit.
31222         * lib/time.in.h (localtime, gmtime): Don't replace unless
31223         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
31224         * lib/time.in.h (localtime, gmtime):
31225         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
31226         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
31227         * modules/time (time.h):
31228         Don't worry about the possibility of localtime and gmtime
31229         being absent; they're present in all C libraries we know about.
31230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
31231         Don't assume sys_time is present and has been initialized.
31232         Instead, use a hack that should work even if it hasn't been.
31233         Don't use a portcheck for gmtime or localtime; this supports
31234         the hack.
31235         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
31237 2013-12-17  John W. Eaton  <jwe@gnu.org>
31239         gettimeofday: fix C++ crosscompilation
31241         Never replace gmtime and localtime by macros when compiling with
31242         C++, this prevents <ctime> from being included.
31244         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
31245         define gmtime and localtime as preprocessor macros.  Instead
31246         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
31247         REPLACE_LOCALTIME substitutions.
31248         * lib/time.in.h: Declare gmtime and localtime when needed.
31249         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
31250         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
31251         * modules/time: Depend on gettimeofday, and substitute the above
31252         variables in time.h.
31254 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
31256         qacl: port to Windows better
31257         See Eli Zaretskii in
31258         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
31259         * lib/file-has-acl.c (acl_access_nontrivial):
31260         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
31261         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
31263 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
31265         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
31266         * lib/gl_openssl.h: Cast void pointers to a specific type.
31268 2013-12-07  Pádraig Brady  <P@draigBrady.com>
31270         open-tests: fix build failure with -Werror=old-style-declaration
31271         * tests/test-open.h: Reorder the inline to avoid the issue.
31273 2013-12-07  Pádraig Brady  <P@draigBrady.com>
31275         md5, sha1, sha256, sha512: fix link error with partial libcrypto
31276         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
31277         init time, so that if early checks find crypto routines,
31278         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
31279         avoiding link failures.
31281 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31283         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
31284         This provides a new way to specify the default for
31285         gl_CRYPTO_CHECK, one that is reflected in the --help message.
31286         Emacs uses this, as well as the old way.
31287         This attempts to implement a suggestion by Pádraig Brady in
31288         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
31289         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
31290         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
31292         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
31293         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
31294         Add support for a new option, --with-openssl=auto, which causes
31295         the library to be used if available and silently ignored if not.
31296         Add support to allow configure.ac to specify its own
31297         default, by setting with_openssl_default before invoking gl_INIT.
31299 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
31301         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
31302         Problem reported by Daiki Ueno in:
31303         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
31304         * tests/test-open.h (__always_inline):
31305         New macro, if not already defined.
31306         (test_open): Use it.
31308 2013-12-04  Eric Blake  <eblake@redhat.com>
31310         include_next: minimize code duplication
31311         * modules/include_next (Depends-on): Add absolute-header.
31312         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
31313         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
31315 2013-12-04  Pádraig Brady  <P@draigBrady.com>
31317         getcwd: fix compile error in configure check
31318         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
31320 2013-12-04  Pádraig Brady  <P@draigBrady.com>
31322         regex: suppress core dumps from detection code
31323         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
31324         to suppress core dumps that may well occur on glibc systems.
31325         These core dumps might not be cleaned up automatically, or could
31326         trigger some system core dump handling logic.
31328 2013-12-03  Pádraig Brady  <P@draigBrady.com>
31330         md5, sha1, sha256, sha512: support mandating use of openssl
31331         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
31332         description, to list the now 3 separate options.  also don't
31333         mention the default=no, since this is implicit given the option
31334         is described as --with-openssl rather than --without-openssl.
31335         If projects change the default they're free to document that.
31336         with --with-openssl[=yes] we now error out when the specified
31337         hash algorithm is not available in libcrypto.
31339 2013-12-03  Ivailo  <xakepa10@gmail.com>
31341         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
31342         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
31343         -Wformat-nonliteral checks, as these edge cases are part of the test.
31345 2013-12-03  Eric Blake  <eblake@redhat.com>
31347         regex: avoid glibc deadlock during configure
31348         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
31349         glibc bug 15078 in turn triggers bug 16159.
31350         Reported by Michal Privoznik.
31352 2013-12-02  Pádraig Brady  <P@draigBrady.com>
31354         md5, sha1, sha256, sha512: use openssl routines if available.
31355         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
31356         routines will be used if available, requiring apps to link @LIB_CRYPTO@
31357         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
31358         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
31359         in the standard system location.
31360         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
31361         * m4/sha256.m4: Likewise with SHA256.
31362         * m4/sha512.m4: Likewise with SHA512.
31363         * m4/md5.m4: Likewise with MD5.
31364         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
31365         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
31366         * lib/sha256.h: Likewise with SHA256.
31367         * lib/sha512.h: Likewise with SHA512.
31368         * lib/md5.h: Likewise with MD5.
31369         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
31370         * lib/sha256.c: Likewise with SHA256.
31371         * lib/sha512.c: Likewise with SHA512.
31372         * lib/md5.c: Likewise with MD5.
31373         * modules/crypto/sha1 (Link:): Add the new optional lib.
31374         (Depends-on:): Add dependency on extern-inline.
31375         * modules/crypto/sha256: Likewise.
31376         * modules/crypto/sha512: Likewise.
31377         * modules/crypto/md5: Likewise.
31378         * modules/crypto/sha1-tests: Reference the lib here too.
31379         * modules/crypto/md5-tests: Likewise.
31380         * modules/crypto/gc-des-tests: Likewise.
31381         * modules/crypto/gc-hmac-md5-tests: Likewise.
31382         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31383         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31384         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31385         * modules/crypto/gc-md5-tests: Likewise.
31386         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31387         * modules/crypto/gc-sha1-tests: Likewise.
31388         * modules/crypto/gc-tests: Likewise.
31389         * modules/crypto/hmac-md5-tests: Likewise.
31390         * modules/crypto/hmac-sha1-tests: Likewise.
31391         * modules/crypto/hmac-sha256-tests: Likewise.
31392         * modules/crypto/hmac-sha512-tests: Likewise.
31394 2013-11-29  RV1971  <rv1971@web.de>
31396         base64: (trivial) fix compilation regression on some compilers
31397         * lib/base64.c: Don't return the void function,
31398         instead split to a separate return statement.
31400 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31402         ignore-value: revert previous code change
31403         * lib/ignore-value.h (ignore_value): Use __extension__ and
31404         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
31405         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
31406         Change the comment to try to explain this better.
31408 2013-11-27  Pádraig Brady  <P@draigBrady.com>
31410         selinux-h: improve stub types and add more stub functions
31412         * lib/se-selinux.in.h: Change security_context_t to a typedef
31413         rather than a define, as it's a pointer type and so is better
31414         as a typedef to avoid issues declaring multiple variables
31415         with the comma operator.  Also add stub for string_to_security_class().
31416         * lib/se-context.in.h: Add stub functions for
31417         context_{type,range,role,user}_get().
31419 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31421         ignore-value: prefer GCC version back through 2.0
31422         The code didn't match the comments, so I did a bit of software
31423         archaeology.  GCC 2.0 seems to support __extension__ and
31424         __typeof__, so fix both code and comments to use 2.0.
31425         * lib/ignore-value.h (ignore_value): Use __extension__ and
31426         __typeof__ for GCC 2.0 through 3.3, too.
31428 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
31430         pty: Activate the signature wrapper of forkpty.
31431         The intended preprocessor macro HAVE_FORKPTY is
31432         never defined, yet `lib/forkpty.c' depends on it.
31434         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
31435         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
31436         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
31438 2013-11-18  Jim Meyering  <meyering@fb.com>
31439         and Paul Eggert  <eggert@cs.ucla.edu>
31441         quotearg: don't attempt to store 1 << 31 into an "int"
31442         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
31443         gcc's new -fsanitize=undefined and running its tests triggered some
31444         new test failures due to undefined behavior, all with this diagnostic:
31445           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
31446             cannot be represented in type int
31447         Rather than shifting "1" left to form a mask, shift the bits right and
31448         simply use "1" as the mask.
31450 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
31452         error: depend on stdio
31453         Problem reported by Nikos Mavrogiannopoulos in
31454         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
31455         * modules/error (Depends-on): Add stdio.
31457 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
31459         * doc/relocatable-maint.texi (Supporting Relocation): Improve
31460         wording.
31461         Reported by Reuben Thomas <rrt@sc3d.org>.
31463 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
31465         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
31466         New function and macro, to work around _DARWIN_C_SOURCE problem.
31467         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
31469 2013-11-11  Pádraig Brady  <P@draigBrady.com>
31471         base64: provide a fast path for encoding well sized buffers
31472         Avoid conditionals in the base64 encoding loop,
31473         which was seen to give 60% better throughput.
31474         * lib/base64.c (base64_encode_fast): A new function to be called
31475         when we don't want to NUL terminate, and we have enough space
31476         in the output to encode the given input.
31477         (base64_encode): Call the _fast() version when appropriate.
31478         Also remove a redundant mask with 0x3F on the first encoded byte.
31480 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
31482         extern-inline: port better to OS X 10.9
31483         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
31484         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
31485         OS X 10.9, except for g++ where the bug is still present.
31486         See <http://trac.macports.org/ticket/41033>.
31488 2013-11-08  Eric Blake  <eblake@redhat.com>
31490         fpending: fix regression on DragonFly BSD
31491         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
31492         * lib/fpending.h (__fpending): Don't declare twice.
31493         Reported by GW in
31494         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
31496 2013-11-05  Jim Meyering  <meyering@fb.com>
31498         hash: relax license to LGPLv2+, for libguestfs
31499         * modules/hash (License): Change from GPL to LGPLv2+.
31501 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31503         intprops: port to Oracle Studio c99
31504         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
31505         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
31507 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31509         obstack: pacify HP C
31510         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
31511         warning "conversion from pointer to smaller integer" from HP
31512         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
31513         C89 or later nowadays, so cast to void instead of int.  Privately
31514         reported by H.Merijn Brand.  Also, change header to match glibc's,
31515         to make checking against glibc easier.
31517 2013-10-29  Jim Meyering  <meyering@fb.com>
31519         maint.mk: prefer gpgv2 over gpgv
31520         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
31521         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
31522         Reported by Gary Vaughan.
31524 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31526         isnan: port to VAX
31527         Reported by John Klos for NetBSD-5/VAX in
31528         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
31529         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
31530         (FUNC): Use it.
31532 2013-10-28  Jim Meyering  <meyering@fb.com>
31534         gnulib-tool: protect against CDPATH
31535         * gnulib-tool: Many "cd" built-in functions print a directory name
31536         to stdout when CDPATH is set, e.g.,
31537           $ bash -c 'CDPATH=/; cd tmp'
31538           /tmp
31539         Unset it, when possible.  Prompted by a comment from Bruce Korb.
31541         maint.mk: restore functionality removed by recent change...
31542         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
31543         the context of a shallow-cloned gnulib repository: "git describe"
31544         would fail in such a directory.  However, that change made it so
31545         the reported gnulib revision no longer includes the version number
31546         or a commit count, even when run from a full clone.
31547         * top/maint.mk (gnulib-version): Use the full "git describe"
31548         output when possible, e.g., the form above, rather than the
31549         abbreviated, no-tag, no-commit-count string, and fall back to
31550         using a 10-byte hash, rather than the default minimal-length
31551         hash prefix, since while the minimal-length one may be fine today,
31552         it is likely not to be unique for very long.
31554 2013-10-26  Jim Meyering  <meyering@fb.com>
31556         maint.mk: fix "release" target to build _version
31557         This fixes a bug in README-release whereby following the outlined
31558         steps, one would publish a tarball whose programs would report
31559         --version output not consistent with the package version number.
31560         This bug caused grep-2.15 to produce a grep program whose
31561         --version option made it print 2.14.56-1e3d rather than 2.15.
31562         * top/maint.mk (release): Making this target build "_version"
31563         ensures that the new version number is reflected in configure.
31565 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
31567         install-reloc: Support multi-binary installation.
31568         * build-aux/install-reloc: Support installing multiple programs in
31569         one invocation, as done by Automake starting with commit
31570         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
31571         Haible <bruno@clisp.org>, archived at
31572         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
31573         Reported by Sylvain <beuc@gnu.org>.
31575 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31577         selinux-h: Really build without selinux when library is missing.
31578         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
31579         continue without selinux, as already told in the warning message.
31581 2013-10-21  Jim Meyering  <meyering@fb.com>
31583         regex: also remove dependency on HAVE_WCSCOLL
31584         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
31586 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
31588         xfreopen: Fix typo. s/frepoen/freopen/
31589         * lib/xfreopen.c: Fix description.
31590         * modules/xfreopen: Likewise.
31592 2013-10-21  Jim Meyering  <meyering@fb.com>
31594         regex: don't depend on wcscoll
31595         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
31596         It is no longer used.
31598 2013-10-20  Jim Meyering  <meyering@fb.com>
31600         error: add the printf attribute to a static function
31601         * lib/error.c (error_tail): Add the printf attribute, to placate
31602         gcc's -Werror=suggest-attribute=format option.
31604 2013-09-30  Jim Meyering  <meyering@fb.com>
31606         fpending, obstack, strerror-override: use pure+const function attrs
31607         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
31608         * lib/obstack.c (_obstack_allocated_p): Likewise.
31609         * lib/obstack.h (_obstack_memory_used): Likewise.
31610         (_obstack_memory_used): Likewise.
31611         * lib/strerror-override.h (strerror_override): Declare with
31612         the "const" attribute.
31614 2013-10-18  Eric Blake  <eblake@redhat.com>
31616         extern-inline: make safe for -Wundef usage
31617         Reported by Vladimir 'phcoder' Serbinenko in
31618         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
31619         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
31621 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31623         mkfifo-tests, etc.: allow HP-UX 11.11 bug
31624         Problem reported by Daniel Richard G. in
31625         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
31626         * doc/posix-functions/mkfifo.texi (mkfifo):
31627         * doc/posix-functions/mkfifoat.texi (mkfifoat):
31628         * doc/posix-functions/mknod.texi (mknod):
31629         * doc/posix-functions/mknodat.texi (mknodat):
31630         Document the HP-UX 11.11 bug.
31631         * tests/test-mkfifo.h (test_mkfifo):
31632         Allow the HP-UX 11.11 bug.
31634 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31636         acl: allow cross-compilation to Gentoo
31637         Problem reported by Gabriel Marcano in
31638         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
31639         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
31640         test only whether it links.
31642 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
31644         mgetgroups: remove dependency on realloc-gnu
31645         The dependency violates the comment in realloc-gnu, which
31646         says that tests can't depend on realloc-gnu; some tests depend
31647         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
31648         Problem reported by Daniel Richard G. in
31649         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
31650         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
31651         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
31652         not realloc-gnu.
31654 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31656         regex-tests: port to HP-UX 11.11
31657         Problem reported by Daniel Richard G. in
31658         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
31659         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
31661 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31663         verify: document some 'assume' pitfalls
31664         * doc/verify.texi (Compile-time Assertions):
31665         Mention that 'assume (E)' can sometimes slow things down.
31666         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
31668 2013-10-10  Eric Blake  <eblake@redhat.com>
31670         strtoumax: fix typo in previous commit.
31671         * modules/strtoumax (Depends-on): Fix typo.
31672         * modules/strtoimax (Depends-on): Likewise.
31674 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31676         strtoumax: port to Solaris 8
31677         This problem was introduced in the recent HP-UX patch.
31678         Reported by Tom G. Christensen in
31679         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
31680         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
31681         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
31683 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31685         strtoimax, strtoumax: port to HP-UX 11.11
31686         Problem reported by Daniel Richard G. in
31687         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
31688         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
31689         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
31690         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
31691         REPLACE_STRTOUMAX.
31692         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
31693         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
31694         Replace the function if defined as a macro but not as a function.
31695         * modules/inttypes-incomplete (inttypes.h): Substitute
31696         REPLACE_STRTOUMAX.
31697         * modules/strtoumax (configure.ac): Replace strtoumax if
31698         REPLACE_STRTOUMAX.
31700 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31702         strtoimax: port to HP-UX 11.11
31703         Problem reported by Daniel Richard G.
31704         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
31705         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
31706         they might clash with inttypes.h.
31708 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31710         New module 'count-trailing-zeros'.
31711         * MODULES.html.sh: Mention it.
31712         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
31713         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
31714         * modules/count-trailing-zeros-tests:
31715         * tests/test-count-trailing-zeros.c:
31716         New files.
31718         count-leading-zeros: port to MSC; support types wider than 64 bits
31719         The ideas behind the MSC port are stolen from Emacs.
31720         * lib/count-leading-zeros.h:
31721         Don't include verify.h: it's no longer needed, as types wider than
31722         64 bits are now supported.
31723         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
31724         performance with MSC.  All uses changed.  Do not assume that TYPE
31725         has at most 64 bits.
31726         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
31727         All uses changed.  Fold the subtraction from 31 into the table.
31729         count-one-bits: port to MSC; support types wider than 64 bits
31730         The ideas behind the MSC port are stolen from Emacs.
31731         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
31732         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
31733         Don't include verify.h: it's no longer needed, as types wider than
31734         64 bits are now supported.
31735         (COUNT_ONE_BITS_GENERIC): New macro.
31736         (popcount_supported) [_MSC_VER]: New inline function.
31737         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
31738         performance with MSC.  All uses changed.  Do not assume that TYPE
31739         has at most 64 bits.
31740         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
31742 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
31744         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
31745         * lib/mountlist.c (read_file_system_list): fix leak of directory
31746         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
31748 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31750         tests: improve diagnostic when an assertion fails
31751         * tests/macros.h (ASSERT): Report the assertion that failed.
31753 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31755         verify: new macro 'assume'
31756         This is taken from Emacs, and should be generally useful.
31757         * doc/verify.texi (assume): Document it.
31758         * lib/verify.h (assume): New macro.
31759         (__has_builtin): Expand to 0 if not defined.
31761 2013-09-26  Eric Blake  <eblake@redhat.com>
31763         dup2, dup3: work around another cygwin crasher
31764         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
31765         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
31766         * tests/test-dup2.c (main): Likewise.
31767         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
31768         * lib/dup3.c (dup3): Likewise.
31769         * doc/posix-functions/dup2.texi (dup2): Document it.
31770         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31772         getdtablesize: work around cygwin issue
31773         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
31774         * modules/getdtablesize (configure.ac): Build replacement.
31775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
31776         * modules/unistd (Makefile.am): Expose the witness.
31777         * lib/unistd.in.h (getdtablesize): Declare replacement.
31778         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
31779         * tests/test-getdtablesize.c (main): Test it.
31780         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
31782 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
31784         pmccabe2html: escaping of special characters
31785         Escape all '<', '>', and '&' in HTML output.
31786         * build-aux/pmccabe2html (html_fnc): Call gsub()
31787         instead of sub() to capture all '<', '>', and '&'.
31788         Neither of '<' and '>' is special in a regexp,
31789         so first arguments to gsub() are corrected. Also,
31790         in replacement strings, ampersand must be escaped.
31791         Finally, '&' must be handled first, then '<' and '>'.
31793 2013-09-24  Eric Blake  <eblake@redhat.com>
31795         manywarnings: enable nicer gcc warning messages
31796         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
31797         some -f options for optimal warnings.
31799 2013-09-21  Jim Meyering  <meyering@fb.com>
31801         timespec: use the new TIMESPEC_RESOLUTION in a few more places
31802         * lib/timespec-add.c (timespec_add): Also replace 999999999
31803         with TIMESPEC_RESOLUTION - 1.
31804         * lib/timespec-sub.c (timespec_sub): Likewise.
31806 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31808         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
31809         Problem reported by Dagobert Michelsen via Eric Blake in
31810         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
31811         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
31812         not AC_COMPILE_IFELSE.
31814 2013-09-23  Eric Blake  <eblake@redhat.com>
31816         configmake: support new --runstatedir option
31817         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
31818         even if autoconf was too old to provide the command line option.
31819         * modules/configmake (Makefile.am): Propagate it to .h file.
31821 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31823         ctype, string: depend on extern-inline
31824         This is needed to complete the recent OS X fixes.
31825         Also, fix related documentation as suggested by Eric Blake.
31826         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31827         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
31828         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
31829         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
31830         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
31831         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
31832         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
31833         * doc/posix-functions/toupper.texi:
31834         List the 'ctype' gnulib module.
31835         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
31836         * doc/posix-functions/strncpy.texi:
31837         List the 'string' gnulib module.
31838         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
31839         Add string.
31840         * modules/ctype, modules/string (Depends-on): Add extern-inline.
31842 2013-09-19  Pádraig Brady  <P@draigBrady.com>
31844         userspec: support optional parameters to parse_user_spec()
31845         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
31846         then avoid group processing and treat the full spec as a user.
31847         (parse_with_separator): Allow the USERNAME and GROUPNAME to
31848         be optional params (NULL), in which case they're ignored.
31850 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
31852         timespec: new function make_timespec, and new constants
31853         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
31854         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
31855         (make_timespec): New function.
31856         * lib/dtotimespec.c (dtotimespec):
31857         * lib/timespec-add.c (timespec_add):
31858         * lib/timespec-sub.c (timespec_sub):
31859         * lib/utimens.c (validate_timespec):
31860         * lib/utimensat.c (rpl_utimensat):
31861         Use these new constants and functions.
31863         stdio: OS X port of putc_unlocked + extern inline
31864         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
31865         * doc/posix-functions/putc_unlocked.texi:
31866         * doc/posix-functions/putchar_unlocked.texi:
31867         Document this portability problem.
31869         signal: OS X port of sigaddset etc. + extern inline
31870         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
31871         (sigismember): #undef on problematic Apple platforms.
31872         * doc/posix-functions/sigaddset.texi:
31873         * doc/posix-functions/sigdelset.texi:
31874         * doc/posix-functions/sigemptyset.texi:
31875         * doc/posix-functions/sigfillset.texi:
31876         * doc/posix-functions/sigismember.texi:
31877         Document this portability problem.
31879         extern-inline: do not always suppress extern inline on OS X
31880         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
31881         extern inline on Apple only if the particular compile-time
31882         configuration is known to have the problem.
31883         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
31884         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
31885         other Gnulib modules.
31887         extern-inline: document fixes for ctype and wctype macros
31888         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31889         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
31890         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
31891         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
31892         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
31893         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
31894         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31895         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31896         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31897         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31898         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31899         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31900         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31901         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31902         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31903         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31904         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31905         * doc/posix-functions/strncpy.texi:
31906         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31907         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31908         Document that Gnulib fixes portability problems with these
31909         functions on OS X 10.8 and earlier when called from plain inline
31910         or extern inline functions.
31912 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31914         fflush, freadahead, fseeko: Fix for Android
31915         Suggested by Bruno Haible in:
31916         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31917         * lib/stdio-impl.h: Use local __sfileext definition.
31919 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31921         pmccabe2html: Portability to other awk versions.
31922         The functions systime() and strftime() are available
31923         in Gawk only.  Properly close two HTML-tags 'style'
31924         and 'span'.
31925         * build-aux/pmccabe2html (BEGIN): Store timing
31926         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31927         systime() in HTML_COMMENT.
31928         (html_header): Correctly close tag 'style'.
31929         (END): Replace strftime() by CHRONOS_TIME.  Close
31930         tag 'span' correctly, not as 'div'.
31932 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31934         getgroups: statement without effect
31935         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31936         Change equality conditional to expected assignment.
31938 2013-09-09  Eric Blake  <eblake@redhat.com>
31940         glob: fix compilation
31941         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31943 2013-09-07  Eric Blake  <eblake@redhat.com>
31945         glob: fix build for platforms without __THROW
31946         * lib/glob.in.h (__THROW): Add definition again.
31948 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31950         regex-quote: fix buffer access out of bounds
31951         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31952         * lib/regex-quote.c (regex_quote_spec_pcre):
31953         Fix typo that resulted in an out-of-bounds read.
31955 2013-09-04  Eric Blake  <eblake@redhat.com>
31957         glob: avoid -Wattribute warnings on glibc
31958         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31959         __THROWNL, not __THROW, on static functions.
31960         * lib/glob.in.h (__THROW): Adjust...
31961         (__THROWNL): ...accordingly.
31963 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31965         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31966         Suggested by Bruce Korb in:
31967         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31968         * doc/extern-inline.texi (extern inline):
31969         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31970         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31971         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31972         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31973         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31974         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31975         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31976         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31977         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31978         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31979         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31980         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31981         * lib/xtime.h:
31982         Check that _GL_INLINE_HEADER_BEGIN is defined.
31984 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31986         bootstrap: remove the --version requirement from ancillary tools
31987         * build-aux/bootstrap (check_exists): A new refactored function to
31988         determine if a command exists.
31989         (find_tool): Use the new function which does not require the
31990         --version option to be supported.
31991         (check_versions): Use the new function.
31993 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31995         gc: support HMAC-SHA256 and HMAC-SHA512.
31996         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31997         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31998         functions.
31999         (gc_hmac_md5): Use symbolic constant.
32000         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
32001         (gc_hmac_sha256, gc_hmac_sha512): New functions.
32002         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
32003         * m4/sha256.m4: Protect against empty expansion.
32004         * m4/sha512.m4: Likewise.
32005         * lib/hmac-sha256.c: New file.
32006         * lib/hmac-sha512.c: Likewise.
32007         * m4/gc-hmac-sha256.m4: Likewise.
32008         * m4/gc-hmac-sha512.m4: Likewise.
32009         * m4/gc-sha256.m4: Likewise.
32010         * m4/gc-sha512.m4: Likewise.
32011         * modules/crypto/gc-hmac-sha256: Likewise.
32012         * modules/crypto/gc-hmac-sha256-tests: Likewise.
32013         * modules/crypto/gc-hmac-sha512: Likewise.
32014         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32015         * modules/crypto/hmac-sha256: Likewise.
32016         * modules/crypto/hmac-sha256-tests: Likewise.
32017         * modules/crypto/hmac-sha512: Likewise.
32018         * modules/crypto/hmac-sha512-tests: Likewise.
32019         * tests/test-gc-hmac-sha256.c: Likewise.
32020         * tests/test-gc-hmac-sha512.c: Likewise
32021         * tests/test-hmac-sha256.c: Likewise.
32022         * tests/test-hmac-sha512.c: Likewise
32024 2013-08-24  Daiki Ueno  <ueno@gnu.org>
32026         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
32027         of AC_CHECK_DECLS.
32029 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32031         selinux-at: omit unnecessary include
32032         * lib/selinux-at.c: Don't include dosname.h; not needed, since
32033         this source file doesn't use its macros, and subsidiary files that
32034         use the macros already include it.
32036 2013-08-21  Eric Blake  <eblake@redhat.com>
32038         d-ino: avoid false negative on symlink
32039         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
32040         Reported by Stephane Chazelas.
32042 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
32044         bootstrap: port to OpenBSD sed
32045         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
32046         does not interpret `-' as a file argument to mean stdin.
32048 2013-08-15  Eric Blake  <eblake@redhat.com>
32050         warnings: minor optimization
32051         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
32053         warnings: check -Wfoo rather than -Wno-foo
32054         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
32055         -Wno-, test if the compiler recognizes the positive form instead.
32057 2013-08-15  Karl Berry  <karl@gnu.org>
32059         * config/srclist-update: add option "doclicense" to placate
32060         pulling *.texi files from Emacs.  Write terse usage
32061         documentation at the top.
32063 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
32065         xvasprintf-tests: port to GCC with hardening flags
32066         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
32067         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
32068         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
32070 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32072         fpending: port to recent Cygwin change to stdio_ext.h
32073         Reported by LRN in
32074         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
32075         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
32076         just declare __fpending unless it's a macro.
32077         A duplicate decl shouldn't hurt.
32078         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
32079         call compiles and links, instead of separately checking for
32080         decl and lib function.
32081         * modules/fpending (configure-ac):
32082         Adjust to fpending.m4's renaming of shell variable.
32084 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32086         sys_time: port to OpenBSD
32087         * lib/sys_time.in.h: Simply delegate to the system's header
32088         in the BSDish cases as well.  Problem reported by Mike Miller in
32089         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
32090         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
32091         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
32092         wider than time_t.
32094 2013-08-09  Pádraig Brady  <P@draigBrady.com>
32096         bootstrap: support checksum utils having -c but not --status
32097         * build-aux/bootstrap: Only look for sha1sum if updating po files.
32098         Add sha1 to the list of supported checksum utils since it's now
32099         supported through adjustments below.
32100         (update_po_files): Remove the use of --status
32101         in a way that will suppress all error messages, but since this is
32102         only used to minimize updates, it shouldn't cause an issue.
32103         Exit early if there is a problem updating the po file checksums.
32104         (find_tool): Remove the check for --version support as this
32105         is optional as per commit 86186b17.  Don't even check for the
32106         presence of the command as if that is needed, it's supported
32107         through configuring prerequisites in bootstrap.conf.
32108         Prompt that when a tool isn't found, one can define an environment
32109         variable to add to the hardcoded search list.
32111 2013-08-05  Jim Meyering  <meyering@fb.com>
32113         regex: port to non-glibc/lock-using systems
32114         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
32115         system with GNULIB_LOCK would fail due to absence of the
32116         included "glthread/lock.h".  This would affect any package
32117         for which the "lock" module is used only by the regex module,
32118         and not explicitly used.
32119         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
32120         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
32121         Add a dependency on the "lock" module.
32123 2013-07-20  Daiki Ueno  <ueno@gnu.org>
32125         localecharset: make locale_charset thread-safe on Mac OS X
32126         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
32127         instead of MB_CUR_MAX.
32129 2013-07-20  Daiki Ueno  <ueno@gnu.org>
32131         gettext: update to version 0.18.3
32132         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
32133         require AC_PROG_SED to allow user to specify custom sed command when
32134         generating en@quot PO file.
32136 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
32138         bootstrap: use correct source when copying build-aux files
32139         * build-aux/bootstrap (gnulib_extra_files): This variable is
32140         relative to upstream gnulib layout, not downstream.
32142 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
32144         tmpdir: fix bug in VMS port
32145         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
32146         See Steven M. Schweda in
32147         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
32149 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32151         tmpdir: port to VMS, to // != /, and to long dirs
32152         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
32153         __secure_getenv, so that we're more like the glibc version.
32154         All uses changed.
32155         (path_search): Don't put slash after directory if __VMS.
32156         Problem reported by Steven M. Schweda in
32157         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
32158         Simplify code to add slash; no need for a loop.
32159         Do not remove trailing slash from "//".
32160         Do not assume dlen <= INT_MAX.
32162 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32164         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
32165         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
32166         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
32167         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
32169         accept4, dup3, pipe2: port to Cygwin
32170         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
32171         * lib/accept4.c (accept4) [O_BINARY]:
32172         * lib/dup3.c (dup3) [O_BINARY]:
32173         * lib/pipe2.c (pipe2) [O_BINARY]:
32174         Use set_binary_mode, not setmode.
32175         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
32176         * modules/binary-io (Depends-on): Remove module indicator.
32177         These last two bits undo the previous change to pipe2 and binary-io.
32179 2013-07-09  Pádraig Brady  <P@draigBrady.com>
32181         mountlist: add support for deallocating returned list entries
32182         * lib/mountlist.c (free_mount_entry): A new exported function
32183         to deallocate a mount list entry.
32184         (read_file_system_list): Refactor to use the new deallocation function.
32185         Suggested by Anton Ovchinnikov.
32187 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32189         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
32190         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
32191         * lib/stdalign.in.h (_Alignas, _Alignof):
32192         Port to FreeBSD 9.1, and to C11 and C++11.
32193         (_Alignas): Also support ICC.
32194         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
32195         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
32197 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32199         fnmatch: don't goto over declaration
32200         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
32201         undefined behavior for goto over a declaration.
32202         Problem reported by Charlie Brown in
32203         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
32205         pipe2: decouple from binary-io a bit
32206         This is for Emacs, which needs pipe2 but not binary-io.
32207         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
32208         * modules/binary-io (Depends-on): Add module indicator.
32210 2013-07-03  Eric Blake  <eblake@redhat.com>
32212         mgetgroups: relax license to LGPLv2+
32213         * modules/getugroups (License): Change from GPLv3+.
32214         * modules/mgetgroups (License): Likewise.
32215         * modules/getgroups (License): Change from LGPLv3+.
32217         xalloc-oversized: relax license to LGPLv2+
32218         * modules/xalloc-oversized (License): Change from GPLv3+.
32220         nproc: relax license to LGPLv2+
32221         * modules/nproc (License): Change from LGPLv3+.
32223         bootstrap: honor --no-git
32224         * build-aux/bootstrap: Don't even try to use git when user is
32225         pointing to a static checkout.
32227 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32229         ignore-value: port to gcc -pedantic
32230         * lib/ignore-value.h (ignore_value):
32231         Port to gcc -pedantic, by using __extension__.
32232         Reindent as per usual gnulib style nowadays.
32233         Simplify GCC version check.
32235 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32237         extern-inline: port to gcc -std=c89
32238         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32239         Do not use __gnu_inline__ if pedantic and pre-C99.
32241 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32243         doc: document extern-inline
32244         * doc/extern-inline.texi: New file.
32245         * doc/gnulib.texi (alloca-opt): Include it.
32246         * m4/extern-inline.m4: Move some comments to documentation,
32247         and others closer to what they describe.
32249         doc: chatter less
32250         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
32251         (updated-stamp): Use it.  This causes 'make' to output just
32252         one file name rather than zillions.
32254         fflush, fseeko: port to musl cross-compiles
32255         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
32256         on some implementation that (1) is not known to be buggy,
32257         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
32258         cross-compiled to so we can't easily check for lack of
32259         conformance.  This is for cross-compiling to musl.
32260         Reported by Rich Felker in
32261         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
32262         * m4/fclose.m4 (gl_FUNC_FCLOSE):
32263         * m4/fflush.m4 (gl_FUNC_FFLUSH):
32264         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
32265         Adjust to above change.
32266         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
32267         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
32268         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
32269         known not to work, or unknown.
32271 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32273         msvc-inval: port to mingw-w64
32274         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
32275         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
32276         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
32278 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32280         getcwd-lgpl: port to Tru64
32281         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
32282         Problem reported by Steven M. Schweda in
32283         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
32285         tests: port large-fd POSIX spawn tests to OS X
32286         Problem reported by Daiki Ueno in
32287         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
32288         * tests/test-posix_spawn_file_actions_addclose.c:
32289         * tests/test-posix_spawn_file_actions_adddup2.c:
32290         * tests/test-posix_spawn_file_actions_addopen.c:
32291         Include <limits.h>, for OPEN_MAX, if available.
32292         (big_fd): New static function.
32293         (main): Use it.
32295 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
32297         tests/nap.h: use an adaptive delay to avoid ctime update issues
32298         The recent change in nap.h (5191133e) decreased the probability of lost
32299         races to about a third, however such problems could still be observed
32300         in virtual machines and openSUSE's OBS.
32301         Before, nap() detected the needed time once empirically and then used
32302         that delay (together with a small correction multiplier) in further
32303         calls.  This problem has been reported and discussed several times,
32304         including guesses about possible kernel issues:
32305         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
32306         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
32307         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
32308         http://bugs.gnu.org/12820
32309         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
32310         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
32311         Now, nap() avoids the race alltogether by verifying on a reference
32312         file whether a timestamp difference has happened.
32313         * tests/nap.h (nap_fd): Define file descriptor variable for the
32314         witness file.
32315         (nap_works): Change return value to bool.  Change passing
32316         the old file's status by value instead of by reference as this function
32317         does no longer update that timestamp; rename the function argument from
32318         st to old_st.  Remove the local variables cdiff and mdiff because that
32319         function now returns true/false instead of the precise delay.
32320         (guess_delay): Remove function.
32321         (clear_tmp_file): Add new function to close and unlink the witness file.
32322         (nap): Instead of re-using the delay which has been calculated during
32323         the first call, avoid the race by actually verifying that a timestamp
32324         difference can be observed on the current file system.  Use an adaptive
32325         approach for the delay to minimize execution time.  Assert that the
32326         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
32327         = 2^31 - 1 = 2.1s.
32328         Use atexit to call clear_tmp_file when the process terminates.
32330 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32332         sig2str: port to C++
32333         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
32334         Reported by Daniel J Sebald in
32335         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
32337 2013-05-30  Eric Blake  <eblake@redhat.com>
32339         docs: mention cygwin shortcoming in <sys/un.h>
32340         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
32342         vasnprintf: silence mingw compiler warning
32343         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
32345 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32347         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
32348         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
32349         This fixes a porting bug I recently reintroduced in regex, and
32350         some other instances that I discovered while testing the fix.
32351         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
32352         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
32353         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
32354         with an empty argument if this is a pedantic pre-C99 GCC.
32355         * lib/verify.h: Do not use _Static_assert if this is a pedantic
32356         pre-C11 GCC.
32358         regex: adapt to locking regime instead of depending on pthread
32359         Instead of depending on pthread, adapt to whatever thread
32360         modules are in use.  Problem reported by Ludovic Courtès in
32361         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
32362         and by Mats Erik Andersson in
32363         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
32364         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
32365         Support either the 'lock' module, or the 'pthread' module, or
32366         no module.
32367         (lock_lock, lock_unlock): New macros.
32368         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
32369         * modules/lock, modules/pthread (configure.ac): Add module indicator.
32370         * modules/regex (Depends-on): Remove pthread.
32372 2013-05-22  Eric Blake  <eblake@redhat.com>
32374         getgroups: document portability issues
32375         * doc/glibc-functions/initgroups.texi (initgroups): Mention
32376         multithread safety.
32377         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
32378         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
32379         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
32380         getugroups.
32381         * doc/posix-functions/getgroups.texi (getgroups): Mention
32382         multithread safety and mgetgroups.
32384 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
32386         test-lchown, test-chown: also skip test if chown fails with EPERM
32387         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
32388         skip this test, to handle FAT file systems.
32389         * tests/test-chown.h (test_chown): Likewise.
32391 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32393         regex: fix dfa race in multithreaded uses
32394         Problem reported by Ludovic Courtès in
32395         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
32396         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
32397         New macros.  All uses of __libc_lock_define, __libc_lock_init
32398         changed to use the first two of these.
32399         (__libc_lock_lock, __libc_lock_unlock): New macros, for
32400         non-glibc platforms.
32401         (struct re_dfa_t): Define the lock unconditionally.
32402         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
32403         '#ifdef _LIBC"s.
32404         * modules/regex (Depends-on): Add pthread, if we use the
32405         included regex.
32407         * lib/regcomp.c: Do actions that are not needed for glibc,
32408         but may be needed elsewhere.
32409         (regfree, re_compile_internal): Destroy the lock.
32410         (re_compile_internal): Check for lock-initialization failure.
32412         malloca: port to compilers that reject size-zero arrays
32413         This fixes a bug introduced in my previous patch.
32414         * lib/malloca.c (struct preliminary_header): Use an int
32415         rather than a character array of size int; that's simpler.
32416         (struct header): Remove, replacing with ...
32417         (union header): New type.  This avoids the need for declaring a
32418         character array of size zero, which is not allowed on some platforms.
32419         All uses changed.
32421 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32423         parse-datetime, tests: don't use "string" + int
32424         Recent versions of 'clang' complain about C source code that
32425         uses expressions of the form '"string literal" + integer',
32426         I guess on the theory that it's confusing for readers who are
32427         used to C++.  On those grounds I suppose it's OK to make this
32428         minor style change.
32429         * lib/parse-datetime.y (parse_datetime):
32430         * tests/test-fchdir.c (main):
32431         * tests/test-snprintf-posix.h (test_function):
32432         * tests/test-snprintf.c (main):
32433         * tests/test-vasnprintf-posix.c (test_function):
32434         * tests/test-vasnprintf.c (test_function):
32435         * tests/test-vsnprintf.c (main):
32436         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
32437         Rewrite '"str" + E' to '&"str"[E]'.
32439 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32441         argmatch: port to C++
32442         * lib/argmatch.h [__cplusplus]: Add extern "C".
32444         argp: typo fix
32445         * lib/argp-help.c: Typo in comment.
32447 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32449         manywarnings: update for GCC 4.8.0
32450         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
32451         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
32452         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
32453         -Wmissing-noreturn, as they are duplicates of other warnings.
32454         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
32455         was documented to be flaky in earlier versions of GCC.
32457         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
32458         * tests/test-spawn.c (main):
32459         * tests/test-sys_socket.c (main):
32460         * tests/test-sys_wait.c (main):
32461         Don't have a switch value that isn't covered by a case.
32463         getaddrinfo-tests: port --enable-gcc-warnings to clang
32464         * tests/test-getaddrinfo.c (simple):
32465         Avoid casts from looser to stricter-aligned pointers.
32467         thread: port --enable-gcc-warnings to clang
32468         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
32469         Include <signal.h>, to pacify a warning about pthread_sigmask.
32471         stdio: use __REDIRECT for fwrite, fwrite_unlocked
32472         * lib/stdio.in.h (fwrite):
32473         When working around bug 11959, use __REDIRECT rather than '#define
32474         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
32475         fix the -Wunused-value issue with clang, and it works with GCC too.
32476         Problem with targeting reported by Eric Blake in
32477         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
32478         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
32479         debugging the fwrite issue.
32481         stdio: port --enable-gcc-warnings to clang
32482         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
32483         since the GCC workaround for fwrite does not pacify clang.
32485         sig2str: port --enable-gcc-warnings to clang
32486         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
32488         obstack: port --enable-gcc-warnings to clang
32489         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
32490         Avoid casts from looser to stricter-aligned pointers.
32492         memchr2: port --enable-gcc-warnings to clang
32493         * lib/memchr2.c (memchr2):
32494         Avoid casts from looser to stricter-aligned pointers.
32496         mbsstr: port --enable-gcc-warnings to clang
32497         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
32498         Avoid casts from looser to stricter-aligned pointers.
32500         malloca: port --enable-gcc-warnings to clang
32501         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
32502         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
32504         inttostr: port --enable-gcc-warnings to clang
32505         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
32507         warnings: port to clang
32508         Problem reported by Daniel P. Berrange via Eric Blake in
32509         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
32510         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
32511         (gl_WARN_ADD): Use it.
32513 2013-05-11  Jim Meyering  <meyering@fb.com>
32515         quotearg: do not read beyond end of buffer
32516         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
32517         end of an ARG for which no length was specified.  With an N-byte
32518         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
32519         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
32520         via coreutils' misc/sort-debug-keys.sh test and detected by running
32521         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
32522         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
32523         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
32524         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
32525         characters correctly."
32527 2013-05-11  Daiki Ueno  <ueno@gnu.org>
32529         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
32530         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
32531         compilation target is Mac OS X 10.6.
32532         Problem reported by parafin and Andoni Morales in
32533         <http://savannah.gnu.org/bugs/?37844> and
32534         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
32536 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32538         mkdir-p: remove assumptions about umask and mode
32539         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
32540         umask is 0, or that MODE is a subset of MODE_BITS.
32542 2013-05-10  Eric Blake  <eblake@redhat.com>
32544         maint.mk: catch more abuse of HAVE_DECL in syntax-check
32545         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
32547 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
32549         deps: require Automake >= 1.9.6 in generated Makefile fragments
32551         That is the same minimal version required in the DEPENDENCIES file.
32552         Moreover, the old code generated a requirement of Automake >= 1.5,
32553         and that is an insanely outdated version.
32555         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
32556         * tests/havelib/rpathlx/Makefile.am: Likewise.
32557         * tests/havelib/rpathly/Makefile.am: Likewise.
32558         * tests/havelib/rpathlyx/Makefile.am: Likewise.
32559         * tests/havelib/rpathlz/Makefile.am: Likewise.
32560         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
32561         * tests/havelib/rpathx/Makefile.am: Likewise.
32562         * tests/havelib/rpathy/Makefile.am: Likewise.
32563         * tests/havelib/rpathz/Makefile.am: Likewise.
32565 2013-05-08  Eric Blake  <eblake@redhat.com>
32567         bootstrap: AC_INIT may have more than four parameters
32568         * build-aux/bootstrap (extract_package_name): Correctly extract
32569         non-empty tarname field.  Avoid range in regex.
32570         Based on a report by Sami Kerola <kerolasa@iki.fi>.
32572 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
32574         qacl: port to MS-Windows port of GNU Emacs
32575         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
32576         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
32577         port of GNU Emacs.  Problem reported by Eli Zaretskii in
32578         <http://bugs.gnu.org/14295#14>.
32580 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
32582         acl: include quote.h
32583         * lib/copy-acl.c: Include quote.h.
32584         * lib/set-acl.c: Likewise.
32586 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
32588         fchownat, renameat, unlinkat: update statat dependencies
32589         These modules use statat and lstatat, not fstatat; so depend on
32590         the statat module, which was split out recently from fstatat.
32591         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
32592         * modules/renameat: Likewise.  Also delete fstat.
32593         URL: http://bugs.gentoo.org/468790
32595 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
32597         Assume gnulib is checked out from Git, not CVS
32599         In fact, access to the gnulib repository through CVS has been
32600         disabled, or more precisely, got broken and was never restored; see:
32601         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
32603         Note that support for CVS is not removed completely and unthinkingly
32604         by this change: only support for CVS checkouts of gnulib itself is
32605         removed.  For example, the 'bootstrap' script still cater to .cvsingore
32606         files and CVS directories, for the benefit of those poor gnulib clients
32607         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
32609         * gnulib-tool: Simplify accordingly.
32610         * posix-modules: Likewise.
32611         * MODULES.html.sh: Likewise.
32612         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
32613         repository.
32614         * doc/gnulib-intro.texi: Likewise.
32615         * doc/gnulib-readme.texi: Likewise.
32616         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
32617         sample '.gitignore' file rather than a sample '.cvsignore'.
32618         * NEWS: Update.
32619         * m4/extensions.m4: While at it, remove a comment mistakenly referring
32620         to "CVS Autoconf" rather than "git Autoconf".
32622 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
32624         utimensat-tests, etc.: try to fix some races
32625         Problem reported by Bernhard Voelker in
32626         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
32627         I don't know whether this patch fixes that race condition, but it
32628         fixes *some* race conditions, so it should be a win.
32629         * modules/chown-tests (Depends-on):
32630         * modules/fchownat-tests (Depends-on):
32631         * modules/fdutimensat-tests (Depends-on):
32632         * modules/futimens-tests (Depends-on):
32633         * modules/lchown-tests (Depends-on):
32634         * modules/stat-time-tests (Depends-on):
32635         * modules/utimens-tests (Depends-on):
32636         * modules/utimensat-tests (Depends-on):
32637         Depend on nanosleep, not usleep.
32638         * modules/chown-tests (test_chown_LDADD):
32639         * modules/lchown-tests (test_lchown_LDADD):
32640         * modules/stat-time-tests (test_stat_time_LDADD):
32641         New macro.
32642         * modules/fchownat-tests (test_fchownat_LDADD):
32643         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
32644         * modules/futimens-tests (test_futimens_LDADD):
32645         * modules/utimens-tests (test_utimens_LDADD):
32646         * modules/utimensat-tests (test_utimensat_LDADD):
32647         Add $(LIB_NANOSLEEP).
32648         * modules/stat-time-tests (Files): Add tests/nap.h.
32649         * tests/nap.h: Include <limits.h>, for INT_MAX.
32650         (lt_mtime): Remove.
32651         (diff_timespec): New function.
32652         (get_stat): Rename from get_mtime.  All callers changed.
32653         (nap_works): Determine the needed delay by inspecting the
32654         file system's timestamp jumps; this should be more reliable.
32655         Look at both mtime and ctime, and take the maximum of the two jumps.
32656         (nap_works, guess_delay):
32657         Return a nanosecond count, not a microsecond count.
32658         All callers changed.
32659         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
32660         failure.
32661         (nap): Multiply the guess by 1.125, to accommodate the case where
32662         the file system's clock is a bit slower than nanosleep's clock.
32663         * tests/test-stat-time.c (BASE): New macro.
32664         Include nap.h.
32665         (nap): Remove; nap.h now defines this.  This removes a duplicate
32666         implementation of 'nap'.
32668         utimens, utimensat: work around Solaris UTIME_OMIT bug
32669         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
32670         Linux kernel 2.6.32 does.  Work around it in the same way.
32671         * doc/posix-functions/futimens.texi (futimens):
32672         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
32673         * lib/utimens.c (fdutimens, lutimens):
32674         * lib/utimensat.c (rpl_utimensat): Work around the bug.
32676         gettext: now it's your responsibility to add -I$(top_builddir)/intl
32677         Formerly, it was your responsibility to do this for all Makefile.ams
32678         other than Gnulib's.  Now it's your responsibility to do it for
32679         Gnulib's Makefile.am, too.
32680         * NEWS: Document this.
32681         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
32683         acl: include errno.h to get errno
32684         Reported by Daiki Ueno in
32685         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
32686         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
32688 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
32690         tests: don't assume getdtablesize () <= 10000000
32691         * modules/cloexec-tests:
32692         * modules/dup2-tests:
32693         * modules/dup3-tests:
32694         * modules/nonblocking-tests:
32695         * modules/posix_spawn_file_actions_addclose-tests:
32696         * modules/posix_spawn_file_actions_adddup2-tests:
32697         * modules/posix_spawn_file_actions_addopen-tests:
32698         * modules/unistd-safer-tests:
32699         Depend on the getdtablesize module.
32700         * tests/test-cloexec.c:
32701         * tests/test-dup-safer.c:
32702         * tests/test-dup2.c:
32703         * tests/test-dup3.c:
32704         * tests/test-fcntl.c:
32705         * tests/test-nonblocking.c:
32706         * tests/test-posix_spawn_file_actions_addclose.c:
32707         * tests/test-posix_spawn_file_actions_adddup2.c:
32708         * tests/test-posix_spawn_file_actions_addopen.c:
32709         Don't assume getdtablesize () <= 10000000.
32711 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
32713         extern-inline: work around bug in Sun c99
32714         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32715         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
32717 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
32719         qacl: new module, broken out from the acl module
32720         This is for GNU Emacs, which wants the acl functions but does
32721         not want 'error' invoked when they fail.
32722         * lib/acl-internal.h: Do not include error.h, quote.h.
32723         (ENOSYS, ENOTSUP): Remove; no longer needed.
32724         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
32725         * lib/acl.h: Include <stdbool.h>.
32726         (acl_errno_valid): New function.
32727         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
32728         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
32729         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
32730         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
32731         (ACL_INTERNAL_INLINE): Remove; no longer needed.
32732         * lib/file-has-acl.c (file_has_acl):
32733         * lib/qcopy-acl.c (qcopy_acl):
32734         * lib/qset-acl.c (qset_acl):
32735         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
32736         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
32737         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
32738         lib/file-has-acl.c, m4/acl.m4 to qacl module.
32739         Add lib/set-acl.c.
32740         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
32741         Add qacl.
32742         (configure.ac): Move gl_FUNC_ACL to qacl module.
32743         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
32744         Rename set-mode-acl.c to set-acl.c.
32745         * lib/acl-errno-valid.c: New file.
32746         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
32747         copy_acl function remains in copy-acl.c.
32748         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
32749         (_): Remove; not needed.
32750         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
32751         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
32752         * modules/qacl: New file, moved from the old modules/acl.
32753         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
32754         Remove set-mode-acl.c, copy-acl.c.
32755         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
32757         alignof, intprops, malloca: port better to IBM's C compiler
32758         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
32759         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
32760         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
32762 2013-04-25  Daiki Ueno  <ueno@gnu.org>
32764         wctype-h: fix gettext link error on mingw
32765         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
32766         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
32767         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
32768         rpl_towupper and rpl_towupper.
32770 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
32772         regex-tests, regex: allow glibc re_search behavior
32773         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
32774         re_search input data to make the multi-character collating element
32775         in it clearly visible, and treat re_search return code 0 as valid.
32776         * m4/regex.m4 (gl_REGEX): Likewise.
32778 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32780         stdalign: doc fix
32781         * doc/posix-headers/stdalign.texi (stdalign.h):
32782         Gnulib doesn't support '_Alignof expr'.
32784 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32786         stdalign: port to stricter ISO C11
32787         ISO C11 says that _Alignof's operand must be a parenthesized type.
32788         Problem reported by Eli Zaretskii in
32789         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
32790         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
32791         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
32793 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32795         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
32796         Problem reported by Marco Atzeri in
32797         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
32798         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
32799         Simply delegate to the system <sys/select.h> in this case too.
32800         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
32801         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
32802         be needed on Solaris either.
32803         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
32804         Simply delegate to the system <sys/time.h> in this case.
32806 2013-03-19  Karl Berry  <karl@gnu.org>
32808         * build-aux/gnupload: check for erroneous (with gnupload) use of
32809         ftp-upload.gnu.org, tweak help.
32811 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32813         copy-file, rpmatch: fix problems found by cppcheck
32814         Reported by Arno Onken in
32815         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
32816         * lib/rpmatch.c (try): Fix memory leak.
32817         * lib/copy-file.c: Include "ignore-value.h".
32818         (qcopy_file_preserving): Ignore chown value.
32819         * modules/copy-file (Depends-on): Add ignore-value.
32821 2013-01-27  Jim Meyering  <jim@meyering.net>
32823         prefix-gnulib-mk: give better diagnostics
32824         * build-aux/prefix-gnulib-mk: Don't just "die".
32825         Give better diagnostics upon failure.
32827 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32829         putenv: port to Solaris 10
32830         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
32831         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
32832         is not what is wanted here.
32833         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
32834         declaration, not for its existence.
32836 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
32838         mktime: fix configure typo
32839         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
32841 2013-03-12  Eric Blake  <eblake@redhat.com>
32843         regex-tests: skip UTF-8 test on mingw
32844         * modules/regex-tests (Depends-on): Add localcharset.
32845         * tests/test-regex.c (main): Use it to skip test on mingw.
32847 2013-03-11  Eric Blake  <eblake@redhat.com>
32849         tests: make it easier to bypass alarm time in debugger
32850         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
32851         * tests/test-memmem.c (main): Likewise.
32852         * tests/test-passfd.c (main): Likewise.
32853         * tests/test-ptsname.c (main): Likewise.
32854         * tests/test-ptsname_r.c (main): Likewise.
32855         * tests/test-strcasestr.c (main): Likewise.
32856         * tests/test-strstr.c (main): Likewise.
32858         regex: port to mingw's recent addition of undeclared alarm
32859         * doc/posix-functions/alarm.texi (alarm): Document that alarm
32860         exists but still doesn't work in newer mingw.
32861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
32862         not existence.  Ensure SIGALRM is not trapped.
32863         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
32864         * m4/regex.m4 (gl_REGEX): Likewise.
32865         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
32866         * tests/test-regex.c (main): Use correct probe for alarm.
32868         putenv: avoid compilation warning on mingw
32869         * lib/putenv.c (_unsetenv): Protect variable declaration.
32870         (putenv): Fix indentation.
32872 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
32874         unistd: don't prevent Tru64 Unix from using gnulib strtod.
32875         * lib/unistd.in.h: be careful not to include un-needed system
32876         stdlib.h from here, because that prevents gnulib stdlib.h from
32877         defining rpl_strtod correctly.
32879 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
32881         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
32882         changesets, but for the 'precision 0' test.
32883         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32884         round-to-even, since POSIX says rounding is implementation-defined
32885         and OS X 10.8.2 rounds 1.51 to 1 here.
32887         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
32888         changeset.
32889         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32890         round-to-even, since POSIX says rounding is implementation-defined
32891         and OS X 10.8.2 rounds 1.5 to 1 here.
32893 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32895         vasnprintf-posix-tests: allow rounding 1.5 to 1
32896         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32897         round-to-even, since POSIX says rounding is implementation-defined
32898         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32899         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32901         bootstrap: port to FreeBSD
32902         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32903         that treat '--' differently.  Reported by Mats Erik Andersson in
32904         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32906 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32908         regex: rename remaining __attribute calls to __attribute__.
32909         2012-02-25 changed definition of __attribute, but left some uses
32910         unchanged, preventing compilation of regex module on most non-gcc
32911         environments.
32912         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32913         (lookup_collation_sequence_value, build_range_exp)
32914         (build_collating_symbol): Set attributes with newly renamed
32915         __attribute__ decorator.
32916         * lib/regex_internal.c (re_string_peek_byte_case)
32917         (re_node_set_compare, re_node_set_contains): Likewise.
32918         * lib/regexec.c (acquire_init_state_context): Likewise.
32920 2013-03-06  Bruno Haible  <bruno@clisp.org>
32922         execute: Revert last change, but use a different condition.
32923         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32924         on Windows.
32926 2013-03-05  Eric Blake  <eblake@redhat.com>
32928         execute: drop dead code
32929         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32931 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32933         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32934         * m4/non-recursive-gnulib-prefix-hack.m4
32935         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32936         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32937         <http://bugs.gnu.org/10305#237>.
32939 2013-03-04  Eric Blake  <eblake@redhat.com>
32941         test-getsockopt: avoid compiler warning
32942         * tests/test-getsockopt.c (includes): Ensure close is declared.
32944 2013-03-02  Bruno Haible  <bruno@clisp.org>
32946         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32947         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32949 2013-03-02  Bruno Haible  <bruno@clisp.org>
32951         gettext: Update to version 0.18.2.
32952         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32953         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32954                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32956 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32958         regex: merge patches from libc
32960         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32961         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32962         All uses changed.
32963         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32964         (re_string_wchar_at, re_string_elem_size_at):
32965         Mark function as possibly unused.
32967         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32968         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32969         elements compare against the byte sequence of it, not its name.
32971 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32973         putenv: port better to native Windows
32974         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32975         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32976         (_unsetenv): Use _putenv if available.
32977         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32978         a bit less likely to cause damage.
32979         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32980         Fix the wrong value with SetEnvironmentVariable.
32981         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32982         code better.
32984 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32986         regex: ignore old-style-definition warnings
32987         * lib/regex.c: Add pragma to ignore these warnings.
32988         Problem reported for GNU tar by Pavel Raiskup.
32990 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32992         getcwd: support coreutils better
32993         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32994         but this might not be correct in coreutils, which disables
32995         the raw decl checks.  Problem reported by Nagendra in
32996         <http://bugs.gnu.org/10305#192>.
32997         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32999         Test the getcwd function, not any macro, since getcwd.c wants the
33000         function.
33001         * m4/getcwd.m4 (gl_FUNC_GETCWD):
33002         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
33003         compile, as might happen if there's a macro but no function.
33005         strtod: support coreutils better
33006         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
33007         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
33008         disables the raw decl checks.  This assumes there is an underlying
33009         strtod, but that's a safe assumption these days.
33010         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
33012         mountlist: port to HP NonStop
33013         Reported by Joachim Schmitz in
33014         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
33015         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
33016         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
33018 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
33020         extern-inline: avoid compilation error with HP-UX cc
33021         Reported by Richard Lloyd in
33022         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
33023         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
33024         Suppress extern inline with HP-UX cc.  This should be safe,
33025         though it may hurt performance.  Perhaps someone with some HP-UX
33026         experience can come up with a higher-performance fix.
33028 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33030         putenv: fix heap corruption with mixed putenv/_putenv
33031         Problem reported by Michael Goffioul in
33032         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
33033         * lib/putenv.c (putenv) [HAVE__PUTENV]:
33034         Rely on _putenv to allocate the new environment.
33035         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
33036         * modules/putenv (configure.ac): Use it.
33038 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
33040         unsetenv etc.: port to Solaris 11 + GNU Emacs
33041         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
33042         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
33043         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
33044         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
33045         idea but is too painful to fix right now), and without this gnulib
33046         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
33047         compiling unsetenv.c on Solaris 11.  Fix the problem for
33048         unsetenv.c, and fix other similar occurrences.
33050 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
33052         secure_getenv: fix C++ declaration typo
33053         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
33054         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
33055         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
33057 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
33059         careadlinkat: stop exporting careadlinkatcwd
33060         Only Emacs used it directly, and Emacs no longer needs it.
33061         * NEWS: Document this simplification.
33062         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
33063         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
33064         for readlink.
33065         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
33066         Don't include stdlib.h; no longer needed.
33067         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
33068         * lib/relocwrapper.c: Adjust comment to match new dependencies.
33069         * modules/areadlink (Depends-on): Add readlink.
33070         (Maintainer): Add self.
33071         * modules/careadlinkat (Depends-on): Remove readlink.
33073         extensions: port better to HP-UX
33074         This is merged from git Autoconf.
33075         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33076         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
33077         so that it's compatible with the value used when compiling.
33079         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
33080         Problem reported by Mats Erik Andersson in
33081         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
33082         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
33083         openpty function exists, not merely when we intend to replace it.
33084         This corrects the 2013-01-31 patch, which mistakenly defined
33085         HAVE_OPENPTY even on hosts that lacked it.
33087 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33089         secure_getenv: fix include typo
33090         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
33092         secure_getenv: port better to FreeBSD and Solaris
33093         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
33094         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
33095         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
33096         This works better on BSDish platforms.
33097         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
33098         Test for issetugid if __secure_getenv is missing.
33100 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
33102         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
33103         Some of these changes are merged in from git Autoconf.
33104         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
33105         When deciding whether to define _XOPEN_SOURCE, inspect the
33106         preprocessor macro __hpux instead of the more-heavyweight
33107         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
33108         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
33109         as the key for __EXTENSIONS__.
33111         unistd: avoid namespace pollution on non-glibc systems
33112         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
33113         This avoids namespace pollution on non-glibc systems, by causing
33114         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
33115         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
33116         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
33118 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
33120         tmpdir: use secure_getenv
33121         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
33122         Define to secure_getenv, not getenv.
33123         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
33124         as that's now secure_getenv's job.
33125         * modules/tmpdir (Depends-on): Add secure_getenv.
33127         tempname: use secure_getenv
33128         * lib/tempname.c (__secure_getenv) [!_LIBC]:
33129         Define to secure_getenv, not getenv.
33130         * modules/tempname (Depends-on):
33131         Add secure_getenv.
33133         secure_getenv: new module
33134         * MODULES.html.sh (Extra functions based on ANSI C 89):
33135         Add secure_getenv.
33136         * doc/glibc-functions/secure_getenv.texi: New file.
33137         * doc/gnulib.texi: Include it.
33138         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
33139         New files.
33140         * lib/stdlib.in.h (secure_getenv): New decl.
33141         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
33142         * modules/stdlib (stdlib.h):
33143         Add secure_getenv checks.
33145 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33147         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
33148         Reported for OS X 10.8.2 by Assaf Gordon in
33149         <http://bugs.gnu.org/13516>.
33150         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
33151         !HAVE_OPENAT && !HAVE_FDOPENDIR.
33152         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
33153         so that they can be kept in sync more easily.  Avoid PATH_MAX
33154         test on the Hurd.  Sync from test-getcwd.c for errno tests after
33155         mkdir or chdir failure.
33156         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
33157         lib/getcwd.c.
33158         (test_abort_bug): Do not test for the deep directory bug unless we
33159         have openat support.  Avoid PATH_MAX test on the Hurd.
33161         regex-tests, regex: fix bug: memset undeclared
33162         * tests/test-regex.c: Don't include regex.h twice.  Include
33163         string.h, to declare memset.  Christensen's report also mentioned
33164         this issue.
33165         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
33166         test-regex.c, to avoid future problems like this.  Remove
33167         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
33168         twice.
33170         regex-tests: fix link errors on older Solaris
33171         These need to link with @LIBINTL@ to get libintl_gettext.
33172         Problem reported by Tom G. Christensen in
33173         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
33174         * modules/regex-tests (test_regex_LDADD): New macro.
33176 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
33178         regex-tests: new module
33179         * modules/regex-tests, tests/test-regex.c: New files.
33181         regex: fix off-by-one error in configure test
33182         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
33184 2013-01-31  Eric Blake  <eblake@redhat.com>
33186         regex: avoid infinite configure test
33187         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
33189 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
33191         openpty: fix bug where HAVE_OPENPTY wasn't defined
33192         See the thread starting at:
33193         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
33194         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
33195         openpty function exists, not merely when we intend to replace it.
33197 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
33199         sys_time: port to Solaris 2.6
33200         There is a circularity problem on Solaris 2.6, where <time.h> includes
33201         <sys/time.h> for struct timespec.  The include nesting is gnulib
33202         <time.h>, system <time.h>, gnulib <sys/time.h>, system
33203         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
33204         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
33205         <sys/siginfo.h>; the last, innermost file needs struct
33206         timestruc_t, which is defined in <sys/time.h>, which has not been
33207         fully parsed.  Problem reported by Tom G. Christensen in
33208         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
33209         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
33210         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
33211         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
33212         uses split double-inclusion guards.
33214 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
33216         regex: test for buffer overrun
33217         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
33218         for the just-fixed regex bug.
33220 2013-01-29  Andreas Schwab  <schwab@suse.de>
33222         regex: fix buffer overrun in regexp matcher [BZ #15078]
33223         * lib/regexec.c (extend_buffers): Add parameter min_len.
33224         (check_matching): Pass minimum needed length.
33225         (clean_state_log_if_needed): Likewise.
33226         (get_subexp): Likewise.
33228 2013-01-28  Pádraig Brady  <P@draigBrady.com>
33230         mountlist: don't consider "devtmpfs" as dummy
33231         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
33232         as there is storage associcated with it.
33234 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33236         futimens-tests, utimens-tests: Depend on gettext.
33237         This works around a problem introduced in my 2013-01-12 patch,
33238         which added @LIBINTL@ to these modules.
33239         * modules/futimens-tests (Depends-on):
33240         * modules/utimens-tests (Depends-on): Add gettext.
33242 2013-01-26  Eric Blake  <eblake@redhat.com>
33244         test-getpeername: fix typo
33245         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
33247 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
33249         bootstrap: remove the need for a sorted .gitignore file
33250         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
33251         rename to insert_if_absent(), so that we don't need or generate
33252         a sorted .gitignore file.  We do require a .gitignore with no
33253         existing duplicate entries and enforce that.
33254         (sort_patterns): Remove this function as we now use the simpler
33255         technigue of inserting blacklist entries at the top of the file,
33256         assuming gnulib won't be inserting !whitelist entries.
33258 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33260         readlinkat: don't depend on gl_FUNC_OPENAT
33261         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
33262         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
33263         renameat.m4, symlinkat.m4; but one thing at a time.
33265         statat: new module, split out from fstatat
33266         GNU Emacs needs the POSIX-specified fstatat, but not the
33267         gnulib-specified statat and lstat.  Split the latter two into a
33268         new module 'statat'.
33269         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
33270         * lib/openat.h, lib/statat.c (STATAT_INLINE):
33271         Rename from FSTATAT_INLINE. All uses changed.
33272         * modules/fstatat (Files): Remove lib/statat.c.
33273         (gl_MODULE_INDICATOR([fstatat])): Remove.
33274         (lib_SOURCES): Remove.
33275         (Maintainer): Add self.
33276         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
33277         * tests/test-fstatat.c (BASE): Don't define if already defined.
33278         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
33280 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33282         tests: don't assume fd 99 is closed
33283         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
33284         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
33285         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
33286         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
33287         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
33288         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
33289         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
33290         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
33291         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
33292         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
33293         * tests/test-fwrite.c, tests/test-getpeername.c:
33294         * tests/test-getsockname.c, tests/test-getsockopt.c:
33295         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
33296         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
33297         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
33298         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
33299         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
33300         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
33301         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
33302         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
33303         * tests/test-unlinkat.c, tests/test-unlockpt.c:
33304         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
33305         Close file descriptor 99, instead of assuming it's already closed.
33307 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
33309         stpncpy: port to OS X 10.8
33310         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
33311         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
33313 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33315         unistd: port to recent mingw
33316         * lib/unistd.in.h: Remove special invocation convention for mingw,
33317         which breaks for the latest mingw version.  See John W. Eaton in
33318         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
33320         largefile: port better to Mac OS X 10.5
33321         This patch is backported from Autoconf git.
33322         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
33323         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
33324         with ino_t size being different for configuration time versus
33325         build/run time.  Problem reported by PHO in
33326         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
33328 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33330         doc: clarify -Werror
33331         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
33332         clarify that it's intended for developers, not for ordinary builds,
33333         and mention --enable-gcc-warnings as one possible use.
33335 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
33337         stdint: fix build with Android's Bionic fox x86
33338         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
33339         was already included as _SSIZE_T_DEFINED_ might also be defined
33340         in include/machine/_types.h, which is included by stdio.h
33342 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
33344         net_if-tests: port to Solaris 7 + GCC 3.4.6
33345         Problem reported by Tom G. Christensen in
33346         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
33347         * tests/test-net_if.c (ni): Move to next the code that uses it,
33348         so that it's declared only if needed.
33350 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
33352         net_if-tests: port to older Solaris
33353         Problem reported by Tom G. Christensen in
33354         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
33355         * modules/net_if-tests (NET_IF_LIB): New substitution.
33356         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
33357         (HAVE_IF_NAMEINDEX): New C macro.
33358         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
33360         system-quote-tests: port to older Solaris
33361         Problem reported by Tom G. Christensen in
33362         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
33363         * tests/test-system-quote-child.c (fopen, fread): Undef.
33365         c-xvasprintf etc.: fix link errors on older Solaris
33366         These need to link with @LIBINTL@ to get libintl_gettext.
33367         Problem reported by Tom G. Christensen in
33368         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
33369         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
33370         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
33371         * modules/futimens-tests (test_futimens_LDADD):
33372         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
33374 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33376         locale: port to Solaris 2.6 and 7 + GNU gettext
33377         * lib/locale.in.h: Just include_next <locale.h> when
33378         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
33379         when combining the localename module with GNU gettext 0.18.2.
33380         Problem reported by Tom G. Christensen in
33381         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
33383 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33385         stdlib: port to Solaris 2.6
33386         Also, the code worked on Solaris 7 through 9 only by accident.
33387         Problem reported by Tom G. Christensen in
33388         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
33389         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
33390         simply include the system stdlib.h.
33391         * lib/getopt.in.h (__need_system_stdlib_h):
33392         * lib/pthread.in.h (__need_system_stdlib_h):
33393         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
33394         Define when including <stdlib.h>, to avoid problems at least for
33395         the pthread case on Solaris 2.6 and 7.  These .h files can get by
33396         with the system stdlib.h.
33398 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
33400         doc: update main copyright year
33401         * doc/gnulib.texi: Update copyright date.
33403         doc: improve ISO 8601 discussion
33404         * doc/parse-datetime.texi (Combined date and time of day items):
33405         Specify more carefully what formats are supported and what is
33406         done with excess precision.
33408 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33410         doc: avoid small caps
33411         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
33412         they're more trouble than they're worth.  Suggested by Karl Berry
33413         in <http://bugs.gnu.org/13360>.
33415         regex: conform to strict C
33416         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
33417         From Aharon Robbins.
33419         gnulib-tool: fix incompatibility with autopoint 0.18.2
33420         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
33421         Problem reported by Tom G. Christensen in
33422         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
33424 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33426         fprintftime: bring back and reword fwrite comment
33427         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
33429         stdio: remove now-unnecessary stdio.c
33430         Since stdio.in.h no longer uses inline functions, we no longer
33431         need to compile the extern versions.
33432         * lib/stdio.c: Remove.
33433         * modules/stdio (Files): Remove lib/stdio.c.
33434         (lib_SOURCES): Remove.
33436         unicodeio: depend on stdio, not ignore-value
33437         * lib/unicodeio.c: Do not include ignore-value.h.
33438         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
33439         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
33441         fprintftime: depend on stdio, not ignore-value
33442         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
33443         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
33444         since the stdio module arranges to silence that warning now.
33445         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
33447 2012-10-04  Simon Josefsson  <simon@josefsson.org>
33449         stdint-tests: Fix expanded-before-required-warning.
33450         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
33452 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33454         fwrite: silence __wur only for older glibc versions
33455         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
33456         This will help us remove this workaround some time in the far future.
33458 2013-01-03  Eric Blake  <eblake@redhat.com>
33460         fwrite: silence __wur without using inline
33461         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
33462         just gcc, and in a way that avoids inline issues.
33463         * modules/stdio (Depends-on): Drop extern-inline.
33465 2013-01-03  Jim Meyering  <jim@meyering.net>
33467         update-copyright: avoid copyright notice date corruption
33468         Given a sequence of copyright year numbers in which the final
33469         one was a two-digit number that happened to be a substring of
33470         a preceding four-digit year number, we would mistakenly update
33471         the substring (from two- to four-digit) rather than the two-digit
33472         number at the end, which, combined with the addition of the current
33473         4-digit year number would yield two 5-digit year numbers, e.g.,
33474         here, it would convert the first "99" to "1999, 2013" rather than
33475         the final one:
33476           1991, 99
33477           11999, 20131, 1999
33478         * build-aux/update-copyright: Tighten a regexp.
33479         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
33480         Reported by Joseph Myers in
33481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
33483 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33485         regex: omit needless signed-pointer casts
33486         * lib/regcomp.c (build_charclass, build_charclass_op):
33487         Use char *, not unsigned char *, for class name and extra.
33488         The char values are always nonnegative so there's no need to
33489         insist on unsigned char * here, and using char * removes the need
33490         for casts.  Reported by Aharon Robbins in
33491         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33493         regex: support Gawk, which never uses alloca
33494         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
33495         Do not include in this case.  Gawk doesn't supply a substitute
33496         alloca.h and doesn't need one.
33498         regex: port __libc_lock_define usage to C89
33499         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
33500         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
33501         does not conform to C89, as it has an empty macro argument.
33502         Reported by Aharon Robbins in
33503         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33505 2013-01-01  Eric Blake  <eblake@redhat.com>
33507         maint: update all copyright year number ranges
33508         Run "make update-copyright".
33510         version-etc: bump copyright year reported in --version
33511         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
33513 2012-12-31  Eric Blake  <eblake@redhat.com>
33515         sigprocmask-tests: skip test if pid is unexpectedly large
33516         * tests/test-sigprocmask.c (main): Add range check.
33518         git-version-gen: avoid test -z portability glitch
33519         * build-aux/git-version-gen: Prefer portable test spelling, since
33520         git-version-gen is run on more than just developer machines.
33522 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
33524         git-version-gen: add --fallback option to use if git is not present
33525         * build-aux/git-version-gen: Add support for the new option --fallback,
33526         which comes into play when there is no $tarball_version_file and
33527         git is not working.
33528         (scriptversion): Update.
33530         maint.mk: handle missing git with more grace
33531         * top/maint.mk (no-submodule-changes, public-submodule-commit):
33532         Quietly proceed if git is not present.
33534 2012-12-31  Eric Blake  <eblake@redhat.com>
33536         dup2: work around cygwin bug
33537         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
33538         * lib/dup2.c (rpl_dup2): Work around it.
33539         * doc/posix-functions/dup2.texi (dup2): Document it.
33541 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
33543         regex: remove unnecessary dependency on localcharset.h
33544         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
33545         hasn't been needed for years.
33546         * modules/regex (Depends-on): Remove localcharset.
33548         regex: revert single-byte change
33549         * lib/regexec.c (check_node_accept_bytes): Revert previous change
33550         to this function.  This was alredy fixed in a different way, at
33551         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
33552         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
33553         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
33555         regex: simplify based on Gawk version
33556         * lib/regex_internal.c (re_dfa_add_node): Simplify.
33557         Reported by Aharon Robbins in
33558         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33560 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33562         regex: check that pattern char is single-byte
33563         Reported by Aharon Robbins in
33564         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33565         * lib/regexec.c (check_node_accept_bytes):
33566         Return 0 if the pattern string has a multibyte character here.
33568         regex: implement rational ranges
33569         Reported by Aharon Robbins in
33570         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33571         * lib/regcomp.c (build_range_exp) [!_LIBC]:
33572         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
33573         Implement rational ranges.
33575         regex: avoid redefining __wctype
33576         Reported by Aharon Robbins in
33577         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33578         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
33579         #undef before defining.
33581         regex: port to hosts where malloc (0) == NULL
33582         Reported by Aharon Robbins in
33583         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33584         * lib/regex_internal.c (re_node_set_alloc):
33585         Don't assume that malloc (0) yields nonnull.
33586         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
33587         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
33588         * modules/regex (Files): Add m4/eealloc.m4.
33590         regex: port to C89
33591         Reported by Aharon Robbins in
33592         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33593         * lib/regcomp.c (init_word_char): Declaration before statement.
33595         regex: merge glibc changes
33596         Also, copy the license wording from glibc.  This simplifies
33597         merging changes.  gnulib-tool will change the wording to GPL as
33598         appropriate, when importing it to other packages.  The only
33599         glibc change made since the last merge, which needs merging, is:
33600         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
33601         * lib/regex_internal.h (gettext): Remove use of INTUSE.
33603         * users.txt: Add Emacs.
33605         doc: omit mention of version when not needed
33606         * doc/gnulib-intro.texi (Portability and Application Code):
33607         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
33608         Don't mention particular dates or versions when not necessary, so
33609         that the documentation won't go out of date so quickly.
33611         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
33613 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
33615         bootstrap: pass --force to autoreconf.
33616         * build-aux/bootstrap (AUTORECONFFLAGS): New.
33617         Add "--force" so that Automake's ylwrap and other such tools
33618         be updated at each bootstrap invocation.
33619         Use it.
33621 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
33623         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
33624         The earlier patch forgot to update one of the #if conditions, causing
33625         a problem on Debian testing i386 reported by Mats Erik Andersson
33626         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
33627         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
33628         (__argp_fmtstream_puts, argp_fmtstream_puts)
33629         (__argp_fmtstream_write, argp_fmtstream_write)
33630         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
33632         * doc/gnulib-readme.texi: Minor fixups.
33633         (Portability guidelines): Modernize URLs.  Remove some repetition.
33634         (Indent with spaces not TABs): Reword to avoid too-long lines.
33635         Remove some '@ifset standalone' stuff that isn't used.
33637         * doc/gnulib-readme.texi (Portability guidelines):
33638         ctype.h, not ctime.h.
33640         Correct name of POSIX.1-2001.
33641         * doc/posix-functions/fgetc.texi (fgetc):
33642         * doc/posix-functions/fgets.texi (fgets):
33643         * doc/posix-functions/fread.texi (fread):
33644         * doc/posix-functions/fscanf.texi (fscanf):
33645         * doc/posix-functions/getc.texi (getc):
33646         * doc/posix-functions/getchar.texi (getchar):
33647         * doc/posix-functions/scanf.texi (scanf):
33648         POSIX.1-2001, not POSIX-2001.
33650         doc: move README into manual
33651         * README: Move contents to new file doc/gnulib-readme.texi.
33652         Replace with a one-line summary.
33653         * doc/gnulib.texi (Brief Overview): New section,
33654         with old intro preface.  Include gnulib-readme.texi for contents.
33655         (Philosophy): Rename from "Introduction", since this
33656         section no longer introduces the rest.  Write a new preface.
33657         * doc/gnulib-readme.texi: New file, with the old contents of
33658         README texinfo-ized.  This way, the README info appears
33659         in the online and printed manual.
33661 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
33663         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
33664         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
33665         c_vasprintf() prototype.
33667 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
33669         c-vasprintf: Fix "empty declaration" warning reported by GCC.
33670         * lib/c-vasprintf.h: Remove stray semicolon.
33672 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33674         gettext: avoid obsolete macro AM_PROG_MKDIR_P
33675         It is obsolete and is planned to be removed from Automake 1.14; see
33676         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
33677         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
33678         (installdirs-data, installdirs-data-yes):
33679         Use $(MKDIR_P), not $(mkdir_p).
33680         * m4/intl.m4 (AM_INTL_SUBDIR):
33681         * m4/po.m4 (AM_PO_SUBDIRS):
33682         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
33684 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
33686         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
33687         On this platform, we are not optimizing but we are using
33688         the substitute for extern inlines, so compile as if
33689         C99-style extern inline, or a substitute, is available.
33690         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
33691         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
33692         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
33693         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
33694         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
33695         Declare as ARGP_FS_EI, not as extern.
33696         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
33697         (__option_is_short, _option_is_end, __option_is_end)
33698         [!_LIBC && __USE_EXTERN_INLINES]:
33699         Declare as ARGP_EI, not as extern.
33701 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
33703         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
33704         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
33705         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
33706         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
33707         ...), as the latter is fatal with older Autoconfs.
33708         Problem reported and fix suggested by Eric Blake in thread starting at
33709         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
33711 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
33713         AC_PROG_MKDIR_P: don't workaround if not buggy
33714         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
33715         Define only for Autoconf versions before 2.62.
33716         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
33717         undocumented m4_PACKAGE_VERSION, for consistency with the
33718         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
33719         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
33720         was introduced in 2.62.
33722 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
33724         New 'c-*printf' modules for formatted output in C locale.
33726         New module 'c-vasnprintf'.
33727         * modules/c-vasnprintf: New file.
33728         * lib/c-vasnprintf.c: New file.
33729         * lib/c-vasnprintf.h: New file.
33731         New module 'c-snprintf'.
33732         * modules/c-snprintf: New file.
33733         * modules/c-snprintf-tests: New file.
33734         * lib/c-snprintf.c: New file.
33735         * lib/c-snprintf.h: New file.
33736         * tests/test-c-snprintf.c: New file.
33737         * tests/test-c-snprintf.sh: New file.
33739         New module 'c-vsnprintf'.
33740         * modules/c-vsnprintf: New file.
33741         * modules/c-vsnprintf-tests: New file.
33742         * lib/c-vsnprintf.c: New file.
33743         * lib/c-vsnprintf.h: New file.
33744         * tests/test-c-vsnprintf.c: New file.
33745         * tests/test-c-vsnprintf.sh: New file.
33747         New module 'c-vasprintf'.
33748         * modules/c-vasprintf: New file.
33749         * modules/c-vasprintf-tests: New file.
33750         * lib/c-asprintf.c: New file.
33751         * lib/c-vasprintf.c: New file.
33752         * lib/c-vasprintf.h: New file.
33753         * tests/test-c-vasprintf.c  +: New file.
33754         * tests/test-c-vasprintf.sh: New file.
33756         New module 'c-xvasprintf'.
33757         * modules/c-xvasprintf: New file.
33758         * modules/c-xvasprintf-tests: New file.
33759         * lib/c-xasprintf.c: New file.
33760         * lib/c-xvasprintf.c: New file.
33761         * lib/c-xvasprintf.h: New file.
33762         * tests/test-c-xvasprintf.c: New file.
33763         * tests/test-c-xvasprintf.sh: New file.
33765 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33767         argp: better 'inline'
33768         Use extern-inline module to declare extern inline functions.
33769         This avoids some bogus warning diagnostics.  Problem discovered
33770         when modifying GNU tar to use the manywarnings module.
33771         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
33772         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
33773         Define based on extern-inline.
33774         * modules/argp (Depends-on): Add extern-inline.
33776 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33778         filemode, sys_stat: Handle MPX files a la AIX.
33779         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
33780         * lib/sys_stat.in.h (S_ISMPX): New macro.
33781         * tests/test-sys_stat.c: Add tests for MPX files.
33783 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33785         x-to-1: honor $PERL
33786         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
33787         a chance to use his preferred version of Perl.  This is typically
33788         required by Darwin users whose default /usr/bin/perl does not have all
33789         the libraries required by help2man, and who need to use their MacPorts
33790         installation of Perl instead.
33792 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33794         gnu-web-doc-update: add all the new files, even in new directories
33795         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
33796         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
33797         Use it.
33798         (main): Don't use cvsutils to get the list of unknown files,
33799         just add all the existing files and directories.
33801 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33803         gnu-web-doc-update: improve --help
33804         * build-aux/gnu-web-doc-update: Move comments into --help.
33806 2012-12-07  Eric Wong  <normalperson@yhbt.net>
33808         mountlist: recognize more "dummy" file systems
33809         * lib/mountlist.c (ME_DUMMY_0):
33810         Add these dummy FS names to the list:
33811         - "debugfs" virtual filesystem for kernel debugging
33812         - "devpts" PTY slave filesystem
33813         - "devtmpfs" device filesystem on top of tmpfs/ramfs
33814         - "fusectl" control filesystem for FUSE
33815         - "mqueue" enumerates POSIX message queues
33816         - "rpc_pipefs" kernel <-> userspace bridge for NFS
33817         - "sysfs" is for exporting kernel objects
33818         - "devfs" device filesystem for Linux 2.4 and FreeBSD
33820 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
33822         extern-inline: avoid incompatibility with Darwin Libc
33823         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
33824         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
33825         Problem reported by Akim Demaille in
33826         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
33828 2012-12-11  Simon Josefsson  <simon@josefsson.org>
33830         gnupload: Work with GnuPG using gpg-agent (for smartcards).
33831         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
33832         let it handle password prompting.
33834 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
33836         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
33837         * lib/canonicalize.c (canonicalize_filename_mode):
33838         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
33839         fetching the current directory.  Don't overrun the beginning of
33840         rpath if there's no slashes after the MS-Windows drive letter.
33842 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
33844         maint.mk: avoid extra forks
33845         * top/maint.mk (_cfg_mk): The GNU make manual documents that
33846         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
33847         So use that instead of "$(shell test -f FILE && echo FILE)".
33849 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33851         vasnprintf: fix ASCII_ONLY typo
33852         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33853         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33854         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33855         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
33856         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
33858 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33860         list, oset, xlist, xoset: fix extern inline issue with C99
33861         This was introduced by my recent changes for 'inline'.
33862         Problem reported for gettext by Daiki Ueno in
33863         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
33864         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
33865         (gl_list_nx_create, gl_list_size, gl_list_node_value)
33866         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
33867         (gl_list_previous_node, gl_list_get_at)
33868         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
33869         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
33870         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
33871         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
33872         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
33873         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
33874         (gl_list_iterator_free, gl_sortedlist_search)
33875         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
33876         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
33877         (gl_sortedlist_remove):
33878         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
33879         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
33880         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
33881         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
33882         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
33883         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
33884         (gl_list_add_at, gl_sortedlist_add):
33885         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
33886         Wrap these extern decls inside "#if 0", because they are implemented
33887         as inline functions, and extern inline is not what's wanted here.
33888         It would simplify these .h files to remove the extern decls entirely,
33889         although a downside would be less-clear separation between
33890         specification and implementation.
33892 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33894         sys_stat: no 'static inline'
33895         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33898         extern-inline: no 'static inline'
33899         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33900         Do not require AC_C_INLINE.
33901         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33902         'static inline', for older compilers.
33904         snippet/warn-on-use: no 'static inline'
33905         * build-aux/snippet/warn-on-use.h:
33906         Remove unnecessary 'inline' in comment.
33908         rbtree-list, rbtreehash-list: no 'static inline'
33909         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33910         * lib/gl_anytree_list2.h (node_at):
33911         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33912         (gl_oset_first, add_nodes_to_buckets):
33913         Now static, not static inline.
33915         regex: no 'static inline'
33916         * lib/regex_internal.c (calc_state_hash):
33917         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33918         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33919         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33920         Now static, not static inline.
33921         (inline) [__GNUC__ < 3 && _LIBC]:
33922         Remove macro; no longer needed.
33924         xvasprintf: no 'static inline'
33925         * lib/xvasprintf.c (xstrcat):
33926         Now static, not static inline.
33927         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33928         Do not require AC_C_INLINE.
33930         parse-datetime, parse-duration: no 'static inline'
33931         * lib/parse-datetime.y (to_uchar):
33932         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33933         (scale_n_add):
33934         Now static, not static inline.
33935         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33936         * modules/parse-duration (configure.ac):
33937         Do not require AC_C_INLINE.
33939         getaddrinfo: no 'static inline'
33940         * lib/getaddrinfo.c (validate_family):
33941         Now static, not static inline.
33942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33943         Do not require AC_C_INLINE.
33945         ftruncate, fts, lstat, openat, raise: no 'static inline'
33946         * lib/ftruncate.c (chsize_nothrow):
33947         * lib/fts.c (opendirat, diropen):
33948         * lib/lstat.c (orig_lstat):
33949         * lib/openat.c (orig_openat):
33950         * lib/raise.c (raise_nothrow):
33951         Now static, not static inline.
33952         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33953         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33954         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33955         * m4/openat.m4 (gl_PREREQ_OPENAT):
33956         * m4/raise.m4 (gl_PREREQ_RAISE):
33957         Do not require AC_C_INLINE.
33959         fflush, stat: no 'static inline'
33960         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33961         (clear_ungetc_buffer, disable_seek_optimization)
33962         (restore_seek_optimization, update_fpos_cache):
33963         * lib/stat.c (orig_stat):
33964         Now static, not static inline.
33965         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33966         (update_fpos_cache):
33967         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33968         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33969         * m4/stat.m4 (gl_PREREQ_STAT):
33970         Do not require AC_C_INLINE.
33972         error, filevercmp: no 'static inline'
33973         * lib/error.c (is_open, flush_stdout):
33974         * lib/filevercmp.c (order):
33975         Now static, not static inline.
33976         * m4/error.m4 (gl_PREREQ_ERROR):
33977         * modules/filevercmp (configure.ac):
33978         Do not require AC_C_INLINE.
33980         dup, execute, fatal-signal, etc.: no 'static inline'
33981         * lib/dup.c (dup_nothrow):
33982         * lib/execute.c (nonintr_close, nonintr_open):
33983         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33984         * lib/fopen.c (orig_fopen):
33985         * lib/freadseek.c (freadptrinc):
33986         * lib/freopen.c (orig_freopen):
33987         * lib/fstat.c (orig_fstat, fstat_nothrow):
33988         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33989         (get_rusage_as_via_iterator):
33990         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33991         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33992         * lib/isatty.c (_isatty_nothrow):
33993         * lib/open.c (orig_open):
33994         * lib/read.c (read_nothrow):
33995         * lib/sigprocmask.c (signal_nothrow):
33996         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33997         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33998         * lib/wait-process.c (unregister_slave_subprocess):
33999         * lib/write.c (write_nothrow):
34000         Now static, not static inline.
34001         * lib/spawn-pipe.c (nonintr_open): Define only if
34002         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
34003         * m4/dup.m4 (gl_PREREQ_DUP):
34004         * m4/execute.m4 (gl_EXECUTE):
34005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
34006         * m4/fopen.m4 (gl_PREREQ_FOPEN):
34007         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
34008         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
34009         * m4/fstat.m4 (gl_PREREQ_FSTAT):
34010         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
34011         * m4/isatty.m4 (gl_PREREQ_ISATTY):
34012         * m4/open.m4 (gl_PREREQ_OPEN):
34013         * m4/read.m4 (gl_PREREQ_READ):
34014         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
34015         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
34016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
34017         * m4/wait-process.m4 (gl_WAIT_PROCESS):
34018         * m4/write.m4 (gl_PREREQ_WRITE):
34019         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
34020         Do not require AC_C_INLINE.
34022         c-strtod, memcoll, readutmp: no 'static inline'
34023         * lib/c-strtod.c (c_locale):
34024         * lib/memcoll.c (strcoll_loop):
34025         * lib/readutmp.c (desirable_utmp_entry):
34026         Now static, not static inline.
34027         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
34028         * m4/memcoll.m4 (gl_MEMCOLL):
34029         * m4/readutmp.m4 (gl_READUTMP):
34030         Do not require AC_C_INLINE.
34032         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
34033         * lib/arctwo.c (to_uchar):
34034         * lib/md4.c (set_uint32):
34035         * lib/md5.c (set_uint32):
34036         * lib/sha1.c (set_uint32):
34037         * lib/sha256.c (set_uint32):
34038         * lib/sha512.c (set_uint64):
34039         Now static, not static inline.  This is a bit simpler, and doesn't
34040         affect performance with GCC and default optimization.
34041         * m4/arctwo.m4 (gl_ARCTWO):
34042         * m4/md4.m4 (gl_MD4):
34043         * m4/md5.m4 (gl_MD5):
34044         * m4/sha1.m4 (gl_SHA1):
34045         * m4/sha256.m4 (gl_SHA256):
34046         * m4/sha512.m4 (gl_SHA512):
34047         Do not require AC_C_INLINE.
34049         cond, lock, thread: better 'inline'
34050         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
34051         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
34052         New macros.  Use them instead of static inline, for header functions.
34053         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
34054         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
34055         * lib/glthread/lock.c (gl_waitqueue_init)
34056         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
34057         * lib/glthread/thread.c (get_current_thread_handle):
34058         Change 'static inline' to 'inline'.
34059         * lib/glthread/cond.h, lib/glthread/thread.h:
34060         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34061         * m4/cond.m4 (gl_COND):
34062         * m4/lock.m4 (gl_PREREQ_LOCK):
34063         * m4/thread.m4 (gl_THREAD):
34064         Do not require AC_C_INLINE.
34065         * modules/cond, modules/thread (Depends-on): Add extern-inline.
34067         chdir-long, cycle-check, savewd: better 'inline'
34068         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
34069         (find_non_slash):
34070         * lib/cycle-check.c (is_zero_or_power_of_two):
34071         * lib/savewd.c (savewd_delegating):
34072         Change 'static inline' to 'inline'.
34073         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
34074         Replace all remaining uses of 'static inline' with it.
34075         * lib/savewd.h:
34076         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34077         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
34078         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
34079         * m4/savewd.m4 (gl_SAVEWD):
34080         Do not require AC_C_INLINE.
34081         * modules/savewd (Depends-on): Add extern-inline.
34083         base32, base64: no need for 'inline'
34084         * lib/base32.c (to_uchar, get_8, decode_8):
34085         * lib/base64.c (to_uchar, get_4, decode_4):
34086         Change 'static inline' to 'inline'.
34087         * m4/base32.m4 (gl_PREREQ_BASE32):
34088         * m4/base64.m4 (gl_PREREQ_BASE64):
34089         Do not require AC_C_INLINE.
34091         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
34092         * lib/gl_array_oset.c (gl_array_nx_add_at):
34093         (gl_array_remove_at):
34094         * lib/gl_linkedhash_list.c (hash_resize_after_add)
34095         (add_to_bucket, remove_from_bucket):
34096         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
34097         Change 'static inline' to 'static', as it's simpler to omit
34098         'inline' unless there's a significant performance advantage.
34100         list, oset, xlist, xoset, xsublist: simplify via extern inline
34101         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
34102         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
34103         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
34104         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
34105         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
34106         New macro.  Replace all uses of 'static inline' with it.
34107         [HAVE_INLINE]: Implement functions as *_INLINE functions,
34108         instead of as macros FOO that are defined to static inline
34109         functions FOO_inline.
34110         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
34111         * lib/gl_xsublist.c:
34112         Reimplement from scratch, by defining the corresponding *_INLINE
34113         macro and including the corresponding .h file.  This is simpler.
34114         * modules/list, modules/oset, modules/xlist, modules/xoset:
34115         (Files): Remove m4/gl_list.m4.
34116         (configure.ac): Remove gl_LIST.
34117         * m4/gl_list.m4: Remove.
34118         * modules/list, modules/oset, modules/xlist, modules/xoset:
34119         * modules/xsublist:
34120         (Depends-on): Depend on extern-inline, not inline.
34122         xalloc: better 'inline'
34123         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
34124         New macro.  Replace all uses of 'static inline' with it.
34125         (static_inline): Remove.
34126         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
34127         Let 'extern inline' do the work automatically, instead of doing
34128         it by hand.
34129         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
34130         Remove.  All uses removed.
34131         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
34133         gethrxtime: better 'inline'
34134         * lib/xtime.c: New file.
34135         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
34136         * lib/xtime.h (XTIME_INCLUDE):
34137         New macros.  Replace all uses of 'static inline' with them.
34138         * lib/gethrxtime.c (gethrxtime): Define only if
34139         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
34140         this source file is now always compiled, because of the extern inline.
34141         * lib/gethrxtime.h, lib/xtime.h:
34142         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34143         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
34144         if gethrtime works, as they're not needed in that case.
34145         (gl_XTIME): Do not require AC_C_INLINE.
34146         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
34147         compiled now.  Move the check into gl_GETHRXTIME.
34148         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
34149         (Depends-on): Add extern-inline.
34150         (configure.ac): gethrxtime is always compiled now.
34151         (lib_SOURCES): Add gethrxtime.c.
34153         wctype-h: better 'inline'
34154         * lib/wctype-h.c: New file.
34155         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
34156         New macro.  Replace all uses of 'static inline' with it.
34157         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34158         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
34159         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
34160         (Depends-on): Add extern-inline.
34162         unistd: better 'inline'
34163         * lib/unistd.c: New file.
34164         * lib/unistd.in.h (_GL_UNISTD_INLINE):
34165         New macro.  Replace all uses of 'static inline' with it.
34166         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34167         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
34168         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
34169         (Depends-on): Add extern-inline.
34171         sys_socket: better 'inline'
34172         * lib/sys_socket.c: New file.
34173         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
34174         New macro.  Replace all uses of 'static inline' with it.
34175         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34176         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
34177         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
34178         (Depends-on): Add extern-inline.
34180         stdio: better 'inline'
34181         * lib/stdio.c: New file.
34182         * lib/stdio.in.h (_GL_STDIO_INLINE):
34183         New macro.  Replace all uses of 'static inline' with it.
34184         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34185         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
34186         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
34187         (Depends-on): Add extern-inline.
34189         sigaction: better 'inline'
34190         * lib/sig-handler.c: New file.
34191         * lib/sig-handler.h (SIG_HANDLER_INLINE):
34192         New macro.  Replace all uses of 'static inline' with it.
34193         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34194         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
34195         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
34196         (Depends-on): Add extern-inline.
34198         selinux-h: better 'inline'
34199         * lib/se-context.c, lib/se-selinux.c: New files.
34200         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
34201         * lib/se-context.in.h (SE_CONTEXT_INLINE):
34202         New macro.  Replace all uses of 'static inline' with it.
34203         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34204         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
34205         New macro.  Replace all uses of 'static inline' with it.
34206         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34207         * modules/selinux-h (Files, lib_SOURCES):
34208         Add lib/se-context.c, lib/se-selinux.c.
34209         (Depends-on): Add extern-inline.
34210         (configure.ac): Do not require AC_C_INLINE.
34212         pthread: better 'inline'
34213         * lib/pthread.c: New file.
34214         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
34215         New macro.  Replace all uses of 'static inline' with it.
34216         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34217         * m4/pthread.m4 (gl_PTHREAD_CHECK):
34218         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
34219         * modules/pthread (Files): Add lib/pthread.c.
34220         (Depends-on): Add extern-inline.
34222         math: better 'inline'
34223         * lib/math.c: New file.
34224         * lib/math.in.h (_GL_MATH_INLINE):
34225         New macro.  Replace all uses of 'static inline' with it.
34226         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34227         * m4/math_h.m4 (gl_MATH_H):
34228         Do not require AC_C_INLINE.
34229         * modules/math (Files, lib_SOURCES):
34230         Add lib/math.c.
34231         (Depends-on): Add extern-inline.
34233         count-one-bits: better 'inline'
34234         * lib/count-one-bits.c: New file.
34235         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
34236         New macro.  Replace all uses of 'static inline' with it.
34237         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34238         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
34239         Do not require AC_C_INLINE.
34240         * modules/count-one-bits (Files, lib_SOURCES):
34241         Add lib/count-one-bits.c.
34242         (Depends-on): Add extern-inline.
34244         count-leading-zeros: better 'inline'
34245         * lib/count-leading-zeros.c: New file.
34246         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
34247         New macro.  Replace all uses of 'static inline' with it.
34248         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34249         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
34250         Do not require AC_C_INLINE.
34251         * modules/count-leading-zeros (Files, lib_SOURCES):
34252         Add lib/count-leading-zeros.c.
34253         (Depends-on): Add extern-inline.
34255         bitrotate: better 'inline'
34256         * lib/bitrotate.c: New file.
34257         * lib/bitrotate.h (BITROTATE_INLINE):
34258         New macros.
34259         Replace all uses of 'static inline' with them.
34260         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34261         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
34262         (Depends-on): Add extern-inline.
34263         (configure.ac): Do not require AC_C_INLINE.
34265 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
34267         maint.mk: avoid gratuitous failure
34268         Reported by Stefano Lattarini in
34269         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
34270         * top/maint.mk (public-submodule-commit): Quote more safely.
34272 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
34274         canonicalize, canonicalize-lgpl: support MS-Windows file names
34275         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
34276         for test cases, which it'd be nice to add at some point.
34277         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
34278         * lib/canonicalize.c (canonicalize_filename_mode):
34279         * lib/canonicalize-lgpl.c (__realpath):
34280         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
34281         slash is at the beginning of the file name.  Use ISSLASH, instead
34282         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
34283         the first character with '/'.  Test for
34284         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
34285         with a drive letter.
34286         * lib/canonicalize.c (SLASHES): New macro.
34287         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
34289 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
34291         fts: introduce FTS_VERBATIM
34292         * lib/fts_.h (FTS_VERBATIM): New bit flag.
34293         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
34294         * lib/fts.c (fts_open): Honor it.
34296 2012-11-09  Pádraig Brady  <P@draigBrady.com>
34298         getlogin-tests: allow errno == ENXIO
34299         * tests/test-getlogin.c (main): Skip tests if getlogin fails
34300         with errno == ENXIO (No controlling tty).
34301         getlogin_r-tests: Likewise. Also allow errno == ENOENT
34302         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
34303         with errno == ENOENT.  This was reported to happen in various
34304         situations on GNU/Linux.
34306 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34308         getlogin-tests: allow errno == ENOENT
34309         * tests/test-getlogin.c (main): Skip tests if getlogin fails
34310         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
34311         when running a test in an Emacs shell buffer.
34313 2012-11-08  Jim Meyering  <jim@meyering.net>
34315         tests/nap.h: avoid warning about unused variable
34316         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
34318         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
34319         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
34320         white space before each of the special-cased file names, to avoid
34321         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
34322         in http://bugs.gnu.org/12830.
34324 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34326         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
34327         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
34328         fails with errno == EBADF when fd is opened with O_PATH.
34329         Reported by Jim Meyering in
34330         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
34331         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
34332         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
34334 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
34336         test-utimens: speed up by taking shorter naps
34337         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
34338         New functions.
34339         (nap): Use them, to do a better job of guessing the delay.
34340         On Fedora 17 with ext4 atop md atop hard disks, this made
34341         test-utimens run 10x faster, because the test napped for
34342         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
34343         <http://bugs.gnu.org/12820#11>.
34345 2012-11-07  Jim Meyering  <jim@meyering.net>
34347         mountlist.c: fix a compilation failure
34348         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
34349         I introduced while transforming commit v0.0-7683-g613bcb6
34351 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
34353         errno: port to LynxOS 178 2.2.2
34354         Problem reported by Joel Brobecker in
34355         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
34356         * doc/posix-headers/errno.texi (errno.h): Document this.
34357         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
34358         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
34359         Supply a string for EILSEQ.
34360         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
34362 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
34364         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
34365         Linux kernel 2.6.39 introduced O_PATH (see
34366         <http://lwn.net/Articles/433854/>) and this is a better fallback
34367         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
34368         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
34369         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
34370         * lib/fcntl.in.h (O_ACCMODE):
34371         * tests/test-fcntl-h.c (main):
34372         Do not reject O_ACCMODE merely because it has more than the
34373         minimal number of bits, as POSIX allows extensions here.
34375 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
34377         mountlist: do not classify a bind-mounted dir entry as "dummy"
34378         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
34379         the "none"-testing clause.
34380         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
34381         exception for bind-mounted directories.
34383 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
34385         quote: provide a means to escape strings with nul characters
34386         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
34387         (quote, quote_n): Rename formal arguments for consistency with
34388         quotearg.
34390 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34392         test-raise: don't assume 199 is an invalid signal
34393         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
34395         sh-quote-tests: port to Solaris 9
34396         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
34397         Problem reported by Dagobert Michelsen in
34398         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
34400 2012-10-28  Jim Meyering  <jim@meyering.net>
34402         maint.mk: rename a new configurable variable
34403         * top/maint.mk (_gl_translatable_string_re): Rename from
34404         translation-markers: _gl_ prefix to insulate from user Makefile code,
34405         and the _re suffix to inform that it's a regular expression.
34407 2012-10-26  Eric Blake  <eblake@redhat.com>
34409         maint.mk: let packages tweak sc_po_check pattern
34410         * top/maint.mk (sc_po_check): Add translation-markers, to allow
34411         finding files with other translation markers.
34413 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34415         euidaccess: speed up 'configure' on GNU hosts
34416         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
34417         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
34418         it's needed only in this case.  Use AC_CHECK_DECLS, not
34419         AC_CHECK_DECLS_ONCE.
34420         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
34421         or AC_REQUIRE for AC_FUNC_GETGROUPS.
34423         * lib/regexec.c (re_search_internal): Fix grammar in comment.
34425 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34427         fchmodat, fchownat, fstatat: port to non-inlining compilers
34428         Problem reported for FreeBSD 9 by Jim Meyering in
34429         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
34430         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
34431         New files, which define FCHMODAT_INLINE etc.
34432         * lib/fchmodat.c (FCHMODAT_INLINE):
34433         * lib/fchownat.c (FCHOWNAT_INLINE):
34434         * lib/fstatat.c (FSTATAT_INLINE):
34435         Remove, as chmodat.c etc. now do this.
34436         * modules/fchmodat (Files): Add lib/chmodat.c.
34437         * modules/fchownat (Files): Add lib/chownat.c.
34438         * modules/fstatat (Files): Add lib/statat.c.
34440 2012-10-15  Jim Meyering  <jim@meyering.net>
34442         fchmodat.c, fchownat.c: compile-impeding typos
34443         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
34444         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
34445         Introduced in commit v0.0-7636-gd202279.
34447 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34449         fcntl-h: support GNU flags like O_IGNORE_CTTY
34450         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
34451         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
34452         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
34453         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
34454         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
34455         Define to 0 if not already defined.
34456         * tests/test-fcntl-h.c: Test these new flags.
34458 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34460         faccessat, etc.: support AT_FDCWD-only use
34461         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
34462         this function only if its first argument is AT_FDCWD.
34463         Emacs wants faccessat for AT_EACCESS but not for any first-arg
34464         values other than AT_FDCWD, so it doesn't want all the openat
34465         machinery with fchdir etc.
34466         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
34467         * modules/fstatat, modules/mkdirat, modules/openat (Files):
34468         * modules/unlinkat (Files):
34469         Remove lib/openat-priv.h, as at-internal supplies this file.
34470         Removing this file here allows us to support programs like Emacs
34471         that avoid at-internal.
34473         faccessat: speed up 'configure' on mainstream hosts
34474         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
34475         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
34476         since it's only on unusual platforms that we need to check for
34477         'access', and it's better not to slow 'configure' down on all
34478         platforms.
34480         faccessat: port to Solaris 10
34481         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
34482         Needed on Solaris 10, which doesn't have AT_EACCESS,
34483         so we need the Gnulib fcntl.h, which defines it.
34485 2012-10-14  Pádraig Brady  <P@draigBrady.com>
34486         canonicalize: fix C89 compilation
34487         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
34488         declarations so C89 is supported.  Also remove the comment
34489         referencing memorty allocation as the suggested feature could
34490         not be implemented as suggested.
34491         Reported by Michael Goffioul.
34493 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34495         group-member: omit unnecessary dependencies
34496         This is for Emacs, which has its own allocator and where we
34497         don't want to use xalloc.
34498         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
34499         since we no longer use xmalloc.  Do not include stdbool.h, since
34500         the changes below happen to remove the only use of bool.
34501         (GROUPBUF_SIZE): New constant.
34502         (struct group_info): Remove n_groups member.  Add groupbuf member.
34503         This lets us get the groups without using malloc, usually.
34504         (free_group_info, get_group_info): Adjust to this.
34505         (get_group_info): Return the number of groups found, or -1 on error.
34506         Use plain malloc not xmalloc, and treat its failure as if there
34507         are no groups, as the user already loses in case of error.
34508         (group_member): Simplify, based on changes to get_group_info.
34509         * modules/group-member (Depends-on): Remove dependencies on
34510         xalloc and stdbool.  Add dependency on xalloc-oversized.
34512 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
34514         gethrxtime: port to C++
34515         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
34517 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34519         ptsname: fix macro-name typo
34520         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
34522 2012-10-03  Simon Josefsson  <simon@josefsson.org>
34524         inttostr: Relax license.
34525         * modules/inttostr (License): Change from LGPL to LGPLv2+.
34527 2012-10-03  Eric Blake  <eblake@redhat.com>
34529         ptsname_r: support ptys returned by FreeBSD posix_openpt
34530         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
34531         lives in /dev/pts/.
34533 2012-10-02  Eric Blake  <eblake@redhat.com>
34535         pselect: reject invalid file descriptors
34536         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
34537         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
34538         * modules/pselect (Depends-on): Add dup2.
34539         * doc/posix-functions/pselect.texi (pselect): Document this.
34541         select: reject invalid file descriptors
34542         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
34543         * lib/select.c (rpl_select) [!win32]: Work around it.
34544         * modules/select (Depends-on): Add dup2.
34545         * doc/posix-functions/select.texi (select): Document this.
34547         select: enhance test
34548         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
34549         New functions.
34550         (test_function): Enhance test.
34551         (do_select_bad_fd): Avoid any stale errno values.
34553         ptsname: reject invalid file descriptors
34554         http://www.austingroupbugs.net/view.php?id=503
34555         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
34556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
34557         * modules/stdlib (Makefile.am): Replace witness.
34558         * lib/stdlib.in.h (ptsname): Allow for replacement.
34559         * modules/ptsname (configure.ac): Trigger replacement.
34560         * doc/posix-functions/ptsname.texi (ptsname): Document this.
34562 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
34564         hash-pjw-bare: new module
34565         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
34566         * lib/hash-pjw-bare.h: Likewise.
34567         * modules/hash-pjw-bare: New file.
34568         * MODULES.html.sh (Misc): Add it.
34570 2012-10-02  Eric Blake  <eblake@redhat.com>
34572         manywarnings: cater to more gcc infelicities
34573         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
34574         -Wuninitialized without -O.
34576 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
34578         select, poll tests: Make setsockopt invocation effective.
34579         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
34580         the bind() call.
34581         * tests/test-select.h (open_server_socket): Likewise.
34583 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34585         sockets, sys_stat: restore AC_C_INLINE
34586         This undoes the 2012-09-22 patch.
34587         * m4/sockets.m4 (gl_SOCKETS):
34588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34589         Restore AC_C_INLINE, since MSVC requires __inline or _inline
34590         and does not support plain 'inline'.  Reported by Bruno Haible in
34591         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
34593 2012-09-30  Bruno Haible  <bruno@clisp.org>
34595         localeconv tests: Avoid test failure on OpenIndiana.
34596         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
34597         skip the 'grouping' and 'mon_grouping' tests.
34598         Reported by Jim Meyering.
34600 2012-09-30  Bruno Haible  <bruno@clisp.org>
34602         havelib: Follow libtool developments.
34603         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
34604         Suggested by Simon Josefsson.
34606 2012-09-29  Jim Meyering  <meyering@redhat.com>
34608         fstatat.c: fix a compile-impeding typo
34609         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
34610         Introduced in commit v0.0-7636-gd202279.
34611         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
34613 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
34615         extern-inline: provide a -Wundef safe config.h
34616         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
34617         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
34618         to produce a -Wundef warning free config.h.
34620 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34622         hash-pjw: relax license to LGPLv2+
34623         * modules/hash-pjw (License): Relax, with consent of author.
34625 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34627         maint.mk: fix strict vs. lazy variable issues with RELEASE
34628         * top/maint.mk (_equal): New function.
34629         (member_check): Strip the result to avoid spurious spaces.
34630         (url_dir_list): Do not use ifeq, which is strict, as it will
34631         require RELEASE_TYPE to be defined.
34632         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
34633         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
34634         (announcement_Cc_alpha,announcement_mail_headers_alpha)
34635         (announcement_Cc_beta,announcement_mail_headers_beta)
34636         (announcement_Cc_stable,announcement_mail_headers_stable): these.
34637         (release): Do not depend on $(release-type), as it forces its
34638         evaluation.  Bounce to it.
34640 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34642         maint.mk: formatting changes
34643         * top/maint.mk: Indent bodies of if's.
34645 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
34647         maint.mk: factor the validation of RELEASE_TYPE
34648         With help from Jim Meyering.
34649         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
34650         * top/maint.mk (_empty, _sp): Move their definition earlier.
34651         (member-check, release-type): New.
34652         Use the latter instead of $(RELEASE_TYPE).
34653         Remove now useless local checks.
34655 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34657         maint.mk: provide "make upload" to ease uploading
34658         See
34659         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
34660         Do not depend simply on the current $(VERSION), as there may have been
34661         new commits since the tarball generation.  Rather, rely on $(RELEASE),
34662         as "make release-commit" already does.
34664         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
34665         "make TYPE".
34667         * top/maint.mk (upload_command, upload, release): New.
34668         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
34669         (VERSION): first word of $(RELEASE) is always right.
34670         (emit_upload_commands): Adjust.
34671         * top/README-release: Update.
34673 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34675         maint.mk: silent rules
34676         With help from Stefano Lattarini.
34677         * top/maint.mk (writable-files): Use $(AM_V_GEN).
34678         (announcement): Use $(AM_V_at).
34680 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34682         localename: port gl_locale_name_thread_unsafe to FreeBSD
34683         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
34684         and use the simpler FreeBSD implementation on Mac OS X as well.
34685         Original idea suggested by Ed Maste in
34686         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
34688 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34690         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
34691         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
34692         * lib/mbuiter.c, lib/xsize.c: New files.
34693         * lib/binary-io.h (BINARY_IO_INLINE):
34694         * lib/eealloc.h (EEALLOC_INLINE):
34695         * lib/mbfile.h (MBFILE_INLINE):
34696         * lib/mbiter.h (MBITER_INLINE):
34697         * lib/mbuiter.h (MBUITER_INLINE):
34698         * lib/xsize.h (XSIZE_INLINE):
34699         New macros.
34700         Replace all uses of 'static inline' with them.
34701         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34702         * m4/eealloc.m4 (gl_EEALLOC):
34703         * m4/mbfile.m4 (gl_MBFILE):
34704         * m4/mbiter.m4 (gl_MBITER):
34705         * m4/xsize.m4 (gl_XSIZE):
34706         Do not require AC_C_INLINE.
34707         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
34708         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
34709         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
34710         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
34711         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
34712         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
34713         * modules/binary-io, modules/eealloc, modules/mbfile:
34714         * modules/mbiter, modules/mbuiter:
34715         (Depends-on): Add extern-inline.
34717         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
34718         * lib/pipe-filter-aux.c: New file.
34719         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
34720         Replace all uses of 'static inline' with it.
34721         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34722         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
34723         (filter_retcode): No real need for inline here.
34724         * modules/pipe-filter-gi, modules/pipe-filter-ii:
34725         (Files): Add lib/pipe-filter-aux.c.
34726         (Depends-on): Add extern-inline.
34727         (configure.ac): Do not require AC_C_INLINE.
34728         (lib_SOURCES): Add pipe-filter-aux.c.
34730         fdutimensat: omit unnecessary AC_C_INLINE
34731         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
34733         fchmodat, fchownat, fstatat: use extern-inline
34734         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
34735         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
34736         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
34737         New macros.
34738         * lib/openat.h:
34739         Replace all uses of 'static inline' with them.
34740         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34741         * modules/fchmodat, modules/fchownat, modules/fstatat:
34742         * modules/openat-h:
34743         (Depends-on):
34744         Add extern-inline.
34745         (configure.ac): Remove AC_C_INLINE.
34747         acl, mbchar, priv-set: use extern-inline
34748         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
34749         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
34750         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
34751         New macros.
34752         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
34753         Replace all uses of 'static inline' with it.
34754         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34755         * m4/acl.m4 (gl_FUNC_ACL):
34756         * m4/mbchar.m4 (gl_MBCHAR):
34757         * m4/priv-set.m4 (gl_PRIV_SET):
34758         Remove AC_C_INLINE, since 'inline' is no longer used directly.
34759         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
34760         Add extern-inline.
34762         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
34763         * m4/sockets.m4 (gl_SOCKETS):
34764         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34765         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
34766         environments where it's already guaranteed to work, so we needn't
34767         check for it at 'configure'-time.
34769         tls-tests: omit unnecessary 'inline'
34770         * tests/test-tls.c (perhaps_yield): No longer inline.
34771         Simplicity and portability trump efficiency in test cases.
34773         utimens-tests: avoid unnecessary 'inline'
34774         * modules/fdutimensat-tests (configure.ac):
34775         * modules/futimens-tests (configure.ac):
34776         * modules/utimens-tests (configure.ac):
34777         * modules/utimensat-tests (configure.ac):
34778         Remove AC_C_INLINE.
34779         * tests/test-utimens-common.h (ctime_compare):
34780         No longer inline.  Simplicity and portability trump efficiency here.
34782         misc: don't limit commentary to inline functions
34783         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
34784         * lib/xalloc-oversized.h, lib/xsize.h:
34785         Contrast macros to functions in general, not just to inline functions,
34786         when the commentary does not apply only to inline functions.
34788 2012-09-20  Jim Meyering  <meyering@redhat.com>
34790         non-recursive-gnulib-prefix-hack: new module
34791         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
34792         the file that originated in Bison.
34793         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
34794         largely copied from a snippet that resided in bison's configure.ac.
34795         * modules/non-recursive-gnulib-prefix-hack: New file.
34796         * MODULES.html.sh (Support for maintaining and releasing projects):
34797         Add it.
34799 2012-09-18  Jim Meyering  <meyering@redhat.com>
34801         maint.mk: generalize _gl_tight_scope for non-recursive make
34802         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
34803         that *.h would describe additional .h files in the directory
34804         specified by $(_gl_TS_dir).  I.e., add this...
34805         (_gl_TS_other_headers): New variable.
34807         maint.mk: exempt trailing blanks found in "binary" files
34808         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
34809         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
34810         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34812 2012-09-17  Jim Meyering  <meyering@redhat.com>
34814         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
34815         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
34816         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
34817         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34819 2012-09-17  Jim Meyering  <meyering@redhat.com>
34821         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
34822         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
34823         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
34824         It is not in the same category as "exit (0)" or "exit (1)", and
34825         besides, I know of no symbolic name for that 77.  Reported by
34826         Richard W.M. Jones in
34827         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34829 2012-09-17  Jim Meyering  <meyering@redhat.com>
34831         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
34832         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
34833         all uses of #define, not just those that start in column 1.
34834         Richard W.M. Jones reported a false positive in
34835         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34837 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
34839         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
34840         * lib/localcharset.c (locale_charset) [DARWIN7]:
34841         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
34842         as these two values are incompatible.  Problem reported by Max Horn.
34843         For more discussion, please see
34844         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
34846         doc: document sticky-EOF issue
34847         * doc/posix-functions/fgetc.texi (fgetc):
34848         * doc/posix-functions/fgets.texi (fgets):
34849         * doc/posix-functions/fread.texi (fread):
34850         * doc/posix-functions/fscanf.texi (fscanf):
34851         * doc/posix-functions/getc.texi (getc):
34852         * doc/posix-functions/getchar.texi (getchar):
34853         * doc/posix-functions/scanf.texi (scanf):
34854         Mention that glibc and default Solaris do not conform to
34855         C99 and POSIX-2001 or later, with respect to how getchar
34856         etc. behave when feof reports nonzero.
34858 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34860         poll: fix poll(0, NULL, msec)
34861         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
34862         but nfd is 0.  In that case poll should behave like select.
34864 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34865             Paolo Bonzini  <bonzini@gnu.org>
34867         poll: fix for systems that can't recv() on a non-socket
34868         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
34869         is readable.  In this case POLLHUP will not be supported.
34870         * doc/posix-functions/poll.texi: Document this.
34872 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
34874         poll/select: document portability problems not fixed by Gnulib.
34875         * doc/posix-functions/poll.texi: poll does not work well on
34876         pipes under Windows.  It has the same limitations as select on
34877         BeOS.
34878         * doc/posix-functions/select.texi: select does not work well
34879         on pipes under Windows.
34881 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
34883         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
34884         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
34885         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
34886         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
34888 2012-09-06  Eric Blake  <eblake@redhat.com>
34890         net_if: give more details about the bug being fixed
34891         * doc/posix-headers/net_if.texi: Add clarification.
34893 2012-09-05  Eric Blake  <eblake@redhat.com>
34895         net_if: new module
34896         * modules/net_if: New module, borrowing ideas from netinet_in.
34897         * m4/net_if_h.m4: New file.
34898         * lib/net_if.in.h: Likewise.
34899         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34900         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34901         * tests/test-net_if.c: Make function checks conditional.
34902         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34904 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34906         readutmp: fix non-portable UT_PID use
34907         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34908         Use `UT_PID (u) > 0' as absolute condition.
34910 2012-09-04  Jim Meyering  <meyering@redhat.com>
34912         fts: reduce two or more trailing spaces to just one, usually
34913         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34914         or more slashes, trim all but the final one.  But if a name consists
34915         solely of two slashes, don't modify it.  If it consists solely of
34916         three or more slashes, strip all but one.
34918         This is part of the solution to a minor problem with rm:
34919         it would print a bogus ELOOP diagnostic when failing to remove
34920         the slash-decorated name of a symlink-to-directory:
34922             $ mkdir d && ln -s d s && env rm -r s/
34923             rm: cannot remove 's': Too many levels of symbolic links
34925         With the change below and a trivial don't-trim-trailing-slashes
34926         adjustment to remove.c, it does this:
34928             $ env rm -r s/
34929             rm: cannot remove 's/': Not a directory
34931         Improved by: Eric Blake
34933         fts: when there is no risk of overlap, use memcpy, not memmove
34934         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34936 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34938         stdbool: be more compatible with mixed C/C++ compiles
34939         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34940         Define to bool, true, false, respectively, as GCC's builtin
34941         stdbool.h does.  Problem reported by Michael Goffioul in
34942         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34944 2012-08-28  Jim Meyering  <meyering@redhat.com>
34946         revert last change: it was not needed
34947         * tests/test-vc-list-files-git.sh: There's already a test for
34948         a working git, just below.
34950 2012-08-28  Jim Meyering  <meyering@redhat.com>
34952         tests: test-vc-list-files-git.sh: skip if git is not available
34953         * tests/test-vc-list-files-git.sh: Skip this test when git is
34954         not available.
34956 2012-08-26  Bruno Haible  <bruno@clisp.org>
34958         gnulib-tool: Remove no-op option --no-changelog.
34959         * gnulib-tool (func_usage): Don't mention --no-changelog.
34960         (do_changelog): Remove variable.
34961         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34963 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34965         doc: remove fdl-1.2.texi
34966         It is no longer used or maintained, and its use of @acronym
34967         is problematic.  See the thread containing
34968         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34969         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34970         * doc/old-licenses/fdl-1.2.texi: Remove.
34972         execinfo: port to FreeBSD
34973         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34974         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34975         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34976         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34978 2012-08-23  Jim Meyering  <meyering@redhat.com>
34980         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34981         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34982         to placate gcc's -Wold-style-declaration.
34984 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34986         doc: do not use @acronym
34987         * doc/inet_ntoa.texi (inet_ntoa):
34988         * doc/parse-datetime.texi (Seconds since the Epoch)
34989         (Specifying time zone rules):
34990         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34991         Don't use @acronym.  Problem reported by John Darlington in
34992         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34994 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34996         stdnoreturn: port to newer GCCs
34997         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34998         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34999         Problem reported by Jim Meyering in
35000         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
35001         Also, rename the 'test' function to a void a clash with the
35002         already-supplied 'main' function; this fixes a bug that incorrectly
35003         rejected GCC 4.7.1's <stdnoreturn.h>.
35004         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
35005         Document GCC problem.
35007 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
35009         pipe-filter: fix comment typo
35010         * lib/pipe-filter.h: Mention correct function.
35012 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35014         execinfo: new module
35015         This is for Emacs.  Currently, it provides a no-effect stub
35016         on all platforms where it does not already work.
35017         It already works on glibc-based systems, and on Solaris 11.
35018         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
35019         New files.
35020         * doc/glibc-headers/execinfo.texi (execinfo.h):
35021         * MODULES.html.sh (Misc): Document it.
35023 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35025         extern-inline: support old GCC 'inline'
35026         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
35027         if available.  This applies to GCC versions 2.7 through 4.2, or
35028         when newer GCC is using -fgnu89-inline.  The goal is to address
35029         some of the performance issues mentioned by Bruno Haible in
35030         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
35032 2012-08-20  Eric Blake  <eblake@redhat.com>
35034         maint.mk: avoid redundant file name in message
35035         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
35036         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
35037         (sc_makefile_path_separator_check): Remove bogus $(ME).
35039 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
35041         timer-time: fix link order when static linking on glibc
35042         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
35043         _after_ -lrt so that it's significant.
35045 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35047         timespec: omit unnecessary AC_C_INLINE
35048         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
35050         stat-time: omit unnecessary AC_C_INLINE
35051         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35052         Do not require AC_C_INLINE.
35054         ignore-value: omit unnecessary AC_C_INLINE
35055         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
35057         sys_select: avoid 'static inline'
35058         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
35060         mktime: avoid 'static inline'
35061         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
35062         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
35064 2012-08-19  Bruno Haible  <bruno@clisp.org>
35066         gnulib-tool: Improve coding style.
35067         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
35068         func_emit_lib_Makefile_am.
35069         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35071 2012-08-19  Bruno Haible  <bruno@clisp.org>
35073         gnulib-tool: Fix indentation.
35074         * gnulib-tool (func_import): Fix indentation.
35076 2012-08-19  Bruno Haible  <bruno@clisp.org>
35078         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
35079         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
35080         on the list of removed files.
35082 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35084         test-parse-datetime: avoid glibc leap-second glitch
35085         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
35086         with the 2012 rules.  Problem reported by Bruce Dubbs in
35087         <http://bugs.gnu.org/12206>.
35089 2012-08-14  Bruno Haible  <bruno@clisp.org>
35091         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
35092         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
35093         from argument.
35094         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35096 2012-08-14  Eric Blake  <eblake@redhat.com>
35098         ldexp: relax license
35099         * modules/ldexp (License): Trivial relax, since the module only
35100         provides a permissively licensed m4 file.
35102 2012-08-13  Bruno Haible  <bruno@clisp.org>
35104         gnulib-tool: Fix persistence of --witness-c-macro option.
35105         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
35106         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35108 2012-08-11  Eric Blake  <eblake@redhat.com>
35110         count-leading-zeros: use a lookup table on non-gcc compilers
35111         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
35112         alternate implementation, suggested by Jim Meyering.
35114 2012-08-10  Eric Blake  <eblake@redhat.com>
35116         count-leading-zeros: new module
35117         * modules/count-leading-zeros: New module.
35118         * m4/count-leading-zeros.m4: New file.
35119         * lib/count-leading-zeros.h: Likewise.
35120         * modules/count-leading-zeros-tests: New test.
35121         * tests/test-count-leading-zeros.c: New file.
35122         * MODULES.html.sh (Integer arithmetic functions): Document it.
35124 2012-08-07  Simon Josefsson  <simon@josefsson.org>
35125             Jim Meyering  <meyering@redhat.com>
35127         maintainer-makefile: Fix syntax error with dash.
35128         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
35129         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
35131 2012-08-05  Jim Meyering  <meyering@redhat.com>
35133         extern-inline: also ignore -Wmissing-declarations
35134         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
35135         required with gcc-4.8.0-to-be.
35137         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
35138         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
35139         for /error ?([^,]*)/.  This avoids false-positives for strings like
35140         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
35142 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
35144         gnumakefile: better interaction with Automake-NG
35145         * modules/gnumakefile [Makefile.am]: The makefiles generated by
35146         Automake-NG always contain a definition of VPATH, even in non-VPATH
35147         builds (its value being simply '.' in that case).  So, in the
35148         'clean-GNUmakefile' rule, to determine whether running under a
35149         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
35150         '$(VPATH)' expands to the empty string.
35152 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
35154         base64: Use extern C scope in header file, for C++.
35155         * lib/base64.h: Add C++ namespace protection.
35157 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
35159         stat-time, timespec, u64: support naive out-of-dir builds
35160         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
35161         Use '#include "foo.h"', not '#include <foo.h>', when including
35162         one's own interface.  This works better when configuring with
35163         out-of-directory builds, since packages need not add an
35164         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
35166 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
35168         utimens: use extern-inline
35169         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
35170         * lib/utimens.h: Add copyright notice, since this is now large enough
35171         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35172         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
35173         * modules/utimens (Depends-on): Add extern-inline.
35175         u64: use extern-inline
35176         * lib/u64.c: New file.
35177         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35178         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
35179         * modules/u64 (Files): Add lib/u64.c.
35180         (Depends-on): Add extern-inline.
35181         (configure.ac): No need to require AC_C_INLINE, since extern-inline
35182         does that now.
35183         (lib_SOURCES): Add u64.c.
35185         timespec: use extern-inline
35186         * lib/timespec.c: New file.
35187         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35188         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
35189         * modules/timespec (Files): Add lib/timespec.c.
35190         (Depends-on): Add extern-inline.
35191         (lib_SOURCES): Add timespec.c.
35193         stat-time: use extern-inline
35194         * lib/stat-time.c: New file.
35195         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35196         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
35197         * modules/stat-time (Files): Add lib/stat-time.c.
35198         (Depends-on): Add extern-inline.
35199         (lib_SOURCES): Add stat-time.c.
35201         extern-inline: new module
35202         * modules/extern-inline, m4/extern-inline.m4: New files.
35203         This is for better support of 'extern inline' a la ISO C99,
35204         with a portable alternative on compilers that do not support
35205         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
35206         of the Emacs executable, when compiled with debugging disabled,
35207         which is a typical way that Emacs is built while developing.
35209 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
35211         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
35212         * build-aux/do-release-commit-and-tag: Move variable definitions
35213         together.
35214         ($branch): Instead of defaulting to "master", default to the current
35215         branch (as gnu-web-doc-update does).
35216         (help): Display the current values of the option arguments.
35217         * top/maint.mk (release-commit): New.
35218         * top/README-release: Simplify the corresponding step.
35220 2012-07-30  Eric Blake  <eblake@redhat.com>
35222         passfd: fix comment on recvfd
35223         * lib/passfd.c (recvfd): Fix comment.
35224         Reported by Jann Horn <jannhorn@googlemail.com>.
35226 2012-07-30  Jim Meyering  <meyering@redhat.com>
35228         maint.mk: avoid a sub-shell
35229         * top/maint.mk (release-prep): Remove unneeded sub-shell.
35231 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
35233         maint.mk: use silent-rules support from Automake
35234         * top/maint.mk (news-check, vc-diff-check, announcement)
35235         (no-submodule-changes, alpha beta stable, release-prep)
35236         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
35238 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
35240         maint.mk: provide a web-manual-update target
35241         * top/maint.mk: here.
35242         * top/README-release: Use it to simplify the web manual update step.
35244 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
35246         README-release: shorten the circuit to post a news
35247         * top/README-release: Point directly to the news submission form.
35249 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
35251         gnu-web-doc-update: fix --help
35252         * build-aux/gnu-web-doc-update: The information "top level" was written
35253         twice.
35255 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
35257         maint.mk: absolute VPATH issue
35258         * top/maint.mk (release-prep): Help Git find .git/.
35259         From Jim Meyering.
35261 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
35263         gitlog-to-changelog: fix previous change
35264         * build-aux/gitlog-to-changelog: Fix condition.
35265         Add missing ";".
35267 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
35269         gitlog-to-changelog: don't expect .git to be in $srcdir
35270         Reported by Bruno Haible.
35271         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
35272         * build-aux/gitlog-to-changelog (&git_dir_option): New.
35273         Use it.
35275 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
35277         maint.mk: absolute VPATH build fix
35278         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
35279         $(srcdir) is not a parent of $(builddir).
35281 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
35283         clean-temp: Fix memory leak.
35284         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
35285         'files' members of tmpdir.
35287 2012-07-27  Jim Meyering  <meyering@redhat.com>
35289         maint.mk: new rule: refresh-gnulib-patches
35290         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
35291         Use this rule to refresh them.
35292         * top/maint.mk (refresh-gnulib-patches): New rule.
35294 2012-07-24  Bruno Haible  <bruno@clisp.org>
35296         gnulib-tool: Fix handling of inctests variable.
35297         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
35298         Reported by Nick Bowler <nbowler@elliptictech.com>.
35300 2012-07-22  Bruno Haible  <bruno@clisp.org>
35302         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
35303         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
35304         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
35305         Remove exemption for getpass.h.
35306         Suggested by Eric Blake.
35308 2012-07-20  Eric Blake  <eblake@redhat.com>
35310         verify: document conflict with -Wnested-externs
35311         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
35313         maint.mk: forbid exit(-1)
35314         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
35316 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
35318         fsusage: port back to Solaris
35319         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
35320         error (fsd not declared) on Solaris 10.  Reported privately by
35321         Andrew Borodin.
35323 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
35325         gnu-web-doc-update: fix error messages
35326         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
35328         gnu-web-doc-update: check the requirements.
35329         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
35330         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
35331         * build-aux/bootstrap (find_tool): Comment change.
35333 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
35335         maint.mk: minor simplication.
35336         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
35337         for default values.
35339 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
35341         gitlog-to-changelog: VPATH build issues
35342         If builddir is not a subdirectory of srcdir, running git from it will
35343         fail.
35344         * build-aux/gitlog-to-changelog (--srcdir): New option.
35346 2012-07-15  Bruno Haible  <bruno@clisp.org>
35348         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
35349         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
35350         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
35351         Remove exemption for fpending.h.
35352         Suggested by Eric Blake.
35354 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35356         pthread_sigmask: fix bug on FreeBSD 9
35357         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
35358         Include string.h.
35359         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
35360         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
35361         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
35362         but pthread_sigmask (1729, NULL, NULL) returns zero.
35363         See <http://bugs.gnu.org/11884>.
35364         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
35365         by inspecting whether the main call changed the old mask.
35367 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
35369         README-release: make it more legible
35370         * top/README-release: Improve typography slightly.
35372 2012-07-15  Jim Meyering  <meyering@redhat.com>
35374         maint: require that each sc_... command start with "@"
35375         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
35376         "make sc_maint" helps us avoid this nit.
35378 2012-07-15  Jim Meyering  <meyering@redhat.com>
35380         maint.mk: add leading "@" to quiet new "make syntax-check" rule
35381         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
35383 2012-07-13  Eric Blake  <eblake@redhat.com>
35385         maint.mk: new syntax check for HAVE_DECL checks
35386         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
35387         * cfg.mk
35388         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
35389         Exempt some false positives.
35390         Based on a report by Karel Zak.
35392         argp: make HAVE_DECL usage consistent
35393         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
35394         macros, not whether they are defined.
35395         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
35396         convention with other declaration checks.
35397         Reported by Karel Zak, with suggestions from Paul Eggert.
35399         stat-time: relax license to LGPLv2+
35400         * modules/stat-time (License): Relax, with consent of all authors.
35402         strndup: fix m4 usage error
35403         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
35404         defined, to either 0 or 1.
35405         Reported by Karel Zak.
35407 2012-07-11  Jim Meyering  <meyering@redhat.com>
35409         maint: enable the sc_avoid_if_before_free syntax-check rule
35410         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
35411         (if_before_free_offenders_): Define.
35412         (if_before_free_basename_re_): Define.
35413         Exempt current files with useless if-before-free.
35415 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
35417         gettext: do not assume '#define ... defined ...' behavior
35418         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
35419         Do not use '#define FOO ... defined BAR ...', as the C standard says
35420         it's not portable to expect that this works after macro expansion.
35421         Problem reported for gzip by Steven M. Schweda in
35422         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
35424 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
35426         getloadavg: clean out old Emacs and Autoconf cruft
35427         See Glenn Morris in <http://bugs.gnu.org/11905>.
35428         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
35429         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
35430         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
35431         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
35433 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
35435         bootstrap: let warn be like tests/init.sh's warn_
35436         Reported by Jim Meyering.
35437         * build-aux/bootstrap (warn): Remove, replaced by...
35438         (warnf_, warn_): these.
35439         Adjust callers.
35440         Shorten messages that no longer fit in 80 columns.
35442 2012-07-09  Bruno Haible  <bruno@clisp.org>
35444         getopt: Simplify after Emacs changed.
35445         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
35446         (gl_GETOPT_IFELSE): Remove macro.
35448 2012-07-09  Jim Meyering  <meyering@redhat.com>
35450         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
35451         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
35453         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
35454         Bugs in both of those conspired to make the
35455         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
35456         _sc_search_regexp's handling of non-empty $in_files would filter
35457         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
35458         choice of in_files value meant there would be no match in most
35459         projects, due to the presence of two or more Makefile.in files.
35460         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
35461         Fix a bug in how a non-empty $$in_files was processed:
35462         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
35463         in spite of the name, it's a regexp, not a list of file names.
35465 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35467         getloadavg, getopt: fix commentary re configure.in
35468         Autoconf is deprecating the name 'configure.in', so change it to
35469         to the new name 'configure.ac' in a couple of places.
35470         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
35471         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
35472         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
35473         Emacs has renamed it to configure.ac, and it no longer refers
35474         to these macros anyway.
35476         timespec: mark functions with const attributes
35477         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
35478         Mark with _GL_ATTRIBUTE_CONST.
35480 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
35482         canonicalize[-lgpl]: handle "guessing" values when cross-building
35483         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35484         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
35485         matches "*yes" instead of just "yes".  Regression introduced in commit
35486         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
35488 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
35489             Bruno Haible  <bruno@clisp.org>
35491         canonicalize: make the right guess when cross-compiling to GNU
35492         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
35493         determine whether cross-compiling to glibc systems, so as to
35494         include GNU/Hurd.
35496 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35498         timespec-sub: avoid duplicate include
35499         * lib/timespec-sub.c: Do not include <config.h> twice.
35500         Reported by Juanma Barranquero.
35502 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
35504         bootstrap: use a more consistent error reporting scheme
35505         * build-aux/bootstrap (warn, die): New.
35506         Use them.
35508 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35510         sys_time: allow too-wide tv_sec
35511         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
35512         timeval even if tv_sec is wider than time_t.  This allows
35513         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
35514         as without this patch gnulib replaces struct timeval
35515         and OpenBSD futimes therefore has a type mismatch.
35516         * doc/posix-headers/sys_time.texi: Mention this.
35518         pthread: check for both pthread_create and pthread_join
35519         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
35520         alter the check so that it tests for both pthread_create and
35521         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
35522         Suggested by Bruno Haible and Richard Yao in
35523         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
35525         parse-datetime: doc tuneup
35526         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
35527         spacing issues.
35529 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
35531         do-release-commit-and-tag: fix the previous commit
35532         * build-aux/do-release-commit-and-tag: Actually the test was right,
35533         but the comment and the error message were misleading.
35534         Fix comment, and improve error message.
35535         Perform check first, so that NEWS is not modified uselessly.
35537         do-release-commit-and-tag: fix typo
35538         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
35539         _not_ start with a stub.
35541 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35543         pthread: check for pthread_create, not pthread_join
35544         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
35545         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
35546         pthread_join in libc.  I hope this removes the need for all the
35547         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
35548         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
35550 2012-07-04  Jim Meyering  <meyering@redhat.com>
35552         parse-datetime: fix failure to diagnose invalid input
35553         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
35554         rather than diagnosing the invalid input.  Now it reports this:
35555         date: invalid date '\260'
35556         * lib/parse-datetime.y (to_uchar): Define.
35557         (yylex): Don't sign-extend "other" bytes.
35558         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
35559         Thanks to Bruno Haible for the patch to this file.
35560         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
35561         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
35563 2012-07-03  Jim Meyering  <meyering@redhat.com>
35565         bootstrap: do not require now-removed build-aux/missing
35566         Now that build-aux/missing is, er, missing, bootstrap would
35567         silently fail.
35568         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
35569         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
35570         no longer part of gnulib.
35571         Diagnose the failure.
35573 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35575         alloca: add support for HP NonStop TNS/E native
35576         * lib/alloca.in.h (alloca): Support the new host.
35577         From a suggestion by Joachim Schmitz in
35578         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
35580 2012-07-02  Pádraig Brady  <P@draigBrady.com>
35582         fsusage: remove code not needed on non GNU/Linux systems.
35584         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35585         Don't include headers no longer needed in this case.
35586         * lib/fsusage.c [STAT_STATVFS &&
35587         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
35588         STAT_STATFS2_FRSIZE to exclude code not used in this case.
35590 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35592         fsusage: include files needed for glibc 2.6 fallback
35593         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35594         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
35595         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
35596         Problem reported by Ludovic Courtès in
35597         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
35599         fsusage: avoid needless check on GNU/Linux
35600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
35601         on GNU/Linux systems, since it can't possibly work.
35603 2012-07-01  Bruno Haible  <bruno@clisp.org>
35605         log: Fix an autoconf >= 2.64 warning.
35606         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
35607         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35609 2012-06-28  Bruno Haible  <bruno@clisp.org>
35611         log10f: Fix possible configuration problem.
35612         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
35613         $LOGF_LIBM.
35614         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35616 2012-06-28  Bruno Haible  <bruno@clisp.org>
35618         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
35619         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
35620         not gl_cv_func_unlink_works.
35621         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35623 2012-06-27  Eric Blake  <eblake@redhat.com>
35625         config: drop scripts that automake says are not independent
35626         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
35627         * build-aux/elisp-comp: Delete.
35628         * build-aux/missing: Likewise.
35629         * build-aux/ylwrap: Likewise.
35630         * modules/elisp-comp: Likewise.
35631         * MODULES.html.sh: Drop mention of elisp-comp.
35632         * NEWS: Mention this.
35634 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35636         root-uid: new module
35637         This is for portability to Tandem's NonStop Kernel.
35638         * lib/root-uid.h, modules/root-uid: New files.
35639         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
35640         * lib/write-any-file.c, tests/test-sethostname2.c:
35641         Include "root-uid.h".
35642         * lib/euidaccess.c (euidaccess):
35643         * lib/pt_chown.c (main):
35644         * lib/unlinkdir.c (cannot_unlink_dir):
35645         * lib/write-any-file.c (can_write_any_file):
35646         * m4/mknod.m4 (gl_FUNC_MKNOD):
35647         * tests/test-sethostname2.c (geteuid, main):
35648         Don't assume ROOT_UID == 0.
35649         * modules/euidaccess (Depends-on):
35650         * modules/pt_chown (Depends-on):
35651         * modules/sethostname-tests (Depends-on):
35652         * modules/unlinkdir (Depends-on):
35653         * modules/write-any-file (Depends-on):
35654         Add root-uid.
35656         regex: use locale-independent comparison for codeset name
35657         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
35658         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
35659         for codeset name.
35660         * lib/regex_internal.h: Do not include <strings.h>, since we
35661         no longer use strcasecmp.
35662         * modules/regex (Depends-on): Remove strcase.
35664 2012-06-23  Bruno Haible  <bruno@clisp.org>
35666         getopt-posix: No longer guarantee that option processing is resettable.
35667         * doc/posix-functions/getopt.texi: Drop description of problem with
35668         internal state. Fix info about mingw and msvc9.
35669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
35670         option processing by getopt(). Run three test programs instead of one.
35671         Simplify cross-compilation guess.
35672         * NEWS: Mention the change.
35673         Reported by Rich Felker <dalias@aerifal.cx>.
35675 2012-06-26  Bruno Haible  <bruno@clisp.org>
35677         argp, regex: Ensure strcasecmp gets declared.
35678         * lib/argp-help.c: Include <strings.h>.
35679         * lib/regex_internal.h: Likewise.
35680         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
35682 2012-06-24  Bruno Haible  <bruno@clisp.org>
35684         ptsname_r: Make it consistent with ptsname on AIX.
35685         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
35686         implementation as for OSF/1.
35687         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
35688         a pty master.
35690         ptsname_r: Make it consistent with ptsname on OSF/1.
35691         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35692         OSF/1.
35694 2012-06-24  Bruno Haible  <bruno@clisp.org>
35696         ttyname_r: Fix result on OSF/1, Solaris.
35697         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
35699 2012-06-24  Bruno Haible  <bruno@clisp.org>
35701         ptsname_r: Add support for Solaris.
35702         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35703         Solaris.
35705         ptsname_r: Fix test failure on native Windows.
35706         * modules/ptsname_r (Depends-on): Add isatty.
35708         ptsname_r: Fix test failures on IRIX, Solaris.
35709         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
35710         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
35711         accordingly.
35712         * lib/ptsname_r.c: Include <fcntl.h>.
35713         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
35714         set errno if fd is invalid.
35715         * tests/test-isatty.c (main): Update comments.
35717 2012-06-24  Bruno Haible  <bruno@clisp.org>
35719         ptsname test: Extend test.
35720         * tests/test-ptsname.c: Include <errno.h>.
35721         (main): Test behaviour with invalid file descriptor.
35723 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35725         time: fix obsolete comment
35726         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
35727         reference to HAVE_STRUCT_TIMESPEC in comment.
35729 2012-06-23  Bruno Haible  <bruno@clisp.org>
35731         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
35732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
35733         does not handle abbreviated long options with equivalent
35734         disambiguations, set gl_replace_getopt to yes.
35735         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
35737 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35739         time_r: fix typo that always overrode localtime_r decl
35740         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
35741         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
35742         not in a standard include.
35744 2012-06-22  Bruno Haible  <bruno@clisp.org>
35746         Write "Mac OS X" instead of "MacOS X".
35747         * README: Write "Mac OS X" instead of "MacOS X".
35748         * build-aux/bootstrap: Likewise.
35749         * build-aux/install-reloc: Likewise.
35750         * lib/acl-internal.h: Likewise.
35751         * lib/acl_entries.c: Likewise.
35752         * lib/argp-ba.c: Likewise.
35753         * lib/argp-pv.c: Likewise.
35754         * lib/config.charset: Likewise.
35755         * lib/copy-acl.c: Likewise.
35756         * lib/csharpexec.c: Likewise.
35757         * lib/euidaccess.c: Likewise.
35758         * lib/fbufmode.c: Likewise.
35759         * lib/fflush.c: Likewise.
35760         * lib/file-has-acl.c: Likewise.
35761         * lib/filemode.h: Likewise.
35762         * lib/fpurge.c: Likewise.
35763         * lib/freadable.c: Likewise.
35764         * lib/freadahead.c: Likewise.
35765         * lib/freading.c: Likewise.
35766         * lib/freadptr.c: Likewise.
35767         * lib/freadseek.c: Likewise.
35768         * lib/fseeko.c: Likewise.
35769         * lib/fseterr.c: Likewise.
35770         * lib/fsusage.c: Likewise.
35771         * lib/fwritable.c: Likewise.
35772         * lib/fwriting.c: Likewise.
35773         * lib/get-rusage-as.c: Likewise.
35774         * lib/get-rusage-data.c: Likewise.
35775         * lib/getdomainname.c: Likewise.
35776         * lib/idpriv-drop.c: Likewise.
35777         * lib/idpriv-droptemp.c: Likewise.
35778         * lib/localcharset.c: Likewise.
35779         * lib/locale.in.h: Likewise.
35780         * lib/localename.c: Likewise.
35781         * lib/mbsrtowcs-state.c: Likewise.
35782         * lib/nproc.c: Likewise.
35783         * lib/passfd.c: Likewise.
35784         * lib/posix_openpt.c: Likewise.
35785         * lib/printf-parse.c: Likewise.
35786         * lib/progreloc.c: Likewise.
35787         * lib/safe-read.h: Likewise.
35788         * lib/safe-write.h: Likewise.
35789         * lib/sched.in.h: Likewise.
35790         * lib/set-mode-acl.c: Likewise.
35791         * lib/signal.in.h: Likewise.
35792         * lib/stdint.in.h: Likewise.
35793         * lib/stdio-impl.h: Likewise.
35794         * lib/stdlib.in.h: Likewise.
35795         * lib/strtod.c: Likewise.
35796         * lib/sys_select.in.h: Likewise.
35797         * lib/tcgetsid.c: Likewise.
35798         * lib/unistd.in.h: Likewise.
35799         * lib/unlockpt.c: Likewise.
35800         * lib/vasnprintf.c: Likewise.
35801         * lib/vma-iter.c: Likewise.
35802         * lib/wcsrtombs-state.c: Likewise.
35803         * m4/acl.m4: Likewise.
35804         * m4/acosl.m4: Likewise.
35805         * m4/asinl.m4: Likewise.
35806         * m4/atanl.m4: Likewise.
35807         * m4/c-stack.m4: Likewise.
35808         * m4/cosl.m4: Likewise.
35809         * m4/expl.m4: Likewise.
35810         * m4/extensions.m4: Likewise.
35811         * m4/fdatasync.m4: Likewise.
35812         * m4/fmal.m4: Likewise.
35813         * m4/frexp.m4: Likewise.
35814         * m4/frexpf.m4: Likewise.
35815         * m4/frexpl.m4: Likewise.
35816         * m4/fsusage.m4: Likewise.
35817         * m4/getdomainname.m4: Likewise.
35818         * m4/getloadavg.m4: Likewise.
35819         * m4/getopt.m4: Likewise.
35820         * m4/gettext.m4: Likewise.
35821         * m4/gnulib-common.m4: Likewise.
35822         * m4/intdiv0.m4: Likewise.
35823         * m4/intlmacosx.m4: Likewise.
35824         * m4/largefile.m4: Likewise.
35825         * m4/ldexpl.m4: Likewise.
35826         * m4/link-follow.m4: Likewise.
35827         * m4/locale-ar.m4: Likewise.
35828         * m4/locale-fr.m4: Likewise.
35829         * m4/locale-ja.m4: Likewise.
35830         * m4/locale-tr.m4: Likewise.
35831         * m4/locale-zh.m4: Likewise.
35832         * m4/locale_h.m4: Likewise.
35833         * m4/lock.m4: Likewise.
35834         * m4/logl.m4: Likewise.
35835         * m4/mathfunc.m4: Likewise.
35836         * m4/minus-zero.m4: Likewise.
35837         * m4/mktime.m4: Likewise.
35838         * m4/mmap-anon.m4: Likewise.
35839         * m4/multiarch.m4: Likewise.
35840         * m4/nanosleep.m4: Likewise.
35841         * m4/nocrash.m4: Likewise.
35842         * m4/poll.m4: Likewise.
35843         * m4/printf-frexpl.m4: Likewise.
35844         * m4/printf.m4: Likewise.
35845         * m4/signbit.m4: Likewise.
35846         * m4/sinl.m4: Likewise.
35847         * m4/sqrtl.m4: Likewise.
35848         * m4/strerror_r.m4: Likewise.
35849         * m4/tanl.m4: Likewise.
35850         * m4/threadlib.m4: Likewise.
35851         * m4/ttyname_r.m4: Likewise.
35852         * m4/unlink.m4: Likewise.
35853         * m4/visibility.m4: Likewise.
35854         * m4/wcwidth.m4: Likewise.
35855         * tests/minus-zero.h: Likewise.
35856         * tests/test-alloca-opt.c: Likewise.
35857         * tests/test-copy-acl.sh: Likewise.
35858         * tests/test-copy-file.sh: Likewise.
35859         * tests/test-fdatasync.c: Likewise.
35860         * tests/test-file-has-acl.sh: Likewise.
35861         * tests/test-flock.c: Likewise.
35862         * tests/test-fsync.c: Likewise.
35863         * tests/test-localename.c: Likewise.
35864         * tests/test-malloca.c: Likewise.
35865         * tests/test-nonblocking-pipe.h: Likewise.
35866         * tests/test-nonblocking-socket.h: Likewise.
35867         * tests/test-openpty.c: Likewise.
35868         * tests/test-posix_openpt.c: Likewise.
35869         * tests/test-ptsname.c: Likewise.
35870         * tests/test-ptsname_r.c: Likewise.
35871         * tests/test-sameacls.c: Likewise.
35872         * tests/test-select.h: Likewise.
35873         * tests/test-set-mode-acl.sh: Likewise.
35874         * tests/test-snprintf-posix.h: Likewise.
35875         * tests/test-sprintf-posix.h: Likewise.
35876         * tests/test-strtod.c: Likewise.
35877         * tests/test-time.c: Likewise.
35878         * tests/test-vasnprintf-posix.c: Likewise.
35879         * tests/test-vasprintf-posix.c: Likewise.
35880         * doc/acl-resources.txt: Likewise.
35881         * doc/**/*.texi: Likewise.
35882         Reported by Max Horn <max@quendi.de>.
35884 2012-06-22  Bruno Haible  <bruno@clisp.org>
35886         grantpt: Relax requirement regarding invalid file descriptors.
35887         * lib/grantpt.c: Don't include <fcntl.h>.
35888         (grantpt): Don't verify the validity of the file descriptor.
35889         * modules/grantpt (Depends-on): Remove fcntl-h.
35890         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
35891         file descriptors.
35892         * doc/posix-functions/grantpt.texi: Document more platforms on which
35893         grantpt succeeds for invalid file descriptors.
35894         Reported by Rich Felker <dalias@aerifal.cx>.
35896 2012-06-22  Bruno Haible  <bruno@clisp.org>
35898         fbufmode test: Don't test unportable behaviour.
35899         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35900         (main): Invoke it three times.
35901         Reported by Szabolcs Nagy <nsz@port70.net>
35902         and Rich Felker <dalias@aerifal.cx>.
35904 2012-06-21  Bruno Haible  <bruno@clisp.org>
35906         gnulib-tool: Refactor inctests variable.
35907         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35908         (func_modules_transitive_closure,
35909         func_modules_transitive_closure_separately,
35910         func_import, func_create_testdir): Update.
35912         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35913         * gnulib-tool: Accept option --without-tests.
35914         (func_usage): Document --without-tests option. Rearrange.
35915         (inctests): Normalize according to the mode.
35916         * NEWS: Mention the change.
35917         Suggested by Simon Josefsson.
35919 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35921         parse-duration test: Avoid spurious output.
35922         * tests/test-parse-duration.sh: Reindent with leading tabs.
35924 2012-06-21  Jim Meyering  <meyering@redhat.com>
35926         maint: disable the strncpy prohibition
35927         * cfg.mk: Do not prohibit strncpy here.
35929 2012-06-21  Bruno Haible  <bruno@clisp.org>
35931         nonblocking: Avoid compilation error on mingw64.
35932         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35933         fscanf.
35934         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35935         * modules/vfscanf (configure.ac): Likewise.
35936         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35937         definition only if stdio.h has prepared it.
35938         Reported by Daniel P. Berrange <berrange@redhat.com>.
35940 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35942         gnulib-tool: Use readlink if it is available.
35943         * gnulib-tool (func_readlink): Choose function more appropriately.
35945 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35947         posixtm-tests: port to buggy compiler
35948         Problem reported by Simon Josefsson in
35949         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35950         * modules/posixtm-tests (Depends-on): Add stdint.
35951         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35952         Now of type int_least64_t, not int64_t, both because that's
35953         what INT64_C returns and because int_least64_t works even
35954         on 72-bit hosts.
35955         (T): Use INT64_C on constants outside the traditional int range,
35956         to work around compiler bug noted by Simon.
35958         mktime: fix integer overflow in 'configure'-time test
35959         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35960         after integer overflow.  Problem reported by Rich Felker in
35961         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35962         Also, don't look for further instances of a bug if we've already
35963         found one instance; this helps 'configure' run faster.
35965 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35967         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35968         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35969         GetVersionEx correctly.
35970         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35972 2012-06-20  Bruno Haible  <bruno@clisp.org>
35974         fdopen: Allow implementations that don't reject invalid fd arguments.
35975         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35976         succeeds.
35977         Reported by Rich Felker <dalias@aerifal.cx>.
35979 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35981         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35982         bring in LIBINTL.
35984 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35986         init.sh: do not rely on autoupated PWD
35987         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35988         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35989         Although Nelson's bug was not necessarily fixed by this patch,
35990         it seems wise to make the change for safety.
35991         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35992         automagically after 'cd'; this is not reliable on older shells.
35993         (setup_): Fail if we cannot cd to temporary directory.
35995 2012-06-19  Bruno Haible  <bruno@clisp.org>
35997         stat, fstat: Avoid warnings on mingw64.
35998         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35999         redefining.
36000         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
36001         Reported by Daniel P. Berrange <berrange@redhat.com>.
36003 2012-06-19  Bruno Haible  <bruno@clisp.org>
36005         stdioext: Add support for musl libc.
36007         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
36008         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
36010         * m4/fseterr.m4: New file.
36011         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
36012         function exists.
36013         * modules/fseterr (Files): Add m4/fseterr.m4.
36014         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
36015         __fseterr does not exist.
36016         (Makefile.am): Remove fseterr.c from lib_SOURCES.
36018         * lib/freadable.h: Update comment.
36020         * lib/fwritable.h: Update comment.
36022         * lib/freading.h: Update comment.
36024         * lib/fwriting.h: Update comment.
36026         * m4/freadahead.m4: New file.
36027         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
36028         that function exists.
36029         * modules/freadahead (Files): Add m4/freadahead.m4.
36030         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
36031         __freadahead does not exist.
36032         (Makefile.am): Remove freadahead.c from lib_SOURCES.
36034         * m4/freadptr.m4: New file.
36035         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
36036         function exists.
36037         * modules/freadptr (Files): Add m4/freadptr.m4.
36038         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
36039         __freadptr does not exist.
36040         (Makefile.am): Remove freadptr.c from lib_SOURCES.
36042         * m4/freadseek.m4: New file.
36043         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
36044         exists.
36045         * modules/freadseek (Files): Add m4/freadseek.m4.
36046         (configure.ac): Invoke gl_FUNC_FREADSEEK.
36048         * lib/fpurge.c (fpurge): Update comment.
36050         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
36052 2012-06-19  Bruno Haible  <bruno@clisp.org>
36054         *printf-posix: Put more info into config.log.
36055         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
36056         exit code into config.log.
36058 2012-06-19  Bruno Haible  <bruno@clisp.org>
36060         getopt-gnu: Fix exit code overflow in autoconf test.
36061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
36062         to keep them below < 128.
36064 2012-06-17  Jim Meyering  <meyering@redhat.com>
36066         maint.mk: fix typo in code to derive GPG key at release time
36067         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
36069 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
36071         regex: avoid warning when pointers are not long
36072         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
36073         and uintptr_t, not long, for portability to hosts where pointers and
36074         long have different sizes.  Issue noted by Daniel P. Berrange in
36075         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
36076         and fix suggested by Bruno Haible in
36077         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
36079 2012-06-17  Bruno Haible  <bruno@clisp.org>
36081         dummy: Relicense into the public domain.
36082         * modules/dummy (License): Set to "public domain".
36083         Suggested by Reuben Thomas.
36085 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
36087         announce-gen: VPATH issues
36088         * build-aux/announce-gen (--srcdir): New option, used to trim the
36089         $srcdir part of the path from $builddir to NEWS.
36090         * top/maint.mk (announcement): Adjust.
36092 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
36094         gnu-web-doc-update: VPATH builds
36095         * build-aux/gnu-web-doc-update (--builddir): New option.
36096         Revamp the handling of options.
36097         Prefer $(...) to `...`.
36098         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
36099         the template, and it is GNU mktemp specific.
36100         Prefer set -e to long series of &&.
36101         Restore the initial git branch, not "master".
36102         Properly initialize submodules (don't rely only on bootstrap).
36103         Do not reconfigure blindly, use config.status.
36104         * top/README-release: Update instructions for gnu-web-doc-update.
36106 2012-06-11  Jim Meyering  <meyering@redhat.com>
36108         maint.mk: revert most of the previous change re "all these"
36109         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
36110         For rationale, see the discussion at
36111         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
36113 2012-06-10  Karl Berry  <karl@gnu.org>
36115         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
36117         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
36119 2012-06-10  Bruce Korb  <bkorb@gnu.org>
36121         parse-duration: Relicense under LGPLv2+.
36122         * modules/parse-duration (License): Change to LGPLv2+.
36124 2012-06-10  Jim Meyering  <meyering@redhat.com>
36126         maint.mk: prohibit common grammar error: "all these"
36127         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
36128         the list of prohibited word sequences.  It should be "all of these".
36129         * lib/tempname.c (__gen_tempname): Fix one of them.
36131 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
36133         do-release-commit-and-tag: support VPATH builds
36134         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
36135         (noteworthy): Defined earlier to factor its value.
36136         (noteworthy_stub): New.
36137         Use it to factor.
36138         (help_version): Split into...
36139         (help, version): these.
36140         Adjust the option processing part.
36141         Support "--option=value" in addition to "--option value".
36142         (builddir): New.
36143         (--builddir): New option.
36144         * top/README-release: Document this.
36145         Reword slightly so that the reader cannot understand that he
36146         has to do these steps before calling do-release-commit-and-tag.
36148 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
36150         readme-release: also require announce-gen and maintainer-makefile
36151         * modules/readme-release (Depends-on): here.
36152         * modules/announce-gen, modules/do-release-commit-and-tag,
36153         modules/gnu-web-doc-update, modules/maintainer-makefile
36154         (Description): Point to readme-release.
36156 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
36158         maint.mk: fix VPATH issues.
36159         * top/maint.mk (news-check): GNU Make understand $< very well.
36160         (release-prep): NEWS is in $(srcdir).
36162 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
36164         readme-release: require the promoted modules.
36165         * modules/readme-release (Depends-on): Add
36166         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
36167         in this text.
36169 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
36170             Bruno Haible  <bruno@clisp.org>
36172         error, strerror-override: Support mingw64 from Fedora 17.
36173         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
36174         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
36175         EINPROGRESS.
36176         * lib/strerror-override.h (strerror_override): Test it.
36177         * lib/strerror-override.c (strerror_override): Likewise.
36178         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
36180 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
36181             Bruno Haible  <bruno@clisp.org>
36183         error, strerror-override: Support mingw64 from Fedora 17.
36184         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
36185         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
36186         * lib/strerror-override.h (strerror_override): Test it.
36187         * lib/strerror-override.c (strerror_override): Likewise.
36189 2012-06-03  Bruno Haible  <bruno@clisp.org>
36191         error, strerror-override: Support new errno values from POSIX:2008.
36192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
36193         ENOTRECOVERABLE.
36194         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
36195         platforms.
36196         * lib/strerror-override.c (strerror_override): Conditionalize the
36197         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
36198         * lib/strerror-override.h (strerror_override): Declare also if
36199         GNULIB_defined_EOWNERDEAD is defined.
36200         * tests/test-errno.c (e130, e131): New variables.
36201         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
36202         ENOTRECOVERABLE.
36203         Reported by Paolo Bonzini.
36205 2012-05-31  Jim Meyering  <meyering@redhat.com>
36207         savewd: add missing dependency on sys_wait module
36208         * modules/savewd (Depends-on): Add sys_wait, needed at least
36209         for MSVC.  Report and suggested change by Michael Goffioul.
36211 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36213         system-quote-tests: port to CentOS 5
36214         Problem reported by Tom G. Christensen in
36215         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
36216         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
36218 2012-05-29  Jim Meyering  <meyering@redhat.com>
36220         maint: fix typos in comments and ChangeLog
36221         Culprits identified and fixed mostly automatically using these commands:
36222         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
36223         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
36224         using http://github.com/lyda/misspell-check
36225         * ChangeLog: Fix typos.
36226         * doc/solaris-versions: Likewise.
36227         * lib/regexec.c (re_search_stub): Likewise.
36228         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
36230 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
36232         manywarnings: remove duplicate -Wmultichar entry
36233         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
36234         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
36235         so keep the entry marked as documented.
36237 2012-05-27  Karl Berry  <karl@gnu.org>
36239         * config/srclist.txt (mktime.c): remove last libc sync,
36240         perhaps just temporarily.
36242 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
36244         regex: don't assume uint64_t or uint32_t
36245         * lib/regcomp.c (init_word_char): Don't assume that the types
36246         uint64_t and uint32_t exist.  The C standard doesn't guarantee
36247         them, and on some 32-bit compilers there is no uint64_t.
36248         Problem reported by Gianluigi Tiesi in
36249         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
36251 2012-05-25  Jim Meyering  <meyering@redhat.com>
36253         maint.mk: add strncpy-prohibiting syntax-check rule
36254         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
36256 2012-05-24  Jim Meyering  <meyering@redhat.com>
36258         maint.mk: compute $(gpg_key_ID) more portably
36259         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
36260         That use of sed is not portable to some fringe systems.
36261         Reported by Paul Eggert in
36262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
36264 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
36266         mktime: sync from glibc
36267         * config/srclist.txt: Uncomment mktime.c.
36268         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
36269         First, indent with tabs, since glibc uses tabs and doesn't want to
36270         change and we'd rather be identical to glibc.  Also, two small
36271         coding changes:
36272         (isdst_differ): Use &&, not &, as && is the usual style.
36273         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
36274         for clarity.
36276 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
36278         announce-gen: du -h is more portable than du --human
36279         * build-aux/announce-gen (sizes): Invoke du with -h instead
36280         of --human.  Accept leading white space in its output.
36282 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
36284         announce-gen: Improve diagnostics.
36285         * build-aux/announce-gen: When parsing command line options,
36286         prefer "announce-gen: option --release-type requires an argument"
36287         to "Option release-type requires an argument".
36289 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
36291         maint.mk: gpg_key_ID: use sed more portably
36292         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
36293         the closing brace.
36294         (refresh-po): Fuse two sed invocations into one.
36296 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
36298         gitlog-to-changelog: support the log message format used in Bison.
36299         * build-aux/gitlog-to-changelog: Support --strip-tab and
36300         --strip-cherry-picked.
36302 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
36304         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
36305         the rest of the current time slice to another thread in the current
36306         process. So if the thread that feeds the file decscriptor we're
36307         polling is not in the current process, we get busy-waiting.
36308         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
36309         Patch from Theodore Leblond.
36310         * lib/select.c: Split polling out of the loop that sets the output
36311         fd_sets.  Check for zero result and loop if the wait timeout is
36312         infinite.
36314 2012-05-21  Simon Josefsson  <simon@josefsson.org>
36316         select: Fix build error on IRIX 6.5.
36317         * lib/select.c: Include stddef.h for NULL.
36319 2012-05-21  Simon Josefsson  <simon@josefsson.org>
36321         gc: fix libgcrypt detection on older machines.
36322         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
36323         copyright years because the file has been distributed every year
36324         since it was created.
36326 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
36328         crypto: fix bug in large buffer handling
36329         Problem reported by Serge Belyshev for glibc in
36330         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
36331         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
36332         * lib/md4.c (md4_process_block):
36333         * lib/md5.c (md5_process_block):
36334         * lib/sha1.c (sha1_process_block):
36335         * lib/sha256.c (sha256_process_block):
36336         Don't assume the buffer length is less than 2**32.
36337         * lib/sha512.c (sha512_process_block): Likewise.
36338         Here, the bug is present only in the rare case where the host does
36339         not support uint64_t or where size_t is wider than 64 bits.
36340         Use u64size to work around the problems.
36341         * lib/u64.h (u64size): New macro.
36343 2012-05-15  Pádraig Brady  <P@draigBrady.com>
36345         fsusage: fix block size returned on older Linux 2.6
36347         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
36348         which is available since Linux 2.6.
36349         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
36350         when the member is available so it can be used as a fallback.
36351         * doc/posix-functions/statvfs.texi: Mention the hang issue
36352         on Linux < 2.6.36.
36354 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36356         bootstrap: suppress stderr chatter
36357         * build-aux/bootstrap (insert_sorted_if_absent, main program):
36358         Omit unnecessary chatter to stderr.  The main program chatter
36359         was there only inadvertantly.
36361         bootstrap: .gitignore files created by autopoint, libtool
36362         I ran into this problem when bootstrapping the latest diffutils.
36363         After './bootstrap', 'git status' reported lots of untracked files
36364         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
36365         autopoint and do not need to be version-controlled.
36366         * build-aux/bootstrap: Put into .gitignore the files that
36367         autopoint and libtool create, by keeping track of files that exist
36368         after but not before these programs are run.
36369         (version_controlled_file): Move up.  2nd arg is now full file
36370         name, not base name; this is more convenient.  Put CVS at the end,
36371         as it's now somewhat deprecated.
36373 2012-05-14  Jim Meyering  <meyering@redhat.com>
36375         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
36376         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
36377         definition.  Reported by Bruno Haible.
36379 2012-05-13  Bruno Haible  <bruno@clisp.org>
36380             Paul Eggert  <eggert@cs.ucla.edu>
36382         binary-io: Define set_binary_mode function.
36383         * lib/binary-io.h (set_binary_mode): New function.
36384         (SET_BINARY): Define in terms of set_binary_mode.
36385         * modules/binary-io (configure.ac): Require AC_C_INLINE.
36386         * tests/test-binary-io.c (main): Accept an argument, and test either
36387         set_binary_mode or SET_BINARY depending on the argument.
36388         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
36389         argument. Clean up also t-bin-out0.tmp.
36391 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
36393         bootstrap: take advantage of POSIX shell features
36395         The 'bootstrap' script offered by Gnulib script already uses POSIX
36396         shell features (like $((...)) arithmetic expansions) that are not
36397         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
36398         means that bootstrap must already be run using a proper POSIX shell,
36399         which will thus provide more features, like ${var#pattern} parameter
36400         expansion or inversion of a command exit status with '!'.  We can
36401         thus use these features to improve the clarity and the performances
36402         of the bootstrap script.
36404         Suggested by Eric Blake.
36406         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
36407         of sed/expr plus command substitutions, to save some forks.  While
36408         we are at it, prefer the POSIX $(...) form of command substitution,
36409         rather than the legacy form `...` (since the former is visually
36410         clearer and interacts better with quoting), and prefer the idiom:
36411           "if ! CMD; then ACTION ..."
36412         over the idiom:
36413           "if CMD; then :; else ACTION ..."
36414         which was required by legacy Bourne shells not supporting '!'.
36416 2012-05-12  Bruno Haible  <bruno@clisp.org>
36418         system-quote: Add more comments.
36419         * lib/system-quote.h: Add more comments about wilcards and limitations.
36420         Suggested by Eli Zaretskii <eliz@gnu.org>.
36422         sh-quote, system-quote: Add comments about wildcards.
36423         * lib/sh-quote.h: Clarify what happens with wildcard characters.
36424         * lib/system-quote.h: Likewise.
36425         Reported by Eli Zaretskii <eliz@gnu.org>.
36427 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
36429         fsusage: check for GNU/Linux statvfs problem dynamically
36430         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
36431         Define STAT_STATFS2_BSIZE too, since in this case the code now
36432         checks dynamically whether statvfs is reliable, falling back on
36433         Linux-style statfs otherwise.
36434         (statvfs_works): New function, for dynamically testing statvfs.
36435         (get_fs_usage) [STAT_STATVFS]: Use it.
36436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
36437         statvfs on GNU/Linux hosts, since it's now done dynamically.
36439 2012-05-10  Bruno Haible  <bruno@clisp.org>
36441         system-quote, execute, spawn-pipe: Escape '?' on Windows.
36442         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
36443         '?' character.
36444         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
36445         * tests/test-system-quote-main.c (check_all): Check also strings like
36446         "??????????".
36447         Reported by Eli Zaretskii <eliz@gnu.org>.
36449 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
36451         _Noreturn: port config.h to gcc -Wundef
36452         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
36453         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
36454         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
36456 2012-05-10  Bruno Haible  <bruno@clisp.org>
36458         system-quote: Refactor.
36459         * lib/system-quote.h (system_quote_copy): Fix comment.
36460         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
36461         New functions, extracted from system_quote_copy.
36462         (system_quote_length, system_quote_copy): Use these functions.
36463         Reported by Paul Eggert.
36465 2012-05-08  Bruno Haible  <bruno@clisp.org>
36467         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
36468         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
36470 2012-05-08  Bruno Haible  <bruno@clisp.org>
36472         Tests for module 'system-quote'.
36473         * modules/system-quote-tests: New file.
36474         * tests/test-system-quote.sh: New file.
36475         * tests/test-system-quote-main.c: New file.
36476         * tests/test-system-quote-child.c: New file.
36478         New module 'system-quote'.
36479         * lib/system-quote.h: New file.
36480         * lib/system-quote.c: New file.
36481         * modules/system-quote: New file.
36483 2012-05-08  Bruno Haible  <bruno@clisp.org>
36485         sh-quote: Make C++ safe and allow multiple inclusion.
36486         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
36487         declarations in extern "C".
36489 2012-05-08  Bruno Haible  <bruno@clisp.org>
36491         sh-quote tests: Make tests stricter.
36492         * tests/test-sh-quote.c (check_one): Check the return value of
36493         shell_quote_copy.
36494         (main): Check a string with a CR character. Check a string that
36495         contains UCHAR_MAX.
36497 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
36499         warnings.m4: provide a means to specify the program to compile.
36500         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
36501         (gl_WARN_ADD): here.
36502         Use gl_AS_VAR_APPEND.
36503         Support an argument to specify the program to compile.
36504         (gl_WARN_ADD): Accept an argument to specify the program to compile.
36505         AC_SUBST the WARN_CFLAGS when they are used.
36506         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
36507         leave this to gl_WARN_ADD.
36509 2012-05-08  Eric Blake  <eblake@redhat.com>
36511         doc: recommendations on gettext version
36512         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
36513         choice between versions.
36514         * DEPENDENCIES (gettext): Cover both approaches.
36516 2012-05-08  Jim Meyering  <meyering@redhat.com>
36518         init.sh: explain why EXEEXT support uses aliases rather than functions
36519         * tests/init.sh: Add a comment.
36521         init.sh: don't let bash aliases interfere with tests
36522         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
36523         is bash.  This avoids problems for those who alias standard commands to
36524         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
36525         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
36527 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36529         stdint: be more consistent with glibc, SunOS libc
36530         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
36531         (gl_int_fast16_t, gl_uint_fast16_t)
36532         (gl_int_fast32_t, gl_uint_fast32_t)
36533         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
36534         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
36535         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36536         Be consistent with glibc by default, and with SunOS 5.10 and later
36537         if __sun is defined.  This lessens the likelihood of clashes if
36538         code compiled for older hosts is combined with code compiled for
36539         newer ones.  Problem reported by Niels Möller in
36540         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
36542 2012-05-07  Eric Blake  <eblake@redhat.com>
36544         isatty: relax license to LGPLv2+
36545         * modules/isatty (License): Relax license.
36547 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36549         stat-size: comment fix
36550         * lib/stat-size.h: Remove obsolete comment about indenting.
36552 2012-05-06  Bruno Haible  <bruno@clisp.org>
36554         Tests for module 'sh-quote'.
36555         * modules/sh-quote-tests: New file.
36556         * tests/test-sh-quote.c: New file.
36558 2012-05-06  Bruno Haible  <bruno@clisp.org>
36560         sh-quote: Improve shell_quote_argv's signature.
36561         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
36562         * lib/sh-quote.c (shell_quote_argv): Likewise.
36564 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36566         stdint: document issues with int_fast8_t etc.
36567         * doc/posix-headers/stdint.texi (stdint.h): Say that other
36568         stdint.h substitutes may define these types differently.  See
36569         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
36571 2012-05-05  Bruno Haible  <bruno@clisp.org>
36573         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
36574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
36575         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
36576         or 'guessing no (mishandles large arguments)'.
36578 2012-05-05  Bruno Haible  <bruno@clisp.org>
36580         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
36581         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
36582         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36583         set gl_cv_func_link_follows_symlink to "guessing no".
36585 2012-05-05  Bruno Haible  <bruno@clisp.org>
36587         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
36588         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
36589         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
36590         "guessing no".
36591         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
36593 2012-05-05  Bruno Haible  <bruno@clisp.org>
36595         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
36596         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
36597         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36598         set gl_cv_struct_dirent_d_ino to "guessing yes".
36600 2012-05-05  Bruno Haible  <bruno@clisp.org>
36602         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
36603         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
36604         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
36605         "guessing yes".
36607 2012-05-05  Bruno Haible  <bruno@clisp.org>
36609         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
36610         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
36611         compiling to a glibc system, set gl_cv_func_signbit and
36612         gl_cv_func_signbit_gcc to "guessing yes".
36614 2012-05-05  Bruno Haible  <bruno@clisp.org>
36616         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
36617         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
36618         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
36619         to "guessing yes".
36620         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
36621         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
36623 2012-05-05  Bruno Haible  <bruno@clisp.org>
36625         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
36626         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
36627         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
36628         gl_cv_func_realpath_works to "guessing yes".
36630 2012-05-05  Bruno Haible  <bruno@clisp.org>
36632         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
36633         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
36634         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
36636 2012-05-04  Bruno Haible  <bruno@clisp.org>
36638         Tweak last commit.
36639         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
36640         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36642 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
36644         unistd_h: make it easier to avoid sys_types_h
36645         This is useful for Emacs, which has its own method of porting to
36646         Windows, and which therefore does not need the sys_types_h module.
36647         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
36648         code moved here from gl_SYS_TYPES_H.
36649         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
36650         using the code directly.
36651         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
36652         gl_SYS_TYPES_H.
36653         * modules/sys_types (Files):
36654         * modules/unistd (Files): Add m4/off_t.m4.
36656 2012-05-03  Bruno Haible  <bruno@clisp.org>
36658         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
36659         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
36660         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
36661         "guessing yes" or "guessing no".
36662         (gl_FUNC_LSTAT): Update.
36663         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
36664         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
36665         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
36667 2012-05-03  Bruno Haible  <bruno@clisp.org>
36669         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
36670         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
36671         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
36672         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
36673         cross-compiling, choose the first alternative on glibc systems.
36674         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
36676 2012-05-03  Bruno Haible  <bruno@clisp.org>
36678         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
36679         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
36680         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
36682 2012-05-03  Bruno Haible  <bruno@clisp.org>
36684         chown: Avoid "guessing no" when cross-compiling to glibc systems.
36685         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
36687 2012-05-03  Bruno Haible  <bruno@clisp.org>
36689         Avoid "guessing no" guesses when cross-compiling to glibc systems.
36690         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
36691         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
36692         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
36693         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
36694         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
36695         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
36696         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
36697         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
36698         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
36699         compiling to glibc systems, set gl_cv_func_chown_slash_works,
36700         gl_cv_func_chown_ctime_works to "guessing yes".
36701         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
36702         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
36703         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
36704         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
36705         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
36706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
36707         compiling to glibc systems, set gl_cv_func_open_directory_works to
36708         "guessing yes".
36709         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
36710         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
36711         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
36712         "guessing yes".
36713         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
36714         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
36715         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
36716         compiling to glibc systems, set gl_cv_func_floorf_ieee to
36717         "guessing yes".
36718         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
36719         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
36720         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
36721         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
36722         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
36723         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
36724         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
36725         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
36726         "guessing yes".
36727         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
36728         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
36729         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
36730         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
36731         "guessing yes".
36732         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
36733         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
36734         "guessing yes".
36735         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
36736         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
36737         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
36738         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
36739         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
36740         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
36741         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
36742         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
36743         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
36744         compiling to glibc systems, set gl_cv_func_log10f_ieee to
36745         "guessing yes".
36746         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
36747         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
36748         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
36749         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
36750         "guessing yes".
36751         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
36752         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
36753         "guessing yes".
36754         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
36755         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
36756         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
36757         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
36758         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
36759         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
36760         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
36761         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
36762         compiling to glibc systems, set gl_cv_func_mkfifo_works to
36763         "guessing yes".
36764         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
36765         compiling to glibc systems, set gl_cv_func_mknod_works to
36766         "guessing yes".
36767         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
36768         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
36769         "guessing yes".
36770         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
36771         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
36772         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
36773         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
36774         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
36775         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
36776         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
36777         compiling to glibc systems, set gl_cv_func_svid_putenv to
36778         "guessing yes".
36779         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
36780         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
36781         "guessing yes".
36782         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
36783         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
36784         "guessing yes".
36785         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
36786         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
36787         to "guessing yes".
36788         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
36789         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
36790         to "guessing yes".
36791         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
36792         compiling to glibc systems, set gl_cv_func_rmdir_works to
36793         "guessing yes".
36794         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
36795         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
36796         gl_cv_func_unlink_parent_fails to "guessing yes".
36797         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
36798         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
36799         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
36800         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
36801         gl_cv_func_rename_dest_works to "guessing yes".
36802         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
36803         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
36804         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
36805         compiling to glibc systems, set gl_cv_func_roundf_ieee to
36806         "guessing yes".
36807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
36808         compiling to glibc systems, set gl_cv_func_roundl_ieee to
36809         "guessing yes".
36810         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
36811         compiling to glibc systems, set gl_cv_func_setenv_works to
36812         "guessing yes".
36813         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
36814         compiling to glibc systems, set gl_cv_func_unsetenv_works to
36815         "guessing yes".
36816         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
36817         compiling to glibc systems, set gl_cv_func_sleep_works to
36818         "guessing yes".
36819         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
36820         compiling to glibc systems, set gl_cv_func_stat_file_slash to
36821         "guessing yes".
36822         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
36823         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
36824         "guessing yes".
36825         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
36826         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
36827         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
36828         compiling to glibc systems, set gl_cv_func_truncf_ieee to
36829         "guessing yes".
36830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
36831         compiling to glibc systems, set gl_cv_func_truncl_ieee to
36832         "guessing yes".
36833         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
36834         compiling to glibc systems, set gl_cv_func_usleep_works to
36835         "guessing yes".
36836         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
36837         compiling to glibc systems, set gl_cv_func_futimesat_works to
36838         "guessing yes".
36840 2012-05-03  Bruno Haible  <bruno@clisp.org>
36842         Say "guessing yes" or "guessing no" when cross-compiling.
36843         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
36844         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
36845         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
36846         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
36847         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
36848         am_cv_func_working_getline to "guessing yes" or "guessing no".
36849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
36850         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
36851         (gl_FUNC_MEMMEM): When cross-compiling, set
36852         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
36853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
36854         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
36855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
36856         set gl_cv_func_strcasestr_works_always to "guessing yes" or
36857         "guessing no".
36858         (gl_FUNC_STRCASESTR): When cross-compiling, set
36859         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
36860         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
36861         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
36862         (gl_FUNC_STRSTR): When cross-compiling, set
36863         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
36864         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
36865         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
36866         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
36867         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
36869 2012-05-01  Bruno Haible  <bruno@clisp.org>
36871         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
36872         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
36873         * build-aux/reloc-ldflags: Likewise.
36874         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
36876 2012-05-01  Bruno Haible  <bruno@clisp.org>
36878         gnulib-tool: Remove transitional code.
36879         * gnulib-tool: Don't warn about --import with 0 arguments any more.
36880         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36882 2012-05-01  Bruno Haible  <bruno@clisp.org>
36884         getcwd: Fix misindentation.
36885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
36887 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36889         exclude: process exclude and include directives in order
36890         This restores the pre-2009 behavior, and is part of a fix of a
36891         grep bug reported by Quentin Arce in
36892         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
36893         * lib/exclude.c (struct exclude): Remove 'tail' member.
36894         (new_exclude_segment): Prepend the new segment instead of appending.
36895         Return void, since that's now more convenient.
36896         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36897         (file_name_matches): Renamed from excluded_file_name_p.
36898         (file_pattern_matches, file_name_matches):
36899         Return true if the pattern matches, not if it excludes.
36900         All callers changed.
36901         (excluded_file_name): Process the list in reverse order;
36902         since the list is now reversed this restores the pre-2009 behavior.
36903         (add_exclude): Adjust to new reversed-order list.  Use local var
36904         rather than macro, for clarity.
36905         * tests/test-exclude7.sh: Adjust to corrected behavior.
36907         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36908         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36909         it's not possible here.  Handle the case of \ at end of pattern
36910         without dumping core.
36911         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36913         _Noreturn: future-proof non-GNU and non-MSVC compilers
36914         * build-aux/snippet/_Noreturn.h (_Noreturn):
36915         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36916         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36917         C11 or later.  This is more likely to work with random future C
36918         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36919         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36921         exclude: handle wildcards with FNM_EXTMATCH
36922         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36923         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36924         comment that "has wildcards" really means "has or may have
36925         wildcards".  Simplify by avoiding the need to call strcspn.
36927 2012-04-29  Bruno Haible  <bruno@clisp.org>
36929         gnulib-tool: Fix list of authors.
36930         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36932 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36934         bootstrap: support Automake-NG in $buildreq
36935         * bootstrap (check_versions): Handle automake and aclocal from
36936         Automake-NG specially.  They can be specified as respectively
36937         the "automake-ng" and "aclocal-ng" requirements.
36939 2012-04-25  Eric Blake  <eblake@redhat.com>
36941         bootstrap: only force latest Makefile.in.in for gettext module
36942         * build-aux/bootstrap (with_gettext): Only install latest
36943         Makefile.in.in for projects requesting bleeding edge gettext.
36945 2012-04-22  Bruno Haible  <bruno@clisp.org>
36947         doc: Mention reason for replacement on glibc/Linux systems.
36948         * doc/posix-functions/dprintf.texi: Mention the problem with special
36949         'long double' values.
36950         * doc/posix-functions/fprintf.texi: Likewise.
36951         * doc/posix-functions/printf.texi: Likewise.
36952         * doc/posix-functions/snprintf.texi: Likewise.
36953         * doc/posix-functions/sprintf.texi: Likewise.
36954         * doc/posix-functions/vdprintf.texi: Likewise.
36955         * doc/posix-functions/vfprintf.texi: Likewise.
36956         * doc/posix-functions/vprintf.texi: Likewise.
36957         * doc/posix-functions/vsnprintf.texi: Likewise.
36958         * doc/posix-functions/vsprintf.texi: Likewise.
36959         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36960         platforms with F_DUPFD_CLOEXEC problems.
36961         * doc/posix-functions/glob.texi: Mention which platforms are affected
36962         by the problem with symbolic links.
36963         * doc/posix-functions/linkat.texi: Mention the problem with
36964         AT_SYMLINK_FOLLOW on Linux.
36966 2012-04-22  Bruno Haible  <bruno@clisp.org>
36968         pwrite: Don't replace on all platforms.
36969         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36971 2012-04-22  Bruno Haible  <bruno@clisp.org>
36973         rint* tests: Avoid gcc warnings.
36974         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36975         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36976         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36978 2012-04-21  Bruno Haible  <bruno@clisp.org>
36980         users.txt: Update.
36981         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36982         switched from CVS to git, bzr, or svn.
36984 2012-04-21  Bruno Haible  <bruno@clisp.org>
36986         Large File Support for native Windows platforms.
36988         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36989         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36991         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36992         type.
36993         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36994         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36995         * doc/posix-headers/sys_types.texi: Mention the effect of the
36996         'largefile' module.
36998         * lib/fcntl.in.h: Add comments about off_t.
36999         * modules/fcntl-h (Depends-on): Add sys_types.
37001         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
37002         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
37003         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
37004         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
37005         * modules/unistd (Depends-on): Add sys_types.
37006         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
37008         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
37009         instead of lseek.
37010         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
37011         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
37012         * modules/lseek (Depends-on): Add sys_types.
37014         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
37015         msvc-nothrow.h.
37016         (SetFileSize): New function.
37017         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
37018         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
37019         if Large File Support is requested.
37020         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
37021         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
37023         * lib/stdio.in.h: Add comments about off_t.
37024         * modules/stdio (Depends-on): Add sys_types.
37026         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
37027         instead of ftello.
37028         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
37029         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
37030         (gl_PREREQ_FTELLO): New macro.
37031         * modules/ftello (Depends-on): Add sys_types.
37032         (configure.ac): Incoke gl_PREREQ_FTELLO.
37034         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
37035         instead of fseeko.
37036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
37037         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
37038         (gl_PREREQ_FSEEKO): New macro.
37039         * modules/fseeko (Depends-on): Add sys_types.
37040         (configure.ac): Invoke gl_PREREQ_FSEEKO.
37042         * lib/sys_stat.in.h: Add comments about off_t.
37043         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
37044         64-bit integer for st_size in 'struct stat'.
37045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
37046         Define _GL_WINDOWS_64_BIT_ST_SIZE.
37047         * modules/sys_stat (Depends-on): Add sys_types.
37048         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
37050         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
37051         instead of stat or _stat.
37053         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
37054         'struct _stati64' instead of fstat and 'struct stat'.
37055         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
37056         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
37058         Reported by Ray Satiro <raysatiro@yahoo.com>.
37060 2012-04-19  Eric Blake  <eblake@redhat.com>
37062         bootstrap: accommodate older libtool
37063         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
37064         Reported by Daniel P. Berrange.
37066 2012-04-19  Jim Meyering  <meyering@redhat.com>
37068         announce-gen: avoid failure due to lack of Digest::SHA1
37069         Even with the preferred Digest::SHA available, this script
37070         would fail when the backup module, Digest::SHA1, was not installed.
37071         * build-aux/announce-gen: Quote the conditional use of "use".
37072         Reported by Reuben Thomas in:
37073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
37075         bootstrap: don't let a user's CDPATH setting affect this script
37076         When CDPATH is set, cd will sometimes generate output.
37077         When "cd" is run in a subshell whose output matters, that
37078         surprising-to-some output can cause malfunction.
37079         Unsetting CDPATH turns off this shell "feature."
37080         * build-aux/bootstrap (CDPATH): Unset.
37081         Reported by Reuben Thomas in:
37082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
37083         and inspired by his patch here:
37084         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
37086 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
37087         and Jim Meyering  <meyering@redhat.com>
37089         maint.mk: catch "see @xref{}" and similar
37090         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
37091         prohibit "See also @xref{", "Also see @pxref{", and similar.
37093 2012-04-16  Jim Meyering  <meyering@redhat.com>
37095         bootstrap: really use gnulib's po/Makefile.in.in
37096         * build-aux/bootstrap: Correct the source file name in previous change.
37097         Reported by Akim Demaille.
37099         configmake: correct minor inconsistency in Makefile rule
37100         * modules/configmake (Makefile.am): All other rules like this one
37101         run the final "mv -f ..." in the same backslash-continued command
37102         as the one that does everything else.  This one put the mv -f ...
37103         command on a separate, non-backslash-continued line.
37104         Make it like the others.
37106         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
37107         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
37108         the one from gettext.  Reported by Akim Demaille.
37110 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
37112         Fix recursion of install-* into po directories.
37113         Bison's install-pdf bug reported by Hans Aberg at
37114         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
37115         * build-aux/po/Makefile.in.in (install-dvi, install-html)
37116         (install-info, install-pdf, install-ps): New targets.
37118 2012-04-16  Jim Meyering  <meyering@redhat.com>
37120         maint: avoid spurious "make sc_maint" failure
37121         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
37122         exempt all *.class file names, for lib/javaversion.class.
37124 2012-04-15  Bruno Haible  <bruno@clisp.org>
37126         lseek: Make configure test independent of environment.
37127         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
37128         Windows, we know that lseek() on pipes is broken; skip the runtime
37129         test.
37131 2012-04-14  Bruno Haible  <bruno@clisp.org>
37133         stat: Bypass buggy override in mingw64.
37134         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
37135         * lib/stat.c (stat) [mingw64]: Define to _stat.
37136         * doc/posix-functions/stat.texi: Mention mingw64 bug.
37138 2012-04-14  Bruno Haible  <bruno@clisp.org>
37140         pathmax: Fix compilation error on MSVC 9.
37141         * modules/pathmax (Depends-on): Add unistd.
37143 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
37145         README: document pointer comparison assumption
37146         * README (Portability guidelines): Document assumption about
37147         pointer comparisons, in response to a recent bug-gnulib comment by
37148         Jeffrey Kegler.
37150 2012-04-12  Bruno Haible  <bruno@clisp.org>
37152         Tests for module 'getrusage'.
37153         * modules/getrusage-tests: New file.
37154         * tests/test-getrusage.c: New file.
37156         New module 'getrusage'.
37157         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
37158         warn-on-use.h.
37159         (getrusage): New declaration.
37160         * lib/getrusage.c: New file.
37161         * m4/getrusage.m4: New file.
37162         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
37163         is declared.
37164         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
37165         HAVE_GETRUSAGE.
37166         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
37167         snippet/c++defs, snippet/warn-on-use.
37168         (Makefile.am): Update generation of sys/resource.h. Substitute
37169         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
37170         * modules/getrusage: New file.
37171         * doc/posix-functions/getrusage.texi: Mention the new module.
37173 2012-04-12  Bruno Haible  <bruno@clisp.org>
37175         Tests for module 'sys_resource'.
37176         * modules/sys_resource-tests: New file.
37177         * tests/test-sys_resource.c: New file.
37179         New module 'sys_resource'.
37180         * lib/sys_resource.in.h: New file.
37181         * m4/sys_resource_h.m4: New file.
37182         * modules/sys_resource: New file.
37183         * doc/posix-headers/sys_resource.texi: Mention the new module.
37185 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
37187         ioctl: Fix compilation error on mingw.
37188         * lib/ioctl.c: Include <windows.h>.
37189         Also reported by Ray Satiro <raysatiro@yahoo.com>.
37191 2012-04-04  Jim Meyering  <meyering@redhat.com>
37193         regex: correct #pragma guard expression
37194         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
37195         not 4.3.  Correct its cpp guard expression.
37197 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
37199         regex: remove unnecessary type punning
37200         Problem reported by Vladimir Serbinenko in
37201         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
37202         * lib/regex.h (struct re_pattern_buffer): Change the type of
37203         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
37204         Fix comment to match code.
37205         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
37206         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
37207         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
37208         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
37209         (set_regs):
37210         Omit no-longer-necessary casts.
37212 2012-04-03  Bruno Haible  <bruno@clisp.org>
37214         Tests for module 'ilogbl'.
37215         * modules/ilogbl-tests: New file.
37216         * tests/test-ilogbl.c: New file.
37218         New module 'ilogbl'.
37219         * lib/math.in.h (ilogbl): New declaration.
37220         * lib/ilogbl.c: New file.
37221         * m4/ilogbl.m4: New file.
37222         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
37223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
37224         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
37225         Split sed invocation, to avoid the limit of 100 substitutions of
37226         HP-UX 'sed'.
37227         * modules/ilogbl: New file.
37228         * tests/test-math-c++.cc: Check the declaration of ilogbl.
37229         * doc/posix-functions/ilogbl.texi: Mention the new module.
37231 2012-04-03  Bruno Haible  <bruno@clisp.org>
37233         Tests for module 'ilogbf'.
37234         * modules/ilogbf-tests: New file.
37235         * tests/test-ilogbf.c: New file.
37237         New module 'ilogbf'.
37238         * lib/math.in.h (ilogbf): New declaration.
37239         * lib/ilogbf.c: New file.
37240         * m4/ilogbf.m4: New file.
37241         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
37242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
37243         REPLACE_ILOGBF.
37244         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
37245         REPLACE_ILOGBF.
37246         * modules/ilogbf: New file.
37247         * tests/test-math-c++.cc: Check the declaration of ilogbf.
37248         * doc/posix-functions/ilogbf.texi: Mention the new module.
37250 2012-04-03  Bruno Haible  <bruno@clisp.org>
37252         Tests for module 'ilogb'.
37253         * modules/ilogb-tests: New file.
37254         * tests/test-ilogb.c: New file.
37255         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
37256         tests/test-logb-ieee.h.
37258         New module 'ilogb'.
37259         * lib/math.in.h (ilogb): New declaration.
37260         * lib/ilogb.c: New file.
37261         * m4/ilogb.m4: New file.
37262         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
37263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
37264         REPLACE_ILOGB.
37265         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
37266         REPLACE_ILOGB.
37267         * modules/ilogb: New file.
37268         * tests/test-math-c++.cc: Check the declaration of ilogb.
37269         * doc/posix-functions/ilogb.texi: Mention the new module.
37271 2012-04-03  Bruno Haible  <bruno@clisp.org>
37273         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
37274         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
37275         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
37276         (main): Check their values.
37277         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
37278         problem.
37280 2012-04-03  Bruno Haible  <bruno@clisp.org>
37282         Tests for module 'logbl-ieee'.
37283         * modules/logbl-ieee-tests: New file.
37284         * tests/test-logbl-ieee.c: New file.
37286         New module 'logbl-ieee'.
37287         * modules/logbl-ieee: New file.
37289         Tests for module 'logb-ieee'.
37290         * modules/logb-ieee-tests: New file.
37291         * tests/test-logb-ieee.c: New file.
37293         New module 'logb-ieee'.
37294         * modules/logb-ieee: New file.
37296         Tests for module 'logbf-ieee'.
37297         * modules/logbf-ieee-tests: New file.
37298         * tests/test-logbf-ieee.c: New file.
37299         * tests/test-logb-ieee.h: New file.
37301         New module 'logbf-ieee'.
37302         * modules/logbf-ieee: New file.
37304 2012-04-03  Bruno Haible  <bruno@clisp.org>
37306         Tests for module 'logbl'.
37307         * modules/logbl-tests: New file.
37308         * tests/test-logbl.c: New file.
37310         New module 'logbl'.
37311         * lib/math.in.h (logbl): New declaration.
37312         * lib/logbl.c: New file.
37313         * m4/logbl.m4: New file.
37314         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
37315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
37316         REPLACE_LOGBL.
37317         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
37318         REPLACE_LOGBL.
37319         * modules/logbl: New file.
37320         * tests/test-math-c++.cc: Check the declaration of logbl.
37321         * doc/posix-functions/logbl.texi: Mention the new module.
37323 2012-04-02  Bruno Haible  <bruno@clisp.org>
37325         Tests for module 'logbf'.
37326         * modules/logbf-tests: New file.
37327         * tests/test-logbf.c: New file.
37329         New module 'logbf'.
37330         * lib/math.in.h (logbf): New declaration.
37331         * lib/logbf.c: New file.
37332         * m4/logbf.m4: New file.
37333         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
37334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
37335         REPLACE_LOGBF.
37336         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
37337         REPLACE_LOGBF.
37338         * modules/logbf: New file.
37339         * tests/test-math-c++.cc: Check the declaration of logbf.
37340         * doc/posix-functions/logbf.texi: Mention the new module.
37342 2012-04-02  Bruno Haible  <bruno@clisp.org>
37344         logb tests: More tests.
37345         * tests/test-logb.h: New file, based on tests/test-logb.c and
37346         tests/test-frexp.h.
37347         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
37348         (main): Just invoke test_function.
37349         * modules/logb-tests (Files): Add tests/test-logb.h,
37350         tests/minus-zero.h, tests/randomd.c.
37351         (Makefile.am): Add randomd.c to test_logb_SOURCES.
37353         logb: Provide replacement and workarounds.
37354         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
37355         is 1.
37356         * lib/logb.c: New file.
37357         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
37358         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
37359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
37360         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
37361         * modules/logb (Files): Add lib/logb.c.
37362         (Depends-on): Add isfinite, frexp, isnand.
37363         (configure.ac): Compile the replacement code logb.c if needed.
37364         * tests/test-math-c++.cc: Check the declaration of logb.
37365         * doc/posix-functions/logb.texi: Mention the replacement and the bug
37366         with subnormal numbers.
37368 2012-04-02  Bruno Haible  <bruno@clisp.org>
37370         log10* tests: Speed up.
37371         * tests/test-log10.h (test_function): Reduce amount of random numbers
37372         to test.
37374 2012-04-01  Bruno Haible  <bruno@clisp.org>
37376         logf-ieee: Fix test whether logf works.
37377         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
37379 2012-04-01  Bruno Haible  <bruno@clisp.org>
37381         log10l: Work around log10l-ieee test failure on IRIX 6.5.
37382         * lib/log10l.c: Include <float.h>
37383         (log10l): On IRIX, normalize the +Infinity value.
37384         * modules/log10l (Depends-on): Add 'float'.
37385         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
37386         +Infinity.
37388         log10f-ieee: Work around test failure on NetBSD 5.1.
37389         * m4/log10f-ieee.m4: New file.
37390         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
37391         test whether log10f works with a negative argument. Replace it if not.
37392         * lib/log10f.c (log10f): For negative arguments, return NaN.
37393         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
37394         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
37395         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
37397         log10f-ieee: Work around test failure on Solaris 9.
37398         * modules/log10f-ieee (Depends-on): Add log10-ieee.
37399         (configure.ac): Require gl_FUNC_LOG10F.
37401         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37402         * m4/log10-ieee.m4: New file.
37403         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
37404         whether log10 works with a negative argument. Replace it if not.
37405         * lib/log10.c (log10): For negative arguments, return NaN.
37406         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
37407         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
37408         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
37410         Tests for module 'log10l-ieee'.
37411         * modules/log10l-ieee-tests: New file.
37412         * tests/test-log10l-ieee.c: New file.
37414         New module 'log10l-ieee'.
37415         * modules/log10l-ieee: New file.
37417         Tests for module 'log10-ieee'.
37418         * modules/log10-ieee-tests: New file.
37419         * tests/test-log10-ieee.c: New file.
37421         New module 'log10-ieee'.
37422         * modules/log10-ieee: New file.
37424         Tests for module 'log10f-ieee'.
37425         * modules/log10f-ieee-tests: New file.
37426         * tests/test-log10f-ieee.c: New file.
37427         * tests/test-log10-ieee.h: New file.
37429         New module 'log10f-ieee'.
37430         * modules/log10f-ieee: New file.
37432 2012-04-01  Bruno Haible  <bruno@clisp.org>
37434         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
37435         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
37436         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
37437         workaround.
37438         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
37439         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
37440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
37441         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
37442         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
37443         (Depends-on): Update conditions.
37444         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
37445         IRIX 6.5, OSF/1 5.1 problems.
37447 2012-04-01  Bruno Haible  <bruno@clisp.org>
37449         log10f: Work around OSF/1 5.1 bug.
37450         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
37451         * lib/log10f.c (log10f): If logf exists, use it and provide just the
37452         workaround.
37453         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
37454         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
37455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
37456         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
37457         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
37458         (Depends-on): Update conditions.
37459         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
37461 2012-04-01  Bruno Haible  <bruno@clisp.org>
37463         log10: Work around OSF/1 5.1 bug.
37464         * lib/math.in.h (log10): New declaration.
37465         * lib/log10.c: New file.
37466         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
37467         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
37468         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
37469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
37470         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
37471         * modules/log10 (Files): Add lib/log10.c.
37472         (Depends-on): Add math.
37473         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
37474         * tests/test-math-c++.cc: Check the declaration of log10.
37475         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
37477 2012-03-31  Bruno Haible  <bruno@clisp.org>
37479         log10l tests: More tests.
37480         * modules/log10l-tests (Files): Add tests/test-log10l.h,
37481         tests/minus-zero.h, tests/randoml.c.
37482         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
37483         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
37484         (main): Invoke test_function.
37486         log10f tests: More tests.
37487         * modules/log10f-tests (Files): Add tests/test-log10.h,
37488         tests/minus-zero.h, tests/randomf.c.
37489         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
37490         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
37491         (main): Invoke test_function.
37493         log10 tests: More tests.
37494         * tests/test-log10.h: New file.
37495         * modules/log10-tests (Files): Add tests/test-log10.h,
37496         tests/minus-zero.h, tests/randomd.c.
37497         (Makefile.am): Add randomd.c to test_log10_SOURCES.
37498         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
37499         (main): Invoke test_function.
37501 2012-03-31  Simon Josefsson  <simon@josefsson.org>
37503         fflush: Fix syntax error.
37504         * lib/fflush.c: Include unused-parameter.h, needed for
37505         _GL_UNUSED_PARAMETER.
37506         * modules/fflush (Depends-on): Add snippet/unused-parameter.
37508 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37510         regex: pacify GCC when compiling GRUB
37511         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
37512         a diagnostic.  Reported by Vladimir Serbinenko in
37513         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
37515 2012-03-29  Eric Blake  <eblake@redhat.com>
37517         stdio: don't assume gets any more
37518         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
37519         support.
37520         * modules/stdio (Makefile.am): Likewise.
37521         * lib/stdio-read.c (gets): Likewise.
37522         * tests/test-stdio-c++.cc: Likewise.
37523         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
37524         * lib/stdio.in.h (gets): Make warning occur in more places.
37525         * doc/posix-functions/gets.texi (gets): Update documentation.
37526         Reported by Christer Solskogen.
37528         maint.mk: fix syntax checks without exclusions
37529         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
37530         Reported by Daniel P. Berrange.
37532         strerror_r: avoid compiler warning
37533         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
37534         level.
37536         fflush: avoid compiler warning
37537         * lib/fflush.c (update_fpos_cache): Mark variables that are
37538         potentially unused.
37540 2012-03-25  Bruno Haible  <bruno@clisp.org>
37542         Tests for module 'localeconv'.
37543         * modules/localeconv-tests: New file.
37544         * tests/test-localeconv.c: New file.
37546         New module 'localeconv'.
37547         * lib/locale.in.h (localeconv): New declaration.
37548         * lib/localeconv.c: New file.
37549         * m4/localeconv.m4: New file.
37550         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
37551         REPLACE_LOCALECONV.
37552         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
37553         REPLACE_LOCALECONV.
37554         * modules/localeconv: New file.
37555         * modules/nl_langinfo (Depends-on): Add localeconv.
37556         * modules/human (Depends-on): Likewise.
37557         * doc/posix-functions/localeconv.texi: Mention the new module.
37559 2012-03-25  Bruno Haible  <bruno@clisp.org>
37561         locale: Provide a complete 'struct lconv'.
37562         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37563         'struct lconv' does not contain int_p_cs_precedes.
37564         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37565         * doc/posix-headers/locale.texi: Update.
37567         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
37568         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
37569         * doc/posix-headers/locale.texi: Update.
37571         locale: Provide a working 'struct lconv'.
37572         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
37573         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37574         'struct lconv' does not even contain decimal_point.
37575         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
37576         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
37577         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37578         * doc/posix-headers/locale.texi: Mention the problems with
37579         'struct lconv'.
37580         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
37582 2012-03-24  Bruno Haible  <bruno@clisp.org>
37584         Enable common subexpression optimization in GCC.
37585         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
37586         macros.
37587         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
37588         GCC attribute 'const'.
37589         (uc_locale_language): Declare with GCC attribute 'pure'.
37590         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
37591         with GCC attribute 'const'.
37592         * lib/unictype.in.h (uc_is_general_category_withtable,
37593         uc_combining_class, uc_combining_class_name,
37594         uc_combining_class_long_name, uc_bidi_class_name,
37595         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
37596         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
37597         uc_decimal_value, uc_digit_value, uc_numeric_value,
37598         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
37599         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
37600         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
37601         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
37602         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
37603         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
37604         Declare with GCC attribute 'const'.
37605         (uc_general_category_name, uc_general_category_long_name,
37606         uc_general_category_byname, uc_general_category,
37607         uc_is_general_category, uc_combining_class_byname,
37608         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
37609         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
37610         Declare with GCC attribute 'pure'.
37611         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
37612         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
37613         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
37614         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
37615         with GCC attribute 'pure'.
37616         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
37617         'const'.
37618         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
37619         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
37620         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
37621         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
37622         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
37623         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
37624         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
37625         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
37626         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
37627         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
37628         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
37629         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
37630         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
37631         GCC attribute 'pure'.
37632         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
37633         'const'.
37634         * lib/uniwidth.in.h (uc_width): Simplify declaration.
37635         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
37636         u32_strwidth): Declare with GCC attribute 'pure'.
37638         Enable common subexpression optimization in GCC.
37639         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37640         (alphasort): Declare with GCC attribute 'pure'.
37641         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37642         (atoll): Declare with GCC attribute 'pure'.
37643         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37644         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37645         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
37646         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37647         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
37648         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
37649         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
37651 2012-03-24  Bruno Haible  <bruno@clisp.org>
37653         gnulib-tool: Avoid unintended error output from 'cmp'.
37654         * gnulib-tool (func_add_file, func_update_file, func_import): Use
37655         "cmp -s", not "cmp > /dev/null".
37657 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
37659         gnulib-tool: fix imprecise comments w.r.t. an automake bug
37661         It's not just Automake versions < 1.9b that creates an empty
37662         pkgdatadir at installation time if pkgdata_DATA is specified
37663         to empty; modern automake versions do this as well, at least
37664         until automake 1.11.4 (not yet released at the moment of writing,
37665         but soon to appear).  That behaviour was generally considered a
37666         feature rather than a bug, at least until this discussion:
37667         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
37669         See also automake bugs #10997 and #11030.
37671         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
37672         reference to relevant automake bug numbers.
37673         (func_emit_tests_Makefile_am): Likewise.
37675 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37677         announce-gen: use Digest::SHA when possible
37678         * build-aux/announce-gen: Use Digest::SHA when possible, falling
37679         back to Digest::SHA1 if necessary.
37681 2012-03-20  Jim Meyering  <meyering@redhat.com>
37683         tests: avoid gcc warnings about argv vs. const initializers
37684         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
37685         warnings about discarding 'const' qualifier from pointer target type.
37686         * tests/test-posix_spawn2.c (main): Likewise.
37688 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37690         README-release: simplify slightly
37691         * top/README-release: Run "git checkout master" only once.
37693 2012-03-15  Mark Wielaard  <mark@klomp.org>
37695         git-merge-changelog: add specific example on how to use with hg.
37696         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
37698 2012-03-18  Mark Wielaard  <mark@klomp.org>
37700         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
37702 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
37704         git-version-gen: don't let "prefix" envvar cause trouble
37705         * build-aux/git-version-gen (prefix): Initialize properly,
37706         so as not to use a value specified via the environment.
37707         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
37709 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37711         regex: diagnose too-large repeat counts in EREs
37712         Previously, the code did not diagnose the too-large repeat count
37713         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
37714         as if it were 'b\{1000000000}', which is unexpected.
37715         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
37716         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
37717         is a reasonable one for this problem.  Another option would be to
37718         create a new REG_OVERFLOW error for repeat counts that are too large.
37719         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
37720         count is too large, so that the caller can distinguish the two cases.
37721         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
37722         "Too large" return code, and that repeat counts are one example of this.
37724 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37726         doc: some glibc x32 integer width issues
37727         * doc/posix-headers/sys_types.texi (sys/types.h):
37728         * doc/posix-headers/time.texi (time.h):
37729         Mention that glibc x32 does not conform to POSIX in a couple of
37730         areas related to integer widths.
37732 2012-03-15  Bruno Haible  <bruno@clisp.org>
37734         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
37735         * lib/fma.c (VOLATILE): New macro.
37736         (FUNC): Use it to work around a GCC compiler bug.
37738 2012-03-13  Bruno Haible  <bruno@clisp.org>
37740         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37741         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
37742         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
37743         REPLACE_HYPOTL to 1.
37744         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
37746 2012-03-13  Bruno Haible  <bruno@clisp.org>
37748         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37749         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
37750         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
37751         REPLACE_REMAINDERL to 1.
37752         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
37753         bug.
37755 2012-03-13  Bruno Haible  <bruno@clisp.org>
37757         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37758         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
37759         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
37760         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
37761         too big rounding errors.
37762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
37763         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
37764         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
37765         (Depends-on): Update conditions.
37766         * tests/test-sqrtl.c (my_ldexpl): New function.
37767         (main): Add test of a particular value.
37768         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37770 2012-03-13  Pádraig Brady  <P@draigBrady.com>
37772         doc: Update timer_* platform portability notes.
37773         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
37774         that always return ENOSYS.
37775         * doc/posix-functions/timer_delete.texi: Likewise.
37776         * doc/posix-functions/timer_gettime.texi: Likewise.
37777         * doc/posix-functions/timer_settime.texi: Likewise.
37779 2012-03-13  Bruno Haible  <bruno@clisp.org>
37781         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37782         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
37783         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
37784         REPLACE_CBRTL to 1.
37785         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37787 2012-03-13  Bruno Haible  <bruno@clisp.org>
37789         remainderl: Avoid compilation error on AIX >= 5.2.
37790         * lib/math.in.h (remainderl): Undefine macro from the system header.
37792 2012-03-13  Bruno Haible  <bruno@clisp.org>
37794         Avoid compilation errors with MSVC option -fp:strict.
37795         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
37796         * lib/cbrtf.c: Likewise.
37797         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37799 2012-03-12  Bruno Haible  <bruno@clisp.org>
37801         uninorm: Don't crash in out-of-memory conditions.
37802         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
37803         gracefully.
37804         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
37805         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
37807 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
37809         quote: fix syntax-check
37810         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
37811         also exports quote_quoting_options.
37813 2012-03-12  Simon Josefsson  <simon@josefsson.org>
37815         Collapse list of copyright years to ranges.  See
37816         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
37817         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
37818         build-aux/csharpexec.sh.in, build-aux/gnupload,
37819         build-aux/install-reloc, build-aux/javacomp.sh.in,
37820         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
37821         build-aux/move-if-change, build-aux/reloc-ldflags,
37822         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
37824 2012-03-11  Bruno Haible  <bruno@clisp.org>
37826         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37827         * m4/log2f-ieee.m4: New file.
37828         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
37829         whether log2f works with a minus zero argument. Replace it if not.
37830         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
37831         (Depends-on): Add log2-ieee.
37832         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
37833         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
37835         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37836         * m4/log2-ieee.m4: New file.
37837         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
37838         whether log2 works with a minus zero argument. Replace it if not.
37839         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
37840         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
37841         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
37843         Tests for module 'log2l-ieee'.
37844         * modules/log2l-ieee-tests: New file.
37845         * tests/test-log2l-ieee.c: New file.
37847         New module 'log2l-ieee'.
37848         * modules/log2l-ieee: New file.
37850         Tests for module 'log2-ieee'.
37851         * modules/log2-ieee-tests: New file.
37852         * tests/test-log2-ieee.c: New file.
37854         New module 'log2-ieee'.
37855         * modules/log2-ieee: New file.
37857         Tests for module 'log2f-ieee'.
37858         * modules/log2f-ieee-tests: New file.
37859         * tests/test-log2f-ieee.c: New file.
37860         * tests/test-log2-ieee.h: New file.
37862         New module 'log2f-ieee'.
37863         * modules/log2f-ieee: New file.
37865 2012-03-11  Bruno Haible  <bruno@clisp.org>
37867         Tests for module 'log2l'.
37868         * modules/log2l-tests: New file.
37869         * tests/test-log2l.c: New file.
37871         New module 'log2l'.
37872         * lib/math.in.h (log2l): New declaration.
37873         * lib/log2l.c: New file.
37874         * m4/log2l.m4: New file.
37875         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
37876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
37877         REPLACE_LOG2L.
37878         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
37879         REPLACE_LOG2L.
37880         * modules/log2l: New file.
37881         * tests/test-math-c++.cc: Check the declaration of log2l.
37882         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
37883         and OSF/1 problems.
37885 2012-03-11  Bruno Haible  <bruno@clisp.org>
37887         Tests for module 'log2f'.
37888         * modules/log2f-tests: New file.
37889         * tests/test-log2f.c: New file.
37891         New module 'log2f'.
37892         * lib/math.in.h (log2f): New declaration.
37893         * lib/log2f.c: New file.
37894         * m4/log2f.m4: New file.
37895         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37897         REPLACE_LOG2F.
37898         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37899         REPLACE_LOG2F.
37900         * modules/log2f: New file.
37901         * tests/test-math-c++.cc: Check the declaration of log2f.
37902         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37903         and OSF/1 and Cygwin problems.
37905 2012-03-11  Bruno Haible  <bruno@clisp.org>
37907         Tests for module 'log2'.
37908         * modules/log2-tests: New file.
37909         * tests/test-log2.c: New file.
37910         * tests/test-log2.h: New file.
37912         New module 'log2'.
37913         * lib/math.in.h (log2): New declaration.
37914         * lib/log2.c: New file.
37915         * m4/log2.m4: New file.
37916         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37918         REPLACE_LOG2.
37919         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37920         REPLACE_LOG2.
37921         * modules/log2: New file.
37922         * tests/test-math-c++.cc: Check the declaration of log2.
37923         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37924         and OSF/1 and Cygwin problems.
37926 2012-03-11  Bruno Haible  <bruno@clisp.org>
37928         exp2* tests: More tests.
37929         * tests/test-exp2.h (test_function): Test all integral arguments that
37930         don't need to overflow or denormalized numbers.
37931         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37932         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37933         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37935 2012-03-10  Bruno Haible  <bruno@clisp.org>
37937         log1pl-ieee: Work around test failure on AIX 7.1.
37938         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37940         log1pl-ieee: Work around test failure on IRIX 6.5.
37941         * m4/log1pl-ieee.m4: New file.
37942         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37943         test whether log1pl works with a minus zero argument. Replace it if
37944         not.
37945         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37947         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37948         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37949         (Depends-on): Update conditions.
37950         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37951         m4/signbit.m4.
37952         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37953         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37955         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37956         * m4/log1pf-ieee.m4: New file.
37957         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37958         test whether log1pf works with a minus zero argument. Replace it if
37959         not.
37960         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37961         m4/signbit.m4.
37962         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37963         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37965         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37966         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37967         (configure.ac): Require gl_FUNC_LOG1PF.
37969         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37970         * m4/log1p-ieee.m4: New file.
37971         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37972         whether log1p works with a minus zero argument. Replace it if not.
37973         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37975         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37976         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37977         (Depends-on): Update conditions.
37978         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37979         m4/signbit.m4.
37980         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37981         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37983         Tests for module 'log1pl-ieee'.
37984         * modules/log1pl-ieee-tests: New file.
37985         * tests/test-log1pl-ieee.c: New file.
37987         New module 'log1pl-ieee'.
37988         * modules/log1pl-ieee: New file.
37990         Tests for module 'log1p-ieee'.
37991         * modules/log1p-ieee-tests: New file.
37992         * tests/test-log1p-ieee.c: New file.
37994         New module 'log1p-ieee'.
37995         * modules/log1p-ieee: New file.
37997         Tests for module 'log1pf-ieee'.
37998         * modules/log1pf-ieee-tests: New file.
37999         * tests/test-log1pf-ieee.c: New file.
38000         * tests/test-log1p-ieee.h: New file.
38002         New module 'log1pf-ieee'.
38003         * modules/log1pf-ieee: New file.
38005 2012-03-10  Bruno Haible  <bruno@clisp.org>
38007         Tests for module 'log1pl'.
38008         * modules/log1pl-tests: New file.
38009         * tests/test-log1pl.c: New file.
38011         New module 'log1pl'.
38012         * lib/math.in.h (log1pl): New declaration.
38013         * lib/log1pl.c: New file.
38014         * m4/log1pl.m4: New file.
38015         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
38016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
38017         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
38018         * modules/log1pl: New file.
38019         * tests/test-math-c++.cc: Check the declaration of log1pl.
38020         * doc/posix-functions/log1pl.texi: Mention the new module.
38022 2012-03-10  Bruno Haible  <bruno@clisp.org>
38024         Tests for module 'log1pf'.
38025         * modules/log1pf-tests: New file.
38026         * tests/test-log1pf.c: New file.
38028         New module 'log1pf'.
38029         * lib/math.in.h (log1pf): New declaration.
38030         * lib/log1pf.c: New file.
38031         * m4/log1pf.m4: New file.
38032         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
38033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
38034         REPLACE_LOG1PF.
38035         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
38036         REPLACE_LOG1PF.
38037         * modules/log1pf: New file.
38038         * tests/test-math-c++.cc: Check the declaration of log1pf.
38039         * doc/posix-functions/log1pf.texi: Mention the new module.
38041 2012-03-10  Bruno Haible  <bruno@clisp.org>
38043         log1p tests: More tests.
38044         * tests/test-log1p.h: New file.
38045         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
38046         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
38047         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
38048         (main): Invoke test_function.
38050         log1p: Provide replacement for Minix and MSVC.
38051         * lib/math.in.h (log1p): New declaration.
38052         * lib/log1p.c: New file.
38053         * m4/log1p.m4: New file.
38054         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
38055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
38056         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
38057         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
38058         (Depends-on): Add math, isnand, log, round.
38059         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
38060         HAVE_LOG1P is 0.
38061         * tests/test-math-c++.cc: Check the declaration of log1p.
38062         * doc/posix-functions/log1p.texi: Mention the replacement.
38064 2012-03-10  Bruno Haible  <bruno@clisp.org>
38066         math tests: Small simplification.
38067         * tests/test-exp.h (test_function): Use the same err_bound for
38068         'double' on platforms with sizeof (long double) == sizeof (double)
38069         than on platforms with sizeof (long double) > sizeof (double).
38070         * tests/test-exp2.h (test_function): Likewise.
38071         * tests/test-expm1.h (test_function): Likewise.
38072         * tests/test-log.h (test_function): Likewise.
38074 2012-03-10  Bruno Haible  <bruno@clisp.org>
38076         Fix some comments.
38077         * lib/expl.c: Fix an ambiguous comment.
38078         * lib/expm1.c: Likewise.
38079         * lib/expm1l.c: Likewise.
38080         * lib/exp2.c: Likewise.
38081         * lib/exp2l.c: Likewise.
38083 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
38085         regex: allow inclusion of <regex.h> before <limits.h>
38086         Without this patch, portable programs had to include <limits.h> before
38087         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
38088         I ran into this problem with a test version of GNU grep on Solaris 8.
38089         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
38090         This is done conditionally so that this change can be merged
38091         back to glibc.
38092         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
38093         using the included regex.
38095         fts: depend on fdopendir
38096         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
38097         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
38098         problem was introduced when fdopendir was split out.
38100 2012-03-10  Bruno Haible  <bruno@clisp.org>
38102         Remove unused variables.
38103         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
38104         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
38106 2012-03-10  Bruno Haible  <bruno@clisp.org>
38108         isnanf-nolibm: Fix last commit.
38109         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
38111         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
38112         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
38114 2012-03-10  Bruno Haible  <bruno@clisp.org>
38116         logf-ieee: Work around test failure on NetBSD 5.1.
38117         * m4/logf-ieee.m4: New file.
38118         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
38119         whether logf works with a negative argument. Replace it if not.
38120         * lib/logf.c (logf): For negative arguments, return NaN.
38121         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
38122         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
38123         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
38125         logf-ieee: Work around test failure on Solaris 9.
38126         * modules/logf-ieee (Depends-on): Add log-ieee.
38127         (configure.ac): Require gl_FUNC_LOGF.
38129         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38130         * m4/log-ieee.m4: New file.
38131         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
38132         log works with a negative argument. Replace it if not.
38133         * lib/log.c (log): For negative arguments, return NaN.
38134         * modules/log-ieee (Files): Add m4/log-ieee.m4.
38135         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
38136         * doc/posix-functions/log.texi: Mention the log-ieee module.
38138         Tests for module 'logl-ieee'.
38139         * modules/logl-ieee-tests: New file.
38140         * tests/test-logl-ieee.c: New file.
38142         New module 'logl-ieee'.
38143         * modules/logl-ieee: New file.
38145         Tests for module 'log-ieee'.
38146         * modules/log-ieee-tests: New file.
38147         * tests/test-log-ieee.c: New file.
38149         New module 'log-ieee'.
38150         * modules/log-ieee: New file.
38152         Tests for module 'logf-ieee'.
38153         * modules/logf-ieee-tests: New file.
38154         * tests/test-logf-ieee.c: New file.
38155         * tests/test-log-ieee.h: New file.
38157         New module 'logf-ieee'.
38158         * modules/logf-ieee: New file.
38160 2012-03-10  Bruno Haible  <bruno@clisp.org>
38162         log: Fix bug introduced on 2012-03-09.
38163         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
38165 2012-03-10  Pádraig Brady  <P@draigBrady.com>
38167         timer-time: link explicitly with pthreads on glibc
38168         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38169         to support static linking, when newer glibc is
38170         detected, as that contains pthread emulation of
38171         POSIX timer functions where required.
38172         * modules/timer-time: Depend on threadlib to
38173         pull in the appropriate library to link.
38175 2012-03-10  Bruno Haible  <bruno@clisp.org>
38177         log* tests: More tests.
38178         * tests/test-log.h: New file.
38179         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
38180         (main): Invoke test_function.
38181         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
38182         (main): Invoke test_function.
38183         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
38184         (main): Invoke test_function.
38185         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
38186         tests/randomd.c.
38187         (Makefile.am): Add randomd.c to test_log_SOURCES.
38188         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
38189         tests/randomf.c.
38190         (Makefile.am): Add randomf.c to test_logf_SOURCES.
38191         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
38192         tests/randoml.c.
38193         (Depends-on): Add 'float'.
38194         (Makefile.am): Add randoml.c to test_logl_SOURCES.
38196 2012-03-09  Bruno Haible  <bruno@clisp.org>
38198         logl: Work around OSF/1 5.1 bug.
38199         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
38200         * lib/logl.c (logl): If logl exists, use it and provide just the
38201         workaround.
38202         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
38203         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
38204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
38205         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
38206         * modules/logl (configure.ac): Consider REPLACE_LOGL.
38207         (Depends-on): Update conditions.
38208         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
38210 2012-03-09  Bruno Haible  <bruno@clisp.org>
38212         logf: Work around OSF/1 5.1 bug.
38213         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
38214         * lib/logf.c (logf): If logf exists, use it and provide just the
38215         workaround.
38216         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
38217         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
38218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
38219         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
38220         * modules/logf (configure.ac): Consider REPLACE_LOGF.
38221         (Depends-on): Update conditions.
38222         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
38224 2012-03-09  Bruno Haible  <bruno@clisp.org>
38226         log: Work around OSF/1 5.1 bug.
38227         * lib/math.in.h (log): New declaration.
38228         * lib/log.c: New file.
38229         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
38230         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
38231         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
38232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
38233         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
38234         * modules/log (Files): Add lib/log.c.
38235         (Depends-on): Add math.
38236         (configure.ac): If REPLACE_LOG is 1, compile an override.
38237         * tests/test-math-c++.cc: Check the declaration of log.
38238         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
38240 2012-03-09  Jim Meyering  <meyering@redhat.com>
38242         readtokens.c: adjust wording in a comment
38243         * lib/readtokens.c: Insert omitted "that" in a comment.
38245 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
38247         modechange: add notations +40, 00440, etc.
38248         * lib/modechange.c (mode_compile): Support new notations
38249         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
38251 2012-03-08  Bruno Haible  <bruno@clisp.org>
38253         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
38254         * m4/exp2l-ieee.m4: New file.
38255         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
38256         test whether exp2l works with a NaN argument and with a negative
38257         infinity argument. Replace it if not.
38258         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
38259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
38260         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
38261         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
38262         (Depends-on): Update conditions.
38263         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
38264         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
38265         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
38267         Tests for module 'exp2l-ieee'.
38268         * modules/exp2l-ieee-tests: New file.
38269         * tests/test-exp2l-ieee.c: New file.
38271         New module 'exp2l-ieee'.
38272         * modules/exp2l-ieee: New file.
38274         Tests for module 'exp2-ieee'.
38275         * modules/exp2-ieee-tests: New file.
38276         * tests/test-exp2-ieee.c: New file.
38278         New module 'exp2-ieee'.
38279         * modules/exp2-ieee: New file.
38281         Tests for module 'exp2f-ieee'.
38282         * modules/exp2f-ieee-tests: New file.
38283         * tests/test-exp2f-ieee.c: New file.
38284         * tests/test-exp2-ieee.h: New file.
38286         New module 'exp2f-ieee'.
38287         * modules/exp2f-ieee: New file.
38289 2012-03-08  Bruno Haible  <bruno@clisp.org>
38291         Tests for module 'exp2l'.
38292         * modules/exp2l-tests: New file.
38293         * tests/test-exp2l.c: New file.
38295         New module 'exp2l'.
38296         * lib/math.in.h (exp2l): New declaration.
38297         * lib/exp2l.c: New file.
38298         * lib/expl-table.c: New file, extracted from lib/expl.c.
38299         * lib/expl.c (gl_expl_table): New declaration.
38300         (expl): Remove expl_table. Update reference.
38301         * m4/exp2l.m4: New file.
38302         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
38303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
38304         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
38305         * modules/exp2l: New file.
38306         * modules/expl (Files): Add lib/expl-table.c.
38307         (configure.ac): Compile also expl-table.c.
38308         * tests/test-math-c++.cc: Check the declaration of exp2l.
38309         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
38310         problem.
38312 2012-03-08  Bruno Haible  <bruno@clisp.org>
38314         Tests for module 'exp2f'.
38315         * modules/exp2f-tests: New file.
38316         * tests/test-exp2f.c: New file.
38318         New module 'exp2f'.
38319         * lib/math.in.h (exp2f): New declaration.
38320         * lib/exp2f.c: New file.
38321         * m4/exp2f.m4: New file.
38322         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
38323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
38324         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
38325         * modules/exp2f: New file.
38326         * tests/test-math-c++.cc: Check the declaration of exp2f.
38327         * doc/posix-functions/exp2f.texi: Mention the new module and the
38328         IRIX problem.
38330 2012-03-08  Bruno Haible  <bruno@clisp.org>
38332         Tests for module 'exp2'.
38333         * modules/exp2-tests: New file.
38334         * tests/test-exp2.c: New file.
38335         * tests/test-exp2.h: New file.
38337         New module 'exp2'.
38338         * lib/math.in.h (exp2): New declaration.
38339         * lib/exp2.c: New file.
38340         * m4/exp2.m4: New file.
38341         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
38342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
38343         REPLACE_EXP2.
38344         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
38345         REPLACE_EXP2.
38346         * modules/exp2: New file.
38347         * tests/test-math-c++.cc: Check the declaration of exp2.
38348         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
38349         and OpenBSD problems.
38351 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
38353         savedir: fix comment typo
38354         * lib/savedir.c (savedirstream): Fix typo in comment.
38356 2012-03-08  Bruno Haible  <bruno@clisp.org>
38358         test-readtokens.c: use const; remove unwarranted cast
38359         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
38361 2012-03-08  Bruno Haible  <bruno@clisp.org>
38363         fmal: Avoid compilation error on AIX.
38364         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
38365         AIX 5.2..7.1.
38367 2012-03-08  Bruno Haible  <bruno@clisp.org>
38369         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
38370         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
38371         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
38372         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
38373         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
38374         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
38375         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
38377 2012-03-08  Bruno Haible  <bruno@clisp.org>
38379         remainderf: Override buggy system function on IRIX 6.5.
38380         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
38381         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
38382         when it exists.
38383         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
38385 2012-03-08  Jim Meyering  <meyering@redhat.com>
38387         test-readtokens.c: avoid const-related compilation warnings
38388         * tests/test-readtokens.c: Avoid const-related compilation warnings.
38390 2012-03-07  Jim Meyering  <meyering@redhat.com>
38391             Bruno Haible  <bruno@clisp.org>
38393         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
38394         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
38395         tests/randomd.c.
38396         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
38397         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
38398         tests/randoml.c.
38399         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
38401 2012-03-07  Bruno Haible  <bruno@clisp.org>
38403         expm1l: Avoid compilation error on AIX.
38404         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
38405         AIX 5.2..7.1.
38407 2012-03-07  Bruno Haible  <bruno@clisp.org>
38409         expm1l: Don't override undeclared system function on IRIX 6.5.
38410         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
38411         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
38412         it exists. Set HAVE_DECL_EXPM1L.
38413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
38414         HAVE_EXPM1L.
38415         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
38416         HAVE_EXPM1L.
38417         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
38419 2012-03-07  Bruno Haible  <bruno@clisp.org>
38421         remainderl: Don't override undeclared system function on IRIX 6.5.
38422         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
38423         HAVE_REMAINDERL.
38424         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
38425         declared when it exists. Set HAVE_DECL_REMAINDERL.
38426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
38427         not HAVE_REMAINDERL.
38428         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
38429         HAVE_REMAINDERL.
38430         * doc/posix-functions/remainderl.texi: Mention missing declaration
38431         problem.
38433 2012-03-07  Bruno Haible  <bruno@clisp.org>
38435         rintf: Don't override undeclared system function on IRIX 6.5.
38436         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
38437         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
38438         exists. Set HAVE_DECL_RINTF.
38439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
38440         HAVE_RINTF.
38441         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
38442         HAVE_RINTF.
38443         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
38445 2012-03-07  Bruno Haible  <bruno@clisp.org>
38447         roundl: Avoid compilation error on AIX.
38448         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
38449         AIX 5.2..7.1.
38451 2012-03-07  Bruno Haible  <bruno@clisp.org>
38453         roundl: Don't override undeclared system function on IRIX 6.5.
38454         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
38455         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
38456         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
38457         * modules/roundl (configure.ac): For replacement code, test
38458         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
38459         (Depends-on): Update conditions.
38460         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
38462 2012-03-07  Bruno Haible  <bruno@clisp.org>
38464         roundf: Don't override undeclared system function on IRIX 6.5.
38465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
38466         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
38467         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
38468         * modules/roundf (configure.ac): For replacement code, test
38469         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
38470         (Depends-on): Update conditions.
38471         * modules/roundf-ieee (Depends-on): Update conditions.
38472         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
38474 2012-03-07  Bruno Haible  <bruno@clisp.org>
38476         round: Don't override undeclared system function on IRIX 6.5.
38477         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
38478         argument.
38479         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
38480         also when it is not declared. Set HAVE_ROUND. For replacement code,
38481         test HAVE_ROUND, not HAVE_DECL_ROUND.
38482         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
38483         not HAVE_DECL_ROUND.
38484         (Depends-on): Update conditions.
38485         * modules/round-ieee (Depends-on): Update conditions.
38486         * doc/posix-functions/round.texi: Mention the IRIX problem.
38488 2012-03-07  Bruno Haible  <bruno@clisp.org>
38490         copysignf: Don't override undeclared system function on IRIX 6.5.
38491         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
38492         HAVE_COPYSIGNF.
38493         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
38494         declared when it exists. Set HAVE_DECL_COPYSIGNF.
38495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
38496         not HAVE_COPYSIGNF.
38497         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
38498         HAVE_COPYSIGNF.
38499         * doc/posix-functions/copysignf.texi: Mention missing declaration
38500         problem.
38502 2012-03-07  Jim Meyering  <meyering@redhat.com>
38504         readtokens: add tests
38505         * modules/readtokens-tests: New file.
38506         * tests/test-readtokens.c: New file.
38508 2012-03-07  Jim Meyering  <meyering@redhat.com>
38510         quotearg: the module must now include quote.h
38511         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
38512         So must the module.
38513         * modules/quotearg (Files): Add quote.h.
38515 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
38517         readtokens: avoid core dumps with unusual calling patterns
38518         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
38519         * lib/readtokens.c: Include limits.h.
38520         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
38521         (readtoken): Don't cache the delimiters; the cache code was buggy
38522         if !delim && saved_delim, or if the new n_delim differs from the old.
38523         Also, it wasn't thread-safe.
38525 2012-03-07  Bruno Haible  <bruno@clisp.org>
38527         quote: Adhere to common module description layout.
38528         * modules/quote (Makefile.am): Add back empty section.
38530 2012-03-06  Akim Demaille  <demaille@gostai.com>
38532         quote: fuse into quotearg
38533         This patch is made for the benefit of Bison.
38534         quote does not leave the choice of the quoting style to the user.
38535         quoting_style provides poor customizability, yet quoting_options,
38536         which is very rich, is hidden inside quotearg.c.  So in order to
38537         allow quote customization, move its implementation to quotearg.c.
38538         * lib/quote.c: Remove.
38539         * modules/quote: Adjust.
38540         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
38541         warning: provide all the members of literal structs.
38542         (quote_quoting_options): New.
38543         (quote, quote_n): Import implementation from quote.c.
38544         * lib/quote.h: Import the comments from quote.c.
38545         (quote_quoting_options): New.
38547 2012-03-06  Bruno Haible  <bruno@clisp.org>
38549         Tests for module 'expm1l-ieee'.
38550         * modules/expm1l-ieee-tests: New file.
38551         * tests/test-expm1l-ieee.c: New file.
38553         New module 'expm1l-ieee'.
38554         * modules/expm1l-ieee: New file.
38556         Tests for module 'expm1f-ieee'.
38557         * modules/expm1f-ieee-tests: New file.
38558         * tests/test-expm1f-ieee.c: New file.
38560         New module 'expm1f-ieee'.
38561         * modules/expm1f-ieee: New file.
38563         Tests for module 'expm1-ieee'.
38564         * modules/expm1-ieee-tests: New file.
38565         * tests/test-expm1-ieee.c: New file.
38566         * tests/test-expm1-ieee.h: New file.
38568         New module 'expm1-ieee'.
38569         * modules/expm1-ieee: New file.
38570         * m4/expm1-ieee.m4: New file.
38571         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
38572         whether expm1 works with a minus zero argument. Replace it if not.
38573         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
38574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
38575         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
38576         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
38577         (Depends-on): Update conditions.
38578         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
38579         AIX problem.
38581 2012-03-06  Bruno Haible  <bruno@clisp.org>
38583         Work around expm1f bug on IRIX 6.5.
38584         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
38585         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
38586         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
38587         not work.
38588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
38589         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
38590         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
38591         (Depends-on): Update conditions.
38592         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
38594 2012-03-06  Bruno Haible  <bruno@clisp.org>
38596         Tests for module 'expm1l'.
38597         * modules/expm1l-tests: New file.
38598         * tests/test-expm1l.c: New file.
38600         New module 'expm1l'.
38601         * lib/math.in.h (expm1l): New declaration.
38602         * lib/expm1l.c: New file.
38603         * m4/expm1l.m4: New file.
38604         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
38605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
38606         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
38607         * modules/expm1l: New file.
38608         * tests/test-math-c++.cc: Check the declaration of expm1l.
38609         * doc/posix-functions/expm1l.texi: Mention the new module.
38611 2012-03-06  Bruno Haible  <bruno@clisp.org>
38613         Tests for module 'expm1f'.
38614         * modules/expm1f-tests: New file.
38615         * tests/test-expm1f.c: New file.
38617         New module 'expm1f'.
38618         * lib/math.in.h (expm1f): New declaration.
38619         * lib/expm1f.c: New file.
38620         * m4/expm1f.m4: New file.
38621         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
38622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
38623         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
38624         * modules/expm1f: New file.
38625         * tests/test-math-c++.cc: Check the declaration of expm1f.
38626         * doc/posix-functions/expm1f.texi: Mention the new module.
38628 2012-03-06  Bruno Haible  <bruno@clisp.org>
38630         Tests for module 'expm1'.
38631         * modules/expm1-tests: New file.
38632         * tests/test-expm1.c: New file.
38633         * tests/test-expm1.h: New file.
38635         New module 'expm1'.
38636         * lib/math.in.h (expm1): New declaration.
38637         * lib/expm1.c: New file.
38638         * m4/expm1.m4: New file.
38639         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
38640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
38641         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
38642         * modules/expm1: New file.
38643         * tests/test-math-c++.cc: Check the declaration of expm1.
38644         * doc/posix-functions/expm1.texi: Mention the new module.
38646 2012-03-06  Bruno Haible  <bruno@clisp.org>
38648         math: Ensure declarations of math functions.
38649         * modules/acosf (Depends-on): Add 'extensions'.
38650         * modules/asinf (Depends-on): Likewise.
38651         * modules/atan2f (Depends-on): Likewise.
38652         * modules/atanf (Depends-on): Likewise.
38653         * modules/cbrt (Depends-on): Likewise.
38654         * modules/cbrtf (Depends-on): Likewise.
38655         * modules/cbrtl (Depends-on): Likewise.
38656         * modules/copysignf (Depends-on): Likewise.
38657         * modules/copysignl (Depends-on): Likewise.
38658         * modules/cosf (Depends-on): Likewise.
38659         * modules/coshf (Depends-on): Likewise.
38660         * modules/expf (Depends-on): Likewise.
38661         * modules/fabsf (Depends-on): Likewise.
38662         * modules/fabsl (Depends-on): Likewise.
38663         * modules/fmaf (Depends-on): Likewise.
38664         * modules/fmal (Depends-on): Likewise.
38665         * modules/fmodf (Depends-on): Likewise.
38666         * modules/fmodl (Depends-on): Likewise.
38667         * modules/frexpf (Depends-on): Likewise.
38668         * modules/frexpl (Depends-on): Likewise.
38669         * modules/hypot (Depends-on): Likewise.
38670         * modules/hypotf (Depends-on): Likewise.
38671         * modules/hypotl (Depends-on): Likewise.
38672         * modules/ldexpf (Depends-on): Likewise.
38673         * modules/ldexpl (Depends-on): Likewise.
38674         * modules/log10f (Depends-on): Likewise.
38675         * modules/log10l (Depends-on): Likewise.
38676         * modules/log1p (Depends-on): Likewise.
38677         * modules/logb (Depends-on): Likewise.
38678         * modules/logf (Depends-on): Likewise.
38679         * modules/modff (Depends-on): Likewise.
38680         * modules/modfl (Depends-on): Likewise.
38681         * modules/powf (Depends-on): Likewise.
38682         * modules/remainderf (Depends-on): Likewise.
38683         * modules/remainderl (Depends-on): Likewise.
38684         * modules/rintf (Depends-on): Likewise.
38685         * modules/rintl (Depends-on): Likewise.
38686         * modules/sinf (Depends-on): Likewise.
38687         * modules/sinhf (Depends-on): Likewise.
38688         * modules/sqrtf (Depends-on): Likewise.
38689         * modules/tanf (Depends-on): Likewise.
38690         * modules/tanhf (Depends-on): Likewise.
38691         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
38692         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
38693         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
38694         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
38695         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
38696         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
38697         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
38698         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
38699         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
38700         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
38701         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
38702         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
38703         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
38704         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
38705         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
38706         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
38707         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
38708         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38709         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
38710         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
38711         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
38712         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
38713         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
38714         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
38715         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
38716         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
38717         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
38718         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
38719         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
38720         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
38721         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38722         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
38723         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
38724         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38725         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
38726         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
38727         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
38728         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
38729         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
38730         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
38731         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
38733 2012-03-06  Bruno Haible  <bruno@clisp.org>
38735         math: Update module names in warnings.
38736         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38737         tanl): Use specific module name in warn-on-use warning.
38739 2012-03-06  Bruno Haible  <bruno@clisp.org>
38741         expl: Simplify computation.
38742         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
38744 2012-03-05  Bruno Haible  <bruno@clisp.org>
38746         exp* tests: More tests.
38747         * tests/test-exp.h: New file.
38748         * tests/test-exp.c: Include <float.h> and test-exp.h.
38749         (main): Invoke test_function.
38750         * tests/test-expf.c: Include <float.h> and test-exp.h.
38751         (main): Invoke test_function.
38752         * tests/test-expl.c: Include <float.h> and test-exp.h.
38753         (main): Invoke test_function.
38754         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
38755         (Makefile.am): Add randomd.c to test_exp_SOURCES.
38756         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
38757         (Makefile.am): Add randomf.c to test_expf_SOURCES.
38758         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
38759         (Depends-on): Add 'float'.
38760         (Makefile.am): Add randoml.c to test_expl_SOURCES.
38762         expl: Fix precision of computed result.
38763         * lib/expl.c: Completely rewritten.
38764         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
38765         (Maintainer): Add me.
38766         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
38768 2012-03-05  Bruno Haible  <bruno@clisp.org>
38770         cbrt* tests: More tests.
38771         * tests/test-cbrt.h: New file.
38772         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
38773         (main): Invoke test_function.
38774         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
38775         (main): Invoke test_function.
38776         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
38777         (main): Invoke test_function.
38778         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
38779         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
38780         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
38781         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
38782         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
38783         (Depends-on): Add 'float'.
38784         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
38786 2012-03-05  Bruno Haible  <bruno@clisp.org>
38788         hypot* tests: More tests.
38789         * tests/test-hypot.h: New file, partially extracted from
38790         tests/test-hypotl.c.
38791         * tests/test-hypot.c: Include test-hypot.h.
38792         (main): Invoke test_function.
38793         * tests/test-hypotf.c: Include test-hypot.h.
38794         (main): Invoke test_function.
38795         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
38796         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
38797         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
38798         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
38799         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
38800         tests/randomf.c.
38801         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
38802         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
38803         tests/randoml.c.
38804         (Depends-on): Add 'fpucw', 'float'.
38805         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
38807 2012-03-05  Bruno Haible  <bruno@clisp.org>
38809         fpucw: Doc about FreeBSD.
38810         * lib/fpucw.h: Mention FreeBSD in comments.
38812 2012-03-04  Bruno Haible  <bruno@clisp.org>
38814         sqrt* tests: More tests.
38815         * tests/test-sqrt.h: New file.
38816         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
38817         (main): Invoke test_function.
38818         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
38819         (main): Invoke test_function.
38820         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
38821         (main): Invoke test_function.
38822         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
38823         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
38824         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
38825         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
38826         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
38827         (Depends-on): Add 'float'.
38828         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
38830 2012-03-04  Bruno Haible  <bruno@clisp.org>
38832         remainder* tests: More tests.
38833         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
38834         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
38835         (main): Invoke test_function.
38836         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
38837         (main): Invoke test_function.
38838         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
38839         (main): Invoke test_function.
38840         * modules/remainder-tests (Files): Add tests/test-remainder.h,
38841         tests/randomd.c.
38842         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
38843         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
38844         tests/randomf.c.
38845         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
38846         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
38847         tests/randoml.c.
38848         (Depends-on): Add 'float'.
38849         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
38851 2012-03-04  Bruno Haible  <bruno@clisp.org>
38853         remainder, remainderf, remainderl: Fix computation for large quotients.
38854         * lib/remainder.c: Completely rewritten.
38855         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
38856         USE_FLOAT.
38857         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
38858         USE_LONG_DOUBLE.
38859         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
38860         isnand, isinf. Remove round, fma.
38861         * modules/remainderf (Files): Add lib/remainder.c.
38862         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
38863         Remove roundf, fmaf.
38864         * modules/remainderl (Files): Add lib/remainder.c.
38865         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
38866         isinf. Remove roundl, fmal.
38867         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
38868         REMAINDER_LIBM.
38869         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
38870         REMAINDERF_LIBM.
38871         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
38872         REMAINDERL_LIBM.
38874 2012-03-04  Bruno Haible  <bruno@clisp.org>
38876         fmod* tests: More tests.
38877         * tests/test-fmod.h (my_ldexp): New function.
38878         (test_function): Reduce amount of random numbers to test. Add tests
38879         of very large quotients x / y.
38880         * tests/test-fmod.c (MAX_EXP): New macro.
38881         * tests/test-fmodf.c (MAX_EXP): Likewise.
38882         * tests/test-fmodl.c (MAX_EXP): Likewise.
38884 2012-03-04  Bruno Haible  <bruno@clisp.org>
38886         fmod, fmodl: Fix computation for large quotients x / y.
38887         * lib/fmod.c: Completely rewritten.
38888         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
38889         USE_LONG_DOUBLE.
38890         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
38891         isnand. Remove fma.
38892         * modules/fmodl (Files): Add lib/fmod.c.
38893         (Depends-on): Add float, isfinite, signbit, fabsl,
38894         frexpl, ldexpl, isnanl. Remove fma.
38895         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38896         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38898 2012-03-03  Bruno Haible  <bruno@clisp.org>
38900         fmod* tests: More tests.
38901         * tests/test-fmod.h: New file.
38902         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38903         (main): Invoke test_function.
38904         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38905         (main): Invoke test_function.
38906         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38907         (main): Invoke test_function.
38908         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38909         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38910         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38911         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38912         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38913         (Depends-on): Add 'float'.
38914         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38916 2012-03-03  Bruno Haible  <bruno@clisp.org>
38918         rint* tests: More tests.
38919         * tests/test-rint.h: New file, partially extracted from
38920         tests/test-rintl.c.
38921         * tests/test-rint.c: Include test-rint.h.
38922         (main): Invoke test_function.
38923         * tests/test-rintf.c: Include test-rint.h.
38924         (main): Invoke test_function.
38925         * tests/test-rintl.c: Include test-rint.h.
38926         (main): Invoke test_function.
38927         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38928         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38929         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38930         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38931         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38932         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38934 2012-03-03  Bruno Haible  <bruno@clisp.org>
38936         modf* tests: More tests.
38937         * tests/test-modf.h: New file.
38938         * tests/test-modf.c: Include <float.h> and test-modf.h.
38939         (main): Invoke test_function.
38940         * tests/test-modff.c: Include <float.h> and test-modf.h.
38941         (main): Invoke test_function.
38942         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38943         (main): Invoke test_function.
38944         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38945         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38946         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38947         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38948         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38949         (Depends-on): Add 'float'.
38950         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38952 2012-03-03  Bruno Haible  <bruno@clisp.org>
38954         fabs* tests: More tests.
38955         * tests/test-fabs.h: New file, partially extracted from
38956         tests/test-fabsl.c.
38957         * tests/test-fabs.c (RANDOM): New macro.
38958         * tests/test-fabsf.c (RANDOM): New macro.
38959         * tests/test-fabsl.c (RANDOM): New macro.
38960         * modules/fabs-tests (Files): Add tests/randomd.c.
38961         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38962         * modules/fabsf-tests (Files): Add tests/randomf.c.
38963         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38964         * modules/fabsl-tests (Files): Add tests/randoml.c.
38965         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38967 2012-03-03  Bruno Haible  <bruno@clisp.org>
38969         ldexp* tests: More tests.
38970         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38971         * tests/test-ldexp.c (RANDOM): New macro.
38972         * tests/test-ldexpf.c (RANDOM): New macro.
38973         * tests/test-ldexpl.c (RANDOM): New macro.
38974         * modules/ldexp-tests (Files): Add tests/randomd.c.
38975         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38976         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38977         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38978         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38979         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38981 2012-03-03  Bruno Haible  <bruno@clisp.org>
38983         frexp* tests: More tests.
38984         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38985         * tests/test-frexp.c (RANDOM): New macro.
38986         * tests/test-frexpf.c (RANDOM): New macro.
38987         * tests/test-frexpl.c (RANDOM): New macro.
38988         * modules/frexp-tests (Files): Add tests/randomd.c.
38989         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38990         * modules/frexpf-tests (Files): Add tests/randomf.c.
38991         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38992         * modules/frexpl-tests (Files): Add tests/randoml.c.
38993         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38995 2012-03-03  Bruno Haible  <bruno@clisp.org>
38997         Support for pseudo-random numbers in tests.
38998         * tests/randomf.c: New file.
38999         * tests/randomd.c: New file.
39000         * tests/randoml.c: New file.
39001         * tests/macros.h (randomf, randomd, randoml): New declarations.
39003 2012-03-03  Bruno Haible  <bruno@clisp.org>
39005         frexp* tests: Refactor.
39006         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
39007         * tests/test-frexp.c: Include and use it.
39008         * tests/test-frexpf.c: Likewise.
39009         * tests/test-frexpl.c: Likewise.
39010         * modules/frexp-tests (Files): Add tests/test-frexp.h.
39011         * modules/frexpf-tests (Files): Likewise.
39012         * modules/frexpl-tests (Files): Likewise.
39014 2012-03-02  Jim Meyering  <meyering@redhat.com>
39016         maint: don't specify XZ_OPT=-9ev in dist-related rule
39017         Using xz's -9 option is warranted only if you have a very large
39018         tarball (see xz's documentation for the sizes vs. presets), and
39019         requires 64MiB of memory at decompression time.
39020         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
39021         Automake's default of just "-e" is fine.  Override on a
39022         per-package basis by setting XZ_OPT e.g., in cfg.mk.
39024 2012-03-01  Eric Blake  <eblake@redhat.com>
39026         maint.mk: allow announcement for non-gnulib project
39027         * maint.mk (announcement): Skip gnulib version if not used.
39029 2012-03-01  Jim Meyering  <meyering@redhat.com>
39031         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
39032         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
39033         envvar settings cannot interfere.  Otherwise, setting envvars like
39034         prohibit=foo require=bar, etc. would cause spurious test failures.
39036 2012-03-01  Eric Blake  <eblake@redhat.com>
39038         maint.mk: add per-line exclusions to prohibitions
39039         * maint.mk (_sc_search_regexp): Add $exclude parameter.
39040         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
39041         (sc_const_long_option): Use it.
39043 2012-03-01  Bruno Haible  <bruno@clisp.org>
39045         Tests for module 'expl-ieee'.
39046         * modules/expl-ieee-tests: New file.
39047         * tests/test-expl-ieee.c: New file.
39049         New module 'expl-ieee'.
39050         * modules/expl-ieee: New file.
39052         Tests for module 'exp-ieee'.
39053         * modules/exp-ieee-tests: New file.
39054         * tests/test-exp-ieee.c: New file.
39056         New module 'exp-ieee'.
39057         * modules/exp-ieee: New file.
39059         Tests for module 'expf-ieee'.
39060         * modules/expf-ieee-tests: New file.
39061         * tests/test-expf-ieee.c: New file.
39062         * tests/test-exp-ieee.h: New file.
39064         New module 'expf-ieee'.
39065         * modules/expf-ieee: New file.
39067 2012-02-29  Bruno Haible  <bruno@clisp.org>
39069         cbrtl-ieee: Work around test failure on IRIX 6.5.
39070         * m4/cbrtl-ieee.m4: New file.
39071         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
39072         test whether cbrtl works with a minus zero argument. Replace it if not.
39073         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
39074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
39075         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
39076         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
39077         (Depends-on): Update conditions.
39078         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
39079         m4/signbit.m4.
39080         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
39081         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
39082         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
39084         Tests for module 'cbrtl-ieee'.
39085         * modules/cbrtl-ieee-tests: New file.
39086         * tests/test-cbrtl-ieee.c: New file.
39088         New module 'cbrtl-ieee'.
39089         * modules/cbrtl-ieee: New file.
39091         Tests for module 'cbrt-ieee'.
39092         * modules/cbrt-ieee-tests: New file.
39093         * tests/test-cbrt-ieee.c: New file.
39095         New module 'cbrt-ieee'.
39096         * modules/cbrt-ieee: New file.
39098         Tests for module 'cbrtf-ieee'.
39099         * modules/cbrtf-ieee-tests: New file.
39100         * tests/test-cbrtf-ieee.c: New file.
39101         * tests/test-cbrt-ieee.h: New file.
39103         New module 'cbrtf-ieee'.
39104         * modules/cbrtf-ieee: New file.
39106 2012-02-29  Bruno Haible  <bruno@clisp.org>
39108         cbrtf: Work around bug in IRIX 6.5 system function.
39109         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
39110         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
39111         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
39112         work.
39113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
39114         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
39115         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
39116         (Depends-on): Update conditions.
39117         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
39119 2012-02-29  Bruno Haible  <bruno@clisp.org>
39121         Tests for module 'cbrtl'.
39122         * modules/cbrtl-tests: New file.
39123         * tests/test-cbrtl.c: New file.
39125         New module 'cbrtl'.
39126         * lib/math.in.h (cbrtl): New declaration.
39127         * lib/cbrtl.c: New file.
39128         * m4/cbrtl.m4: New file.
39129         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
39130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
39131         HAVE_DECL_CBRTL.
39132         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
39133         HAVE_DECL_CBRTL.
39134         * modules/cbrtl: New file.
39135         * tests/test-math-c++.cc: Check the declaration of cbrtl.
39136         * doc/posix-functions/cbrtl.texi: Mention the new module.
39138 2012-02-29  Bruno Haible  <bruno@clisp.org>
39140         Tests for module 'cbrtf'.
39141         * modules/cbrtf-tests: New file.
39142         * tests/test-cbrtf.c: New file.
39144         New module 'cbrtf'.
39145         * lib/math.in.h (cbrtf): New declaration.
39146         * lib/cbrtf.c: New file.
39147         * m4/cbrtf.m4: New file.
39148         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
39149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
39150         HAVE_DECL_CBRTF.
39151         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
39152         HAVE_DECL_CBRTF.
39153         * modules/cbrtf: New file.
39154         * tests/test-math-c++.cc: Check the declaration of cbrtf.
39155         * doc/posix-functions/cbrtf.texi: Mention the new module.
39157 2012-02-29  Bruno Haible  <bruno@clisp.org>
39159         cbrt: Provide replacement on MSVC and Minix.
39160         * lib/math.in.h (cbrt): New declaration.
39161         * lib/cbrt.c: New file.
39162         * m4/cbrt.m4: New file.
39163         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
39164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
39165         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
39166         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
39167         (Depends-on): Add dependencies.
39168         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
39169         * tests/test-math-c++.cc: Check the declaration of cbrt.
39170         * doc/posix-functions/cbrt.texi: Mention that the module provides a
39171         replacement.
39173 2012-02-29  Bruno Haible  <bruno@clisp.org>
39175         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
39176         * m4/hypotl-ieee.m4: New file.
39177         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
39178         test whether hypotl works with mixed NaN and Infinity arguments.
39179         Replace it if not.
39180         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
39181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
39182         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
39183         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
39184         (Depends-on): Update conditions.
39185         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
39186         (Depends-on): Add hypot-ieee.
39187         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
39188         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
39190         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
39191         * m4/hypotf-ieee.m4: New file.
39192         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
39193         test whether hypotf works with mixed NaN and Infinity arguments.
39194         Replace it if not.
39195         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
39196         (Depends-on): Add hypot-ieee.
39197         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
39198         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
39200         hypot-ieee: Work around test failure on OSF/1 and native Windows.
39201         * lib/math.in.h (hypot): New declaration.
39202         * lib/hypot.c: New file.
39203         * m4/hypot-ieee.m4: New file.
39204         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
39205         whether hypot works with mixed NaN and Infinity arguments. Replace it
39206         if not.
39207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
39208         REPLACE_HYPOT.
39209         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
39210         * modules/hypot (Files): Add lib/hypot.c.
39211         (Depends-on): Add dependencies.
39212         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
39213         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
39214         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
39215         * tests/test-math-c++.cc: Check the declaration of hypot.
39216         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
39218         Tests for module 'hypotl-ieee'.
39219         * modules/hypotl-ieee-tests: New file.
39220         * tests/test-hypotl-ieee.c: New file.
39222         New module 'hypotl-ieee'.
39223         * modules/hypotl-ieee: New file.
39225         Tests for module 'hypot-ieee'.
39226         * modules/hypot-ieee-tests: New file.
39227         * tests/test-hypot-ieee.c: New file.
39229         New module 'hypot-ieee'.
39230         * modules/hypot-ieee: New file.
39232         Tests for module 'hypotf-ieee'.
39233         * modules/hypotf-ieee-tests: New file.
39234         * tests/test-hypotf-ieee.c: New file.
39235         * tests/test-hypot-ieee.h: New file.
39237         New module 'hypotf-ieee'.
39238         * modules/hypotf-ieee: New file.
39240 2012-02-29  Bruno Haible  <bruno@clisp.org>
39242         Remove unused variables.
39243         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
39244         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
39245         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
39246         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
39248 2012-02-29  Eric Blake  <eblake@redhat.com>
39250         termios: fix pid_t always, not just for tcgetsid
39251         * doc/posix-headers/termios.texi (termios.h): Mention problem.
39252         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
39253         just when building tcgetsid.
39255 2012-02-29  Bruno Haible  <bruno@clisp.org>
39257         Tests for module 'hypotl'.
39258         * modules/hypotl-tests: New file.
39259         * tests/test-hypotl.c: New file.
39261         New module 'hypotl'.
39262         * lib/math.in.h (hypotl): New declaration.
39263         * lib/hypotl.c: New file.
39264         * m4/hypotl.m4: New file.
39265         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
39266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
39267         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
39268         * modules/hypotl: New file.
39269         * tests/test-math-c++.cc: Check the hypotl declaration.
39270         * doc/posix-functions/hypotl.texi: Mention the new module.
39272 2012-02-29  Eric Blake  <eblake@redhat.com>
39274         tcgetsid: fix cygwin header bug
39275         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
39277         docs: update cygwin progress
39278         * doc/posix-functions/llround.texi (llround): Added in cygwin
39279         1.7.8.
39280         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
39281         * doc/glibc-functions/program_invocation_name.texi
39282         (program_invocation_name): Likewise.
39283         * doc/glibc-functions/program_invocation_short_name.texi
39284         (program_invocation_short_name): Likewise.
39285         * doc/glibc-functions/madvise.texi (madvise): Likewise.
39286         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
39287         Likewise.
39288         * doc/posix-functions/pthread_spin_destroy.texi
39289         (pthread_spin_destroy): Added in cygwin 1.7.10.
39290         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
39291         Likewise.
39292         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
39293         Likewise.
39294         * doc/posix-functions/pthread_spin_trylock.texi
39295         (pthread_spin_trylock): Likewise.
39296         * doc/posix-functions/pthread_spin_unlock.texi
39297         (pthread_spin_unlock): Likewise.
39298         * doc/posix-functions/pthread_setschedprio.texi
39299         (pthread_setschedprio): Likewise.
39300         * doc/posix-functions/pthread_attr_getstack.texi
39301         (pthread_attr_getstack): Likewise.
39302         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
39303         (pthread_attr_getstackaddr): Likewise.
39304         * doc/glibc-functions/pthread_getattr_np.texi
39305         (pthread_getattr_np): Likewise.
39306         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
39307         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
39308         * doc/posix-functions/clock_settime.texi (clock_settime):
39309         Likewise.
39310         * doc/posix-functions/pthread_attr_getguardsize.texi
39311         (pthread_attr_getguardsize): Likewise.
39312         * doc/posix-functions/pthread_attr_setguardsize.texi
39313         (pthread_attr_setguardsize): Likewise.
39314         * doc/posix-functions/pthread_attr_setstack.texi
39315         (pthread_attr_setstack): Likewise.
39316         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
39317         (pthread_attr_setstackaddr): Likewise.
39318         * doc/posix-functions/clock_getcpuclockid.texi
39319         (clock_getcpuclockid): Likewise.
39320         * doc/posix-functions/pthread_getcpuclockid.texi
39321         (pthread_getcpuclockid): Likewise.
39322         * doc/glibc-functions/error.texi (error): Likewise.
39323         * doc/glibc-functions/error_at_line.texi (error_at_line):
39324         Likewise.
39325         * doc/glibc-functions/error_message_count.texi
39326         (error_message_count): Likewise.
39327         * doc/glibc-functions/error_one_per_line.texi
39328         (error_one_per_line): Likewise.
39329         * doc/glibc-functions/error_print_progname.texi
39330         (error_print_progname): Likewise.
39331         * doc/posix-functions/pthread_condattr_getclock.texi
39332         (pthread_condattr_getclock): Likewise.
39333         * doc/posix-functions/pthread_condattr_setclock.texi
39334         (pthread_condattr_setclock): Likewise.
39335         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
39336         Likewise.
39337         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
39338         * doc/glibc-functions/getpt.texi (getpt): Likewise.
39339         * doc/glibc-functions/get_current_dir_name.texi
39340         (get_current_dir_name): Likewise.
39341         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
39342         Likewise.
39343         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
39344         wrong return type.
39345         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
39346         1.7.11.
39348 2012-02-29  Bruno Haible  <bruno@clisp.org>
39350         Tests for module 'hypotf'.
39351         * modules/hypotf-tests: New file.
39352         * tests/test-hypotf.c: New file.
39354         New module 'hypotf'.
39355         * lib/math.in.h (hypotf): New declaration.
39356         * lib/hypotf.c: New file.
39357         * m4/hypotf.m4: New file.
39358         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
39359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
39360         REPLACE_HYPOTF.
39361         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
39362         REPLACE_HYPOTF.
39363         * modules/hypotf: New file.
39364         * tests/test-math-c++.cc: Check the hypotf declaration.
39365         * doc/posix-functions/hypotf.texi: Mention the new module.
39367         hypot: Prepare for hypotf module.
39368         * m4/hypot.m4: New file.
39369         * modules/hypot (Files): Add m4/hypot.m4.
39370         (configure.ac): Invoke gl_FUNC_HYPOT.
39372 2012-02-29  Bruno Haible  <bruno@clisp.org>
39374         hypot tests: More tests.
39375         * tests/test-hypot.c: Include <float.h>.
39376         (main): Add tests about overflow and underflow.
39378 2012-02-29  Bruno Haible  <bruno@clisp.org>
39380         math code: Add comments.
39381         * lib/acosl.c: Add comment about related glibc source files.
39382         * lib/asinl.c: Likewise.
39383         * lib/atanl.c: Likewise.
39384         * lib/expl.c: Likewise.
39385         * lib/logl.c: Likewise.
39386         * lib/sincosl.c: Likewise.
39387         * lib/sinl.c: Likewise.
39388         * lib/tanl.c: Likewise.
39389         * lib/trigl.c: Likewise.
39390         * lib/cosl.c: Likewise. Fix comments.
39392 2012-02-28  Bruno Haible  <bruno@clisp.org>
39394         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
39395         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
39396         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
39397         HUGE_VALL are defined.
39398         (numeric_equald): Renamed from numeric_equal.
39399         (numeric_equalf, numeric_equall): New functions.
39400         (main): Check also HUGE_VALF, HUGE_VALL.
39401         * modules/math-tests (Files): Add tests/macros.h.
39402         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
39403         HUGE_VALL.
39405 2012-02-28  Bruno Haible  <bruno@clisp.org>
39407         doc: Move ISO C11 feature notes into POSIX chapters.
39408         * doc/posix-functions/aligned_alloc.texi: Renamed from
39409         doc/glibc-functions/aligned_alloc.texi.
39410         * doc/posix-functions/quick_exit.texi: Renamed from
39411         doc/glibc-functions/quick_exit.texi.
39412         * doc/posix-headers/uchar.texi: Renamed from
39413         doc/glibc-headers/uchar.texi.
39414         * doc/posix-functions/c16rtomb.texi: Renamed from
39415         doc/glibc-functions/c16rtomb.texi.
39416         * doc/posix-functions/c32rtomb.texi: Renamed from
39417         doc/glibc-functions/c32rtomb.texi.
39418         * doc/posix-functions/mbrtoc16.texi: Renamed from
39419         doc/glibc-functions/mbrtoc16.texi.
39420         * doc/posix-functions/mbrtoc32.texi: Renamed from
39421         doc/glibc-functions/mbrtoc32.texi.
39422         * doc/gnulib.texi: Update.
39423         (Glibc uchar.h): Remove section.
39424         Suggested by Eric Blake.
39426 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
39428         stdnoreturn: port to MSVC better
39429         MSVC standard headers use __declspec(noreturn), so #define noreturn
39430         to empty on that platform.  Reported by Bruno Haible in
39431         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
39432         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
39433         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
39435 2012-02-28  Bruno Haible  <bruno@clisp.org>
39437         doc: Mention new glibc headers and functions.
39438         * doc/glibc-headers/uchar.texi: New file.
39439         * doc/glibc-functions/aligned_alloc.texi: New file.
39440         * doc/glibc-functions/c16rtomb.texi: New file.
39441         * doc/glibc-functions/c32rtomb.texi: New file.
39442         * doc/glibc-functions/clock_adjtime.texi: New file.
39443         * doc/glibc-functions/fanotify_init.texi: New file.
39444         * doc/glibc-functions/fanotify_mark.texi: New file.
39445         * doc/glibc-functions/inet6_opt_append.texi: New file.
39446         * doc/glibc-functions/inet6_opt_find.texi: New file.
39447         * doc/glibc-functions/inet6_opt_finish.texi: New file.
39448         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
39449         * doc/glibc-functions/inet6_opt_init.texi: New file.
39450         * doc/glibc-functions/inet6_opt_next.texi: New file.
39451         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
39452         * doc/glibc-functions/inet6_rth_add.texi: New file.
39453         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
39454         * doc/glibc-functions/inet6_rth_init.texi: New file.
39455         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
39456         * doc/glibc-functions/inet6_rth_segments.texi: New file.
39457         * doc/glibc-functions/inet6_rth_space.texi: New file.
39458         * doc/glibc-functions/login.texi: New file.
39459         * doc/glibc-functions/mbrtoc16.texi: New file.
39460         * doc/glibc-functions/mbrtoc32.texi: New file.
39461         * doc/glibc-functions/name_to_handle_at.texi: New file.
39462         * doc/glibc-functions/ntp_gettimex.texi: New file.
39463         * doc/glibc-functions/open_by_handle_at.texi: New file.
39464         * doc/glibc-functions/prlimit.texi: New file.
39465         * doc/glibc-functions/process_vm_readv.texi: New file.
39466         * doc/glibc-functions/process_vm_writev.texi: New file.
39467         * doc/glibc-functions/recvmmsg.texi: New file.
39468         * doc/glibc-functions/scandirat.texi: New file.
39469         * doc/glibc-functions/sendmmsg.texi: New file.
39470         * doc/glibc-functions/setns.texi: New file.
39471         * doc/glibc-functions/timespec_get.texi: New file.
39472         * doc/gnulib.texi: Include them.
39473         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
39474         sections.
39475         Reported by Eric Blake.
39477 2012-02-28  Bruno Haible  <bruno@clisp.org>
39479         Avoid compilation errors with MSVC option -fp:strict.
39480         * lib/floor.c: Use MSVC specific pragma fenv_access.
39481         * lib/ceil.c: Likewise.
39482         * lib/trunc.c: Likewise.
39483         * lib/round.c: Likewise.
39484         * lib/rint.c: Likewise.
39485         * lib/fma.c: Likewise.
39486         * lib/integer_length.c: Likewise.
39487         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39489         * tests/test-floor2.c: Likewise.
39490         * tests/test-floorf2.c: Likewise.
39491         * tests/test-ceil2.c: Likewise.
39492         * tests/test-ceilf2.c: Likewise.
39493         * tests/test-trunc2.c: Likewise.
39494         * tests/test-truncf2.c: Likewise.
39495         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39497 2012-02-27  Bruno Haible  <bruno@clisp.org>
39499         Tests for module 'sqrtl-ieee'.
39500         * modules/sqrtl-ieee-tests: New file.
39501         * tests/test-sqrtl-ieee.c: New file.
39503         New module 'sqrtl-ieee'.
39504         * modules/sqrtl-ieee: New file.
39506         Tests for module 'sqrt-ieee'.
39507         * modules/sqrt-ieee-tests: New file.
39508         * tests/test-sqrt-ieee.c: New file.
39510         New module 'sqrt-ieee'.
39511         * modules/sqrt-ieee: New file.
39513         Tests for module 'sqrtf-ieee'.
39514         * modules/sqrtf-ieee-tests: New file.
39515         * tests/test-sqrtf-ieee.c: New file.
39516         * tests/test-sqrt-ieee.h: New file.
39518         New module 'sqrtf-ieee'.
39519         * modules/sqrtf-ieee: New file.
39521 2012-02-27  Bruno Haible  <bruno@clisp.org>
39523         remainderl-ieee: Work around test failure on OSF/1.
39524         * m4/remainderl-ieee.m4: New file.
39525         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
39526         present, test whether remainderl works with a zero second argument.
39527         Replace it if not.
39528         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
39529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
39530         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
39531         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
39532         (Depends-on): Update conditions.
39533         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
39534         (Depends-on): Add remainder-ieee.
39535         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
39536         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
39537         module.
39539         remainderf-ieee: Work around test failure on OSF/1.
39540         * m4/remainderf-ieee.m4: New file.
39541         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
39542         present, test whether remainderf works with a zero second argument.
39543         Replace it if not.
39544         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
39545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
39546         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
39547         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
39548         (Depends-on): Update conditions.
39549         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
39550         (Depends-on): Add remainder-ieee.
39551         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
39552         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
39553         module.
39555         remainder-ieee: Work around test failure on OSF/1.
39556         * m4/remainder-ieee.m4: New file.
39557         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
39558         present, test whether remainder works with a zero second argument.
39559         Replace it if not.
39560         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
39561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
39562         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
39563         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
39564         (Depends-on): Update dependencies.
39565         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
39566         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
39567         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
39569         Tests for module 'remainderl-ieee'.
39570         * modules/remainderl-ieee-tests: New file.
39571         * tests/test-remainderl-ieee.c: New file.
39573         New module 'remainderl-ieee'.
39574         * modules/remainderl-ieee: New file.
39576         Tests for module 'remainder-ieee'.
39577         * modules/remainder-ieee-tests: New file.
39578         * tests/test-remainder-ieee.c: New file.
39580         New module 'remainder-ieee'.
39581         * modules/remainder-ieee: New file.
39583         Tests for module 'remainderf-ieee'.
39584         * modules/remainderf-ieee-tests: New file.
39585         * tests/test-remainderf-ieee.c: New file.
39586         * tests/test-remainder-ieee.h: New file.
39588         New module 'remainderf-ieee'.
39589         * modules/remainderf-ieee: New file.
39591 2012-02-27  Bruno Haible  <bruno@clisp.org>
39593         modff, modfl: Fix configure syntax error.
39594         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
39595         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
39597 2012-02-27  Bruno Haible  <bruno@clisp.org>
39599         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
39600         * m4/fmodl-ieee.m4: New file.
39601         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
39602         whether fmodl works with zero arguments. Replace it if not.
39603         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
39604         (Depends-on): Add fmod-ieee.
39605         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
39606         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
39608         fmodf-ieee: Work around test failure on OSF/1.
39609         * m4/fmodf-ieee.m4: New file.
39610         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
39611         whether fmodf works with zero arguments. Replace it if not.
39612         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
39613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
39614         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
39615         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
39616         (Depends-on): Update dependencies.
39617         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
39618         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
39619         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
39621         fmodf-ieee: Work around test failure on MSVC 9.
39622         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
39623         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
39625         fmod-ieee: Work around test failures on OSF/1, mingw.
39626         * m4/fmod-ieee.m4: New file.
39627         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
39628         whether fmod works with zero arguments. Replace it if not.
39629         * lib/math.in.h (fmod): New declaration.
39630         * lib/fmod.c: New file.
39631         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
39632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
39633         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
39634         * modules/fmod (Files): Add lib/fmod.c.
39635         (Depends-on): Add math, isinf, trunc, fma.
39636         (configure.ac): Arrange to compile lib/fmod.c if needed.
39637         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
39638         m4/signbit.m4.
39639         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
39640         * tests/test-math-c++.cc: Check the declaration of fmod.
39641         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
39643         fmodl-ieee: Fix test failures.
39644         * lib/fmodl.c (fmodl): Treat Inf specially.
39645         * modules/fmodl (Depends-on): Add isinf.
39647         Tests for module 'fmodl-ieee'.
39648         * modules/fmodl-ieee-tests: New file.
39649         * tests/test-fmodl-ieee.c: New file.
39651         New module 'fmodl-ieee'.
39652         * modules/fmodl-ieee: New file.
39654         Tests for module 'fmod-ieee'.
39655         * modules/fmod-ieee-tests: New file.
39656         * tests/test-fmod-ieee.c: New file.
39658         New module 'fmod-ieee'.
39659         * modules/fmod-ieee: New file.
39661         Tests for module 'fmodf-ieee'.
39662         * modules/fmodf-ieee-tests: New file.
39663         * tests/test-fmodf-ieee.c: New file.
39664         * tests/test-fmod-ieee.h: New file.
39666         New module 'fmodf-ieee'.
39667         * modules/fmodf-ieee: New file.
39669 2012-02-27  Bruno Haible  <bruno@clisp.org>
39671         Tests for module 'rintl-ieee'.
39672         * modules/rintl-ieee-tests: New file.
39673         * tests/test-rintl-ieee.c: New file.
39675         New module 'rintl-ieee'.
39676         * modules/rintl-ieee: New file.
39678         Tests for module 'rint-ieee'.
39679         * modules/rint-ieee-tests: New file.
39680         * tests/test-rint-ieee.c: New file.
39682         New module 'rint-ieee'.
39683         * modules/rint-ieee: New file.
39685         Tests for module 'rintf-ieee'.
39686         * modules/rintf-ieee-tests: New file.
39687         * tests/test-rintf-ieee.c: New file.
39688         * tests/test-rint-ieee.h: New file.
39690         New module 'rintf-ieee'.
39691         * modules/rintf-ieee: New file.
39693 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39695         regex: re_search etc. should return -2 when memory exhausted
39696         This bug was uncovered when testing 'grep'.  Without the fix,
39697         re_search and friends return -1 when memory is exhausted, but -1
39698         means no match, and this causes grep to falsely report no-match
39699         instead of memory-exhaustion.  See
39700         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
39701         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
39702         trouble; this can occur if re_search_internal ran out of memory.
39704 2012-02-26  Bruno Haible  <bruno@clisp.org>
39706         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
39707         * m4/modfl-ieee.m4: New file.
39708         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
39709         whether modfl works with Inf. Replace it if not.
39710         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
39711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
39712         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
39713         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
39714         (Depends-on): Update dependencies.
39715         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
39716         m4/signbit.m4.
39717         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
39718         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
39720         modfl-ieee: Fix dependencies.
39721         * modules/modfl-ieee (Depends-on): Add modf-ieee.
39723         modfl-ieee: Fix test failures.
39724         * lib/modfl.c (modfl): Treat NaN and Inf specially.
39725         * modules/modfl (Depends-on): Add isfinite, isinf.
39727         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
39728         * m4/modff-ieee.m4: New file.
39729         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
39730         whether modff works with NaN and Inf. Replace it if not.
39731         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
39732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
39733         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
39734         * modules/modff (configure.ac): Consider REPLACE_MODFF.
39735         (Depends-on): Update dependencies.
39736         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
39737         m4/signbit.m4.
39738         (Depends-on): Add modf-ieee.
39739         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
39740         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
39742         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
39743         * m4/modf-ieee.m4: New file.
39744         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
39745         whether modf works with NaN and Inf. Replace it if not.
39746         * lib/math.in.h (modf): New declaration.
39747         * lib/modf.c: New file.
39748         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
39749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
39750         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
39751         * modules/modf (Files): Add lib/modf.c.
39752         (Depends-on): Add math, isfinite, trunc, isinf.
39753         (configure.ac): Addrange to compile lib/modf.c if needed.
39754         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
39755         m4/signbit.m4.
39756         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
39757         * tests/test-math-c++.cc: Check the declaration of modf.
39758         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
39760         Tests for module 'modfl-ieee'.
39761         * modules/modfl-ieee-tests: New file.
39762         * tests/test-modfl-ieee.c: New file.
39764         New module 'modfl-ieee'.
39765         * modules/modfl-ieee: New file.
39767         Tests for module 'modf-ieee'.
39768         * modules/modf-ieee-tests: New file.
39769         * tests/test-modf-ieee.c: New file.
39771         New module 'modf-ieee'.
39772         * modules/modf-ieee: New file.
39774         Tests for module 'modff-ieee'.
39775         * modules/modff-ieee-tests: New file.
39776         * tests/test-modff-ieee.c: New file.
39777         * tests/test-modf-ieee.h: New file.
39779         New module 'modff-ieee'.
39780         * modules/modff-ieee: New file.
39782 2012-02-26  Bruno Haible  <bruno@clisp.org>
39784         Tests for module 'fabsl-ieee'.
39785         * modules/fabsl-ieee-tests: New file.
39786         * tests/test-fabsl-ieee.c: New file.
39788         New module 'fabsl-ieee'.
39789         * modules/fabsl-ieee: New file.
39791         Tests for module 'fabs-ieee'.
39792         * modules/fabs-ieee-tests: New file.
39793         * tests/test-fabs-ieee.c: New file.
39795         New module 'fabs-ieee'.
39796         * modules/fabs-ieee: New file.
39798         Tests for module 'fabsf-ieee'.
39799         * modules/fabsf-ieee-tests: New file.
39800         * tests/test-fabsf-ieee.c: New file.
39801         * tests/test-fabs-ieee.h: New file.
39803         New module 'fabsf-ieee'.
39804         * modules/fabsf-ieee: New file.
39806 2012-02-26  Bruno Haible  <bruno@clisp.org>
39808         Tests for module 'fmal-ieee'.
39809         * modules/fmal-ieee-tests: New file.
39810         * tests/test-fmal-ieee.c: New file.
39812         New module 'fmal-ieee'.
39813         * modules/fmal-ieee: New file.
39815         Tests for module 'fma-ieee'.
39816         * modules/fma-ieee-tests: New file.
39817         * tests/test-fma-ieee.c: New file.
39819         New module 'fma-ieee'.
39820         * modules/fma-ieee: New file.
39822         Tests for module 'fmaf-ieee'.
39823         * modules/fmaf-ieee-tests: New file.
39824         * tests/test-fmaf-ieee.c: New file.
39825         * tests/test-fma-ieee.h: New file.
39827         New module 'fmaf-ieee'.
39828         * modules/fmaf-ieee: New file.
39830 2012-02-26  Bruno Haible  <bruno@clisp.org>
39832         Tests for module 'ldexpl-ieee'.
39833         * modules/ldexpl-ieee-tests: New file.
39834         * tests/test-ldexpl-ieee.c: New file.
39836         New module 'ldexpl-ieee'.
39837         * modules/ldexpl-ieee: New file.
39839         Tests for module 'ldexp-ieee'.
39840         * modules/ldexp-ieee-tests: New file.
39841         * tests/test-ldexp-ieee.c: New file.
39843         New module 'ldexp-ieee'.
39844         * modules/ldexp-ieee: New file.
39846         Tests for module 'ldexpf-ieee'.
39847         * modules/ldexpf-ieee-tests: New file.
39848         * tests/test-ldexpf-ieee.c: New file.
39849         * tests/test-ldexp-ieee.h: New file.
39851         New module 'ldexpf-ieee'.
39852         * modules/ldexpf-ieee: New file.
39854 2012-02-26  Bruno Haible  <bruno@clisp.org>
39856         Refactor frexp*-ieee tests.
39857         * tests/test-frexp-ieee.h: New file.
39858         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
39859         (main): Just call test_function.
39860         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
39861         (main): Just call test_function.
39862         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
39863         (main): Just call test_function.
39864         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
39865         * modules/frexp-ieee-tests (Files): Likewise.
39866         * modules/frexpl-ieee-tests (Files): Likewise.
39868         Tests for module 'frexpl-ieee'.
39869         * modules/frexpl-ieee-tests: New file.
39870         * tests/test-frexpl-ieee.c: New file.
39872         New module 'frexpl-ieee'.
39873         * modules/frexpl-ieee: New file.
39875         Tests for module 'frexp-ieee'.
39876         * modules/frexp-ieee-tests: New file.
39877         * tests/test-frexp-ieee.c: New file.
39879         New module 'frexp-ieee'.
39880         * modules/frexp-ieee: New file.
39882         Tests for module 'frexpf-ieee'.
39883         * modules/frexpf-ieee-tests: New file.
39884         * tests/test-frexpf-ieee.c: New file.
39886         New module 'frexpf-ieee'.
39887         * modules/frexpf-ieee: New file.
39889 2012-02-26  Bruno Haible  <bruno@clisp.org>
39891         roundl-ieee tests: More tests.
39892         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39893         (main): Add tests for [MX] shaded specification in POSIX.
39894         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39895         (Depends-on): Add isnanl-nolibm.
39897         round-ieee tests: More tests.
39898         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39899         (main): Add tests for [MX] shaded specification in POSIX.
39900         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39901         (Depends-on): Add isnand-nolibm.
39903         roundf-ieee tests: More tests.
39904         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39905         (main): Add tests for [MX] shaded specification in POSIX.
39906         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39907         (Depends-on): Add isnanf-nolibm.
39909         truncl-ieee tests: More tests.
39910         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39911         (main): Add tests for [MX] shaded specification in POSIX.
39912         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39913         (Depends-on): Add isnanl-nolibm.
39915         trunc-ieee tests: More tests.
39916         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39917         (main): Add tests for [MX] shaded specification in POSIX.
39918         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39919         (Depends-on): Add isnand-nolibm.
39921         truncf-ieee tests: More tests.
39922         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39923         (main): Add tests for [MX] shaded specification in POSIX.
39924         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39925         (Depends-on): Add isnanf-nolibm.
39927         ceill-ieee tests: More tests.
39928         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39929         (main): Add tests for [MX] shaded specification in POSIX.
39930         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39931         (Depends-on): Add isnanl-nolibm.
39933         ceil-ieee tests: More tests.
39934         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39935         (main): Add tests for [MX] shaded specification in POSIX.
39936         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39937         (Depends-on): Add isnand-nolibm.
39939         ceilf-ieee tests: More tests.
39940         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39941         (main): Add tests for [MX] shaded specification in POSIX.
39942         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39943         (Depends-on): Add isnanf-nolibm.
39945         floorl-ieee tests: More tests.
39946         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39947         (main): Add tests for [MX] shaded specification in POSIX.
39948         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39949         (Depends-on): Add isnanl-nolibm.
39951         floor-ieee tests: More tests.
39952         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39953         (main): Add tests for [MX] shaded specification in POSIX.
39954         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39955         (Depends-on): Add isnand-nolibm.
39957         floorf-ieee tests: More tests.
39958         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39959         (main): Add tests for [MX] shaded specification in POSIX.
39960         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39961         (Depends-on): Add isnanf-nolibm.
39963 2012-02-26  Bruno Haible  <bruno@clisp.org>
39965         fpieee: More comments.
39966         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39968 2012-02-25  Bruno Haible  <bruno@clisp.org>
39970         Tests for module 'log10l'.
39971         * modules/log10l-tests: New file.
39972         * tests/test-log10l.c: New file.
39973         * tests/test-math-c++.cc: Check the declaration of log10l.
39975         New module 'log10l'.
39976         * lib/math.in.h (log10l): New declaration.
39977         * lib/log10l.c: New file.
39978         * m4/log10l.m4: New file.
39979         * modules/log10l: New file.
39980         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39982         HAVE_DECL_LOG10L.
39983         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39984         HAVE_DECL_LOG10L.
39985         * doc/posix-functions/log10l.texi: Mention the new module.
39987 2012-02-25  Bruno Haible  <bruno@clisp.org>
39989         fmodl, remainder*: Avoid wrong results due to rounding errors.
39990         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39991         expected bounds.
39992         * lib/remainderf.c (remainderf): Likewise.
39993         * lib/remainder.c (remainder): Likewise.
39994         * lib/remainderl.c (remainderl): Likewise.
39996 2012-02-25  Bruno Haible  <bruno@clisp.org>
39998         Tests for module 'remainderl'.
39999         * modules/remainderl-tests: New file.
40000         * tests/test-remainderl.c: New file.
40001         * tests/test-math-c++.cc: Check the declaration of remainderl.
40003         New module 'remainderl'.
40004         * lib/math.in.h (remainderl): New declaration.
40005         * lib/remainderl.c: New file.
40006         * m4/remainderl.m4: New file.
40007         * modules/remainderl: New file.
40008         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
40009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
40010         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
40011         HAVE_REMAINDERL.
40012         * doc/posix-functions/remainderl.texi: Mention the new module.
40014 2012-02-25  Bruno Haible  <bruno@clisp.org>
40016         Tests for module 'remainderf'.
40017         * modules/remainderf-tests: New file.
40018         * tests/test-remainderf.c: New file.
40019         * tests/test-math-c++.cc: Check the declaration of remainderf.
40021         New module 'remainderf'.
40022         * lib/math.in.h (remainderf): New declaration.
40023         * lib/remainderf.c: New file.
40024         * m4/remainderf.m4: New file.
40025         * modules/remainderf: New file.
40026         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
40027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
40028         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
40029         HAVE_REMAINDERF.
40030         * doc/posix-functions/remainderf.texi: Mention the new module.
40032 2012-02-25  Bruno Haible  <bruno@clisp.org>
40034         remainder: Support for MSVC.
40035         * lib/math.in.h (remainder): New declaration.
40036         * lib/remainder.c: New file.
40037         * m4/remainder.m4: New file.
40038         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
40039         (Depends-on): Add math, round, fma.
40040         (configure.ac): Use results of gl_FUNC_REMAINDER.
40041         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
40042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
40043         HAVE_DECL_REMAINDER.
40044         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
40045         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
40046         * tests/test-math-c++.cc: Check the declaration of remainder.
40047         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
40048         problems are fixed.
40050 2012-02-25  Bruno Haible  <bruno@clisp.org>
40052         Tests for module 'fmodl'.
40053         * modules/fmodl-tests: New file.
40054         * tests/test-fmodl.c: New file.
40055         * tests/test-math-c++.cc: Check the declaration of fmodl.
40057         New module 'fmodl'.
40058         * lib/math.in.h (fmodl): New declaration.
40059         * lib/fmodl.c: New file.
40060         * m4/fmodl.m4: New file.
40061         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
40062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
40063         REPLACE_FMODL.
40064         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
40065         REPLACE_FMODL.
40066         * modules/fmodl: New file.
40067         * doc/posix-functions/fmodl.texi: Mention the new module.
40069 2012-02-25  Bruno Haible  <bruno@clisp.org>
40071         Tests for module 'modfl'.
40072         * modules/modfl-tests: New file.
40073         * tests/test-modfl.c: New file.
40074         * tests/test-math-c++.cc: Check the declaration of modfl.
40076         New module 'modfl'.
40077         * lib/math.in.h (modfl): New declaration.
40078         * lib/modfl.c: New file.
40079         * m4/modfl.m4: New file.
40080         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
40081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
40082         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
40083         * modules/modfl: New file.
40084         * doc/posix-functions/modfl.texi: Mention the new module.
40086 2012-02-25  Bruno Haible  <bruno@clisp.org>
40088         Tests for module 'fabsl'.
40089         * modules/fabsl-tests: New file.
40090         * tests/test-fabsl.c: New file.
40091         * tests/test-math-c++.cc: Check the declaration of fabsl.
40093         New module 'fabsl'.
40094         * lib/math.in.h (fabsl): New declaration.
40095         * lib/fabsl.c: New file.
40096         * m4/fabsl.m4: New file.
40097         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
40098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
40099         REPLACE_FABSL.
40100         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
40101         REPLACE_FABSL.
40102         * modules/fabsl: New file.
40103         * doc/posix-functions/fabsl.texi: Mention the new module.
40105 2012-02-25  Bruno Haible  <bruno@clisp.org>
40107         fabs tests: More tests.
40108         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
40109         (zero): New variable.
40110         (main): Add tests for signed zero.
40111         * modules/fabs-tests (Files): Add tests/minus-zero.h.
40113         fabsf tests: More tests.
40114         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
40115         (zero): New variable.
40116         (main): Add tests for signed zero.
40117         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
40119 2012-02-24  Bruno Haible  <bruno@clisp.org>
40121         atanl: Provide function definition on MSVC.
40122         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
40123         function pointer.
40124         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
40126 2012-02-24  Bruno Haible  <bruno@clisp.org>
40128         acosl: Provide function definition on MSVC.
40129         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
40130         function pointer.
40131         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
40133 2012-02-24  Bruno Haible  <bruno@clisp.org>
40135         asinl: Provide function definition on MSVC.
40136         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
40137         function pointer.
40138         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
40140 2012-02-24  Bruno Haible  <bruno@clisp.org>
40142         tanl: Provide function definition on MSVC.
40143         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
40144         function pointer.
40145         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
40147 2012-02-24  Bruno Haible  <bruno@clisp.org>
40149         cosl: Provide function definition on MSVC.
40150         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
40151         function pointer.
40152         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
40154 2012-02-24  Bruno Haible  <bruno@clisp.org>
40156         sinl: Provide function definition on MSVC.
40157         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
40158         function pointer.
40159         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
40161 2012-02-24  Bruno Haible  <bruno@clisp.org>
40163         logl: Provide function definition on MSVC.
40164         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
40165         function pointer.
40166         * lib/math.in.h (logl): Undefine if it does not exist as a function.
40168 2012-02-24  Bruno Haible  <bruno@clisp.org>
40170         expl: Provide function definition on MSVC.
40171         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
40172         function pointer.
40173         * lib/math.in.h (expl): Undefine if it does not exist as a function.
40175 2012-02-24  Bruno Haible  <bruno@clisp.org>
40177         sqrtl: Provide function definition on MSVC.
40178         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
40179         a function pointer.
40180         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
40182 2012-02-24  Bruno Haible  <bruno@clisp.org>
40184         ceill: Provide function definition on MSVC.
40185         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
40186         used as a function pointer.
40187         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
40189 2012-02-24  Bruno Haible  <bruno@clisp.org>
40191         floorl: Provide function definition on MSVC.
40192         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
40193         used as a function pointer.
40194         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
40196 2012-02-24  Bruno Haible  <bruno@clisp.org>
40198         ceilf: Provide function definition on MSVC.
40199         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
40200         used as a function pointer.
40201         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
40203 2012-02-24  Bruno Haible  <bruno@clisp.org>
40205         floorf: Provide function definition on MSVC.
40206         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
40207         used as a function pointer.
40208         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
40210 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40212         stdnoreturn: new module
40213         This implements a replacement for C11's <stdnoreturn.h>.
40214         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
40215         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
40216         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
40217         * tests/test-stdnoreturn.c: New files.
40219 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
40221         regex: fix false multibyte matches in some regular expressions
40222         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
40223         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
40224         * lib/regex_internal.c (re_string_skip_chars):
40225         Fix miscomputation of remain_len that may cause incomplete
40226         multi-byte character and false match.
40228 2012-02-24  Jim Meyering  <meyering@redhat.com>
40230         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
40231         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
40232         uses with "==" *before* the call, e.g., 0 == strcmp (...)
40233         Remove now-unnecessary str''cmp obfuscation.
40234         Suggested by Akim Demaille.
40236 2012-02-24  Bruno Haible  <bruno@clisp.org>
40238         streq: Rename macro.
40239         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
40240         * NEWS: Mention the change.
40241         * lib/mbrtowc.c (mbrtowc): Update.
40242         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
40243         * lib/wcwidth.c (wcwidth): Update.
40244         Suggested by Akim Demaille and Jim Meyering.
40246 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
40248         regex: fix typo in definition of MIN
40249         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
40250         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
40252 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
40253             Bruno Haible  <bruno@clisp.org>
40255         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
40256         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
40257         entries into a stack-allocated buffer directly.
40258         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
40260 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
40261             Bruno Haible  <bruno@clisp.org>
40263         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
40265          - There were several instances of this pattern:
40267              for (;;) {
40268                n = acl (f, GETACLCNT, 0, NULL);
40269                [ allocate an array A of size N ]
40270                if (acl (f, GETACL, n, a) == n)
40271                  break;
40272              }
40274            This loop might never terminate if some other process is constantly
40275            manipulating the file's ACL.  The loop should be rewritten to
40276            terminate.
40278          - The acl (... GETACLNT ...) call is merely an optimization; its value
40279            is merely a hint as to how big to make the array.  A better
40280            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
40281            and just guess a reasonably-big size, growing the size and trying
40282            again if it's not large enough.  This guarantees termination, and
40283            saves a system call.
40285         * lib/acl-internal.h: Include <limits.h>.
40286         (MIN, SIZE_MAX): New macros.
40287         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
40288         a stack-allocated buffer, and use malloc if it does not fit. Don't
40289         use GETACLCNT.
40290         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
40292 2012-02-19  Bruno Haible  <bruno@clisp.org>
40294         acl: Fix endless loop on Solaris with vxfs.
40295         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
40296         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
40297         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
40298         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
40299         * tests/test-sameacls.c (main)[Solaris]: Likewise.
40300         Reported by Bill Jones in
40301         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
40303 2012-02-19  Bruno Haible  <bruno@clisp.org>
40305         acl: Fix copy-acl test failure on Solaris 11.0.
40306         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
40307         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
40308         that this function returns 0 in some more cases.
40310 2012-02-19  Bruno Haible  <bruno@clisp.org>
40312         acl: Update doc references.
40313         * doc/acl-resources.txt: Update links to Solaris documentation.
40315 2012-02-19  Bruno Haible  <bruno@clisp.org>
40317         Fix test failure in many locales on Solaris 11.
40318         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
40319         'tr' arguments.
40320         * tests/test-pipe-filter-ii1.c (main): Likewise.
40321         * build-aux/bootstrap (check_versions): Run 'tr' command with range
40322         expressions in the C locale.
40323         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
40324         * m4/host-os.m4 (gl_HOST_OS): Likewise.
40326 2012-02-19  Bruno Haible  <bruno@clisp.org>
40328         gnulib-tool: Improve usage message.
40329         * gnulib-tool (func_usage): Move doc of --help and --version to the
40330         section "Operation modes".
40332 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
40334         README-release: make it easier to execute commands
40335         * top/README-release: break commands out on to separate lines.
40337 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
40339         GNUmakefile: simplify detection of unconfigured trees
40340         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
40341         whether the tree make is being run from is already configured or
40342         not.  Related simplifications.
40344 2012-02-13  Simon Josefsson  <simon@josefsson.org>
40346         * gnulib-tool (func_usage): Document --help and --version.
40348 2012-02-11  Jim Meyering  <meyering@redhat.com>
40350         bootstrap: don't exit 0 upon gnulib-tool failure
40351         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
40352         its exit status, not 0.
40354 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
40356         README-release: various improvements
40357         * top/README-release: Give a command to push changes for the
40358         release.  Add "distcheck" to list of other pre-release checks.
40359         Fix instance of "make stable" which should be "make TYPE".
40361 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40363         maint: replace FSF snail-mail addresses with URLs
40364         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
40365         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
40366         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
40367         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
40368         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
40369         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
40370         * lib/check-version.c, lib/check-version.h, lib/config.charset:
40371         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
40372         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
40373         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
40374         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
40375         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
40376         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
40377         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
40378         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
40379         * lib/glthread/thread.c, lib/glthread/thread.h:
40380         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
40381         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
40382         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
40383         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
40384         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
40385         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
40386         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
40387         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
40388         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
40389         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
40390         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
40391         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
40392         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
40393         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
40394         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
40395         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
40396         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
40397         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
40398         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
40399         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
40400         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
40401         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
40402         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
40403         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
40404         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
40405         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
40406         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
40407         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
40408         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
40409         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
40410         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
40411         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
40412         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
40413         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
40414         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
40415         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
40416         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
40417         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
40418         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
40419         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
40420         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
40421         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
40422         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
40423         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
40424         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
40425         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
40426         * tests/test-poll.c, tests/test-quotearg-simple.c:
40427         * tests/test-quotearg.c, tests/test-quotearg.h:
40428         * tests/test-round-ieee.c, tests/test-round1.c:
40429         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
40430         * tests/test-roundl-ieee.c, tests/test-roundl.c:
40431         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
40432         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
40433         * tests/test-strerror.c, tests/test-strerror_r.c:
40434         * tests/test-strsignal.c, tests/test-strverscmp.c:
40435         * tests/test-xmemdup0.c:
40436         Replace FSF snail mail addresses with URLs, as per GNU coding
40437         standards.  See glibc bug
40438         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
40440 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40442         README-release: capitalize a word and split a line
40443         * top/README-release: Fix punctuation and spacing.
40445 2012-02-08  Akim Demaille  <demaille@gostai.com>
40447         fatal-signal: use C prototypes (with explicit void).
40448         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40449         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
40451 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40453         regex: spelling fix
40454         * lib/regexec.c: spelling fix
40456         regex: rely on stdint.h for SIZE_MAX
40457         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
40459 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40461         regex: merge glibc changes
40463         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
40464         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
40465         (init_word_char): Work even if bitset words are not exactly 32 or
40466         64 bits wide.  Don't assume there are no padding bits.
40467         * lib/regex.c [_LIBC]: Do not include <config.h>.
40468         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
40469         and -Wtype-limits.
40470         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
40471         needless disagreement with glibc.  All uses changed.  Define it to
40472         1 only if _GNU_SOURCE, to match glibc.
40473         (_REG_RM_NAME): Remove; no longer needed, since the names in
40474         question are now all protected by __USE_GNU.
40475         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
40476         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
40477         * lib/regex_internal.h (MIN): New macro.
40479         2012-01-03 Ulrich Drepper <drepper@gmail.com>
40480         * lib/regcomp.c (init_word_char): Optimize regex a bit.
40482         2011-12-30 Jakub Jelinek <jakub@redhat.com>
40483         * lib/regex_internal.c (re_string_fetch_byte_case):
40484         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
40485         is miscompiled, and it turns out it is because of an incorrect
40486         attribute on re_string_fetch_byte_case.  Unlike
40487         re_string_peek_byte_case, this one is really not pure, it modifies
40488         memory (increments pstr->cur_idx), and with the pure attribute GCC
40489         assumed it doesn't and it cached the presumed value of
40490         regexp->cur_idx in a variable across the
40491          for (;; ++i)
40492            {
40493              if (i >= BRACKET_NAME_BUF_SIZE)
40494                return REG_EBRACK;
40495              if (token->type == OP_OPEN_CHAR_CLASS)
40496                ch = re_string_fetch_byte_case (regexp);
40497              else
40498                ch = re_string_fetch_byte (regexp);
40499              if (re_string_eoi(regexp))
40500                return REG_EBRACK;
40501              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
40502                break;
40503              elem->opr.name[i] = ch;
40504            }
40506         2011-11-29 Andreas Schwab <schwab@redhat.com>
40507         * lib/regcomp.c (build_equiv_class):
40508         Fix access after end of search string in regex matcher.
40510         2011-11-12 Ulrich Drepper <drepper@redhat.com>
40511         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
40513         2011-10-12 Ulrich Drepper <drepper@redhat.com>
40514         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
40516         2011-10-11 Ulrich Drepper <drepper@redhat.com>
40517         * lib/regcomp.c (parse_branch, parse_sub_exp):
40518         More regex memory leak fixes and tests.
40519         (parse_sub_exp, parse_bracket_exp):
40520         Fix memory leak for some invalid regular expressions.
40522         2011-05-28 Ulrich Drepper <drepper@gmail.com>
40523         * lib/regex_internal.c, lib/regexec.c:
40524         Fix unnecessary overallocation due to incomplete character.  When
40525         incomplete characters are found at the end of a string the code
40526         ran amok and allocated lots of memory.  Stricter limits are now in
40527         place.
40529         2011-05-20 Reuben Thomas <rrt@sc3d.org>
40530         * lib/regex.h: Update documentation.
40532         2011-05-16 Aharon Robbins <arnold@skeeve.com>
40533         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
40535         2010-05-05 Andreas Schwab <schwab@redhat.com>
40536         * lib/regexec.c (find_collation_sequence_value):
40537         Fix lookup of collation sequence value during regexp matching.
40539         2010-01-22 Ulrich Drepper <drepper@redhat.com>
40540         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
40542         2008-01-16 Ulrich Drepper <drepper@redhat.com>
40543         * lib/regex.h: Cleanup namespace.
40545         2007-11-26 Ulrich Drepper <drepper@redhat.com>
40546         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
40548         2007-08-26 Ulrich Drepper <drepper@redhat.com>
40549         * lib/regex_internal.h: Prevent some declarations and definitions
40550         to be seen when used in tests.
40552         2005-05-06 Ulrich Drepper <drepper@redhat.com>
40553         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
40554         __libc_lock_* macros if not _LIBC.
40555         (struct re_dfa_t): Add lock.
40557 2012-02-07  Eric Blake  <eblake@redhat.com>
40559         maint.mk: also prohibit lower-case @var@
40560         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
40561         lower case, like @top_srcdir@.
40563 2012-02-04  Eric Blake  <eblake@redhat.com>
40565         canonicalize: avoid uninitialized memory use
40566         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
40567         random '/' left in dest.
40568         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
40570 2012-02-04  Bruno Haible  <bruno@clisp.org>
40572         isatty: Fix test failure of ptsname_r on native Windows.
40573         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
40574         and don't set errno.
40575         (isatty): Test first whether fd is valid. Set errno when returning 0.
40577 2012-02-04  Bruno Haible  <bruno@clisp.org>
40579         spawn-pipe tests: Fix a NULL program name in a diagnostic.
40580         * tests/test-spawn-pipe-main.c: Include progname.h.
40581         (main): Invoke set_program_name.
40582         * modules/spawn-pipe-tests (Depends-on): Add progname.
40584         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
40585         * tests/test-nonblocking-socket-main.c: Include progname.h.
40586         (main): Invoke set_program_name.
40587         * modules/nonblocking-socket-tests (Depends-on): Add progname.
40589         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
40590         * tests/test-nonblocking-pipe-main.c: Include progname.h.
40591         (main): Invoke set_program_name.
40592         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
40594 2012-02-04  Eric Blake  <eblake@redhat.com>
40596         canonicalize-lgpl: fix // handling
40597         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
40599         canonicalize: fix // handling
40600         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
40601         /// to //, since only // is special.
40603 2012-02-04  Bruno Haible  <bruno@clisp.org>
40605         ioctl: Fix test failure on native Windows.
40606         * lib/ioctl.c: Include msvc-nothrow.h.
40607         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
40609 2012-02-04  Bruno Haible  <bruno@clisp.org>
40611         fsync: Avoid test failure on native Windows.
40612         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
40613         read-only.
40615 2012-02-04  Bruno Haible  <bruno@clisp.org>
40617         sys_select: Avoid syntax error on OpenBSD 5.0.
40618         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
40619         currently being included, just include the system's <sys/select.h>.
40621 2012-02-04  Bruno Haible  <bruno@clisp.org>
40623         sys_select: Avoid syntax error on OpenBSD 5.0.
40624         * lib/sys_select.in.h: Include <signal.h> only after the include_next
40625         <sys/select.h>, not before.
40626         Reported by Jiri B <jirib@devio.us>.
40628 2012-02-04  Bruno Haible  <bruno@clisp.org>
40630         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
40631         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
40632         global variables.
40633         * tests/test-get-rusage-data.c (main): Likewise.
40634         Reported by Jim Meyering.
40636 2012-02-04  Bruno Haible  <bruno@clisp.org>
40638         stdioext: Fix last commit.
40639         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
40641 2012-02-03  Bruno Haible  <bruno@clisp.org>
40643         stdioext: Add tentative support for Plan9.
40644         * lib/stdio-impl.h: Include <errno.h>.
40645         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
40646         * lib/freadable.c (freadable): Likewise.
40647         * lib/fwritable.c (fwritable): Likewise.
40648         * lib/fbufmode.c (fbufmode): Likewise.
40649         * lib/freading.c (freading): Likewise.
40650         * lib/fwriting.c (fwriting): Likewise.
40651         * lib/freadptr.c (freadptr): Likewise.
40652         * lib/freadseek.c (freadptrinc): Likewise.
40653         * lib/freadahead.c (freadahead): Likewise.
40654         * lib/fpurge.c (fpurge): Likewise.
40655         * lib/fseeko.c (rpl_fseeko): Likewise.
40656         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
40657         Reported by Jens Staal <staal1978@gmail.com>.
40659 2012-02-02  Jim Meyering  <meyering@redhat.com>
40661         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
40662         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
40663         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
40664         not even to try to add the attribute.  Instead, add a pragma to suppress
40665         the suggestion/warning.
40667 2012-01-31  Karl Berry  <karl@gnu.org>
40669         setstate doc: typo.
40670         * doc/posix-functions/setstate.texi (setstate): { not (.
40672 2012-01-31  Bruno Haible  <bruno@clisp.org>
40674         popen: Make more robust on Windows.
40675         * lib/popen.c: On native Windows, use the _popen based code even if
40676         HAVE_POPEN is set.
40677         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
40678         environment variable on native Windows.
40680 2012-01-30  Bruno Haible  <bruno@clisp.org>
40682         pclose: Fix typo.
40683         * lib/stdio.in.h (pclose): Fix typo in warning message.
40685 2012-01-30  Bruno Haible  <bruno@clisp.org>
40687         doc about getlogin_r, setstate.
40688         * doc/posix-functions/getlogin_r.texi: List the incompatible
40689         declaration problem under "not fixed by gnulib".
40690         * doc/posix-functions/setstate.texi: Mention incompatible declaration
40691         problem on Solaris 11 and other platforms.
40693 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
40694             Bruno Haible  <bruno@clisp.org>
40696         poll tests: Make test more robust.
40697         * tests/test-poll.c: Include macros.h.
40698         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
40699         return value of various I/O operations.
40700         * modules/poll-tests (Files): Add tests/macros.h.
40702 2012-01-30  Bruno Haible  <bruno@clisp.org>
40704         sys_stat: Fix support for mingw64 and MSVC.
40705         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
40706         header files already do it.
40707         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
40708         stat itself.
40709         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40711 2012-01-30  Bruno Haible  <bruno@clisp.org>
40713         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
40714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
40715         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
40717 2012-01-29  Bruno Haible  <bruno@clisp.org>
40719         quotearg: Fix test failure on MacOS X 10.5.
40720         * tests/test-quotearg-simple.c: Include localcharset.h.
40721         (main): If the locale encoding is not ASCII, bypass the tests of
40722         locale_quoting_style and clocale_quoting_style.
40723         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
40725 2012-01-29  Jim Meyering  <meyering@redhat.com>
40727         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
40728         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
40729         detect uses of canonicalize_file_name.
40731 2012-01-28  Bruno Haible  <bruno@clisp.org>
40733         test-framework-sh: Fix test failure with AIX 7.1 diff.
40734         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
40735         in column 1, like 'diff -c' does.
40736         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
40737         whether 'diff -u' is used. Instead, test whether the output contains
40738         some '@' character.
40740 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40742         strtoimax: eliminate need for stdint.h, inttypes.h checks
40743         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
40744         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
40745         the prerequisites for a recently-introduced strtoimax test.
40746         I guess this might cause strtoimax to be replaced when not
40747         strictly necessary on older hosts, but this shouldn't introduce
40748         any bugs and it should make Emacs 'configure' faster on typical
40749         modern hosts.  Problem discovered when importing the latest gnulib
40750         to an Emacs test version.
40751         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
40753 2012-01-28  Bruno Haible  <bruno@clisp.org>
40755         sys_time: Override 'struct timeval' on some native Windows platforms.
40756         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
40757         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
40758         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
40759         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
40760         needs to be overridden.
40761         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
40762         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
40763         * tests/test-sys_select.c: Check that the tv_sec member has the same
40764         size as a 'time_t'.
40765         * tests/test-sys_time.c: Likewise.
40766         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
40767         is set, set also REPLACE_GETTIMEOFDAY.
40768         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
40769         convert the resulting 'struct timeval' before returning.
40770         * lib/select.c: Include <sys/time.h>.
40771         (select, timeval): Undefine at the right place.
40772         * modules/select (Depends-on): Add sys_time.
40773         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
40774         some Windows platforms.
40775         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40777 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40779         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
40780         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
40781         an integer.
40782         * lib/fcntl.c (dupfd): Likewise.
40783         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
40785 2012-01-28  Bruno Haible  <bruno@clisp.org>
40787         fcntl: Avoid compilation error on native Windows.
40788         * modules/fcntl (Depends-on): Add 'close'.
40790 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40792         select, poll, isatty: Avoid warnings on x86_64 mingw64.
40793         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
40794         pointer to an integer.
40795         * lib/poll.c (IsConsoleHandle): Likewise.
40796         * lib/isatty.c (IsConsoleHandle): Likewise.
40798 2012-01-28  Jim Meyering  <meyering@redhat.com>
40800         doc: clarify README-release
40801         * top/README-release: Clarify: you should make a point to have
40802         the latest stable versions of build tools in your PATH, and the
40803         reference to buildreq is solely for its list of tool names, not
40804         for its minimal-functional version numbers.
40805         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
40807         maint.mk: use more readable (yet functionally equivalent) quoting
40808         It is common to quote a single quote in a single quoted string like
40809         this:  '...'\''...'.  Unless you know the idiom, that looks like
40810         gibberish, so prefer to double-quote the string when possible.
40811         Then you can use a more readable, lone single quote: "...'..."
40812         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
40813         "don't" is more readable than the equivalent 'don'\''t'.
40814         (sc_cast_of_x_alloc_return_value): Likewise.
40815         (sc_cast_of_alloca_return_value): Likewise.
40816         (sc_makefile_path_separator_check): Similar: use ":" in '...',
40817         rather than '\'':'\''.
40819 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40821         stdalign: relax _Alignof and tighten _Alignas test
40822         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
40823         as it was too strict: alignof must divide offsetof, but it need
40824         not equal offsetof.  Inspired by Joseph S. Myers's comment
40825         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
40826         Conversely, tighten the _Alignas test a bit, as the resulting
40827         alignment must be exactly 8.
40829 2012-01-27  Bruno Haible  <bruno@clisp.org>
40831         stdalign: Document the last change.
40832         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
40834 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40836         stdalign: check that alignof and offsetof are consistent
40837         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
40838         Problem reported for gnulib by Richard W.M. Jones in
40839         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
40841 2012-01-27  Jim Meyering  <meyering@redhat.com>
40843         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
40844         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
40845         convert a sequence with gaps to the minimal containing range.
40846         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
40847         * tests/test-update-copyright.sh: Test for this.
40848         The FSF confirmed it is ok to do this, assuming there is at
40849         least one significant change per year in the affected range:
40850         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
40852 2012-01-26  Bruno Haible  <bruno@clisp.org>
40854         pipe2: refine doc about thread-safety
40855         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
40856         multithread-safety problem.
40857         * doc/glibc-functions/accept4.texi: Likewise.
40859 2012-01-26  Bruno Haible  <bruno@clisp.org>
40861         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
40862         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
40863         In the test program, include <fcntl.h>, for O_RDONLY.
40865 2012-01-26  Eric Blake  <eblake@redhat.com>
40867         pipe2: document lack of thread-safety in replacement
40868         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
40869         issue in replacement.
40870         * doc/glibc-functions/accept4.texi (accept4): Likewise.
40871         Based on a report by Eric Wong.
40873 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40874             Bruno Haible  <bruno@clisp.org>
40876         malloca: Avoid warnings on x86_64 mingw64.
40877         * lib/malloca.c: Include <stdint.h>.
40878         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
40879         * modules/malloca (Depends-on): Add stdint.
40880         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
40882 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40884         obstack: remove __STDC__ conditionals
40885         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
40886         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
40887         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
40888         m4/include_next.m4 as the only gnulib-maintained places that still
40889         refer to __STDC__.
40891 2012-01-24  Bruno Haible  <bruno@clisp.org>
40893         havelib: Modern quoting.
40894         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40895         the recent change to the GNU coding standards.
40897 2012-01-24  Bruno Haible  <bruno@clisp.org>
40899         stdint: Improve support for Android.
40900         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40901         Reported by Simon Josefsson <simon@josefsson.org>.
40903 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40905         doc: omit trailing empty lines from INSTALL etc.
40906         * doc/Makefile (INSTALL): Omit trailing empty lines.
40907         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40908         omit trailing empty lines.  This simplifies the build procedure.
40910 2012-01-23  Jim Meyering  <meyering@redhat.com>
40912         tests: avoid spurious warnings about gl_sockets_startup
40913         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40914         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40915         reporting a "statement with no effect".
40916         * tests/test-accept.c (main): Mark as "(void)".
40917         * tests/test-accept4.c (main): Likewise.
40918         * tests/test-bind.c (main): Likewise.
40919         * tests/test-connect.c (main): Likewise.
40920         * tests/test-getpeername.c (main): Likewise.
40921         * tests/test-getsockname.c (main): Likewise.
40922         * tests/test-getsockopt.c (main): Likewise.
40923         * tests/test-listen.c (main): Likewise.
40924         * tests/test-recv.c (main): Likewise.
40925         * tests/test-recvfrom.c (main): Likewise.
40926         * tests/test-send.c (main): Likewise.
40927         * tests/test-sendto.c (main): Likewise.
40928         * tests/test-setsockopt.c (main): Likewise.
40929         * tests/test-shutdown.c (main): Likewise.
40931 2012-01-21  Bruno Haible  <bruno@clisp.org>
40933         locale-fr.m4: Fix for Android.
40934         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40935         failure of the test program on Bionic libc.
40937 2012-01-21  Jim Meyering  <meyering@redhat.com>
40939         bootstrap: fail when bootstrap_post_import_hook fails
40940         Otherwise, it's far too easy to miss diagnostics emitted
40941         between gnulib-tool's output and that of running configure.
40942         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40944 2012-01-17  Jim Meyering  <meyering@redhat.com>
40946         maint: enable sc_trailing_blank
40947         * build-aux/pmccabe.css: Remove trailing blanks.
40948         * doc/acl-cygwin.txt: Likewise.
40949         * doc/gnu-oids.texi: Likewise
40950         * cfg.mk: Enable sc_trailing_blank.
40951         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40953 2012-01-17  Jim Meyering  <meyering@redhat.com>
40955         maint: enable sc_prohibit_openat_without_use
40956         * cfg.mk: Enable sc_prohibit_openat_without_use.
40957         Exempt lib/selinux-at.c.
40959 2012-01-17  Jim Meyering  <meyering@redhat.com>
40961         maint: enable sc_prohibit_cloexec_without_use
40962         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40963         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40965 2012-01-17  Jim Meyering  <meyering@redhat.com>
40967         maint: enable sc_prohibit_intprops_without_use
40968         * cfg.mk: Enable sc_prohibit_intprops_without_use
40969         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40971 2012-01-17  Jim Meyering  <meyering@redhat.com>
40973         maint: enable sc_prohibit_hash_pjw_without_use
40974         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40975         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40976         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40977         following " (".
40979 2012-01-17  Jim Meyering  <meyering@redhat.com>
40981         maint: enable double-word-prohibiting rule
40982         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40983         Exempt three files.
40985 2012-01-17  Jim Meyering  <meyering@redhat.com>
40987         maint: remove empty lines at EOF, but excluding modules/*
40988         Apply syntax rules at home as well as abroad.  Most changes
40989         were induced by running this:
40990           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40991             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40992             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40993         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40994         Exempt modules/* and two binary files.
40995         Also exempt doc/INSTALL*, per request from Bruno Haible.
40996         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40997         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40998         * doc/Copyright/request-assign.future: Likewise.
40999         * doc/Copyright/request-disclaim.changes: Likewise.
41000         * doc/INSTALL: Likewise.
41001         * doc/INSTALL.ISO: Likewise.
41002         * doc/INSTALL.UTF-8: Likewise.
41003         * doc/acl-cygwin.txt: Likewise.
41004         * doc/acl-resources.txt: Likewise.
41005         * doc/fdl-1.2.texi: Likewise.
41006         * doc/fdl-1.3.texi: Likewise.
41007         * doc/fdl.texi: Likewise.
41008         * lib/argp-pin.c: Likewise.
41009         * lib/round.c: Likewise.
41010         * lib/unicase/u16-totitle.c: Likewise.
41011         * lib/unictype/block_test.c: Likewise.
41012         * lib/uninorm/canonical-decomposition.c: Likewise.
41013         * m4/README: Likewise.
41014         * m4/relocatable-lib.m4: Likewise.
41015         * tests/test-isnand-nolibm.c: Likewise.
41016         * tests/test-isnand.c: Likewise.
41017         * tests/uninorm/NormalizationTest.txt: Likewise.
41019 2012-01-17  Jim Meyering  <meyering@redhat.com>
41021         maint: add framework to run syntax-check rules against gnulib sources
41022         * cfg.mk: New file, to disable all currently-failing tests.
41023         We'll enable them one by one, as they are made to pass.
41024         * Makefile (sc_maint): New rule.
41026 2012-01-21  Bruno Haible  <bruno@clisp.org>
41028         stdint: Add support for Android.
41029         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
41030         include the system's <stdint.h>.
41031         Reported by Simon Josefsson <simon@josefsson.org>.
41033 2012-01-19  Jim Meyering  <meyering@redhat.com>
41035         bootstrap: add bootstrap_post_import_hook
41036         Bison does still need something like the gnulib_mk_hook whose
41037         invocation I had to remove along with slurp in commit 767ccd40.
41038         Technically, we could get along without it, but doing so would
41039         have required living with a warning and a mandatory post-bootstrap
41040         automake rerun.
41041         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
41042         (bootstrap_post_import_hook): New function.
41043         Invoke it after gnulib-tool --import and before autoreconf.
41045 2012-01-18  Jim Meyering  <meyering@redhat.com>
41047         gitlog-to-changelog: don't use "no_"-prefixed variable name
41048         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
41049         to enable both --cluster and --no-cluster.  Change variable name,
41050         s/\$no_cluster/$cluster/, and reverse usage to match.
41052         gitlog-to-changelog: use "||", not "or" in expressions
41053         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
41054         expressions.
41056 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
41058         gitlog-to-changelog: new option --no-cluster
41059         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
41060         clustering of adjacent commit messages.
41062 2012-01-17  Jim Meyering  <meyering@redhat.com>
41064         maint: spell file systems with two words, not one
41065         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
41066         two words, not one.
41068 2012-01-16  Jim Meyering  <meyering@redhat.com>
41070         bootstrap: add a FIXME comment to ensure we eventually remove the hack
41071         * build-aux/bootstrap (gnulib_tool_options): Add comment.
41073 2012-01-16  Eric Blake  <eblake@redhat.com>
41075         bootstrap: cater to autoconf 2.59
41076         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
41077         is not available.
41079         bootstrap: properly check for libtool
41080         * build-aux/bootstrap (libtoolize): Also run libtool when older
41081         usage is detected.
41083 2012-01-15  Bruno Haible  <bruno@clisp.org>
41085         Improve support for MSVC 9.
41086         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
41087         clashes on MSVC.
41088         * lib/fcntl.in.h: Likewise.
41089         * lib/stdlib.in.h: Likewise.
41090         * lib/sys_stat.in.h: Likewise.
41092 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
41094         gnupload: we hold the master copy of this script now
41095         For motivation and more information, see:
41096         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
41097         * build-aux/gnupload: Make it clear in the heading comments that the
41098         master copy of this file is maintained by gnulib.  Since we are at
41099         it, bump its copyright year and ...
41100         ($scriptversion): ... the date in its version.
41101         ($usage): Patches and bug reports should be sent to the gnulib list,
41102         not the automake one.
41103         * config/srclist.txt: Don't try to sync 'gnupload' from automake
41104         anymore.
41106 2012-01-15  Bruno Haible  <bruno@clisp.org>
41108         Fix module 'random'.
41109         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
41110         initstate, setstate are declared.
41112 2012-01-14  Bruno Haible  <bruno@clisp.org>
41114         Tests for module 'random'.
41115         * modules/random-tests: New file.
41116         * tests/test-random.c: New file, based on tests/test-random_r.c.
41118         New module 'random'.
41119         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
41120         declarations.
41121         * lib/random.c: New file, based on glibc/stdlib/random.c.
41122         * m4/random.m4: New file.
41123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
41124         HAVE_RANDOM.
41125         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
41126         * modules/random: New file.
41127         * config/srclist.txt: Add an entry for random.c.
41128         * doc/posix-functions/random.texi: Mention the 'random' module.
41129         * doc/posix-functions/initstate.texi: Likewise.
41130         * doc/posix-functions/setstate.texi: Likewise.
41131         * doc/posix-functions/srandom.texi: Likewise.
41133 2012-01-12  Bruno Haible  <bruno@clisp.org>
41135         random_r: Use common idioms.
41136         * lib/random_r.c: Include <stdlib.h> first.
41138         random_r: Override incompatible API on AIX, OSF/1.
41139         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
41140         Override the system function if REPLACE_RANDOM_R is 1.
41141         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
41142         and OSF/1, set REPLACE_RANDOM_R.
41143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
41144         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
41145         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
41146         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
41147         * doc/glibc-functions/random_r.texi: Likewise.
41148         * doc/glibc-functions/setstate_r.texi: Likewise.
41150         random_r: Support for MSVC 9.
41151         * lib/random_r.c: Include stdint.h, not inttypes.h.
41153 2012-01-12  Eric Blake  <eblake@redhat.com>
41155         inet_ntop: guard extra work by IF_LINT
41156         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
41157         better code generation when not checking for warnings.
41158         Suggested by Paul Eggert and Jim Meyering.
41160         strptime: fix regression on mingw
41161         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
41162         Fix regression.  Reported by Bruno Haible.
41164 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
41165             Bruno Haible  <bruno@clisp.org>
41167         copy-file: add error-code-returning variant.
41168         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
41169         (qcopy_file_preserving): New declaration.
41170         * lib/copy-file.c (qcopy_file_preserving): Renamed from
41171         copy_file_preserving. Change return type to 'int'. Don't emit an error
41172         message here.
41173         (copy_file_preserving): New function.
41174         * tests/test-copy-file.c: Include <stdlib.h>.
41175         (main): Test qcopy_file_preserving if the environment variable
41176         NO_STDERR_OUTPUT is set.
41177         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
41178         with NO_STDERR_OUTPUT
41179         * tests/test-copy-file-2.sh: Likewise.
41181 2012-01-10  Bruno Haible  <bruno@clisp.org>
41183         copy-file: Use 'quote' module consistently.
41184         * lib/copy-file.c (copy_file_preserving): Use quote().
41186         copy-file: Refactor.
41187         * lib/copy-file.c: Include quote.h.
41188         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
41189         message here.
41190         * modules/copy-file (Depends-on): Add quote.
41192         acl: Export qcopy_acl.
41193         * lib/acl.h (qcopy_acl): New declaration.
41194         * lib/copy-acl.c (qcopy_acl): Make non-static.
41196         acl: Rename a local variable.
41197         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
41199         acl: Align return values of copy_acl and qcopy_acl.
41200         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
41201         maybe < -1.
41203 2012-01-11  Eric Blake  <eblake@redhat.com>
41205         strptime: silence gcc warnings
41206         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
41207         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
41208         Reported by Daniel P. Berrange.
41210         inet_ntop: silence gcc warning
41211         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
41212         Reported by Daniel P. Berrange.
41214 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
41216         getloadavg test: skip the test on GNU/Linux without /proc mounted
41217         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
41218         file.  When /proc is not mounted, it always fails with ENOENT.
41219         * tests/test-getloadavg.c (main): Treat ENOENT return code from
41220         getloadavg(3) the same way as ENOSYS and ENOTSUP.
41222 2012-01-10  Bruno Haible  <bruno@clisp.org>
41224         regex: Avoid link error on MSVC 9.
41225         * modules/regex (Depends-on): Add wctype.
41227 2012-01-10  Bruno Haible  <bruno@clisp.org>
41229         doc: Mention --with-tests option.
41230         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
41231         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
41232         --with-tests.
41233         Reported by Reuben Thomas.
41235 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
41237         users.txt: order package names lexicographically.
41238         * users.txt: Order package names lexicographically.
41240 2012-01-10  Jim Meyering  <meyering@redhat.com>
41242         maint.mk: fix description in comment
41243         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
41245         ignore-value: remove deprecated ignore_ptr function
41246         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
41247         * NEWS: Note this.
41249 2012-01-09  Jim Meyering  <meyering@redhat.com>
41251         test-init.sh: avoid a subshell
41252         * tests/test-init.sh: Remove protective subshell.
41253         Suggested by Bernhard Voelker.  While a subshell is normally
41254         required to protect against older shells (Solaris, FreeBSD) that
41255         warn about a missing program before performing redirection, the
41256         shell-selection tests performed by init.sh probably exclude any
41257         offending shell.
41259 2012-01-08  Bruno Haible  <bruno@clisp.org>
41261         setlocale tests: Avoid test failure on Solaris 11.0.
41262         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
41263         variable.
41265 2012-01-08  Bruno Haible  <bruno@clisp.org>
41267         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
41268         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
41269         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
41270         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
41271         macro.
41272         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
41273         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
41274         * lib/spawn_faction_addopen.c: Add workaround implementation if
41275         HAVE_WORKING_POSIX_SPAWN.
41276         * modules/spawn (Makefile): Substitute
41277         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
41278         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
41279         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
41280         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
41281         (Depends-on): Update conditions.
41282         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41283         the Solaris 11 bug.
41285 2012-01-08  Bruno Haible  <bruno@clisp.org>
41287         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
41288         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
41289         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
41290         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
41291         macro.
41292         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
41293         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
41294         * lib/spawn_faction_adddup2.c: Add workaround implementation if
41295         HAVE_WORKING_POSIX_SPAWN.
41296         * modules/spawn (Makefile): Substitute
41297         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
41298         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
41299         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
41300         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
41301         (Depends-on): Update conditions.
41302         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41303         the Solaris 11 bug.
41305 2012-01-08  Bruno Haible  <bruno@clisp.org>
41307         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
41308         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
41309         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
41310         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
41311         HAVE_WORKING_POSIX_SPAWN.
41312         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
41313         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
41314         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
41315         * lib/spawn_faction_addclose.c: Add workaround implementation if
41316         HAVE_WORKING_POSIX_SPAWN.
41317         * modules/spawn (Makefile): Substitute
41318         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
41319         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
41320         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
41321         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
41322         (Depends-on): Update conditions.
41323         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41324         the Solaris 11 bug.
41326 2012-01-08  Bruno Haible  <bruno@clisp.org>
41328         doc: Update for Solaris 11.0.
41329         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
41330         * m4/printf.m4: Update comments.
41332 2012-01-08  Bruno Haible  <bruno@clisp.org>
41334         mktime: Avoid compilation error on Solaris 11.
41335         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
41337 2012-01-08  Bruno Haible  <bruno@clisp.org>
41339         doc: Small fix.
41340         * doc/posix-headers/nl_types.texi: Correct platforms list.
41342 2012-01-08  Simon Josefsson  <simon@josefsson.org>
41344         Add lgpl-3.0 module.
41345         * MODULES.html.sh (Support for building documentation): Add
41346         lgpl-3.0.
41347         * modules/lgpl-3.0: New file.
41349 2012-01-08  Jim Meyering  <meyering@redhat.com>
41351         select.c: indent with spaces, not TABs
41352         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
41354 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
41356         quotearg: do not use grave accent for left quote
41357         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
41358         locale_quoting_style.
41359         (quotearg_buffer_restyled): Fix example.
41360         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
41362 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
41364         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
41365         Most programs do not have translation catalogs for English and much
41366         less separate catalogs for British and American English.  Drop the
41367         suggestion to translators about these two, and provide it
41368         automatically for Unicode locales.  Like most programs, even those
41369         using American English, we use single quotation marks.  This conflicts
41370         with the American typographic convention, but works better when you
41371         cite the entire error message within double quotes.  It also tries not
41372         to clash with established practice and with what non-gnulib programs
41373         will usually do.
41374         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
41375         using an UTF-8 or GB-18030 locale.  The list of other locales with
41376         quotes was provided by Bruno Haible.
41377         (quotearg_buffer_restyled): Adjust instructions to translators.
41378         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
41379         text, since this would be wrong when using Unicode.
41380         * modules/quotearg: Depend on c-strcaseeq.
41382 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
41384         quotearg: fix Wikipedia link
41385         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
41387 2012-01-07  Simon Josefsson  <simon@josefsson.org>
41389         Fix for mingw with MSVC9.
41390         * m4/ld-version-script.m4: Check that compiler rejects version
41391         scripts with syntax errors.  Reported by Bruno Haible
41392         <bruno@clisp.org>.
41394 2012-01-06  Bruno Haible  <bruno@clisp.org>
41396         Talk about "native Windows API", not "Woe32".
41397         * lib/accept4.c: Update comments to mention native Windows.
41398         * lib/execute.c: Likewise.
41399         * lib/fatal-signal.c: Likewise.
41400         * lib/localcharset.c: Likewise.
41401         * lib/nanosleep.c: Likewise.
41402         * lib/nl_langinfo.c: Likewise.
41403         * lib/pclose.c: Likewise.
41404         * lib/pipe-filter-gi.c: Likewise.
41405         * lib/pipe-filter-ii.c: Likewise.
41406         * lib/pipe.c: Likewise.
41407         * lib/pipe2.c: Likewise.
41408         * lib/popen.c: Likewise.
41409         * lib/progreloc.c: Likewise.
41410         * lib/relocatable.c: Likewise.
41411         * lib/sigaction.c: Likewise.
41412         * lib/sigprocmask.c: Likewise.
41413         * lib/spawn-pipe.h: Likewise.
41414         * lib/spawn-pipe.c: Likewise.
41415         * lib/spawni.c: Likewise.
41416         * lib/stat-time.h: Likewise.
41417         * lib/w32spawn.h: Likewise.
41418         * tests/test-isatty.c: Likewise.
41419         * lib/config.charset: More comments.
41420         * doc/gnulib-intro.texi: Mention native Windows.
41421         * doc/posix-functions/_Exit_C99.texi: Likewise.
41422         * doc/posix-headers/fcntl.texi: Likewise.
41424 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
41426         argp: Avoid crash if translator uses % characters in a translation.
41427         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
41428         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41430 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
41432         doc: C11 and C++11 are now official
41433         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
41434         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
41435         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
41436         * modules/stdalign:
41437         Replace references to draft C1X to C11, and to draft C++0X to C++11.
41439 2012-01-06  Bruno Haible  <bruno@clisp.org>
41441         uc-is-grapheme-break tests: Tweak.
41442         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
41443         message.
41445 2012-01-06  Bruno Haible  <bruno@clisp.org>
41447         test-init.sh: correct the test for diff -u
41448         * tests/test-init.sh: Also redirect stdout to /dev/null.
41450 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41452         Use ', not `, for quoting output.
41453         * build-aux/announce-gen (usage, sizes, print_news_deltas)
41454         (print_changelog_deltas, get_tool_versions, main program):
41455         * build-aux/git-version-gen:
41456         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
41457         * build-aux/move-if-change (help):
41458         * build-aux/useless-if-before-free (usage, main program):
41459         * check-module (parse_module_file, usage)
41460         (find_included_lib_files, check_module):
41461         * lib/argmatch.c (main) [TEST]:
41462         * lib/argp-help.c (_help):
41463         * lib/getopt1.c (main) [TEST]:
41464         * lib/git-merge-changelog.c (usage):
41465         * lib/xstrtol-error.c (xstrtol_error):
41466         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
41467         * m4/argz.m4 (gl_FUNC_ARGZ):
41468         * m4/bison.m4 (gl_BISON):
41469         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
41470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
41471         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41472         * m4/fpending.m4 (gl_PREREQ_FPENDING):
41473         * m4/gc-random.m4 (gl_GC_RANDOM):
41474         * m4/intl.m4 (gt_CHECK_DECL):
41475         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
41476         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
41477         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
41478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
41479         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
41480         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
41481         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
41482         * tests/test-dirname.c (main):
41483         * tests/test-getpass.c (main):
41484         * tests/test-iconvme.c (main):
41485         * tests/test-parse-datetime.c (LOG):
41486         * tests/test-xstrtoimax.sh:
41487         * tests/test-xstrtol.sh:
41488         * tests/test-xstrtoll.sh:
41489         * tests/test-xstrtoumax.sh:
41490         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
41491         * top/GNUmakefile (abort-due-to-no-makefile):
41492         Quote 'like this', not `like this', as per the recent change to
41493         the GNU coding standards.
41495 2012-01-05  Bruno Haible  <bruno@clisp.org>
41497         strtoimax: Don't force a replacement on systems where intmax_t is int.
41498         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
41499         'intmax_t' is not larger than 'int'.
41500         Reported by Pádraig Brady <P@draigBrady.com>.
41502 2012-01-05  Bruno Haible  <bruno@clisp.org>
41504         doc: Mention NetBSD bugs.
41505         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
41506         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
41508 2012-01-05  Bruno Haible  <bruno@clisp.org>
41510         strtoumax tests: Enhance tests.
41511         * tests/test-strtoumax.c (main): Add tests for large values.
41513 2012-01-05  Bruno Haible  <bruno@clisp.org>
41515         strtoimax: Work around AIX 5.1 bug.
41516         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
41517         definition.
41518         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
41519         Set HAVE_STRTOIMAX.
41520         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
41521         REPLACE_STRTOIMAX.
41522         * modules/inttypes-incomplete (Makefile.am): Substitute
41523         REPLACE_STRTOIMAX.
41524         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
41525         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
41526         (Depends-on): Update conditions.
41527         * tests/test-strtoimax.c (main): Add tests for large values.
41528         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
41530 2012-01-05  Bruno Haible  <bruno@clisp.org>
41532         inttypes: Modernize.
41533         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
41534         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
41535         (Makefile.am): Update inttypes.h rule.
41537 2012-01-05  Jim Meyering  <meyering@redhat.com>
41539         init.sh: don't waste a subshell just to redirect stderr
41540         * tests/init.sh: In testing for diff -u and diff -c, use a
41541         stderr-redirecting exec inside `...` rather than a subshell.
41543         test-init.sh: avoid failure on HP-UX 11.00
41544         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
41545         resolves to diff -c or cmp.  Reported by Bruno Haible.
41547 2012-01-05  Bruno Haible  <bruno@clisp.org>
41549         Tests for module 'strtoull'.
41550         * modules/strtoull-tests: New file.
41551         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
41553 2012-01-05  Bruno Haible  <bruno@clisp.org>
41555         Tests for module 'strtoll'.
41556         * modules/strtoll-tests: New file.
41557         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
41559 2012-01-05  Bruno Haible  <bruno@clisp.org>
41561         Tests for module 'strtoul'.
41562         * modules/strtoul-tests: New file.
41563         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
41565 2012-01-05  Bruno Haible  <bruno@clisp.org>
41567         Tests for module 'strtol'.
41568         * modules/strtol-tests: New file.
41569         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
41571 2012-01-04  Jim Meyering  <meyering@redhat.com>
41573         test-init.sh: accommodate Solaris 5.10's different diff -u output
41574         * tests/test-init.sh: Also exempt @@ lines from the comparison
41575         of diff output, since Solaris 5.10 and GNU diff formats differ.
41576         Reported by Stefano Lattarini.
41578 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41580         test-posixtm: don't assume signed integer wraparound
41581         * tests/test-posixtm.c (main): Don't assume wraparound semantics
41582         after signed integer overflow.  Inspired by (though it may not
41583         fix) Bruno Haible's bug report in
41584         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
41586         Spell out "Windows 9x" and "Windows XP".
41587         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
41588         "Windows 9x" and "WinXP" with "Windows XP".
41590 2012-01-04  Jim Meyering  <meyering@redhat.com>
41592         test-vc-list-files-cvs.sh: remove obsolete comment
41593         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
41594         double exit.  Now that's all encapsulated via skip_ and Exit.
41596 2012-01-04  Bruno Haible  <bruno@clisp.org>
41598         Talk about "native Windows API", not "Win32".
41599         * lib/classpath.c: Update comments to mention native Windows.
41600         * lib/csharpexec.c: Likewise.
41601         * lib/dup2.c: Likewise.
41602         * lib/error.c: Likewise.
41603         * lib/fcntl.c: Likewise.
41604         * lib/filename.h: Likewise.
41605         * lib/findprog.c: Likewise.
41606         * lib/get-rusage-as.c: Likewise.
41607         * lib/get-rusage-data.c: Likewise.
41608         * lib/getpagesize.c: Likewise.
41609         * lib/javaexec.c: Likewise.
41610         * lib/msvc-inval.c: Likewise.
41611         * lib/msvc-nothrow.c: Likewise.
41612         * lib/nanosleep.c: Likewise.
41613         * lib/nonblocking.c: Likewise.
41614         * lib/printf-parse.c: Likewise.
41615         * lib/setlocale.c: Likewise.
41616         * lib/sigaction.c: Likewise.
41617         * lib/strerror_r.c: Likewise.
41618         * lib/tmpdir.c: Likewise.
41619         * lib/vasnprintf.c: Likewise.
41620         * lib/w32spawn.h: Likewise.
41621         * lib/waitpid.c: Likewise.
41622         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
41623         * m4/locale-ar.m4: Likewise.
41624         * m4/locale-fr.m4: Likewise.
41625         * m4/locale-ja.m4: Likewise.
41626         * m4/locale-tr.m4: Likewise.
41627         * m4/locale-zh.m4: Likewise.
41628         * m4/printf.m4: Likewise.
41629         * tests/test-cloexec.c: Likewise.
41630         * tests/test-copy-acl.sh: Likewise.
41631         * tests/test-copy-file.sh: Likewise.
41632         * tests/test-file-has-acl.sh: Likewise.
41633         * tests/test-set-mode-acl.sh: Likewise.
41634         * tests/test-dup-safer.c: Likewise.
41635         * tests/test-dup2.c: Likewise.
41636         * tests/test-dup3.c: Likewise.
41637         * tests/test-fcntl.c: Likewise.
41638         * tests/test-nonblocking-pipe.h: Likewise.
41639         * tests/test-nonblocking-socket.h: Likewise.
41640         * tests/test-pipe.c: Likewise.
41641         * tests/test-pipe2.c: Likewise.
41642         * tests/test-spawn-pipe-child.c: Likewise.
41643         * doc/acl-resources.txt: Likewise.
41644         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41645         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
41646         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
41647         * lib/localcharset.c: Update comments to mention native Windows.
41648         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41649         * lib/localename.c: Likewise.
41650         * lib/progreloc.c: Likewise.
41651         * lib/relocatable.c: Likewise.
41652         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41653         (windows_compute_revents): Renamed from win32_compute_revents.
41654         (windows_compute_revents_socket): Renamed from
41655         win32_compute_revents_socket.
41656         * lib/select.c: Update comments to mention native Windows.
41657         (windows_poll_handle): Renamed from win32_poll_handle.
41658         * m4/threadlib.m4: Update comments to mention native Windows.
41659         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
41660         --enable-threads=windows instead of --enable-threads=win32. Set
41661         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
41662         * lib/glthread/lock.h: Update comments to mention native Windows.
41663         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
41664         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
41665         USE_WIN32_THREADS.
41666         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
41667         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
41668         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
41669         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
41670         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
41671         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
41672         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
41673         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
41674         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
41675         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
41676         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
41677         * tests/test-tls.c: Likewise.
41678         Rationale:
41679         Microsoft renamed the "Win32 API" to "Windows API", as it is available
41680         on both 32-bit and 64-bit Windows systems.
41681         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
41682         line of distinction is between "native Windows" on one side and Unix/
41683         POSIX systems on the other side. More details in
41684         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
41685         Suggested by Paul Eggert.
41687 2012-01-03  Bruno Haible  <bruno@clisp.org>
41689         isatty: Support for MSVC 9.
41690         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
41691         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
41692         (_isatty_nothrow): New function.
41693         (isatty): Use it instead of _isatty.
41694         (IsConsoleHandle): Add comment, from Paolo Bonzini.
41695         * lib/poll.c (IsConsoleHandle): Likewise.
41696         * lib/select.c (IsConsoleHandle): Likewise.
41697         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
41698         (gl_PREREQ_ISATTY): New macro.
41699         * modules/isatty (Depends-on): Add msvc-inval.
41700         (configure.ac): Invoke gl_PREREQ_ISATTY.
41702 2012-01-03  Jim Meyering  <meyering@redhat.com>
41704         maint.mk: remove temporary transition aid from over 1.5 years ago
41705         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
41706         purpose was to aid in the transition (avoiding silent malfunction)
41707         from that old name to the new _sc_search_regexp.  This shim was
41708         added by commit 219c504b.
41710         init.sh: do not try to accommodate compare arguments starting with "-"
41711         * tests/init.sh (compare_dev_null_): Do not try to accommodate
41712         compare arguments that start with "-".  Besides, we do not worry
41713         about this when invoking diff or cmp; why start now with sed?
41714         Using "--" to separate options from argument would trigger sed
41715         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
41716         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
41718 2012-01-02  Bruno Haible  <bruno@clisp.org>
41720         Enhance tests for module 'isatty'.
41721         * modules/isatty-tests (Depends-on): Add pipe-posix.
41722         * tests/test-isatty.c: Include <fcntl.h>.
41723         (DEV_NULL): New macro.
41724         (main): Test the resut of isatty() also on regular files, pipes, and
41725         /dev/null.
41727         New module 'isatty'.
41728         * lib/unistd.in.h (isatty): New declaration.
41729         * lib/isatty.c: New file, based on an idea of
41730         Bastien Roucariès <roucaries.bastien@gmail.com>.
41731         * m4/isatty.m4: New file.
41732         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
41733         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
41734         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
41735         REPLACE_ISATTY.
41736         * modules/isatty: New file.
41737         * doc/posix-functions/isatty.texi: Mention the new module.
41738         Suggested by Paolo Bonzini.
41740 2012-01-02  Bruno Haible  <bruno@clisp.org>
41742         canonicalize: Tweak 2011-12-29 commit.
41743         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
41744         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
41746 2012-01-02  Jim Meyering  <meyering@redhat.com>
41748         gitlog-to-changelog: describe input syntax in --help output
41749         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
41751         gitlog-to-changelog: fix typo in --help: show backslash before email @
41752         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
41753         in sources, but not in actual output.
41755 2011-12-30  Jim Meyering  <meyering@redhat.com>
41757         gitlog-to-changelog: don't malfunction when name contains %-directive
41758         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
41759         in a name string cause trouble.  E.g., with a user name of "%s",
41760         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
41762 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
41764         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
41765         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
41766         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
41767         the "  (tiny change)" notation that is appended to the standard
41768         ChangeLog "date  name  email" header line.
41770 2012-01-01  Jim Meyering  <meyering@redhat.com>
41772         test-framework-sh: init.sh: fix "make dist" failure
41773         When using gnulib-tool's --with-tests option and any module that
41774         depends on test-framework-sh, "make dist" would fail due to the
41775         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
41776         in the gltests directory, and not in the gllib/ directory.
41777         One way to work around that is to move the EXTRA_DIST += init.sh
41778         from the primary module to the -tests one:
41779         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
41780         * modules/test-framework-sh (Makefile.am): ...not here.
41781         Reported by Tom G. Christensen in
41782         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
41784         version-etc: update copyright year reported by --version
41785         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
41787 2011-12-31  Pádraig Brady  <P@draigBrady.com>
41789         canonicalize: only stat() if required
41790         * lib/canonicalize.c (canonicalize_filename_mode):
41791         Avoid calling l?stat() when both CAN_MISSING,
41792         and CAN_NOLINKS are set, as we neither need
41793         to resolve symlinks or test component existence.
41795 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
41797         doc: cover st_ino issues once; add OpenVMS etc.
41798         * doc/posix-functions/stat.texi (stat):
41799         * doc/posix-functions/lstat.texi (lstat):
41800         * doc/posix-functions/fstatat.texi (fstatat):
41801         * doc/posix-functions/fstat.texi (fstat):
41802         Move general 'struct stat' stuff to sys_stat.texi,
41803         leaving behind a pointer.
41804         * doc/posix-headers/sys_stat.texi (sys/stat.h):
41805         Merge duplicate info about 'struct stat' problems into here.
41806         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
41807         and suggest partial workarounds.
41809         same-inode: port to OpenVMS
41810         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
41811         three st_ino values.
41813 2011-12-30  Pádraig Brady  <P@draigBrady.com>
41815         canonicalize: fix references to stat() and lstat()
41816         * lib/canonicalize.c (canonicalize_filename_mode):
41817         Ensure references always resolve to a replacement
41818         function if required (even via a macro).
41820 2011-12-30  Jim Meyering  <meyering@redhat.com>
41822         gitlog-to-changelog: remove a little duplication
41823         * build-aux/gitlog-to-changelog (main): Grep @lines once,
41824         rather than twice.
41826 2011-12-29  Pádraig Brady  <P@draigBrady.com>
41828         canonicalize: add support for not resolving symlinks
41829         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
41830         indicate we don't want to follow symlinks.  Also
41831         provide CAN_MODE_MASK to aid setting these existing
41832         mutually exclusive values.
41833         * lib/canonicalize.c (canonicalize_filename_mode):
41834         Extract the flags from can_mode parameter, which
41835         are currently just used to select between stat()
41836         and lstat().  Also ensure that mutually exclusive
41837         values are flagged immediately as invalid.
41838         * tests/test-canonicalize.c: Verify symlinks are
41839         not followed, and that invalid flag combinations
41840         are diagnosed.
41842 2011-12-25  Jim Meyering  <meyering@redhat.com>
41844         gitlog-to-changelog: do not clump multi-paragraph entries
41845         Identical header lines (date,name,email+coauthors) are suppressed,
41846         thus putting all entries with those same characteristics under
41847         a single header.  However, when a log entry consists of two or
41848         more paragraphs, it may not be clear where it starts and ends.
41849         This change makes it so that such an entry is always separated
41850         from others by a header line, even when that header would
41851         otherwise be suppressed.
41852         * build-aux/gitlog-to-changelog: Implement the above.
41853         Inspired by a related request from Stefano Lattarini in
41854         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
41856 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41858         announce-gen: fix `cmd' typo in diagnostic
41859         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
41860         diagnostic: a missing '$' meant that the command was not output.
41862 2011-12-23  Jim Meyering  <meyering@redhat.com>
41864         test-framework-sh: distribute init.sh
41865         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
41866         Otherwise, "make -C gnulib-tests check" (at least in grep) would
41867         fail due to the lack of init.sh.
41869         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
41870         * modules/atexit-tests: Rather than listing tests/init.sh,
41871         now that there's a module for it, simply depend on that new module.
41872         * modules/closein-tests: Likewise.
41873         * modules/exclude-tests: Likewise.
41874         * modules/getcwd-tests: Likewise.
41875         * modules/perror-tests: Likewise.
41876         * modules/pread-tests: Likewise.
41877         * modules/pwrite-tests: Likewise.
41878         * modules/vc-list-files-tests: Likewise.
41879         * modules/verify-tests: Likewise.
41880         * modules/xalloc-die-tests: Likewise.
41881         * modules/xstrtoimax-tests: Likewise.
41882         * modules/xstrtol-tests: Likewise.
41883         * modules/xstrtoll-tests: Likewise.
41884         * modules/xstrtoumax-tests: Likewise.
41885         * modules/yesno-tests: Likewise.
41887 2011-12-22  Jim Meyering  <meyering@redhat.com>
41889         test-framework-sh: add minimal tests of init.sh's compare function
41890         * modules/test-framework-sh-tests: New file.
41891         * tests/test-init.sh: New file.
41893         test-framework-sh: new module
41894         * modules/test-framework-sh: New file.
41895         * MODULES.html.sh (Support for maintaining and releasing projects):
41896         List it.
41898         init.sh: do not emit simulated diff output to stderr
41899         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41901 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41903         .gitignore: ignore gnulib.dvi and regex.info
41904         * doc/.gitignore:add gnulib.dvi and regex.info
41906 2011-12-22  Jim Meyering  <meyering@redhat.com>
41908         init.sh: correct previous change
41909         * tests/init.sh (compare): My previous change was wrong.
41910         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41912         init.sh: avoid unwarranted test failure when using "set -e"
41913         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41914         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41915         a use like "compare exp out" would get evoke an unconditional failure.
41917 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41919         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41920         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41921         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41922         autoreconf that did not.
41923         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41924         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41926 2011-12-17  Jim Meyering  <meyering@redhat.com>
41928         bootstrap: remove some now-unneeded code
41929         This script arose back when gnulib-tool was young.
41930         Since then, it has seen improvements that render much of this
41931         script unnecessary.  In particular, it can now make symlinks
41932         to the files it uses.  Also, I no longer see as much value in
41933         marking files as read-only via comments.
41934         If you relied on the symlink-creation feature of the preceding
41935         version of this script, you can get most of that functionality
41936         by adding the --symlink option to the definition of
41937         gnulib_tool_option_extras in your bootstrap.conf file.
41938         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41939         Run autopoint and libtoolize *before* gnulib-tool.
41940         After it, run an abbreviated autoreconf, rather than a loop around
41941         all tools.
41942         (slirp, bt_mark_as_generated): Remove functions.
41944 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41946         ftoastr: fix typo
41947         * lib/ftoastr.h: Fix misspelling in comment.
41949 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41951         * top/README-release: fix punctuation.
41953 2011-12-17  Jim Meyering  <meyering@redhat.com>
41955         bootstrap: correct the recent buildreq change
41956         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41957         had no effect.
41958         * build-aux/bootstrap (buildreq): Bracket each search term with
41959         "*...*", so that the shell "case" statement works as intended.
41960         Add comments.
41962 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41964         build: let bootstrap resort to wget when downloading .po files
41965         * build-aux/bootstrap (download_po_files): Fallback to wget when
41966         downloading the .po files via rsync fails.  This is necessary to
41967         bootstrap from behind a strict firewall.
41969 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41971         stdint: don't assume C++11 when compiling with g++
41972         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41973         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41974         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41975         work also in C++ before C++11, as that improperly inhibits
41976         generating a substitute stdint.h for that case.
41978 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41980         alloca: protect comment from gnulib-tool
41981         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41982         that gnulib-tool doesn't think it's a license, and munge it to
41983         say "GCC version 3".
41985 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41987         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41988         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41989         $(abs_top_builddir) instead of $(top_builddir).
41991 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41993         strftime-tests: also test nanoseconds
41994         * tests/test-strftime.c (T): Add a test of %N.
41996 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41998         inttypes, stdint: add C++11 support
41999         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
42000         when including inttypes.h and stdint.h.  Support this change to
42001         the standard.
42002         * doc/posix-headers/inttypes.texi (inttypes.h):
42003         * doc/posix-headers/stdint.texi (stdint.h): Document this.
42004         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
42005         Define if not defined already, for the benefit of pre-C++11 hosts.
42006         Define the standard format macros (e.g., PRId8) always.
42007         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
42008         Likewise, if __cpluspus.  Define the standard constant and limit
42009         macros (e.g., INT8_C, INT8_MAX) always.
42010         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
42011         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
42012         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
42013         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
42014         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
42015         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
42016         Likewise.
42018 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
42020         nonblocking tests: Fix test failure on Linux/PPC.
42021         Suggested by Prerna Saxena in
42022         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
42023         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
42024         Set to 1100000.
42026 2011-12-12  Jim Meyering  <meyering@redhat.com>
42028         argmatch: don't hard-code `' when listing valid option arguments
42029         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
42030         use the quote function to add quotes.  Use fputs rather than
42031         fprintf for the format string with no format directive.
42033 2011-12-07  Eric Blake  <eblake@redhat.com>
42035         bootstrap: detect tools required by gnulib-tool
42036         * build-aux/bootstrap (buildreq): Provide minimum implicit
42037         dependencies.
42038         * DEPENDENCIES: Mention patch as a prereq.
42040 2011-12-04  Bruno Haible  <bruno@clisp.org>
42042         sethostname: Port to Windows platforms.
42043         * lib/sethostname.c: Provide an alternate implementation for Windows
42044         platforms.
42045         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
42046         (main): Skip the test if sethostname() fails with EPERM. On Windows
42047         platforms, don't check the result of gethostname().
42049 2011-12-04  Bruno Haible  <bruno@clisp.org>
42050             Jim Meyering  <meyering@redhat.com>
42052         tests: Avoid spurious error message on platforms without mktemp program.
42053         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
42055 2011-12-04  Bruno Haible  <bruno@clisp.org>
42057         sethostname: Fix documentation.
42058         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
42059         "not fixed" section.
42061 2011-12-03  Bruno Haible  <bruno@clisp.org>
42063         gnulib-tool: Verify that the License field is present and non-empty.
42064         * gnulib-tool (func_get_license_raw): New function, extracted from
42065         func_get_license.
42066         (func_get_license): Use it. Warn if the module is not a test module and
42067         has no license.
42068         Suggested by Jim Meyering.
42070 2011-12-03  Bruno Haible  <bruno@clisp.org>
42072         sethostname tests: Fix link error on mingw.
42073         * tests/test-sethostname1.c: New file, extracted from
42074         tests/test-sethostname.c.
42075         * tests/test-sethostname2.c: New file, extracted from
42076         tests/test-sethostname.c.
42077         * tests/test-sethostname.c: Remove file.
42078         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
42079         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
42080         (Depends-on): Add gethostname.
42081         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
42082         Link the latter with $(GETHOSTNAME_LIB).
42084         sethostname tests: Fix compilation error on mingw.
42085         * tests/test-sethostname.c: Don't include <sys/types.h>.
42086         (geteuid): Use a dummy value without uid_t.
42087         * modules/sethostname-tests (Depends-on): Remove sys_types.
42089         sethostname tests: Avoid a gcc warning.
42090         * tests/test-sethostname.c (main): Remove an unused variable.
42092         Tweak last commit.
42093         * modules/sethostname-tests (Files): Sort by decreasing importance.
42094         (configure.ac): Check for geteuid.
42095         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
42096         the test when there's nothing to test. Drop an unnecessary cast.
42097         Improve an error message. Verify that the final sethostname() call
42098         succeeds.
42100 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42102         Add a test suite for the sethostname module.
42103         * modules/sethostname-tests: New file.  A test program
42104         for the sethostname module.
42105         * tests/test-sethostname.c: Likewise.
42107 2011-12-03  Bruno Haible  <bruno@clisp.org>
42109         Tweak last commit.
42110         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
42111         Fix preprocessor directives indentation. Fix typos.
42112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
42113         * modules/unistd (Makefile): Likewise.
42115 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42117         Integrate the sethostname module into unistd.
42118         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
42119         into the unistd.h header.
42120         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
42121         preprocessor directives.
42122         * modules/unistd: Setup the Makefile substitutions of the
42123         SETHOSTNAME preprocessor directives.
42125 2011-12-03  Bruno Haible  <bruno@clisp.org>
42127         Tweak last commit.
42128         * lib/sethostname.c: Don't include <string.h>.
42129         (sethostname): No need to copy the argument string to the stack. Don't
42130         call clearerr. Preserve errno when fprintf failed.
42131         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
42132         Don't invoke AC_REPLACE_FUNCS.
42133         * modules/sethostname (Link): Remove empty section.
42134         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
42135         failure problem.
42137 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42139         New module 'sethostname'.
42140         * lib/sethostname.c (sethostname): New file.  Provide sethostname
42141         for systems that lack it.
42142         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
42143         sethostname declaration and function.
42144         * modules/sethostname: New file.  Define the sethostname module.
42146 2011-12-03  Bruno Haible  <bruno@clisp.org>
42148         Tweak last commit.
42149         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
42151 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
42153         Split the HOST_NAME_MAX detection into a separate m4 macro.
42154         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
42155         macro so it can be used by the pending sethostname module.
42157 2011-12-03  Bruno Haible  <bruno@clisp.org>
42159         Fix module descriptions syntax.
42160         * modules/argv-iter (License): Fix syntax.
42161         * modules/di-set (License): Likewise.
42162         * modules/ino-map (License): Likewise.
42163         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
42165 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
42167         stdalign: port to Clang 3.0
42168         Problem reported by Simon Josefsson in
42169         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
42170         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
42171         which has <stdalign.h> but which does not define alignof.
42172         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
42174 2011-12-01  Eric Blake  <eblake@redhat.com>
42176         mktempd: silence dd usage
42177         * build-aux/mktempd (rand_bytes): Silence dd.
42179 2011-11-30  Simon Josefsson  <simon@josefsson.org>
42181         manywarnings: Don't mention gcc version in docstring.
42182         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
42183         Jim Meyering <meyering@redhat.com>.
42185 2011-11-30  Jim Meyering  <meyering@redhat.com>
42187         hash: mark a few floating point constants with "f" suffix
42188         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
42189         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
42190         floating point constants with "f", since they're destined to be
42191         saved/used as "float"s.
42193 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
42195         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
42196         * tests/test-float.c (test_long_double): Correct and re-enable the
42197         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
42199 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
42201         Avoid subtracting two pointers that don't point into the same block.
42202         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
42203         only pointers into the same memory block are subtracted. We cannot
42204         assume that sizeof (ptrdiff_t) == sizeof (void *).
42206 2011-11-29  Eric Blake  <eblake@redhat.com>
42208         maint.mk: add syntax check for use of compare from init.sh
42209         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
42210         moved here from coreutils.
42212         manywarnings: drop -Wunsuffixed-float-constants
42213         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
42214         '1.0D', which is the only way to silence this warning for 'double'.
42216 2011-11-29  Jim Meyering  <meyering@redhat.com>
42218         hash: mark compute_bucket_size with the pure attribute
42219         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
42221         quotearg, propername: correct pragma guard expression
42222         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
42223         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
42225 2011-11-28  Jim Meyering  <meyering@redhat.com>
42227         propername: do not mark proper_name with the const attribute
42228         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
42229         since it examines data pointed to by its parameter.
42230         * lib/propername.c (proper_name): Instead, add a pragma to suppress
42231         the suggestion from -Wsuggest-attribute=const.
42233         propername: mark one more function as const
42234         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
42236 2011-11-27  Jim Meyering  <meyering@redhat.com>
42238         mark functions with const and pure attributes
42240         Mark functions per suggestions from gcc-4.6 when using these options:
42241         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
42242         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
42243         Follow these guidelines: when possible, apply the attribute to
42244         an extern declaration, not to its definition.  Apply it to the
42245         definition only when the definition is static.
42246         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
42247         * lib/argv-iter.h (argv_iter_n_args): Likewise.
42248         * lib/base64.h (isbase64): Likewise.
42249         * lib/basename-lgpl.c (last_component, base_len): Likewise.
42250         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
42251         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
42252         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
42253         (c_tolower, c_toupper): Likewise.
42254         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
42255         * lib/chdir-long.c (find_non_slash): Likewise.
42256         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
42257         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
42258         * lib/file-type.h (file_type): Likewise.
42259         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
42260         * lib/filevercmp.c (verrevcmp): Likewise.
42261         * lib/freadahead.h (freadahead): Likewise.
42262         * lib/fts.c (fts_maxarglen): Likewise.
42263         * lib/hash-pjw.h (hash_pjw): Likewise.
42264         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
42265         * lib/hash.c (is_prime, next_prime): Likewise.
42266         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
42267         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
42268         (hash_table_ok, hash_get_first, hash_string): Likewise.
42269         (compute_bucket_size): Likewise.
42270         * lib/i-ring.h (i_ring_empty): Likewise.
42271         * lib/isnan.c (isnanl): Likewise.
42272         * lib/math.h (isnanl, rpl_isnanl): Likewise.
42273         * lib/memcasecmp.h (memcasecmp): Likewise.
42274         * lib/memchr2.h (memchr2): Likewise.
42275         * lib/memcmp2.h (memcmp2): Likewise.
42276         * lib/parse-datetime.y (lookup_zone): Likewise.
42277         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
42278         [!WINDOWS_SOCKETS]: Likewise.
42279         * lib/strnlen1.h (strnlen1): Likewise.
42280         * lib/uniwidth.in.h (uc_width): Likewise.
42281         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
42282         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
42283         (quoting_options_from_style): Add a comment.
42284         * lib/propername.h (proper_name): Add a comment.
42286 2011-11-27  Bruno Haible  <bruno@clisp.org>
42288         Remove unused macros from !_LIBC code in glibc-borrowed files.
42289         * lib/fnmatch.c (STRCOLL): Remove macro.
42290         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
42291         * lib/glob.c (__stat, __readdir64): Remove macros.
42292         * lib/tempname.c (__open64, __xstat64): Remove macros.
42293         Suggested by Paul Eggert.
42295 2011-11-27  Bruno Haible  <bruno@clisp.org>
42297         getcwd: Fix link error on MSVC 9.
42298         * modules/getcwd (Depends-on): Add readdir, rewinddir.
42300 2011-11-27  Bruno Haible  <bruno@clisp.org>
42302         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
42303         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
42304         HAVE_OPENDIR is 0.
42305         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
42306         HAVE_CLOSEDIR is 0.
42307         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
42308         is 0.
42309         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
42311 2011-11-27  Bruno Haible  <bruno@clisp.org>
42313         getcwd: Fix bug from 2011-08-17.
42314         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
42315         platforms that need it.
42316         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
42317         code of 4 to be a failure, not a success. This ensures that
42318         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
42320 2011-11-27  Bruno Haible  <bruno@clisp.org>
42322         binary-io tests: Avoid test failure on mingw when libtool is used.
42323         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
42324         Don't verify the size of t-bin-out1.tmp here.
42325         * tests/test-binary-io.sh: Verify it here.
42326         Reported by Simon Josefsson.
42328 2011-11-26  Bruno Haible  <bruno@clisp.org>
42330         Fix conflict between two instantiations of module 'unistd'.
42331         * gnulib-tool (func_emit_autoconf_snippet): Substitute
42332         ${include_guard_prefix} also in the autoconf snippet.
42333         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
42334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
42335         GNULIB_UNISTD_H_GETOPT.
42336         * modules/getopt-posix (configure.ac): Set the
42337         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
42338         * modules/getopt-gnu (configure.ac): Likewise.
42339         * modules/unistd (Makefile.am): Change the substitution value of
42340         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
42341         Reported by Simon Josefsson.
42343 2011-11-25  Bruno Haible  <bruno@clisp.org>
42345         pagealign_alloc: Doc and comments.
42346         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
42347         module.
42348         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
42350 2011-11-25  Jim Meyering  <meyering@redhat.com>
42352         test-update-copyright.sh: avoid false-positive failure
42353         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
42354         around false positive failure on Cygwin/Windows.  The latter was
42355         matching erroneously-created files with names like
42356         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
42358 2011-11-25  Simon Josefsson  <simon@josefsson.org>
42360         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
42361         * m4/valgrind-tests.m4: Check that the parameters that will be
42362         used works, not just a subset of them.  Reported by Bruno Haible
42363         <bruno@clisp.org>.
42365 2011-11-24  Jim Meyering  <meyering@redhat.com>
42367         test-stdalign.c: comment out long double tests
42368         * tests/test-stdalign.c: Don't try to reduce alignment of long double
42369         variables.  That provokes errors like this from gcc-4.7.0 20111124:
42370         error: '_Alignas' specifiers cannot reduce alignment of \
42371         'static_longdouble_alignas'.
42373 2011-11-22  Jim Meyering  <meyering@redhat.com>
42375         init.sh: make "compare /dev/null FILE" output more readable
42376         * tests/init.sh (compare_): Document the preferred order of arguments.
42377         (emit_diff_u_header_): New function.
42378         (compare_dev_null_): Emit a simulated diff, rather than just the
42379         contents of the unexpected file.  Suggestion from Bruno Haible.
42381 2011-11-21  Jim Meyering  <meyering@redhat.com>
42382             Eric Blake  <eblake@redhat.com>
42384         init.sh: work around OSF/1 5.1's mishandling of /dev/null
42385         * tests/init.sh: Make our compare function slightly more portable.
42386         Reported by Bruno Haible in
42387         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
42389 2011-11-21  Simon Josefsson  <simon@josefsson.org>
42391         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
42392         before using it, in code that ends up in config.h.
42394 2011-11-20  Bruno Haible  <bruno@clisp.org>
42396         getcwd: Work around getcwd bug on AIX 5..7.
42397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
42398         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
42399         Use a different value for gl_cv_func_getcwd_path_max. Move the
42400         definition of HAVE_PARTLY_WORKING_GETCWD from here...
42401         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
42402         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
42403         Define HAVE_MINIMALLY_WORKING_GETCWD.
42404         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
42405         where it is not even minimally working, that is, on AIX.
42406         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
42407         m4/getcwd-path-max.m4.
42408         (main): Update exit code computation.
42409         * doc/posix-functions/getcwd.texi: Mention list of platforms where
42410         getcwd does not handle long file names.
42412 2011-11-20  Bruno Haible  <bruno@clisp.org>
42414         getcwd: Fix bug from 2009-09-10.
42415         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
42416         like "no".
42418 2011-11-20  Simon Josefsson  <simon@josefsson.org>
42420         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
42422 2011-11-20  Bruno Haible  <bruno@clisp.org>
42424         fma tests: Avoid shadowing local variables.
42425         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
42426         expected.
42428 2011-11-20  Bruno Haible  <bruno@clisp.org>
42430         copysignf tests: Fix.
42431         * tests/test-copysignf.c: Fix signature check.
42433 2011-11-20  Bruno Haible  <bruno@clisp.org>
42435         fma: Remove unused code.
42436         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
42437         unused macros.
42439 2011-11-20  Bruno Haible  <bruno@clisp.org>
42441         sethostname: Fix doc about AIX.
42442         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
42443         sethostname; it has it.
42445         sethostname: Mention more portability problems.
42446         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
42447         problem.
42448         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
42450 2011-11-19  Bruno Haible  <bruno@clisp.org>
42452         Depend on module fcntl-h when AT_FDCWD is used.
42453         * modules/utimens (Depends-on): Add fcntl-h.
42454         * modules/areadlinkat (Depends-on): Likewise.
42455         * modules/areadlinkat-with-size (Depends-on): Likewise.
42456         * modules/faccessat (Depends-on): Likewise.
42457         * modules/fchmodat (Depends-on): Likewise.
42458         * modules/fchownat (Depends-on): Likewise.
42459         * modules/getcwd (Depends-on): Likewise.
42460         * modules/mkdirat (Depends-on): Likewise.
42461         * modules/mkfifoat (Depends-on): Likewise.
42462         * modules/readlinkat (Depends-on): Likewise.
42463         * modules/symlinkat (Depends-on): Likewise.
42464         * modules/dup2-tests (Depends-on): Likewise.
42465         * modules/fdutimensat-tests (Depends-on): Likewise.
42466         * modules/futimens-tests (Depends-on): Likewise.
42468 2011-11-19  Bruno Haible  <bruno@clisp.org>
42470         euidaccess: Update a comment.
42471         * lib/euidaccess.c: Update comment about platforms with faccessat.
42473 2011-11-19  Bruno Haible  <bruno@clisp.org>
42475         openat: Fix file list.
42476         * modules/openat (Files): Remove lib/at-func.c.
42478 2011-11-19  Bruno Haible  <bruno@clisp.org>
42480         fstatat: Simplify.
42481         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
42482         gnulib should define rpl_fstatat, there is a
42483         "#define fstatat rpl_fstatat" in <sys/stat.h>.
42485 2011-11-19  Bruno Haible  <bruno@clisp.org>
42487         Ensure 'inline' can be used in tests/test-utimens-common.h.
42488         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
42489         * modules/futimens-tests (configure.ac): Likewise.
42490         * modules/utimens-tests (configure.ac): Likewise.
42491         * modules/utimensat-tests (configure.ac): Likewise.
42493 2011-11-19  Simon Josefsson  <simon@josefsson.org>
42495         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
42496         not hash_insert0.
42497         (hash_insert_if_absent): Doc fix.
42499 2011-11-19  Simon Josefsson  <simon@josefsson.org>
42501         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
42503 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
42505         test-getcwd: disambiguate exit status
42506         * tests/test-getcwd.c (test_long_name): Return 0..7.
42507         (main): Exit with an unambiguous exit status.  The old
42508         code yielded a mysterious mixture of two failure codes.
42510         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
42511         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
42512         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
42513         rpl_fstatat or fstatat.  This should fix the other problem
42514         reported by Kai Habel in
42515         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42516         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
42517         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
42518         and I reproduced it on a Solaris 8 host we still have in production.
42520 2011-11-18  Jim Meyering  <meyering@redhat.com>
42522         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
42523         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
42524         Add a sentence to the comment.
42525         (hash_insert0): New function that simply calls hash_insert_if_absent.
42526         * lib/hash.h (hash_insert_if_absent): Declare it.
42527         (hash_insert0): Add deprecation attribute.
42528         (_GL_ATTRIBUTE_DEPRECATED): Define.
42529         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
42530         not hash_insert0.
42531         * NEWS: Mention it, even though it's not really an incompatible change.
42533 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
42535         openat: avoid compilation failure due to lack of <errno.h> inclusion
42536         * lib/openat.c: Include <errno.h>.
42538 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42540         * modules/getcwd (Depends-on): Add fdopendir.
42541         This fixes one of the two problems reported by Kai Habel in
42542         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42544         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
42545         stdalign problem reported by Ian Beckwith in
42546         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
42547         * modules/crypto/gc-arcfour (Depends-on):
42548         Depend conditionally on crypto/arcfour.
42549         * modules/crypto/gc-arctwo (Depends-on):
42550         Depend conditionally on crypto/arctwo.
42551         * modules/crypto/gc-des (Depends-on):
42552         Depend conditionally on crypto/des.
42553         * modules/crypto/gc-hmac-md5 (Depends-on):
42554         Depend conditionally on crypto/hmac-md5.
42555         * modules/crypto/gc-hmac-sha1 (Depends-on):
42556         Depend conditionally on crypto/hmac-sha1.
42557         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
42558         * modules/crypto/gc-md4 (Depends-on):
42559         Depend conditionally on crypto/md4.
42560         * modules/crypto/gc-md5 (Depends-on):
42561         Depend conditionally on crypto/md5.
42562         * modules/crypto/gc-rijndael (Depends-on):
42563         Depend conditionally on crypto/rijndael.
42564         * modules/crypto/gc-sha1 (Depends-on):
42565         Depend conditionally on crypto/sha1.
42566         * modules/crypto/gc-arcfour:
42567         * modules/crypto/gc-arctwo:
42568         * modules/crypto/gc-des:
42569         * modules/crypto/gc-hmac-md5:
42570         * modules/crypto/gc-hmac-sha1:
42571         * modules/crypto/gc-md2:
42572         * modules/crypto/gc-md4:
42573         * modules/crypto/gc-md5:
42574         * modules/crypto/gc-rijndael:
42575         * modules/crypto/gc-sha1:
42576         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
42577         now that the conditional dependencies do the work for us.
42579 2011-11-17  Jim Meyering  <meyering@redhat.com>
42581         tests: factor st_ctime-comparison out of two headers
42582         * tests/test-utimens-common.h (ctime_compare): Define.
42583         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
42584         * tests/test-lutimens.h (test_lutimens): Likewise.
42585         * tests/test-utimens.h (test_utimens): Likewise.
42587         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
42588         Invoke the test program via an init.sh-using wrapper.
42589         * tests/test-getcwd.sh: New file.
42590         * modules/getcwd-tests (Files): Add it.
42591         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
42593 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
42595         gitlog-to-changelog: support multi-author commits.
42596         The FSF cares about keeping track of all authors of patches to its
42597         projects, but Git doesn't provide obvious support for multi-author
42598         changesets. Consensus seems to be forming around the use of extra
42599         Signed-off-by inspired lines in the log message formatted as
42600         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
42601         multi-author commits between version control systems.
42602         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
42603         log message and output in standard ChangeLog multi-author format.
42604         Reported by Peter Rosin <peda@lysator.liu.se>
42606 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
42607             Bruno Haible  <bruno@clisp.org>
42609         Fix some modules' file list.
42610         * modules/fstatat (Files): Add m4/lstat.m4.
42611         * modules/openat (Files): Likewise.
42612         * modules/unlinkat (Files): Likewise.
42614 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
42616         maint.mk: fix tight-scope.mk generation in VPATH builds.
42617         * top/maint.mk (tight-scope.mk): Make sure to prefix file
42618         reference with $(srcdir) so that the file is found correctly even
42619         when running `make syntax-check' in a VPATH build.
42621 2011-11-13  Bruno Haible  <bruno@clisp.org>
42622             Jim Meyering  <meyering@redhat.com>
42624         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
42625         * tests/init.sh (compare): Remove "No differences encountered" or
42626         synonymous output from the 'diff' program.
42628 2011-11-13  Bruno Haible  <bruno@clisp.org>
42630         Makefile: Tweak indentation.
42631         * Makefile: Use tab as first character in every line that contains rule
42632         commands.
42634 2011-11-13  Bruno Haible  <bruno@clisp.org>
42636         Syntax check for copyright statements.
42637         * check-copyright: New file.
42638         * Makefile (sc_check_copyright): New rule.
42640 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42642         * build-aux/git-version-gen: Add --prefix to configure the tag
42643         match string.
42645 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42647         * build-aux/git-version-gen: Add --help and --version.
42649 2011-11-12  Jim Meyering  <meyering@redhat.com>
42651         revamp the other test-exclude?.sh scripts to use init.sh, too
42652         * tests/test-exclude1.sh: Use init.sh.
42653         * tests/test-exclude2.sh: Likewise.
42654         * tests/test-exclude3.sh: Likewise.
42655         * tests/test-exclude4.sh: Likewise.
42656         * tests/test-exclude5.sh: Likewise.
42657         * tests/test-exclude6.sh: Likewise.
42658         * tests/test-exclude7.sh: Likewise.
42659         * tests/test-exclude8.sh: Likewise.
42660         * modules/exclude-tests (Files): List init.sh.
42662         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
42663         These shell scripts ignored failure of the binary test-exclude,
42664         so making the latter return 77 didn't cause them to be skipped.
42665         * tests/test-exclude5.sh: Exit with test-exclude's error status
42666         when that program fails.  Revamp to use init.sh.
42667         * tests/test-exclude2.sh: Likewise.
42669         test-exclude: fix a typo
42670         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
42672 2011-11-11  Bruno Haible  <bruno@clisp.org>
42674         obstack: Fix compilation error on MSVC 9.
42675         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
42677 2011-11-11  Jim Meyering  <meyering@redhat.com>
42679         test-exclude: skip tests rather than failing on deficient systems
42680         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
42681         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
42682         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
42683         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
42685 2011-11-10  Bruno Haible  <bruno@clisp.org>
42687         ptsname_r test: Avoid gcc warning on glibc systems.
42688         * tests/test-ptsname_r.c (null_ptr): New function.
42689         (test_errors): Use it.
42691 2011-11-10  Bruno Haible  <bruno@clisp.org>
42693         ptsname_r: Avoid compilation error on OSF/1 5.1.
42694         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
42695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
42696         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
42697         function is not declared or incompatibly declared.
42698         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
42699         * modules/ptsname_r (Depends-on, configure.ac): Update.
42700         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
42702 2011-11-10  Bruno Haible  <bruno@clisp.org>
42704         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
42705         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
42706         When cross-compiling, guess yes on all platforms except AIX.
42707         Reported by Ludovic Courtès <ludo@gnu.org>.
42709 2011-11-09  Bruno Haible  <bruno@clisp.org>
42711         ptsname_r tests: Fix bugs.
42712         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
42713         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
42715 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42717         fstatat: work with cross-compilation
42718         Problem reported by Ludovic Courtès in
42719         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
42720         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
42721         "cross-compiling" and assume the bug is present.  Replace
42722         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
42723         an inverted sense, to be more conservative about our assumptions.
42724         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
42726 2011-11-09  Bruno Haible  <bruno@clisp.org>
42728         Improve MODULES.html output.
42729         * modules/mkfifoat (Description): Use the word "function".
42730         * modules/readlinkat (Description): Likewise.
42731         * modules/symlinkat (Description): Likewise.
42733 2011-11-09  Eric Blake  <eblake@redhat.com>
42735         ptsname_r-tests: new test module
42736         * modules/ptsname_r-tests: New module.
42737         * tests/test-ptsname_r.c: New file.
42739         ptsname_r: new module
42740         * modules/ptsname_r: New module.
42741         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
42742         * lib/ptsname.c (__ptsname_r): Split...
42743         * lib/ptsname_r.c: ...into new file.
42744         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42745         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
42746         * modules/stdlib (Makefile.am): Substitute witnesses.
42747         * lib/stdlib.in.h (ptsname_r): Declare it.
42748         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
42749         * MODULES.html.sh (Misc): Likewise.
42750         * modules/ptsname (Depends-on): Alter dependency.
42751         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
42753 2011-11-09  Jim Meyering  <meyering@redhat.com>
42755         announce-gen: be more concise when there's only one URL+tarball
42756         * build-aux/announce-gen (get_tool_versions): When you distribute
42757         only one type of tarball, combine the first two "Here are..."
42758         sections and make the key-checking grammar independent of
42759         how many tarballs there are.
42761 2011-11-09  Eric Blake  <eblake@redhat.com>
42763         openpty: provide a stub on mingw
42764         * lib/pty.in.h (includes): Provide forward declarations.
42765         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
42767         raise: fix mingw handling of SIGPIPE
42768         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
42770 2011-11-08  Bruno Haible  <bruno@clisp.org>
42772         More conditional dependencies.
42773         * modules/faccessat (Depends-on): Add conditions.
42774         * modules/fchmodat (Depends-on): Likewise.
42775         * modules/fchownat (Depends-on): Likewise.
42776         * modules/fstatat (Depends-on): Likewise.
42777         * modules/mkfifoat (Depends-on): Likewise.
42778         * modules/readlinkat (Depends-on): Likewise.
42779         * modules/symlinkat (Depends-on): Likewise.
42780         * modules/unlinkat (Depends-on): Likewise.
42781         * modules/utimensat (Depends-on): Likewise.
42782         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
42783         * modules/linkat (Depends-on): Refine the conditions.
42784         * modules/renameat (Depends-on): Likewise.
42786 2011-11-08  Bruno Haible  <bruno@clisp.org>
42788         faccessat: Move AC_LIBOBJ invocation to module description.
42789         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
42790         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
42791         invocation from here...
42792         * modules/faccessat (configure.ac): ... to here. Invoke
42793         gl_PREREQ_FACCESSAT.
42795 2011-11-08  Bruno Haible  <bruno@clisp.org>
42797         faccessat: Simplify autoconf macro.
42798         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
42799         gl_FUNC_EUIDACCESS.
42801 2011-11-08  Bruno Haible  <bruno@clisp.org>
42803         renameat: Fix dependencies.
42804         * modules/renameat (Depends-on): Add stdbool.
42806 2011-11-08  Bruno Haible  <bruno@clisp.org>
42808         mkfifoat: Fix module description.
42809         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
42810         not gl_UNISTD_MODULE_INDICATOR.
42812 2011-11-08  Bruno Haible  <bruno@clisp.org>
42814         fstatat: Remove unused dependency.
42815         * modules/fstatat (Depends-on): Remove fstat.
42817 2011-11-08  Simon Josefsson  <simon@josefsson.org>
42819         GNUmakefile: behave when Makefile is missing.
42820         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
42822 2011-11-08  Bruno Haible  <bruno@clisp.org>
42824         openat: Conditionalize dependencies.
42825         * lib/openat.c: Reduce the scope of some #includes.
42826         * modules/openat (Depends-on): Add conditions.
42828 2011-11-07  Jim Meyering  <meyering@redhat.com>
42830         maint.mk: extract GPG key ID without using a temporary file
42831         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
42832         without using a temporary file.  Based on a suggestion from Werner Koch
42833         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
42835 2011-11-07  Eric Blake  <eblake@redhat.com>
42837         grantpt: fix typo
42838         * lib/stdlib.in.h (grantpt): Check correct function.
42840         maint.mk: silence new syntax check
42841         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
42843 2011-11-06  Bruno Haible  <bruno@clisp.org>
42845         Doc about floating-point and math API.
42846         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
42847         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
42849 2011-11-06  Bruno Haible  <bruno@clisp.org>
42851         stdalign tests: Skip the test when compiled by Sun C.
42852         * tests/test-stdalign.c (main): Skip the test on Sun C.
42854 2011-11-06  Bruno Haible  <bruno@clisp.org>
42856         ansi-c++-opt: Complete the 2011-06-05 change.
42857         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
42858         does not support namespaces, set the variable to "no", not to ":".
42860 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42862         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
42864 2011-11-06  Bruno Haible  <bruno@clisp.org>
42866         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
42867         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
42868         (minus_zerol) [HP-UX]: New macro.
42869         (unary_minus) [HP-UX]: New function.
42870         (copysignl) [HP-UX]: Use unary_minus function.
42872 2011-11-06  Bruno Haible  <bruno@clisp.org>
42874         ldexp, ldexpf, ldexpl: Enhance tests.
42875         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
42876         and tests/test-ldexpl.c.
42877         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
42878         LDEXP, MIN_EXP, MAX_EXP): New macros.
42879         Include test-ldexp.h.
42880         (main): Just call test_function.
42881         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
42882         infinity.h, nan.h.
42883         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42884         MAX_EXP): New macros.
42885         Include test-ldexp.h.
42886         (x, y): Remove variables.
42887         (main): Just call test_function.
42888         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
42889         infinity.h, nan.h.
42890         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42891         MAX_EXP): New macros.
42892         Include test-ldexp.h.
42893         (x, y): Remove variables.
42894         (main): Just call test_function.
42895         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42896         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42897         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42898         (Depends-on): Add isnand-nolibm, signbit, float.
42899         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42900         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42901         (Depends-on): Add isnanf-nolibm, signbit, float.
42903 2011-11-06  Bruno Haible  <bruno@clisp.org>
42905         math tests: Cosmetics.
42906         * tests/test-math-c++.cc: Reorder declarations.
42908 2011-11-05  Bruno Haible  <bruno@clisp.org>
42910         fma*: Simplify test.
42911         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42912         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42914         Tests for module 'fmal'.
42915         * modules/fmal-tests: New file.
42916         * tests/test-fmal1.c: New file.
42917         * tests/test-fmal2.c: New file.
42919         New module 'fmal'.
42920         * lib/math.in.h (fmal): New declaration.
42921         * lib/fmal.c: New file.
42922         * m4/fmal.m4: New file.
42923         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42925         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42926         REPLACE_FMAL.
42927         * modules/fmal: New file.
42928         * doc/posix-functions/fmal.texi: Mention the new module and the various
42929         bugs.
42931         Tests for module 'fmaf'.
42932         * modules/fmaf-tests: New file.
42933         * tests/test-fmaf1.c: New file.
42934         * tests/test-fmaf2.c: New file.
42936         New module 'fmaf'.
42937         * lib/math.in.h (fmaf): New declaration.
42938         * lib/fmaf.c: New file.
42939         * m4/fmaf.m4: New file.
42940         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42942         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42943         REPLACE_FMAF.
42944         * modules/fmaf: New file.
42945         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42946         bugs.
42948         Tests for module 'fma'.
42949         * modules/fma-tests: New file.
42950         * tests/test-fma1.c: New file.
42951         * tests/test-fma1.h: New file.
42952         * tests/test-fma2.c: New file.
42953         * tests/test-fma2.h: New file.
42955         New module 'fma'.
42956         * lib/math.in.h (fma): New declaration.
42957         * lib/fma.c: New file.
42958         * m4/fma.m4: New file.
42959         * m4/fegetround.m4: New file.
42960         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42962         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42963         REPLACE_FMA.
42964         * modules/fma: New file.
42965         * doc/posix-functions/fma.texi: Mention the new module and the various
42966         bugs.
42968         Extend gl_MATHFUNC.
42969         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42970         Support 'void' as argument type.
42971         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42973 2011-11-05  Jim Meyering  <meyering@redhat.com>
42975         maint.mk: also prohibit inclusion of dirent.h without use
42976         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42978 2011-11-05  Bruno Haible  <bruno@clisp.org>
42980         ldexpl tests: Avoid test failure on MSVC 9.
42981         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42982         value. Needed in order to enforce the conversion from a value greater
42983         than LDBL_MAX to Infinity.
42985 2011-11-05  Bruno Haible  <bruno@clisp.org>
42987         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42988         * modules/at-internal: New file, extracted from modules/openat.
42989         * modules/openat-h: New file.
42990         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42991         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42992         * modules/openat (Description): Add reference to POSIX function.
42993         (Files): Remove lib/openat.h, lib/openat-proc.c.
42994         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42995         intprops, unistd.
42996         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42997         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42998         gl_FCNTL_MODULE_INDICATOR.
42999         (Include): Remove unistd.h, openat.h.
43000         * modules/areadlinkat (Files): Add lib/at-func.c.
43001         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
43002         openat-die, openat-h, save-cwd.
43003         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
43004         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
43005         openat-die, openat-h, save-cwd, unistd.
43006         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
43007         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43008         openat-h, save-cwd. Remove fcntl-h, openat.
43009         * modules/fchmodat (Files): Remove lib/openat.h.
43010         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
43011         openat, stdbool, unistd.
43012         * modules/fchownat (Files): Remove lib/openat.h.
43013         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
43014         openat, stdbool, sys_stat.
43015         * modules/fdopendir (Files): Remove lib/openat-priv.h,
43016         lib/openat-proc.c.
43017         (Depends-on): Add at-internal.
43018         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
43019         * modules/fstatat (Files): Remove lib/openat.h.
43020         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
43021         stdbool, unistd.
43022         * modules/fts (Depends-on): Add openat-h.
43023         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
43024         openat.
43025         * modules/mkdirat (Files): Remove lib/openat.h.
43026         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
43027         openat, stdbool, sys_stat.
43028         * modules/mkfifoat (Files): Add lib/at-func.c.
43029         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43030         openat-h, save-cwd. Remove fcntl-h, openat.
43031         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
43032         * modules/readlinkat (Files): Add lib/at-func.c.
43033         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43034         openat-h, save-cwd. Remove fcntl-h, openat.
43035         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
43036         openat.
43037         * modules/selinux-at (Files): Add lib/at-func.c.
43038         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
43039         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
43040         * modules/symlinkat (Files): Add lib/at-func.c.
43041         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
43042         openat-h, save-cwd. Remove fcntl-h, openat.
43043         * modules/unlinkat (Files): Remove lib/openat.h.
43044         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
43045         stdbool.
43046         * modules/utimensat (Files): Add lib/at-func.c.
43047         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
43048         openat-die, openat-h, save-cwd.
43049         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
43050         * modules/fdutimensat-tests (Depends-on): Add openat.
43051         * modules/fstatat-tests (Depends-on): Add openat-h.
43052         * modules/readlinkat-tests (Depends-on): Add openat.
43053         * modules/symlinkat-tests (Depends-on): Add openat.
43055 2011-11-05  Bruno Haible  <bruno@clisp.org>
43057         openat: Include <stdbool.h>.
43058         * lib/openat.c: Include <stdbool.h>.
43060 2011-11-04  Bruno Haible  <bruno@clisp.org>
43062         fchownat, renameat, unlinkat: Fix dependencies.
43063         * modules/fchownat (Depends-on): Add fstatat.
43064         * modules/renameat (Depends-on): Likewise.
43065         * modules/unlinkat (Depends-on): Likewise.
43067 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
43069         openat: remove direct dependency on dirent
43070         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
43071         and hasn't been needed ever since fdopendir was split into its own
43072         module on 2009-08-31.
43073         * modules/openat (Depends-on): Remove dirent.
43075 2011-11-04  Bruno Haible  <bruno@clisp.org>
43077         renameat: Optimize code size.
43078         * modules/renameat (configure.ac): Don't compile at-func2.c if
43079         REPLACE_RENAMEAT is 1.
43081 2011-11-04  Bruno Haible  <bruno@clisp.org>
43083         openat tests: Fix file list.
43084         * modules/openat-tests (Files): Add tests/test-open.h.
43086 2011-11-04  Bruno Haible  <bruno@clisp.org>
43088         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
43089         * modules/fchmodat (Depends-on): Add openat-die.
43090         * modules/fchownat (Depends-on): Likewise.
43091         * modules/linkat (Depends-on): Likewise.
43092         * modules/renameat (Depends-on): Likewise.
43093         * modules/openat (Depends-on): Add dirent.
43095 2011-11-04  Jim Meyering  <meyering@redhat.com>
43097         at-func*.c: fix comments
43098         * lib/at-func2.c: Correct/improve first-line comment.
43099         * lib/at-func.c: Correct grammar in first-line comment.
43101 2011-11-04  Bruno Haible  <bruno@clisp.org>
43103         New module 'mkdirat', split off from module 'openat'.
43104         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
43105         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
43106         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
43107         * modules/mkdirat: New file, extracted from modules/openat.
43108         * modules/openat (Files): Remove lib/mkdirat.c.
43109         (Depends-on): Remove mkdir.
43110         (configure.ac): Remove AC_LIBOBJ of mkdirat.
43111         (Include): Remove <sys/stat.h>.
43112         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
43113         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
43114         tests/test-mkdir.h.
43115         (Depends-on): Remove ignore-value.
43116         (Makefile.am): Remove rules for test-mkdirat.
43117         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
43118         of module 'openat'.
43119         * NEWS: Mention the change.
43121 2011-11-04  Bruno Haible  <bruno@clisp.org>
43123         closedir: Avoid warning on mingw.
43124         * lib/closedir.c: Include <unistd.h>.
43126 2011-11-04  Bruno Haible  <bruno@clisp.org>
43128         New module 'fstatat', split off from module 'openat'.
43129         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
43130         defined.
43131         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
43132         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
43133         gl_FUNC_FSTATAT.
43134         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
43135         * modules/fstatat: New file, extracted from modules/openat.
43136         * modules/openat (Files): Remove lib/fstatat.c.
43137         (Depends-on): Remove lstat.
43138         (configure.ac): Remove AC_LIBOBJ of fstatat.
43139         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
43140         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
43141         tests/test-lstat.h, tests/test-stat.h.
43142         (Depends-on): Remove getcwd-lgpl.
43143         (Makefile.am): Remove rules for test-fstatat.
43144         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
43145         of module 'openat'.
43146         * NEWS: Mention the change.
43147         * modules/getcwd (Depends-on): Add fstatat.
43148         * modules/linkat (Depends-on): Likewise.
43149         * modules/mkfifoat-tests (Depends-on): Likewise.
43150         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
43152 2011-11-03  Bruno Haible  <bruno@clisp.org>
43154         New module 'unlinkat', split off from module 'openat'.
43155         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
43156         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
43157         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
43158         * modules/unlinkat: New file, extracted from modules/openat. Correct
43159         the dependency conditions.
43160         * modules/openat (Files): Remove lib/unlinkat.c.
43161         (Depends-on): Remove rmdir, unlink.
43162         (configure.ac): Remove AC_LIBOBJ of unlinkat.
43163         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
43164         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
43165         tests/test-rmdir.h, tests/test-unlink.h.
43166         (Depends-on): Remove unlinkdir.
43167         (Makefile.am): Remove rules for test-unlinkat.
43168         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
43169         of module 'openat'.
43170         * NEWS: Mention the change.
43171         * modules/linkat-tests (Depends-on): Add unlinkat.
43172         * modules/mkfifoat-tests (Depends-on): Likewise.
43173         * modules/readlinkat-tests (Depends-on): Likewise.
43175 2011-11-02  Bruno Haible  <bruno@clisp.org>
43177         New module 'fchmodat', split off from module 'openat'.
43178         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
43179         defined.
43180         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
43181         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
43182         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
43183         * modules/fchmodat: New file, extracted from modules/openat.
43184         * modules/openat (Files): Remove lib/fchmodat.c.
43185         (configure.ac): Remove AC_LIBOBJ of fchmodat.
43186         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
43187         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
43188         (Makefile.am): Remove rules for test-fchmodat.
43189         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
43190         of module 'openat'.
43191         * NEWS: Mention the change.
43193 2011-11-02  Jim Meyering  <meyering@redhat.com>
43195         putenv: indent #definition of "environ" to placate cppi
43196         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
43198         gitlog-to-changelog: provide a ChangeLog-repair mechanism
43199         Git logs are often treated as immutable, because editing them
43200         changes the SHA1 checksums of all descendants.  Thus, errors in
43201         git logs tend to stay there forever.  However, when we generate
43202         a ChangeLog file -- typically for distribution -- from that git log,
43203         we can actually make corrections in the generated file.  The key
43204         lies in recording in machine-readable/applicable form the desired
43205         corrections.  See --help for description and an example.
43206         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
43207         (usage): Describe it; alphabetize option descriptions.
43208         (main): Honor the new option, carefully.
43210 2011-11-01  Jim Meyering  <meyering@redhat.com>
43212         gitlog-to-changelog: avoid an infloop
43213         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
43214         that ends up being empty.
43216 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43218         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
43219         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
43220         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
43221         contains (possibly-quoted) backslashes.  This should avoid
43222         all-too-common shell bugs if COMPLICATED contains backslashes in
43223         the "wrong" places.  Reported by David Evans in
43224         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
43225         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
43226         because we want ASCII ranges.  Is there some reason we don't use
43227         the C locale everywhere in this script?
43228         (func_module, top level): Avoid unwanted pathname expansion when
43229         $repo_url_prefix or $repo_url_suffix_repl contain shell
43230         metacharacters like '?' and '*'.
43232 2011-11-01  Bruno Haible  <bruno@clisp.org>
43234         fchownat: Improve description.
43235         * modules/fchownat (Description): Add link to function.
43237 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43239         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
43240         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
43241         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
43242         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
43244 2011-11-01  Bruno Haible  <bruno@clisp.org>
43246         alignof: Avoid collision with stdalign module.
43247         * lib/alignof.h (alignof): Remove macro.
43248         * NEWS: Mention the change.
43249         Reported by Paul Eggert.
43251 2011-11-01  Bruno Haible  <bruno@clisp.org>
43253         New module 'fchownat', split off from module 'openat'.
43254         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
43255         defined.
43256         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
43257         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
43258         invoke gl_FUNC_FCHOWNAT.
43259         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
43260         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
43261         * modules/fchownat: New file, extracted from modules/openat.
43262         * modules/openat (Files): Remove lib/fchownat.c.
43263         (Depends-on): Remove lchown.
43264         (configure.ac): Remove AC_LIBOBJ of fchownat.
43265         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
43266         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
43267         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
43268         (Depends-on): Remove mgetgroups, usleep, stat-time.
43269         (configure.ac): Remove test for getegid.
43270         (Makefile.am): Remove rules for test-fchownat.
43271         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
43272         of module 'openat'.
43273         * NEWS: Mention the change.
43275 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
43277         stdalign: port better to MSVC and to Sun C 5.11
43278         This fixes some of the problems reported by Bruno Haible in
43279         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
43280         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
43281         shortcomings of MSVC and of Sun C 5.11.
43282         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
43283         around __declspec arg.
43284         * modules/stdalign-tests (Files): Add tests/macros.h.
43285         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
43286         Include macros.h, for ASSERT.
43287         (DECLARE_ALIGNED): Remove.
43288         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
43289         to catch bug), and to 1 if not (simplifies the rest of the code).
43290         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
43291         (CHECK_AUTO): Remove.
43292         (CHECK_ALIGNED): Check only the alignment of the static vars,
43293         since auto var alignment isn't supported by Sun C 5.11.
43294         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
43295         ASSERT failures are easier to diagnose.
43297 2011-10-31  Bruno Haible  <bruno@clisp.org>
43299         doc about some IRIX 5.3 problems.
43300         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
43301         on IRIX 5.3.
43302         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
43303         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
43304         5.3.
43305         * doc/posix-functions/grantpt.texi: Likewise.
43306         * doc/posix-functions/unlockpt.texi: Likewise.
43307         * doc/posix-functions/lgamma.texi: Likewise.
43308         * doc/posix-functions/nextafter.texi: Likewise.
43309         * doc/posix-functions/remainder.texi: Likewise.
43310         * doc/posix-functions/select.texi: Mention misplaced declaration on
43311         IRIX 5.3.
43312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43314 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
43316         gitlog-to-changelog: fix git-log invocation.
43317         git-log mishandles date strings before 1970-01-01 UTC, and there is
43318         no use to specify --since=1970-01-01 by default anyway.
43319         * build-aux/gitlog-to-changelog: By default, when no --since option
43320         was given, do not specify explicit --since option to git-log.
43322 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
43324         gitlog-to-changelog: new option --append-dot.
43325         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
43326         first non-blank line of each commit message terminated with a dot.
43328 2011-10-30  Bruno Haible  <bruno@clisp.org>
43330         ffsl, ffsll: Avoid compilation error due to 'restrict'.
43331         * lib/ffsl.h: Include <config.h>.
43332         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
43334 2011-10-30  Jim Meyering  <meyering@redhat.com>
43336         GNUmakefile: reenable "make syntax-check" for most projects
43337         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
43338         build-aux variable", "syntax-check" would do nothing but succeed with
43339         the "No version control files detected..." diagnostic (unless you
43340         happened to override _build-aux via cfg.mk).
43341         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
43342         to precede inclusion of maint.mk.  Otherwise, these variables would
43343         be used undefined in any project that does not override the default.
43345 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
43347         gitlog-to-changelog: treat a message with only blank lines as empty.
43348         * build-aux/gitlog-to-changelog: Move the code that removes leading and
43349         trailing blank lines before the code that issues a warning about an
43350         empty commit message.
43352 2011-10-30  Jim Meyering  <meyering@redhat.com>
43354         test-parse-datetime.c: avoid new DST-related false positive test failure
43355         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
43356         based on the time/date we'll convert, not the current time.
43357         Otherwise, the moment we cross a DST boundary like today's in
43358         Europe, (CEST to CET), that offset ends up being one hour off.
43360 2011-10-27  Bruno Haible  <bruno@clisp.org>
43362         fstat: Tweak documentation.
43363         * modules/fstat (Description): More precise description.
43365 2011-10-27  Bruno Haible  <bruno@clisp.org>
43367         Update documentation regarding 'largefile' module.
43368         * doc/posix-functions/fstat.texi: Tweak wording.
43369         * doc/posix-functions/opendir.texi: Mention that the module fixes the
43370         problems with huge directories and/or small ino_t types.
43371         * doc/posix-functions/readdir.texi: Likewise.
43372         * doc/posix-functions/rewinddir.texi: Likewise.
43374 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
43376         maint.mk: don't maintain a second build-aux variable.
43377         * maint.mk (build_aux): Removed.  The maintainer-makefile module
43378         depends on GNUmakefile, which already maintains a cfg.mk
43379         overridable $(_build-aux) for projects with a non-standard
43380         build-aux directory location, although without the $(srcdir)
43381         prefix.  Use that variable consistently instead of introducing a
43382         second one.  Adjust all call sites.
43384 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
43386         Add stdalign module and use it in other modules.
43387         This is based on a previous proposal by Bruno Haible
43388         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
43390         stdalign: new module
43391         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
43392         * modules/stdalign: New files.
43393         * MODULES.html.sh (c1x_core_properties): Add stdalign.
43394         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
43396         stdalign-tests: new module
43397         * modules/stdalign-tests, tests/test-stdalign.c: New files.
43399         argp: use stdalign
43400         * lib/argp-parse.c: Include <stdalign.h>.
43401         (alignof): Remove.
43402         * modules/argp (Depends-on): Add stdalign.
43404         crypto libraries: use stdalign
43405         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
43406         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
43407         Do not include <stdlib.h> twice, in md4.c.
43408         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
43409         because we are accessing a pointer's bit-pattern, not a size.
43410         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
43411         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
43412         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
43413         * modules/crypto/sha512: Likewise.
43415         sys_socket: use stdalign, not alignof
43416         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
43417         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
43419 2011-10-27  Bruno Haible  <bruno@clisp.org>
43421         raise test: Avoid a test failure on Linux/MIPS.
43422         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
43423         because 99 is a valid signal on Linux/MIPS.
43425 2011-10-27  Bruno Haible  <bruno@clisp.org>
43427         nonblocking tests: Fix test failure on Linux/MIPS.
43428         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
43429         Set to 270000.
43431 2011-10-27  Bruno Haible  <bruno@clisp.org>
43433         utimensat: Work around problem on Linux/hppa.
43434         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
43435         values.
43436         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
43438 2011-10-25  Jim Meyering  <meyering@redhat.com>
43440         maint.mk: fix a bug in sc_prohibit_stddef_without_use
43441         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
43442         after symbols like NULL, size_t, etc.
43443         Reported by Alfred M. Szmidt.
43445         maint.mk: exempt ENODATA from a syntax-check rule
43446         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
43447         from the sc_prohibit_always-defined_macros syntax-check rule.
43448         Add a comment.  See this for more details:
43449         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
43451 2011-10-23  Jim Meyering  <meyering@redhat.com>
43453         fts: close parent dir FD before returning from post-traversal fts_read
43454         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
43455         unlink A, even though an FD open on A remained.  This is suboptimal
43456         (holding a file descriptor open longer than needed), but otherwise not
43457         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
43458         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
43459         that represents a real problem: it causes the removal of A to fail
43460         with e.g., "rm: cannot remove `A': Device or resource busy"
43462         fts visits each directory twice and keeps a cache (fts_fd_ring) of
43463         directory file descriptors.  After completing the final, FTS_DP,
43464         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
43465         cache, but then proceeded to add a new FD to it via the subsequent
43466         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
43467         final file descriptor would be closed only via fts_close's call to
43468         fd_ring_clear.  Now, it is usually closed earlier, via the final
43469         FTS_DP-returning fts_read call.
43470         * lib/fts.c (restore_initial_cwd): New function, converted from
43471         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
43472         Update callers.
43473         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
43474         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
43476 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
43477             Bruno Haible  <bruno@clisp.org>
43478             Jim Meyering  <jim@meyering.net>
43480         readme-release: improve safety of release prep instructions.
43481         * README-release: Don't git pull all branches when only master
43482         is needed for the release process.
43483         Run make maintainer-clean before changing trees and merging.
43484         Don't try to run ./configure right after git pull in case files
43485         that influence the bootstrap process have changed, move the
43486         ./configure step to after running ./bootstrap.
43487         Don't bootstrap "one last time"... it's the first time!
43489 2011-10-22  Bruno Haible  <bruno@clisp.org>
43491         errno, strerror-override: Support for MSVC 10.
43492         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
43493         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
43494         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
43495         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
43496         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
43497         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
43498         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
43499         Assign values compatible with MSVC 10.
43500         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
43501         New macros.
43502         (GNULIB_defined_EWINSOCK): New macro.
43503         * lib/strerror-override.c (strerror_override): Update accordingly.
43504         * lib/strerror-override.h: Likewise.
43505         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
43506         longer equal to the corresponding errno value.
43507         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43509 2011-10-22  Bruno Haible  <bruno@clisp.org>
43511         perror: Recognize when test program crashes.
43512         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
43513         strerror, set gl_cv_func_perror_works to no.
43514         Reported by Daniel Richard G. <skunk@iskunk.org>.
43516         perror: Fix indentation.
43517         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
43519 2011-10-22  Bruno Haible  <bruno@clisp.org>
43521         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
43522         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
43523         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
43524         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
43525         functions, not as a macro.
43526         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
43527         macros.
43528         (isfinite, isinf, isnan, signbit): Check overloaded functions and
43529         absence of macro.
43530         Suggested by Eric Blake.
43531         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43533 2011-10-21  Bruno Haible  <bruno@clisp.org>
43535         relocatable-prog-wrapper: Don't leave object files behind.
43536         * build-aux/install-reloc: Re-synchronize list of .o files to be
43537         removed with list of compilation units.
43539 2011-10-20  Bruno Haible  <bruno@clisp.org>
43541         openpty, posix_openpt: Remove code duplication.
43542         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
43543         * lib/openpty.c: Include <stdlib.h>.
43544         (openpty): Use posix_openpt on all platforms except IRIX.
43545         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
43547 2011-10-20  Bruno Haible  <bruno@clisp.org>
43549         unlockpt: Detect invalid argument.
43550         * lib/unlockpt.c: Include <fcntl.h>.
43551         (unlockpt): Check whether fd is valid, using fcntl().
43552         * modules/unlockpt (Depends-on): Add fcntl-h.
43554 2011-10-20  Bruno Haible  <bruno@clisp.org>
43556         openpty: Avoid compilation error on AIX 6.1.
43557         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
43559 2011-10-20  Bruno Haible  <bruno@clisp.org>
43561         posix_openpt: Support for OpenBSD.
43562         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
43563         (posix_openpt) [OpenBSD]: New code.
43564         * lib/grantpt.c: Include <fcntl.h>.
43565         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
43566         * modules/grantpt (Depends-on): Add fcntl-h.
43568 2011-10-20  Bruno Haible  <bruno@clisp.org>
43570         posix_openpt test: Coding style.
43571         * tests/test-posix_openpt.c: Use GNU coding style.
43573 2011-10-20  Bruno Haible  <bruno@clisp.org>
43575         grantpt: Support --avoid=pt_chown.
43576         * modules/grantpt (Files): Add lib/pty-private.h.
43578 2011-10-20  Bruno Haible  <bruno@clisp.org>
43580         posix_openpt: Fix autoconf macro.
43581         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
43582         unneeded check for _getpty.
43584 2011-10-20  Bruno Haible  <bruno@clisp.org>
43586         openpty: Update comments.
43587         * lib/openpty.c: Add comments about Minix.
43589 2011-10-19  Eric Blake  <eblake@redhat.com>
43591         openpty: relax license
43592         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
43594         pt_chown: use configmake to simplify build
43595         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
43597         ptsname and others: relax license
43598         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
43599         * modules/unlockpt (License): Likewise.
43600         * modules/pt_chown (License): Likewise.
43601         * modules/ptsname (License): Likewise.
43602         * modules/ttyname_r (License): Likewise.
43604 2011-10-19  Jim Meyering  <meyering@redhat.com>
43606         posix_openpt: remove spurious #endif
43607         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
43609 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
43611         maint.mk: Respect $(build_aux) in web-manual rule.
43612         * top/maint.mk (web-manual): Find gen-announce script in user's
43613         $(build_aux) directory instead of hard-coding 'build-aux'.
43615 2011-10-19  Bruno Haible  <bruno@clisp.org>
43617         posix_openpt: Fix compilation error.
43618         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
43619         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
43620         Mention the openpty module as an alternative.
43622 2011-10-19  Bruno Haible  <bruno@clisp.org>
43624         Support for old NeXTstep 3.3 frexp().
43625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
43626         execution time of the test to 5 seconds.
43627         Reported by Daniel Richard G. <skunk@iskunk.org>.
43629 2011-10-19  Bruno Haible  <bruno@clisp.org>
43631         Support for old NeXTstep 3.3 sed.
43632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
43633         part, use /.../, not \|...|. Escape periods in the header file name.
43634         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
43635         Reported by Daniel Richard G. <skunk@iskunk.org>.
43637 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43639         Support for old NeXTstep 3.3 gcc.
43640         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
43641         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
43642         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
43643         * lib/spawn.in.h (_Restrict_arr_): Likewise.
43644         * lib/regex.h (_Restrict_arr_): Likewise.
43645         * lib/regex_internal.h (re_token_t): Likewise.
43646         * lib/regexec.c (check_node_accept_bytes): Likewise.
43647         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
43649 2011-10-18  Eric Blake  <eblake@redhat.com>
43651         posix_openpt: new module
43652         * modules/posix_openpt: New module.
43653         * m4/posix_openpt.m4: New file.
43654         * lib/posix_openpt.c: Likewise.
43655         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
43656         (gl_STDLIB_H_DEFAULTS): Set defaults.
43657         * modules/stdlib (Makefile.am): Substitute macros.
43658         * lib/stdlib.in.h (posix_openpt): Declare.
43659         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
43660         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
43661         * modules/posix_openpt-tests: New test module.
43662         * tests/test-posix_openpt.c: New test.
43664 2011-10-15  Bruno Haible  <bruno@clisp.org>
43666         xstrtoll: Fix compilation failure.
43667         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
43668         from lib/strtol.c.
43669         * doc/posix-headers/limits.texi: Mention missing numerical limits on
43670         some platforms.
43671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43673 2011-10-15  Bruno Haible  <bruno@clisp.org>
43675         vasnprintf: Optimize bit search operation.
43676         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
43677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
43678         gl_DOUBLE_EXPONENT_LOCATION.
43679         * modules/vasnprintf (Files): Add m4/exponentd.m4.
43680         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43681         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43682         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43683         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43684         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43685         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43686         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43687         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
43689 2011-10-15  Bruno Haible  <bruno@clisp.org>
43691         vasnprintf: Fix comments.
43692         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
43694 2011-10-14  Bruno Haible  <bruno@clisp.org>
43696         Tests for module 'integer_length_ll'.
43697         * modules/integer_length_ll-tests: New file.
43698         * tests/test-integer_length_ll.c: New file.
43700         New module 'integer_length_ll'.
43701         * lib/integer_length_ll.c: New file.
43702         * modules/integer_length_ll: New file.
43704 2011-10-14  Bruno Haible  <bruno@clisp.org>
43706         Tests for module 'integer_length_l'.
43707         * modules/integer_length_l-tests: New file.
43708         * tests/test-integer_length_l.c: New file.
43710         New module 'integer_length_l'.
43711         * lib/integer_length_l.c: New file.
43712         * modules/integer_length_l: New file.
43714 2011-10-14  Bruno Haible  <bruno@clisp.org>
43716         Tests for module 'integer_length'.
43717         * modules/integer_length-tests: New file.
43718         * tests/test-integer_length.c: New file.
43720         New module 'integer_length'.
43721         * lib/integer_length.h: New file.
43722         * lib/integer_length.c: New file.
43723         * modules/integer_length: New file.
43725 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43727         popen: Fix dependency conditions.
43728         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
43730 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43732         perror: Fix autoconf test.
43733         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
43734         <stdlib.h> and <string.h>.
43736 2011-10-14  Bruno Haible  <bruno@clisp.org>
43738         ffsl: Optimize on 64-bit platforms.
43739         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
43740         unrolling.
43742 2011-10-13  Bruno Haible  <bruno@clisp.org>
43744         ffsl: Optimize on 32-bit platforms.
43745         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
43746         use ffs() without a loop.
43748         ffsl, ffsll: Optimize for GCC.
43749         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
43750         * lib/ffsl.c (GCC_BUILTIN): New macro.
43751         * lib/ffsll.c (GCC_BUILTIN): Likewise.
43753 2011-10-13  Bruno Haible  <bruno@clisp.org>
43755         ffs, bcopy, memset: Support symbol renaming via config.h.
43756         * lib/ffs.c: Include <config.h>.
43757         * lib/bcopy.c: Likewise.
43758         * lib/memset.c: Likewise.
43760 2011-10-10  Bruno Haible  <bruno@clisp.org>
43762         atanl: Simplify for platforms where 'long double' == 'double'.
43763         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43764         alternative implementation.
43765         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43766         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43767         * modules/atanl (Depends-on): Add atan. Update conditions.
43769 2011-10-10  Bruno Haible  <bruno@clisp.org>
43771         acosl: Simplify for platforms where 'long double' == 'double'.
43772         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43773         alternative implementation.
43774         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43775         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43776         * modules/acosl (Depends-on): Add acos. Update conditions.
43778 2011-10-10  Bruno Haible  <bruno@clisp.org>
43780         asinl: Simplify for platforms where 'long double' == 'double'.
43781         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43782         alternative implementation.
43783         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43784         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43785         * modules/asinl (Depends-on): Add asin. Update conditions.
43787 2011-10-10  Bruno Haible  <bruno@clisp.org>
43789         tanl: Simplify for platforms where 'long double' == 'double'.
43790         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43791         implementation.
43792         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43793         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43794         * modules/tanl (Depends-on): Add tan. Update conditions.
43795         (configure.ac): Don't compile trigl.c if
43796         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43798 2011-10-10  Bruno Haible  <bruno@clisp.org>
43800         cosl: Simplify for platforms where 'long double' == 'double'.
43801         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43802         implementation.
43803         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43804         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43805         * modules/cosl (Depends-on): Add cos. Update conditions.
43806         (configure.ac): Don't compile sincosl.c and trigl.c if
43807         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43809 2011-10-10  Bruno Haible  <bruno@clisp.org>
43811         sinl: Simplify for platforms where 'long double' == 'double'.
43812         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43813         implementation.
43814         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43815         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43816         * modules/sinl (Depends-on): Add sin. Update conditions.
43817         (configure.ac): Don't compile sincosl.c and trigl.c if
43818         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43820 2011-10-10  Bruno Haible  <bruno@clisp.org>
43822         logl: Simplify for platforms where 'long double' == 'double'.
43823         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43824         implementation.
43825         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43826         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43827         * modules/logl (Depends-on): Add log. Update conditions.
43829 2011-10-10  Bruno Haible  <bruno@clisp.org>
43831         expl: Simplify for platforms where 'long double' == 'double'.
43832         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43833         implementation.
43834         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43835         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43836         * modules/expl (Depends-on): Add exp. Update conditions.
43838 2011-10-10  Bruno Haible  <bruno@clisp.org>
43840         sqrtl: Simplify for platforms where 'long double' == 'double'.
43841         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43842         alternative implementation.
43843         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43844         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43845         * modules/sqrtl (Depends-on): Update conditions.
43847 2011-10-10  Bruno Haible  <bruno@clisp.org>
43849         ldexpl: Simplify for platforms where 'long double' == 'double'.
43850         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43851         alternative implementation.
43852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43853         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43854         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
43856 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
43858         ffsll: set correct witness
43859         * modules/ffsll (configure.ac): Fix typo.
43861 2011-10-10  Bruno Haible  <bruno@clisp.org>
43863         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
43864         * lib/printf-frexpl.c: Include <config.h>.
43865         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43866         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
43867         second time.
43868         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
43869         gl_LONG_DOUBLE_VS_DOUBLE.
43870         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
43871         conditions.
43873 2011-10-10  Bruno Haible  <bruno@clisp.org>
43875         frexpl: Simplify for platforms where 'long double' == 'double'.
43876         * lib/frexpl.c: Include <config.h>.
43877         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43878         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43879         time.
43880         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43881         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43882         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
43883         * modules/frexpl (Depends-on): Add frexp. Update conditions.
43884         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
43885         conditions.
43887 2011-10-10  Jim Meyering  <meyering@redhat.com>
43889         test-renameat: don't leave behind a temporary file
43890         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
43891           ERROR: files left in build directory after distclean:
43892           ./gltests/test-renameat.too
43893           make[1]: *** [distcleancheck] Error 1
43894         Reported by Tom G. Christensen.
43896 2011-10-09  Bruno Haible  <bruno@clisp.org>
43898         rint: Determine RINT_LIBM correctly on AIX 7.
43899         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43900         directly, not only through a function pointer. Also accept an optional
43901         4th argument with extra code.
43902         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43903         rintf() call by gcc when optimizing.
43905         mathfunc.m4: Refactor.
43906         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43907         m4 variable.
43909 2011-10-09  Bruno Haible  <bruno@clisp.org>
43911         rintl: Simplify for platforms where 'long double' == 'double'.
43912         * lib/rintl.c: Include <config.h>.
43913         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43914         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43915         time.
43916         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43917         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43918         * modules/rintl (Depends-on): Add rint. Update conditions.
43920 2011-10-09  Bruno Haible  <bruno@clisp.org>
43922         roundl: Simplify for platforms where 'long double' == 'double'.
43923         * lib/roundl.c: Include <config.h>.
43924         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43925         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43926         time.
43927         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43928         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43929         * modules/roundl (Depends-on): Add round. Update conditions.
43931 2011-10-09  Bruno Haible  <bruno@clisp.org>
43933         truncl: Simplify for platforms where 'long double' == 'double'.
43934         * lib/truncl.c: Include <config.h>.
43935         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43936         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43937         time.
43938         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43939         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43940         * modules/truncl (Depends-on): Add trunc. Update conditions.
43942 2011-10-09  Bruno Haible  <bruno@clisp.org>
43944         ceill: Simplify for platforms where 'long double' == 'double'.
43945         * lib/ceill.c: Include <config.h>.
43946         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43947         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43948         time.
43949         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43950         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43951         * modules/ceill (Depends-on): Add ceil. Update conditions.
43953 2011-10-09  Bruno Haible  <bruno@clisp.org>
43955         floorl: Simplify for platforms where 'long double' == 'double'.
43956         * lib/floorl.c: Include <config.h>.
43957         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43958         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43959         time.
43960         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43961         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43962         * modules/floorl (Depends-on): Add floor. Update conditions.
43964 2011-10-09  Bruno Haible  <bruno@clisp.org>
43966         rint: Fix ordering constraints.
43967         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43968         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43969         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43971 2011-10-09  Bruno Haible  <bruno@clisp.org>
43973         copysignl: Simplify for platforms where 'long double' == 'double'.
43974         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43975         alternative.
43976         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43977         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43978         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43980 2011-10-09  Bruno Haible  <bruno@clisp.org>
43982         Tests for module 'rintl'.
43983         * modules/rintl-tests: New file.
43984         * tests/test-rintl.c: New file.
43986         New module 'rintl'.
43987         * lib/math.in.h (rintl): New declaration.
43988         * lib/rintl.c: New file.
43989         * m4/rintl.m4: New file.
43990         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43992         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43993         * modules/rintl: New file.
43994         * tests/test-math-c++.cc: Check the declaration of rintl.
43995         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43996         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43997         * doc/posix-functions/rintl.texi: Mention the new module.
43999 2011-10-09  Bruno Haible  <bruno@clisp.org>
44001         Tests for module 'rintf'.
44002         * modules/rintf-tests: New file.
44003         * tests/test-rintf.c: New file.
44005         New module 'rintf'.
44006         * lib/math.in.h (rintf): New declaration.
44007         * lib/rintf.c: New file.
44008         * m4/rintf.m4: New file.
44009         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
44010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
44011         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
44012         * modules/rintf: New file.
44013         * tests/test-math-c++.cc: Check the declaration of rintf.
44014         * doc/posix-functions/rintf.texi: Mention the new module.
44016 2011-10-09  Bruno Haible  <bruno@clisp.org>
44018         rint: Support for MSVC.
44019         * lib/math.in.h (rint): New declaration.
44020         * lib/rint.c: New file.
44021         * m4/rint.m4: New file.
44022         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
44023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
44024         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
44025         * modules/rint (Description): Fix.
44026         (Files): Add lib/rint.c, m4/rint.m4.
44027         (Depends-on): Add math.
44028         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
44029         gl_MATH_MODULE_INDICATOR.
44030         * tests/test-math-c++.cc: Check the declaration of rint.
44031         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
44032         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
44033         * doc/posix-functions/rint.texi: Mention the replacement provided by
44034         the module.
44036         rint tests: More tests.
44037         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
44038         minus-zero.h, infinity.h, nan.h.
44039         (main): Skip the test if the current rounding mode is not standard. Add
44040         tests for negative numbers, minus zero, infinity, NaN.
44041         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
44042         tests/nan.h.
44043         (Depends-on): Add isnand-nolibm.
44045 2011-10-09  Bruno Haible  <bruno@clisp.org>
44047         Tests for module 'copysignl'.
44048         * modules/copysignl-tests: New file.
44049         * tests/test-copysignl.c: New file.
44051         New module 'copysignl'.
44052         * lib/math.in.h (copysignl): New declaration.
44053         * lib/copysignl.c: New file.
44054         * m4/copysignl.m4: New file.
44055         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
44056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
44057         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
44058         HAVE_COPYSIGNL.
44059         * modules/copysignl: New file.
44060         * tests/test-math-c++.cc: Check the declaration of copysignl.
44061         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
44062         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
44063         * doc/posix-functions/copysignl.texi: Mention the new module.
44065 2011-10-09  Bruno Haible  <bruno@clisp.org>
44067         Tests for module 'copysignf'.
44068         * modules/copysignf-tests: New file.
44069         * tests/test-copysignf.c: New file.
44071         New module 'copysignf'.
44072         * lib/math.in.h (copysignf): New declaration.
44073         * lib/copysignf.c: New file.
44074         * m4/copysignf.m4: New file.
44075         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
44076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
44077         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
44078         HAVE_COPYSIGNF.
44079         * modules/copysignf: New file.
44080         * tests/test-math-c++.cc: Check the declaration of copysignf.
44081         * doc/posix-functions/copysignf.texi: Mention the new module.
44083 2011-10-09  Bruno Haible  <bruno@clisp.org>
44085         Ensure that HAVE_* variables are set to 1 before they are set to 0.
44086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
44087         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
44088         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44089         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
44090         gl_SIGNAL_H_DEFAULTS.
44092 2011-10-09  Bruno Haible  <bruno@clisp.org>
44094         poll: Make macro safer.
44095         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
44096         ac_cv_header_poll_h is not set.
44098 2011-10-09  Bruno Haible  <bruno@clisp.org>
44100         copysign: Provide replacement.
44101         * lib/math.in.h (copysign): New declaration.
44102         * lib/copysign.c: New file.
44103         * m4/copysign.m4: New file.
44104         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
44105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
44106         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
44107         HAVE_COPYSIGN.
44108         * modules/copysign (Description): Clarify.
44109         (Files): Add lib/copysign.c, m4/copysign.m4.
44110         (Depends-on): Add math, signbit.
44111         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
44112         gl_MATH_MODULE_INDICATOR.
44113         * tests/test-math-c++.cc: Check the declaration of copysign.
44114         * doc/posix-functions/copysign.texi: Mention the effects of the module
44115         on Minix and MSVC.
44117 2011-10-09  Bruno Haible  <bruno@clisp.org>
44119         isinf: Ensure macro on AIX 5.1.
44120         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
44121         macro.
44122         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
44124 2011-10-09  Bruno Haible  <bruno@clisp.org>
44126         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
44127         * modules/snprintf-posix-tests (configure.ac): Require
44128         gl_LONG_DOUBLE_VS_DOUBLE.
44129         * modules/sprintf-posix-tests (configure.ac): Likewise.
44130         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
44131         * modules/vasprintf-posix-tests (configure.ac): Likewise.
44132         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
44133         * modules/vsprintf-posix-tests (configure.ac): Likewise.
44134         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
44135         tests on platforms where 'long double' is the same as 'double'.
44136         * tests/test-sprintf-posix.h (test_function): Likewise.
44137         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44138         * tests/test-vasprintf-posix.c (test_function): Likewise.
44140         *printf: Fix for platforms where 'long double' == 'double'.
44141         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44142         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
44143         * modules/dprintf-posix (Files): Add m4/math_h.m4.
44144         * modules/fprintf-posix (Files): Likewise.
44145         * modules/obstack-printf-posix (Files): Likewise.
44146         * modules/snprintf-posix (Files): Likewise.
44147         * modules/sprintf-posix (Files): Likewise.
44148         * modules/vasnprintf (Files): Likewise.
44149         * modules/vasnprintf-posix (Files): Likewise.
44150         * modules/vasprintf-posix (Files): Likewise.
44151         * modules/vdprintf-posix (Files): Likewise.
44152         * modules/vfprintf-posix (Files): Likewise.
44153         * modules/vsnprintf-posix (Files): Likewise.
44154         * modules/vsprintf-posix (Files): Likewise.
44155         * modules/unistdio/u8-vasnprintf (Files): Likewise.
44156         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
44157         * modules/unistdio/u16-vasnprintf (Files): Likewise.
44158         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
44159         * modules/unistdio/u32-vasnprintf (Files): Likewise.
44160         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
44161         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
44163         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
44164         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
44165         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
44166         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
44167         'long double'.
44168         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
44170         isinf: Fix for platforms where 'long double' == 'double'.
44171         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
44172         Don't blindly assume 80-bit 'long double'.
44174         isfinite: Fix for platforms where 'long double' == 'double'.
44175         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
44176         Don't blindly assume 80-bit 'long double'.
44178         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
44179         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
44180         * modules/isfinite-tests (configure.ac): Require
44181         gl_LONG_DOUBLE_VS_DOUBLE.
44182         * modules/isinf-tests (configure.ac): Likewise.
44183         * modules/isnan-tests (configure.ac): Likewise.
44184         * modules/isnanl-tests (configure.ac): Likewise.
44185         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
44186         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
44187         tests on platforms where 'long double' is the same as 'double'.
44188         * tests/test-isinf.c (test_isinfl): Likewise.
44189         * tests/test-isnan.c (test_long_double): Likewise.
44190         * tests/test-isnanl.h (main): Likewise.
44192 2011-10-08  Bruno Haible  <bruno@clisp.org>
44194         Tests for module 'tanhf'.
44195         * modules/tanhf-tests: New file.
44196         * tests/test-tanhf.c: New file.
44198         New module 'tanhf'.
44199         * lib/math.in.h (tanhf): New declaration.
44200         * lib/tanhf.c: New file.
44201         * m4/tanhf.m4: New file.
44202         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
44203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
44204         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
44205         * modules/tanhf: New file.
44206         * tests/test-math-c++.cc: Check the declaration of tanhf.
44207         * doc/posix-functions/tanhf.texi: Mention the new module.
44209         tanh: Use a .m4 file.
44210         * m4/tanh.m4: New file.
44211         * modules/tanh (Files): Add it.
44212         (configure.ac): Just invoke gl_FUNC_TANH.
44214 2011-10-08  Bruno Haible  <bruno@clisp.org>
44216         Tests for module 'coshf'.
44217         * modules/coshf-tests: New file.
44218         * tests/test-coshf.c: New file.
44220         New module 'coshf'.
44221         * lib/math.in.h (coshf): New declaration.
44222         * lib/coshf.c: New file.
44223         * m4/coshf.m4: New file.
44224         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
44225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
44226         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
44227         * modules/coshf: New file.
44228         * tests/test-math-c++.cc: Check the declaration of coshf.
44229         * doc/posix-functions/coshf.texi: Mention the new module.
44231         cosh: Use a .m4 file.
44232         * m4/cosh.m4: New file.
44233         * modules/cosh (Files): Add it.
44234         (configure.ac): Just invoke gl_FUNC_COSH.
44236 2011-10-08  Bruno Haible  <bruno@clisp.org>
44238         Tests for module 'sinhf'.
44239         * modules/sinhf-tests: New file.
44240         * tests/test-sinhf.c: New file.
44242         New module 'sinhf'.
44243         * lib/math.in.h (sinhf): New declaration.
44244         * lib/sinhf.c: New file.
44245         * m4/sinhf.m4: New file.
44246         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
44247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
44248         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
44249         * modules/sinhf: New file.
44250         * tests/test-math-c++.cc: Check the declaration of sinhf.
44251         * doc/posix-functions/sinhf.texi: Mention the new module.
44253         sinh: Use a .m4 file.
44254         * m4/sinh.m4: New file.
44255         * modules/sinh (Files): Add it.
44256         (configure.ac): Just invoke gl_FUNC_SINH.
44258 2011-10-08  Bruno Haible  <bruno@clisp.org>
44260         Tests for module 'atan2f'.
44261         * modules/atan2f-tests: New file.
44262         * tests/test-atan2f.c: New file.
44264         New module 'atan2f'.
44265         * lib/math.in.h (atan2f): New declaration.
44266         * lib/atan2f.c: New file.
44267         * m4/atan2f.m4: New file.
44268         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
44269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
44270         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
44271         * modules/atan2f: New file.
44272         * tests/test-math-c++.cc: Check the declaration of atan2f.
44273         * doc/posix-functions/atan2f.texi: Mention the new module.
44275         atan2: Use a .m4 file.
44276         * m4/atan2.m4: New file.
44277         * modules/atan2 (Files): Add it.
44278         (configure.ac): Just invoke gl_FUNC_ATAN2.
44280 2011-10-08  Bruno Haible  <bruno@clisp.org>
44282         Tests for module 'atanf'.
44283         * modules/atanf-tests: New file.
44284         * tests/test-atanf.c: New file.
44286         New module 'atanf'.
44287         * lib/math.in.h (atanf): New declaration.
44288         * lib/atanf.c: New file.
44289         * m4/atanf.m4: New file.
44290         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
44291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
44292         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
44293         * modules/atanf: New file.
44294         * tests/test-math-c++.cc: Check the declaration of atanf.
44295         * doc/posix-functions/atanf.texi: Mention the new module.
44297         atan: Use a .m4 file.
44298         * m4/atan.m4: New file.
44299         * modules/atan (Files): Add it.
44300         (configure.ac): Just invoke gl_FUNC_ATAN.
44302 2011-10-08  Bruno Haible  <bruno@clisp.org>
44304         Tests for module 'acosf'.
44305         * modules/acosf-tests: New file.
44306         * tests/test-acosf.c: New file.
44308         New module 'acosf'.
44309         * lib/math.in.h (acosf): New declaration.
44310         * lib/acosf.c: New file.
44311         * m4/acosf.m4: New file.
44312         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
44313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
44314         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
44315         * modules/acosf: New file.
44316         * tests/test-math-c++.cc: Check the declaration of acosf.
44317         * doc/posix-functions/acosf.texi: Mention the new module.
44319         acos: Use a .m4 file.
44320         * m4/acos.m4: New file.
44321         * modules/acos (Files): Add it.
44322         (configure.ac): Just invoke gl_FUNC_ACOS.
44324 2011-10-08  Bruno Haible  <bruno@clisp.org>
44326         Tests for module 'asinf'.
44327         * modules/asinf-tests: New file.
44328         * tests/test-asinf.c: New file.
44330         New module 'asinf'.
44331         * lib/math.in.h (asinf): New declaration.
44332         * lib/asinf.c: New file.
44333         * m4/asinf.m4: New file.
44334         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
44335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
44336         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
44337         * modules/asinf: New file.
44338         * tests/test-math-c++.cc: Check the declaration of asinf.
44339         * doc/posix-functions/asinf.texi: Mention the new module.
44341         asin: Use a .m4 file.
44342         * m4/asin.m4: New file.
44343         * modules/asin (Files): Add it.
44344         (configure.ac): Just invoke gl_FUNC_ASIN.
44346 2011-10-08  Bruno Haible  <bruno@clisp.org>
44348         Tests for module 'tanf'.
44349         * modules/tanf-tests: New file.
44350         * tests/test-tanf.c: New file.
44352         New module 'tanf'.
44353         * lib/math.in.h (tanf): New declaration.
44354         * lib/tanf.c: New file.
44355         * m4/tanf.m4: New file.
44356         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
44357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
44358         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
44359         * modules/tanf: New file.
44360         * tests/test-math-c++.cc: Check the declaration of tanf.
44361         * doc/posix-functions/tanf.texi: Mention the new module.
44363         tan: Use a .m4 file.
44364         * m4/tan.m4: New file.
44365         * modules/tan (Files): Add it.
44366         (configure.ac): Just invoke gl_FUNC_TAN.
44368 2011-10-08  Bruno Haible  <bruno@clisp.org>
44370         Tests for module 'cosf'.
44371         * modules/cosf-tests: New file.
44372         * tests/test-cosf.c: New file.
44374         New module 'cosf'.
44375         * lib/math.in.h (cosf): New declaration.
44376         * lib/cosf.c: New file.
44377         * m4/cosf.m4: New file.
44378         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
44379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
44380         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
44381         * modules/cosf: New file.
44382         * tests/test-math-c++.cc: Check the declaration of cosf.
44383         * doc/posix-functions/cosf.texi: Mention the new module.
44385         cos: Use a .m4 file.
44386         * m4/cos.m4: New file.
44387         * modules/cos (Files): Add it.
44388         (configure.ac): Just invoke gl_FUNC_COS.
44390 2011-10-08  Bruno Haible  <bruno@clisp.org>
44392         Tests for module 'sinf'.
44393         * modules/sinf-tests: New file.
44394         * tests/test-sinf.c: New file.
44396         New module 'sinf'.
44397         * lib/math.in.h (sinf): New declaration.
44398         * lib/sinf.c: New file.
44399         * m4/sinf.m4: New file.
44400         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
44401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
44402         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
44403         * modules/sinf: New file.
44404         * tests/test-math-c++.cc: Check the declaration of sinf.
44405         * doc/posix-functions/sinf.texi: Mention the new module.
44407         sin: Use a .m4 file.
44408         * m4/sin.m4: New file.
44409         * modules/sin (Files): Add it.
44410         (configure.ac): Just invoke gl_FUNC_SIN.
44412 2011-10-08  Bruno Haible  <bruno@clisp.org>
44414         Tests for module 'powf'.
44415         * modules/powf-tests: New file.
44416         * tests/test-powf.c: New file.
44418         New module 'powf'.
44419         * lib/math.in.h (powf): New declaration.
44420         * lib/powf.c: New file.
44421         * m4/powf.m4: New file.
44422         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
44423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
44424         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
44425         * modules/powf: New file.
44426         * tests/test-math-c++.cc: Check the declaration of powf.
44427         * doc/posix-functions/powf.texi: Mention the new module.
44429         pow: Use a .m4 file.
44430         * m4/pow.m4: New file.
44431         * modules/pow (Files): Add it.
44432         (configure.ac): Just invoke gl_FUNC_POW.
44434 2011-10-08  Bruno Haible  <bruno@clisp.org>
44436         Tests for module 'log10f'.
44437         * modules/log10f-tests: New file.
44438         * tests/test-log10f.c: New file.
44440         New module 'log10f'.
44441         * lib/math.in.h (log10f): New declaration.
44442         * lib/log10f.c: New file.
44443         * m4/log10f.m4: New file.
44444         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
44445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
44446         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
44447         * modules/log10f: New file.
44448         * tests/test-math-c++.cc: Check the declaration of log10f.
44449         * doc/posix-functions/log10f.texi: Mention the new module.
44451         log10: Use a .m4 file.
44452         * m4/log10.m4: New file.
44453         * modules/log10 (Files): Add it.
44454         (configure.ac): Just invoke gl_FUNC_LOG10.
44456 2011-10-08  Bruno Haible  <bruno@clisp.org>
44458         Tests for module 'logf'.
44459         * modules/logf-tests: New file.
44460         * tests/test-logf.c: New file.
44462         New module 'logf'.
44463         * lib/math.in.h (logf): New declaration.
44464         * lib/logf.c: New file.
44465         * m4/logf.m4: New file.
44466         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
44467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
44468         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
44469         * modules/logf: New file.
44470         * tests/test-math-c++.cc: Check the declaration of logf.
44471         * doc/posix-functions/logf.texi: Mention the new module.
44473         log: Use a .m4 file.
44474         * m4/log.m4: New file.
44475         * modules/log (Files): Add it.
44476         (configure.ac): Just invoke gl_FUNC_LOG.
44478 2011-10-08  Bruno Haible  <bruno@clisp.org>
44480         Tests for module 'expf'.
44481         * modules/expf-tests: New file.
44482         * tests/test-expf.c: New file.
44484         New module 'expf'.
44485         * lib/math.in.h (expf): New declaration.
44486         * lib/expf.c: New file.
44487         * m4/expf.m4: New file.
44488         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
44489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
44490         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
44491         * modules/expf: New file.
44492         * tests/test-math-c++.cc: Check the declaration of expf.
44493         * doc/posix-functions/expf.texi: Mention the new module.
44495         exp: Use a .m4 file.
44496         * m4/exp.m4: New file.
44497         * modules/exp (Files): Add it.
44498         (configure.ac): Just invoke gl_FUNC_EXP.
44500 2011-10-08  Bruno Haible  <bruno@clisp.org>
44502         Tests for module 'sqrtf'.
44503         * modules/sqrtf-tests: New file.
44504         * tests/test-sqrtf.c: New file.
44506         New module 'sqrtf'.
44507         * lib/math.in.h (sqrtf): New declaration.
44508         * lib/sqrtf.c: New file.
44509         * m4/sqrtf.m4: New file.
44510         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
44511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
44512         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
44513         * modules/sqrtf: New file.
44514         * tests/test-math-c++.cc: Check the declaration of sqrtf.
44515         * doc/posix-functions/sqrtf.texi: Mention the new module.
44517 2011-10-08  Bruno Haible  <bruno@clisp.org>
44519         Tests: Avoid link failures w.r.t. libintl.
44520         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
44521         $(LIBINTL).
44522         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
44523         $(LIBINTL).
44524         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
44525         against $(LIBINTL).
44526         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
44527         $(LIBINTL).
44528         * modules/openat-tests (Makefile.am): Link test-fchmodat against
44529         $(LIBINTL).
44530         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
44532 2011-10-08  Bruno Haible  <bruno@clisp.org>
44534         pow tests: Defeat compiler optimizations.
44535         * tests/test-pow.c (main): Assign arguments to x and y before use.
44537 2011-10-08  Bruno Haible  <bruno@clisp.org>
44539         gnulib-tool: Improve last commit.
44540         * gnulib-tool (func_modules_transitive_closure): Simplify code.
44541         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
44542         ignore dependencies that are not among the modules list.
44544 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
44546         gnulib-tool: don't follow dependencies to avoided modules
44547         This fixes a bug that is related to the previous one.
44548         * gnulib-tool (func_modules_transitive_closure)
44549         (func_emit_autoconf_snippets):
44550         Check whether a dependency is acceptable before using it.
44551         (--extract-dependencies): Report an error if --avoid is also used,
44552         since this combination of options is not yet supported.
44554         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
44555         Problem reported by Peter Dyballa in
44556         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
44557         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
44558         when echoing "$condition".
44560 2011-10-07  Bruno Haible  <bruno@clisp.org>
44562         Fix documentation about math functions on MacOS X.
44563         * doc/posix-functions/exp2.texi: Don't say the function is missing on
44564         MacOS X 10.5.
44565         * doc/posix-functions/fdim.texi: Likewise.
44566         * doc/posix-functions/feclearexcept.texi: Likewise.
44567         * doc/posix-functions/fegetenv.texi: Likewise.
44568         * doc/posix-functions/fegetround.texi: Likewise.
44569         * doc/posix-functions/feholdexcept.texi: Likewise.
44570         * doc/posix-functions/feraiseexcept.texi: Likewise.
44571         * doc/posix-functions/fesetenv.texi: Likewise.
44572         * doc/posix-functions/fesetround.texi: Likewise.
44573         * doc/posix-functions/fetestexcept.texi: Likewise.
44574         * doc/posix-functions/feupdateenv.texi: Likewise.
44575         * doc/posix-functions/fmax.texi: Likewise.
44576         * doc/posix-functions/fmin.texi: Likewise.
44577         * doc/posix-functions/log2.texi: Likewise.
44578         * doc/posix-functions/modff.texi: Likewise.
44579         * doc/posix-functions/nan.texi: Likewise.
44580         * doc/posix-functions/nanf.texi: Likewise.
44581         * doc/posix-functions/nextafterf.texi: Likewise.
44582         * doc/posix-functions/remquo.texi: Likewise.
44584 2011-10-07  Bruno Haible  <bruno@clisp.org>
44586         modff: Drop assumption about library that defines modff.
44587         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
44588         AC_CHECK_FUNCS.
44589         * modules/modff (Files): Add m4/mathfunc.m4.
44591 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
44593         raise tests: Avoid a GCC warning.
44594         * tests/test-raise.c (handler): Use _Noreturn.
44596 2011-10-07  Bruno Haible  <bruno@clisp.org>
44598         Tests for module 'ldexpf'.
44599         * modules/ldexpf-tests: New file.
44600         * tests/test-ldexpf.c: New file.
44602         New module 'ldexpf'.
44603         * lib/math.in.h (ldexpf): New declaration.
44604         * lib/ldexpf.c: New file.
44605         * m4/ldexpf.m4: New file.
44606         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
44607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
44608         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
44609         * modules/ldexpf: New file.
44610         * tests/test-math-c++.cc: Check the declaration of ldexpf.
44611         * doc/posix-functions/ldexpf.texi: Mention the new module.
44613 2011-10-06  Bruno Haible  <bruno@clisp.org>
44615         frexpf: Work around problems on IRIX and mingw.
44616         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
44617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
44618         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
44619         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
44620         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
44621         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
44622         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
44624 2011-10-06  Bruno Haible  <bruno@clisp.org>
44626         fabsf: Drop assumption about library that defines fabsf.
44627         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
44628         AC_CHECK_FUNCS.
44629         * modules/fabsf (Files): Add m4/mathfunc.m4.
44631 2011-10-06  Bruno Haible  <bruno@clisp.org>
44633         frexpf: Drop assumption about library that defines frexpf.
44634         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
44635         'int *', 'float *', 'long double *', 'float', 'long double'.
44636         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
44637         AC_CHECK_FUNCS.
44638         * modules/frexpf (Files): Add m4/mathfunc.m4.
44640         Tests for module 'frexpf'.
44641         * modules/frexpf-tests: New file.
44642         * tests/test-frexpf.c: New file.
44644         New module 'frexpf'.
44645         * lib/math.in.h (frexpf): New declaration.
44646         * lib/frexpf.c: New file.
44647         * m4/frexpf.m4: New file.
44648         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
44649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
44650         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
44651         * modules/frexpf: New file.
44652         * tests/test-math-c++.cc: Check the declaration of frexpf.
44653         * doc/posix-functions/frexpf.texi: Mention the new module.
44655 2011-10-06  Bruno Haible  <bruno@clisp.org>
44657         math: Sort function declarations of math.in.h.
44658         * lib/math.in.h (frexp, logb): Move declarations.
44660 2011-10-05  Bruno Haible  <bruno@clisp.org>
44662         Tests for module 'modff'.
44663         * modules/modff-tests: New file.
44664         * tests/test-modff.c: New file.
44666         New module 'modff'.
44667         * lib/math.in.h (modff): New declaration.
44668         * lib/modff.c: New file.
44669         * m4/modff.m4: New file.
44670         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
44671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
44672         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
44673         * modules/modff: New file.
44674         * tests/test-math-c++.cc: Check the declaration of modff.
44675         * doc/posix-functions/modff.texi: Mention the new module.
44677         modf tests: Make test sharper.
44678         * tests/test-modf.c (main): Strengthen upper bound.
44680         modf: Use a .m4 file.
44681         * m4/modf.m4: New file.
44682         * modules/modf (Files): Add it.
44683         (configure.ac): Just invoke gl_FUNC_MODF.
44685 2011-10-05  Bruno Haible  <bruno@clisp.org>
44687         Tests for module 'fmodf'.
44688         * modules/fmodf-tests: New file.
44689         * tests/test-fmodf.c: New file.
44691         New module 'fmodf'.
44692         * lib/math.in.h (fmodf): New declaration.
44693         * lib/fmodf.c: New file.
44694         * m4/fmodf.m4: New file.
44695         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
44696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
44697         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
44698         * modules/fmodf: New file.
44699         * tests/test-math-c++.cc: Check the declaration of fmodf.
44700         * doc/posix-functions/fmodf.texi: Mention the new module.
44702         fmod: Use a .m4 file.
44703         * m4/fmod.m4: New file.
44704         * modules/fmod (Files): Add it.
44705         (configure.ac): Just invoke gl_FUNC_FMOD.
44707 2011-10-05  Bruno Haible  <bruno@clisp.org>
44709         Tests for module 'fabsf'.
44710         * modules/fabsf-tests: New file.
44711         * tests/test-fabsf.c: New file.
44713         New module 'fabsf'.
44714         * lib/math.in.h (fabsf): New declaration.
44715         * lib/fabsf.c: New file.
44716         * m4/fabsf.m4: New file.
44717         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
44718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
44719         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
44720         * modules/fabsf: New file.
44721         * tests/test-math-c++.cc: Check the declaration of fabsf.
44722         * doc/posix-functions/fabsf.texi: Mention the new module.
44724         fabs: Use a .m4 file.
44725         * m4/fabs.m4: New file.
44726         * modules/fabs (Files): Add it.
44727         (configure.ac): Just invoke gl_FUNC_FABS.
44729 2011-10-05  Jim Meyering  <meyering@redhat.com>
44731         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
44732         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
44733         ls -lL regression introduced in coreutils-8.12, it does so at the
44734         cost of an additional stat call in the common case.  Besides, now
44735         that the kernel change that prompted commit 95f7c57f has been reverted
44736         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
44737         we have no use for commit 95f7c57f, "file-has-acl: use
44738         acl_extended_file_nofollow if available".
44740 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
44742         file-has-acl: revert unintended change in behavior of ls -L
44743         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
44744         derived from...
44745         (file_has_acl): ...code here.  Call it.
44746         This problem was introduced with 2011-07-22 commit 95f7c57f,
44747         "file-has-acl: use acl_extended_file_nofollow if available".
44748         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
44750 2011-10-03  Bruno Haible  <bruno@clisp.org>
44752         poll: Avoid link errors on MSVC.
44753         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
44754         * modules/poll (Depends-on): Add sockets.
44755         (Link): New section.
44756         * NEWS: Mention the change.
44757         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
44758         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
44759         $(LIB_POLL) instead of $(LIBSOCKET).
44761 2011-10-03  Bruno Haible  <bruno@clisp.org>
44763         sys_select tests: Fix link error on MSVC 9.
44764         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
44765         with $(LIB_SELECT) instead of $(LIBSOCKET).
44767 2011-10-03  Bruno Haible  <bruno@clisp.org>
44769         sys_select: Fix compilation error on mingw.
44770         * lib/sys_select.in.h: On native Windows, include <io.h>.
44772 2011-10-03  Bruno Haible  <bruno@clisp.org>
44774         wmemset: Support for MSVC.
44775         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
44776         whether wmemset() exists.
44778 2011-10-03  Bruno Haible  <bruno@clisp.org>
44780         wmemmove: Support for MSVC.
44781         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
44782         whether wmemmove() exists.
44784 2011-10-03  Bruno Haible  <bruno@clisp.org>
44786         wmemcpy: Support for MSVC.
44787         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
44788         whether wmemcpy() exists.
44790 2011-10-03  Bruno Haible  <bruno@clisp.org>
44792         wmemcmp: Support for MSVC.
44793         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
44794         whether wmemcmp() exists.
44796 2011-10-03  Bruno Haible  <bruno@clisp.org>
44798         wmemchr: Support for MSVC.
44799         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
44800         whether wmemchr() exists.
44802 2011-10-03  Bruno Haible  <bruno@clisp.org>
44804         glthread/*, strsignal: Support for MSVC.
44805         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
44806         including <winsock.h> on MSVC 9.
44807         * lib/glthread/lock.h: Likewise.
44808         * lib/glthread/thread.h: Likewise.
44809         * lib/glthread/tls.h: Likewise.
44810         * lib/glthread/yield.h: Likewise.
44811         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
44812         if HAVE_UNISTD_H is false.
44813         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
44815 2011-10-03  Bruno Haible  <bruno@clisp.org>
44817         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
44818         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
44819         Set to 100000.
44821 2011-10-03  Bruno Haible  <bruno@clisp.org>
44823         acl: Fix specification.
44824         * lib/file-has-acl.c (file_has_acl): Fix specification.
44826 2011-10-03  Bruno Haible  <bruno@clisp.org>
44828         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
44829         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
44830         (compute_curr_prefix, shared_library_fullname,
44831         find_shared_library_fullname, get_shared_library_fullname, relocate):
44832         Use it together with PIC && INSTALLDIR.
44833         Reported by <jojelino@gmail.com>
44834         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
44836 2011-10-01  Jim Meyering  <meyering@redhat.com>
44838         maint.mk: adjust a release-related rule not to require use of gzip
44839         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
44840         Instead, check each file in $(DIST_ARCHIVES).  This is better for
44841         projects that build only .tar.xz files.  Also fix an erroneous test.
44843         test-linkat: don't leave behind a temporary file
44844         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
44845         Otherwise, coreutils' "make distcheck" would fail with this:
44846           Only in /c/cu/tests/torture/coreutils/test/\
44847             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
44848           make[2]: *** [my-distcheck] Error 1
44850         float, math: add omitted file
44851         * lib/itold.c: Add file, required for yesterday's float change.
44853 2011-10-01  Bruno Haible  <bruno@clisp.org>
44855         isinf: Fix for OpenBSD/x86.
44856         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
44857         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
44858         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
44860 2011-10-01  Bruno Haible  <bruno@clisp.org>
44862         isfinite: Fix syntax error in configure test.
44863         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
44865         isfinite: Fix typo.
44866         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
44867         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
44869 2011-10-01  Bruno Haible  <bruno@clisp.org>
44871         nonblocking tests: Fix test failure on Linux/IA-64.
44872         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
44873         Set to 270000.
44875 2011-10-01  Bruno Haible  <bruno@clisp.org>
44877         mkfifoat tests: Fix a test failure on mingw.
44878         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
44879         with error ENOSYS.
44881 2011-09-30  Bruno Haible  <bruno@clisp.org>
44883         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
44884         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
44885         'long double'. Set REPLACE_ITOLD.
44886         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
44887         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
44888         * lib/itold.c: New file.
44889         * modules/float (Files): Add lib/itold.c.
44890         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
44891         (Makefile.am): Substitute REPLACE_ITOLD.
44892         * modules/math (Depends-on): Add float.
44893         (Makefile.am): Substitute REPLACE_ITOLD.
44894         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44895         * doc/posix-headers/math.texi: Likewise.
44896         * doc/posix-functions/logl.texi: Likewise.
44898 2011-09-30  Bruno Haible  <bruno@clisp.org>
44900         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44901         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44902         Set to 140000.
44904 2011-09-30  Bruno Haible  <bruno@clisp.org>
44906         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44907         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44908         invocation, say "right after AC_PROG_CC_STDC", not "right after
44909         AC_PROG_CC".
44910         Reported by Gary V. Vaughan <gary@gnu.org>.
44912 2011-09-30  Bruno Haible  <bruno@clisp.org>
44914         Centralize C99 requirement.
44915         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44916         * modules/stdarg (configure.ac-early): Invoke it instead of
44917         AC_PROG_CC_STDC.
44918         Reported by Gary V. Vaughan and Paul Eggert.
44920 2011-09-29  Bruno Haible  <bruno@clisp.org>
44922         float: Fix LDBL_MAX value on Linux/PowerPC.
44923         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44924         on Linux/PowerPC.
44925         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44926         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44927         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44928         platform.
44929         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44931 2011-09-29  Bruno Haible  <bruno@clisp.org>
44933         doc: Improve doc about gl_EARLY.
44934         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44935         AC_PROG_CC_STDC invocation.
44936         Reported by Gary V. Vaughan <gary@gnu.org>.
44938 2011-09-28  Bruno Haible  <bruno@clisp.org>
44940         fgetc, fputc, fread, fwrite tests: Fix link error.
44941         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44942         on non-MSVC platforms.
44943         * tests/test-fputc.c (main): Likewise.
44944         * tests/test-fread.c (main): Likewise.
44945         * tests/test-fwrite.c (main): Likewise.
44946         Reported by Jim Meyering.
44948 2011-09-27  Bruno Haible  <bruno@clisp.org>
44950         fputc, fwrite tests: Avoid test failure on MSVC.
44951         * tests/test-fgetc.c: Include msvc-inval.h.
44952         (main): Invoke gl_msvc_inval_ensure_handler.
44953         * tests/test-fputc.c: Include msvc-inval.h.
44954         (main): Invoke gl_msvc_inval_ensure_handler.
44955         * tests/test-fread.c: Include msvc-inval.h.
44956         (main): Invoke gl_msvc_inval_ensure_handler.
44957         * tests/test-fwrite.c: Include msvc-inval.h.
44958         (main): Invoke gl_msvc_inval_ensure_handler.
44959         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44960         * modules/fputc-tests (Depends-on): Likewise.
44961         * modules/fread-tests (Depends-on): Likewise.
44962         * modules/fwrite-tests (Depends-on): Likewise.
44964 2011-09-27  Bruno Haible  <bruno@clisp.org>
44966         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44967         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44968         (raise): Remove older, duplicated declaration.
44969         (_gl_raise_SIGPIPE): New declaration.
44970         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44971         (rpl_raise): Remove function.
44972         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44973         a gnulib-defined SIGPIPE here.
44974         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44975         'sigprocmask' has detected missing signal-blocking and the module
44976         'sigpipe' is enabled.
44977         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44979 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44981         base64-tests: avoid memory leak
44982         * tests/test-base64.c (main): Plug memory leak.
44984         base32: new module
44985         * modules/base32: New module.
44986         * lib/base32.c: New file.
44987         * lib/base32.h: Likewise.
44988         * m4/base32.m4: Likewise.
44989         * modules/base32-tests: New test.
44990         * tests/test-base32.c: Likewise.
44991         * MODULES.html.sh (Misc): Mention it.
44993 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44995         gnulib: use more-standard license notice wording
44996         * gnulib-tool (func_emit_copyright_notice): When emitting a
44997         license notice into a file, use the standard wording as suggested
44998         by the current information for GNU maintainers, except say "file"
44999         rather than "program".  The new wording gives a license version
45000         number, which addresses an issue raised by Glenn Morris in
45001         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
45002         * m4/onceonly.m4: Use that same wording here, too.
45004         dup2: minor simplification
45005         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
45006         as lib/dup2.c no longer uses 'inline'.
45008 2011-09-25  Bruno Haible  <bruno@clisp.org>
45010         strings: Fix compilation error on MSVC.
45011         * lib/strings.in.h: Include <stddef.h> for size_t.
45013 2011-09-25  Bruno Haible  <bruno@clisp.org>
45015         fflush et al.: Document limitation on MSVC.
45016         * doc/posix-functions/fflush.texi: Document possible crash in handling
45017         mode other than DEFAULT_HANDLING.
45018         * doc/posix-functions/fgetc.texi: Likewise.
45019         * doc/posix-functions/fputc.texi: Likewise.
45020         * doc/posix-functions/fread.texi: Likewise.
45021         * doc/posix-functions/fwrite.texi: Likewise.
45023 2011-09-25  Bruno Haible  <bruno@clisp.org>
45025         msvc-inval: Allow three invalid parameter handling modes.
45026         * lib/msvc-inval.h: Don't include <stdlib.h> here.
45027         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
45028         macros.
45029         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
45030         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
45031         SANE_LIBRARY_HANDLING as a no-op.
45032         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
45033         <stdlib.h>.
45034         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
45036 2011-09-25  Bruno Haible  <bruno@clisp.org>
45038         msvc-inval: Make handler multithread-safe.
45039         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
45040         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
45041         declarations.
45042         (gl_msvc_inval_current): New declaration.
45043         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
45044         Operate on the structure returned by gl_msvc_inval_current().
45045         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
45046         Remove varaiables.
45047         (tls_index, tls_initialized): New variables.
45048         (not_per_thread): New variable.
45049         (gl_msvc_inval_current): New function.
45050         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
45051         returned by gl_msvc_inval_current().
45053 2011-09-25  Bruno Haible  <bruno@clisp.org>
45055         msvc-inval: Install handler globally.
45056         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
45057         !_MSC_VER.
45058         (gl_msvc_invalid_parameter_handler): Remove declaration.
45059         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
45060         declarations.
45061         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
45062         Install the handler globally, don't uninstall it.
45063         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
45064         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
45065         currently valid, call RaiseException instead.
45066         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
45067         for !_MSC_VER.
45069 2011-09-25  Bruno Haible  <bruno@clisp.org>
45071         strerror_r-posix: Fix for MSVC 9.
45072         * lib/strerror_r.c (local_snprintf): New function.
45073         (snprintf): Define to local_snprintf, not to _snprintf.
45075 2011-09-25  Bruno Haible  <bruno@clisp.org>
45077         ftruncate: Support for MSVC 9.
45078         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
45079         (chsize_nothrow): New function.
45080         (chsize): Redefine as a macro.
45081         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
45082         * modules/ftruncate (Depends-on): Add msvc-inval.
45084 2011-09-25  Bruno Haible  <bruno@clisp.org>
45086         New module 'fstat'.
45087         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
45088         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
45089         * lib/fchdir.c (rpl_fstat): Remove function.
45090         * m4/fstat.m4: New file.
45091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
45092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
45093         declared.
45094         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
45095         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
45096         * modules/fstat: New file.
45097         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
45098         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
45099         is set.
45100         * doc/posix-functions/fstat.texi: Mention the new module and the
45101         problem on MSVC.
45102         * NEWS: Mention the change.
45103         * modules/acl (Depends-on): Add fstat.
45104         * modules/chdir-safer (Depends-on): Likewise.
45105         * modules/chown (Depends-on): Likewise.
45106         * modules/copy-file (Depends-on): Likewise.
45107         * modules/fchdir (Depends-on): Likewise.
45108         * modules/fdopendir (Depends-on): Likewise.
45109         * modules/fopen (Depends-on): Likewise.
45110         * modules/fts (Depends-on): Likewise.
45111         * modules/getcwd (Depends-on): Likewise.
45112         * modules/isapipe (Depends-on): Likewise.
45113         * modules/linkat (Depends-on): Likewise.
45114         * modules/lseek (Depends-on): Likewise.
45115         * modules/mkdir-p (Depends-on): Likewise.
45116         * modules/open (Depends-on): Likewise.
45117         * modules/openat (Depends-on): Likewise.
45118         * modules/read-file (Depends-on): Likewise.
45119         * modules/renameat (Depends-on): Likewise.
45120         * modules/utimens (Depends-on): Likewise.
45122 2011-09-25  Bruno Haible  <bruno@clisp.org>
45124         linkat: Fix compilation on MSVC 9.
45125         * lib/linkat.c: Don't include <stdint.h>.
45127 2011-09-25  Bruno Haible  <bruno@clisp.org>
45129         fclose: Support for MSVC 9.
45130         * lib/fclose.c: Include msvc-inval.h.
45131         (fclose_nothrow): New function.
45132         (rpl_fclose): Use it.
45133         * modules/fclose (Depends-on): Add msvc-inval.
45134         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
45136 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
45138         dup2: minor simplifications
45139         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
45140         that it's a performance win.
45141         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
45142         ! defined __CYGWIN__)" to "ifdef F_GETFL".
45144 2011-09-24  Jim Meyering  <meyering@redhat.com>
45146         test-futimens: avoid a warning from gcc -Wshadow
45147         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
45148         to avoid a shadowing warning.
45150 2011-09-24  Bruno Haible  <bruno@clisp.org>
45152         fdopen: Support for MSVC 9.
45153         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
45154         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
45155         * lib/fdopen.c: Include msvc-inval.h.
45156         (fdopen_nothrow): New function.
45157         (rpl_fdopen): Use it.
45158         * modules/fdopen (Depends-on): Add msvc-inval.
45159         * modules/fclose-tests (Depends-on): Add fdopen.
45160         * modules/fflush-tests (Depends-on): Likewise.
45161         * modules/fgetc-tests (Depends-on): Likewise.
45162         * modules/fputc-tests (Depends-on): Likewise.
45163         * modules/fread-tests (Depends-on): Likewise.
45164         * modules/freopen-tests (Depends-on): Likewise.
45165         * modules/fseeko-tests (Depends-on): Likewise.
45166         * modules/ftello-tests (Depends-on): Likewise.
45167         * modules/fwrite-tests  (Depends-on): Likewise.
45168         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
45170 2011-09-24  Bruno Haible  <bruno@clisp.org>
45172         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
45173         * modules/fgetc-tests (Depends-on): Add unistd.
45174         * modules/fputc-tests (Depends-on): Likewise.
45175         * modules/fread-tests (Depends-on): Likewise.
45176         * modules/fwrite-tests (Depends-on): Likewise.
45178 2011-09-24  Bruno Haible  <bruno@clisp.org>
45180         dup: Simplify autoconf test.
45181         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
45182         on gl_MSVC_INVAL's result.
45184 2011-09-24  Bruno Haible  <bruno@clisp.org>
45186         Tests for function fwrite().
45187         * modules/fwrite-tests: New file.
45188         * tests/test-fwrite.c: New file.
45189         * modules/stdio-tests (Depends-on): Add fwrite-tests.
45191         Tests for function fread().
45192         * modules/fread-tests: New file.
45193         * tests/test-fread.c: New file.
45194         * modules/stdio-tests (Depends-on): Add fread-tests.
45196         Activate fputc tests.
45197         * modules/stdio-tests (Depends-on): Add fputc-tests.
45199         Enhance fgetc, fputc tests.
45200         * tests/test-fgetc.c (main): Also test the stream's error indicator.
45201         * tests/test-fputc.c (main): Likewise.
45203 2011-09-24  Bruno Haible  <bruno@clisp.org>
45205         write: Support for MSVC 9.
45206         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
45207         is not 1.
45208         * lib/write.c (write_nothrow): New function.
45209         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
45210         not 1. Use write_nothrow.
45211         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
45212         invalid parameter handler.
45213         (gl_PREREQ_WRITE): New macro.
45214         * modules/write (Depends-on): Add msvc-inval.
45215         (configure.ac): Invoke gl_PREREQ_WRITE.
45216         * doc/posix-functions/write.texi: Mention the problem on MSVC.
45218 2011-09-24  Bruno Haible  <bruno@clisp.org>
45220         read: Fix last commit.
45221         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
45223 2011-09-24  Bruno Haible  <bruno@clisp.org>
45225         dup2: Fix last commit.
45226         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
45227         (rpl_dup2): Disable fcntl workaround on native Windows.
45229         sigprocmask: Make code safer.
45230         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
45231         section that changes macro definitions for this compilation unit.
45233 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45235         dup2: clarify by coalescing Windows-specific material
45236         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
45237         "msvc-nothrow.h"' to the Windows-specific section, so that the
45238         Emacs source need not contain these include files.
45239         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
45240         Windows-specific fixes into this function rather than just the
45241         nothrow fix, as this shortens and clarifies the code.  Always
45242         define as a function, as that's a bit cleaner than having it be
45243         sometimes a function and sometimes a macro.
45244         (rpl_dup2): Move the Windows-specific stuff out of here and into
45245         ms_windows_dup2.  Don't protect the Haiku-related fix with
45246         "#if !defined __linux__", as the same code also works around
45247         a Linux kernel bug, and it doesn't add any system calls on any
45248         platform.  Add comment about FreeBSD 6.1.
45250         sigprocmask: move #include directive
45251         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
45252         Windows-specific section, so that the Emacs source need not
45253         contain msvc-inval.h.
45255 2011-09-23  Bruno Haible  <bruno@clisp.org>
45257         read: Support for MSVC 9.
45258         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
45259         is not 1.
45260         * lib/read.c (read_nothrow): New function.
45261         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
45262         read_nothrow.
45263         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
45264         invalid parameter handler.
45265         (gl_PREREQ_READ): New macro.
45266         * modules/read (Depends-on): Add msvc-inval.
45267         (configure.ac): Invoke gl_PREREQ_READ.
45268         * doc/posix-functions/read.texi: Mention the problem on MSVC.
45270 2011-09-23  Bruno Haible  <bruno@clisp.org>
45272         close: Support for MSVC 9.
45273         * lib/close.c: Include <errno.h>, msvc-inval.h.
45274         (close_nothrow): New function.
45275         (rpl_close): Use it.
45276         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
45277         invalid parameter handler.
45278         * modules/close (Depends-on): Add msvc-inval.
45279         * modules/dup2-tests (Depends-on): Add close.
45280         * modules/dup3-tests (Depends-on): Likewise.
45281         * modules/fcntl-tests (Depends-on): Likewise.
45282         * modules/spawn-pipe-tests (Depends-on): Likewise.
45283         * modules/unistd-safer-tests (Depends-on): Likewise.
45284         * doc/posix-functions/close.texi: Mention the problem on MSVC.
45286 2011-09-23  Bruno Haible  <bruno@clisp.org>
45288         New module 'dup'.
45289         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
45290         Allow replacement.
45291         * lib/dup.c: New file.
45292         * lib/fchdir.c (rpl_dup): Remove function.
45293         * m4/dup.m4: New file.
45294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
45295         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
45296         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
45297         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
45298         * modules/dup: New file.
45299         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
45300         'dup' module is in use.
45301         * modules/fdopendir (Depends-on): Add dup.
45302         * modules/fdutimensat-tests (Depends-on): Likewise.
45303         * modules/fts (Depends-on): Likewise.
45304         * modules/futimens-tests (Depends-on): Likewise.
45305         * modules/posix_spawnp-tests (Depends-on): Likewise.
45306         * modules/unistd-safer-tests (Depends-on): Likewise.
45307         * modules/utimens-tests (Depends-on): Likewise.
45308         * doc/posix-functions/dup.texi: Mention the new module and the problem
45309         on MSVC.
45311 2011-09-23  Bruno Haible  <bruno@clisp.org>
45313         getdtablesize: Support for MSVC 9.
45314         * lib/getdtablesize.c: Include msvc-inval.h.
45315         (_setmaxstdio_nothrow): New function.
45316         (_setmaxstdio): Redefine it.
45317         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
45318         * modules/getdtablesize (Depends-on): Add msvc-inval.
45319         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
45321 2011-09-23  Bruno Haible  <bruno@clisp.org>
45323         signal-h: Rename from signal.
45324         * modules/signal-h: Renamed from modules/signal.
45325         * modules/pthread_sigmask (Depends-on): Update.
45326         * modules/raise (Depends-on): Likewise.
45327         * modules/sigaction (Depends-on): Likewise.
45328         * modules/sigpipe (Depends-on): Likewise.
45329         * modules/sigprocmask (Depends-on): Likewise.
45330         * modules/sys_select (Depends-on): Likewise.
45331         * modules/signal-h-tests: Renamed from modules/signal-tests.
45332         (Files, Depends-on, Makefile.am): Update.
45333         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
45334         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
45335         (Files, Makefile.am): Update.
45336         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
45337         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
45338         * modules/signal: New placeholder file.
45339         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
45340         * doc/posix-headers/signal.texi: Update.
45341         * NEWS: Mention the change.
45343 2011-09-23  Bruno Haible  <bruno@clisp.org>
45345         sigprocmask: Avoid crashes through signal() on MSVC 9.
45346         * lib/sigprocmask.c: Include msvc-inval.h.
45347         (signal_nothrow): New function.
45348         (signal): Redefine it.
45349         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
45350         * modules/sigprocmask (Depends-on): Add msvc-inval.
45351         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
45353 2011-09-23  Bruno Haible  <bruno@clisp.org>
45355         Tests for module 'raise'.
45356         * modules/raise-tests: New file.
45357         * tests/test-raise.c: New file.
45359         raise: Support for MSVC.
45360         * lib/signal.in.h (raise): New declaration.
45361         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
45362         for native Windows platforms.
45363         * m4/raise.m4: New file.
45364         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
45365         HAVE_RAISE, REPLACE_RAISE.
45366         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
45367         REPLACE_RAISE.
45368         * modules/raise (Status, Notice): Remove fields.
45369         (Files): Add m4/raise.m4.
45370         (Depends-on): Add signal, msvc-inval.
45371         (configure.ac): Use the common idioms.
45372         (Maintainer): Add me.
45373         * tests/test-signal-c++.cc: Check the signature of raise.
45374         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
45376 2011-09-23  Bruno Haible  <bruno@clisp.org>
45378         pipe2: Fix compilation on pre-C99 compilers.
45379         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
45381 2011-09-23  Bruno Haible  <bruno@clisp.org>
45383         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
45384         * lib/msvc-nothrow.h: New file.
45385         * lib/msvc-nothrow.c: New file.
45386         * m4/msvc-nothrow.m4: New file.
45387         * modules/msvc-nothrow: New file.
45388         * lib/dup2.c: Include msvc-nothrow.h.
45389         (rpl_dup2): No need to protect _get_osfhandle call here.
45390         * lib/accept4.c: Include msvc-nothrow.h.
45391         * lib/error.c: Likewise.
45392         * lib/fcntl.c: Likewise.
45393         * lib/lseek.c: Likewise.
45394         * lib/nonblocking.c: Likewise.
45395         * lib/poll.c: Likewise.
45396         * lib/read.c: Likewise.
45397         * lib/select.c: Likewise.
45398         * lib/sockets.h: Likewise.
45399         * lib/sockets.c: Likewise.
45400         * lib/stdio-read.c: Likewise.
45401         * lib/stdio-write.c: Likewise.
45402         * lib/write.c: Likewise.
45403         * lib/w32sock.h: Likewise.
45404         * lib/w32spawn.h: Likewise.
45405         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
45406         * lib/fsync.c: Likewise.
45407         * lib/isapipe.c: Likewise.
45408         * modules/dup2 (Depends-on): Add msvc-nothrow.
45409         * modules/accept4 (Depends-on): Likewise.
45410         * modules/error (Depends-on): Likewise.
45411         * modules/fcntl (Depends-on): Likewise.
45412         * modules/lseek (Depends-on): Likewise.
45413         * modules/nonblocking (Depends-on): Likewise.
45414         * modules/poll (Depends-on): Likewise.
45415         * modules/read (Depends-on): Likewise.
45416         * modules/select (Depends-on): Likewise.
45417         * modules/sockets (Depends-on): Likewise.
45418         * modules/sigpipe (Depends-on): Likewise.
45419         * modules/write (Depends-on): Likewise.
45420         * modules/accept (Depends-on): Likewise.
45421         * modules/bind (Depends-on): Likewise.
45422         * modules/connect (Depends-on): Likewise.
45423         * modules/gethostname (Depends-on): Likewise.
45424         * modules/getpeername (Depends-on): Likewise.
45425         * modules/getsockname (Depends-on): Likewise.
45426         * modules/getsockopt (Depends-on): Likewise.
45427         * modules/ioctl (Depends-on): Likewise.
45428         * modules/listen (Depends-on): Likewise.
45429         * modules/recv (Depends-on): Likewise.
45430         * modules/recvfrom (Depends-on): Likewise.
45431         * modules/send (Depends-on): Likewise.
45432         * modules/sendto (Depends-on): Likewise.
45433         * modules/setsockopt (Depends-on): Likewise.
45434         * modules/shutdown (Depends-on): Likewise.
45435         * modules/socket (Depends-on): Likewise.
45436         * modules/execute (Depends-on): Likewise.
45437         * modules/spawn-pipe (Depends-on): Likewise.
45438         * modules/flock (Depends-on): Likewise.
45439         * modules/fsync (Depends-on): Likewise.
45440         * modules/isapipe (Depends-on): Likewise.
45441         * tests/test-cloexec.c: Include msvc-nothrow.h.
45442         * tests/test-dup-safer.c: Likewise.
45443         * tests/test-dup2.c: Likewise.
45444         * tests/test-dup3.c: Likewise.
45445         * tests/test-fcntl.c: Likewise.
45446         * tests/test-pipe.c: Likewise.
45447         * tests/test-pipe2.c: Likewise.
45448         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
45449         * modules/unistd-safer-tests (Depends-on): Likewise.
45450         * modules/dup2-tests (Depends-on): Likewise.
45451         * modules/dup3-tests (Depends-on): Likewise.
45452         * modules/fcntl-tests (Depends-on): Likewise.
45453         * modules/pipe-posix-tests (Depends-on): Likewise.
45454         * modules/pipe2-tests (Depends-on): Likewise.
45456 2011-09-23  Bruno Haible  <bruno@clisp.org>
45458         dup2: Make code more maintainable.
45459         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
45460         (rpl_dup2): Use it.
45461         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
45462         * modules/dup2 (configure.ac): Invoke it.
45463         Reported by Paul Eggert.
45465 2011-09-23  Bruno Haible  <bruno@clisp.org>
45467         msvc-inval: Fix compilation error.
45468         * lib/msvc-inval.h: Include <excpt.h>.
45470 2011-09-23  Bruno Haible  <bruno@clisp.org>
45472         mkdir: Tweak for MSVC 9.
45473         * lib/sys_stat.in.h: Update comments.
45474         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
45476         Tests for module 'chdir'.
45477         * modules/chdir-tests: New file.
45478         * tests/test-chdir.c: New file.
45480         New module 'chdir'.
45481         * modules/chdir: New file.
45482         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
45483         (chdir): New declaration.
45484         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
45485         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
45486         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
45487         * tests/test-unistd-c++.cc: Check signature of chdir.
45488         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
45489         * modules/chdir-long (Depends-on): Add chdir.
45490         * modules/fchdir (Depends-on): Likewise.
45491         * modules/rename (Depends-on): Likewise.
45492         * modules/savewd (Depends-on): Likewise.
45494         rmdir: Support for mingw, MSVC 9.
45495         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
45496         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
45498         getcwd: Tweak for MSVC 9.
45499         * lib/unistd.in.h: Update comments.
45500         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
45502 2011-09-22  Bruno Haible  <bruno@clisp.org>
45504         strerror_r-posix: Avoid a link error on MSVC.
45505         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
45506         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
45508 2011-09-22  Bruno Haible  <bruno@clisp.org>
45510         select: Avoid link errors on MSVC.
45511         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
45512         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
45513         * modules/pselect (Link): Likewise.
45514         * NEWS: Mention the change.
45515         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
45516         test-select-stdin against $(LIB_SELECT).
45517         * modules/pselect-tests (Makefile.am): Link test-pselect against
45518         $(LIB_SELECT).
45520 2011-09-22  Bruno Haible  <bruno@clisp.org>
45522         select: Avoid compilation error on MSVC.
45523         * lib/select.c: Don't include <stdbool.h>.
45525 2011-09-21  Bruno Haible  <bruno@clisp.org>
45527         Consolidate all uses of PATH_MAX in *.m4 files.
45528         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
45529         macros.
45530         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
45531         and gl_PATHMAX_SNIPPET.
45532         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45533         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45534         * modules/chdir-long (Files): Add m4/pathmax.m4.
45535         * modules/getcwd (Files): Likewise.
45537 2011-09-21  Bruno Haible  <bruno@clisp.org>
45539         ftruncate: Un-deprecate, concentrate on Win32 support.
45540         * modules/ftruncate (Status, Notice): Remove sections.
45541         (Depends-on): Add largefile.
45542         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
45543         non-mingw platforms.
45544         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
45545         include <io.h>.
45546         * modules/perror-tests (Depends-on): Add ftruncate.
45547         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
45548         'ftruncate' module.
45550 2011-09-21  Bruno Haible  <bruno@clisp.org>
45552         Add dependencies to new dirent related modules.
45553         * modules/opendir (Depends-on): Add closedir.
45554         * modules/getcwd (Depends-on): Add opendir, closedir.
45555         * modules/dirent-safer-tests (Depends-on): Likewise.
45556         * modules/fdopendir-tests (Depends-on): Likewise.
45557         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
45558         * modules/renameat-tests (Depends-on): Likewise.
45560 2011-09-21  Bruno Haible  <bruno@clisp.org>
45562         opendir: Avoid compilation error on mingw.
45563         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
45564         * modules/opendir (Depends-on): Add unistd.
45566 2011-09-21  Bruno Haible  <bruno@clisp.org>
45568         ftruncate tests: Avoid a test failure on mingw.
45569         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
45571 2011-09-21  Bruno Haible  <bruno@clisp.org>
45573         select tests: Avoid test failures on OSF/1 5.1 and mingw.
45574         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
45575         native Windows.
45577 2011-09-21  Bruno Haible  <bruno@clisp.org>
45579         New module 'fdopen'.
45580         * lib/stdio.in.h (fdopen): New declaration.
45581         * lib/fdopen.c: New file.
45582         * m4/fdopen.m4: New file.
45583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
45584         REPLACE_FDOPEN.
45585         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
45586         REPLACE_FDOPEN.
45587         * modules/fdopen: New file.
45588         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
45589         * tests/test-stdio-c++.cc: Check signature of fdopen.
45590         * doc/posix-functions/fdopen.texi: Mention the new module.
45592 2011-09-21  Bruno Haible  <bruno@clisp.org>
45594         unlockpt tests: Avoid test failure on NetBSD 5.1.
45595         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
45596         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
45598 2011-09-21  Bruno Haible  <bruno@clisp.org>
45600         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
45601         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
45602         * tests/test-getlogin_r.c (main): Likewise.
45604 2011-09-20  Bruno Haible  <bruno@clisp.org>
45606         time tests: Don't require pid_t.
45607         * doc/posix-headers/time.texi: Revert last change.
45608         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
45609         * tests/test-time.c: Comment out the check for pid_t.
45611 2011-09-20  Bruno Haible  <bruno@clisp.org>
45613         fsync tests: Avoid a test failure on mingw.
45614         * tests/test-fsync.c (main): Allow a failure with EIO.
45616 2011-09-20  Bruno Haible  <bruno@clisp.org>
45618         euidaccess: Update comments.
45619         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
45621 2011-09-20  Bruno Haible  <bruno@clisp.org>
45623         Ensure EBADF returns for socket functions on mingw.
45624         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
45625         descriptor is invalid.
45626         * lib/bind.c (rpl_bind): Likewise.
45627         * lib/connect.c (rpl_connect): Likewise.
45628         * lib/getpeername.c (rpl_getpeername): Likewise.
45629         * lib/getsockname.c (rpl_getsockname): Likewise.
45630         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45631         * lib/listen.c (rpl_listen): Likewise.
45632         * lib/recv.c (rpl_recv): Likewise.
45633         * lib/recvfrom.c (rpl_recvfrom): Likewise.
45634         * lib/send.c (rpl_send): Likewise.
45635         * lib/sendto.c (rpl_sendto): Likewise.
45636         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45637         * lib/shutdown.c (rpl_shutdown): Likewise.
45639 2011-09-20  Bruno Haible  <bruno@clisp.org>
45641         select tests: EBADF tests.
45642         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
45643         test_bad_fd): New functions.
45644         (test_function): Invoke also test_bad_fd.
45646 2011-09-20  Bruno Haible  <bruno@clisp.org>
45648         Tests for module 'posix_spawn_file_actions_addopen.
45649         * modules/posix_spawn_file_actions_addopen-tests: New file.
45650         * tests/test-posix_spawn_file_actions_addopen.c: New file.
45652         Tests for module 'posix_spawn_file_actions_adddup2'.
45653         * modules/posix_spawn_file_actions_adddup2-tests: New file.
45654         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
45656         Tests for module 'posix_spawn_file_actions_addclose'.
45657         * modules/posix_spawn_file_actions_addclose-tests: New file.
45658         * tests/test-posix_spawn_file_actions_addclose.c: New file.
45660 2011-09-20  Bruno Haible  <bruno@clisp.org>
45662         Tests for module 'unlockpt'.
45663         * modules/unlockpt-tests: New file.
45664         * tests/test-unlockpt.c: New file.
45665         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
45667         Tests for module 'grantpt'.
45668         * modules/grantpt-tests: New file.
45669         * tests/test-grantpt.c: New file.
45670         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
45672 2011-09-20  Bruno Haible  <bruno@clisp.org>
45674         freopen tests: EBADF tests.
45675         * tests/test-freopen.c: Include errno.h, unistd.h.
45676         (main): Add tests for EBADF, commented out for the moment.
45678         fclose tests: EBADF tests.
45679         * tests/test-fclose.c (main): Add tests for EBADF.
45681         fflush tests: EBADF tests.
45682         * tests/test-fflush.c: Include errno.h, macros.h.
45683         (main): Add tests for EBADF.
45685         ftello tests: EBADF tests.
45686         * tests/test-ftello4.sh: New file.
45687         * tests/test-ftello4.c: New file.
45688         * modules/ftello-tests (Files): Add them.
45689         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
45691         fseeko tests: EBADF tests.
45692         * tests/test-fseeko4.sh: New file.
45693         * tests/test-fseeko4.c: New file.
45694         * modules/fseeko-tests (Files): Add them.
45695         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
45697         Tests for function fputc().
45698         * modules/fputc-tests: New file.
45699         * tests/test-fputc.c: New file.
45700         * modules/stdio-tests (Depends-on): Add fputc-tests.
45702         Tests for function fgetc().
45703         * modules/fgetc-tests: New file.
45704         * tests/test-fgetc.c: New file.
45705         * modules/stdio-tests (Depends-on): Add fgetc-tests.
45707         Tests for function fdopen().
45708         * modules/fdopen-tests: New file.
45709         * tests/test-fdopen.c: New file.
45710         * modules/stdio-tests (Depends-on): Add fdopen-tests.
45712         Tests for module 'vdprintf'.
45713         * modules/vdprintf-tests: New file.
45714         * tests/test-vdprintf.c: New file.
45716         Tests for module 'dprintf'.
45717         * modules/dprintf-tests: New file.
45718         * tests/test-dprintf.c: New file.
45720 2011-09-20  Bruno Haible  <bruno@clisp.org>
45722         Tests for module 'ioctl'.
45723         * modules/ioctl-tests: New file.
45724         * tests/test-ioctl.c: New file.
45726 2011-09-20  Bruno Haible  <bruno@clisp.org>
45728         fcntl tests: EBADF tests.
45729         * tests/test-fcntl.c (main): Add more tests for EBADF.
45731 2011-09-20  Bruno Haible  <bruno@clisp.org>
45733         utimensat tests: EBADF tests.
45734         * tests/test-utimensat.c (main): Add tests for EBADF.
45736         renameat tests: EBADF tests.
45737         * tests/test-renameat.c (main): Add tests for EBADF.
45739         mkfifoat tests: EBADF tests.
45740         * tests/test-mkfifoat.c (main): Add tests for EBADF.
45742         readlinkat tests: EBADF tests.
45743         * tests/test-readlinkat.c (main): Add tests for EBADF.
45745         symlinkat tests: EBADF tests.
45746         * tests/test-symlinkat.c (main): Add tests for EBADF.
45748         linkat tests: EBADF tests.
45749         * tests/test-linkat.c (main): Add tests for EBADF.
45751         Tests for module 'faccessat'.
45752         * modules/faccessat-tests: New file.
45753         * tests/test-faccessat.c: New file.
45755         fdopendir tests: EBADF tests.
45756         * tests/test-fdopendir.c (main): Add more tests for EBADF.
45758         openat tests: EBADF tests.
45759         * tests/test-fchownat.c (main): Add tests for EBADF.
45760         * tests/test-fstatat.c (main): Likewise.
45761         * tests/test-mkdirat.c (main): Likewise.
45762         * tests/test-openat.c (main): Likewise.
45763         * tests/test-unlinkat.c (main): Likewise.
45764         * tests/test-fchmodat.c: New file.
45765         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
45766         (Makefile.am): Also run 'test-fchmodat'.
45768 2011-09-20  Bruno Haible  <bruno@clisp.org>
45770         utimens, futimens, fdutimensat tests: EBADF tests.
45771         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
45773         Tests for function fstat().
45774         * modules/fstat-tests: New file.
45775         * tests/test-fstat.c: New file.
45776         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
45778 2011-09-20  Bruno Haible  <bruno@clisp.org>
45780         test-ttyname_r tests: EBADF tests.
45781         * tests/test-ttyname_r.c (main): Add tests for EBADF.
45783         Tests for module 'isatty'.
45784         * modules/isatty-tests: New file.
45785         * tests/test-isatty.c: New file.
45787         Tests for module 'write'.
45788         * modules/write-tests: New file.
45789         * tests/test-write.c: New file.
45791         Tests for module 'read'.
45792         * modules/read-tests: New file.
45793         * tests/test-read.c: New file.
45795         pwrite tests: EBADF tests.
45796         * tests/test-pwrite.c (main): Add tests for EBADF.
45798         pread tests: EBADF tests.
45799         * tests/test-pread.c (main): Add tests for EBADF.
45801         lseek tests: EBADF tests.
45802         * tests/test-lseek.c (main): Add more tests for EBADF.
45804         Tests for module 'ftruncate'.
45805         * modules/ftruncate-tests: New file.
45806         * tests/test-ftruncate.sh: New file.
45807         * tests/test-ftruncate.c: New file.
45809         fsync tests: EBADF tests.
45810         * tests/test-fsync.c (main): Add more tests for EBADF.
45812         fdatasync tests: EBADF tests.
45813         * tests/test-fdatasync.c (main): Add more tests for EBADF.
45815         Tests for module 'fchown'.
45816         * modules/fchown-tests: New file.
45817         * tests/test-fchown.c: New file.
45819         Tests for module 'fchmod'.
45820         * modules/fchmod-tests: New file.
45821         * tests/test-fchmod.c: New file.
45823         fchdir tests: EBADF tests.
45824         * tests/test-fchdir.c (main): Add more tests for EBADF.
45826         dup2 tests: EBADF tests.
45827         * tests/test-dup2.c (main): Add more tests for EBADF.
45829         Tests for module 'dup'.
45830         * modules/dup-tests: New file.
45831         * tests/test-dup.c: New file.
45833         Tests for module 'close'.
45834         * modules/close-tests: New file.
45835         * tests/test-close.c: New file.
45837 2011-09-20  Bruno Haible  <bruno@clisp.org>
45839         Tests for module 'shutdown'.
45840         * modules/shutdown-tests: New file.
45841         * tests/test-shutdown.c: New file.
45843         Tests for module 'setsockopt'.
45844         * modules/setsockopt-tests: New file.
45845         * tests/test-setsockopt.c: New file.
45847         Tests for module 'sendto'.
45848         * modules/sendto-tests: New file.
45849         * tests/test-sendto.c: New file.
45851         Tests for module 'send'.
45852         * modules/send-tests: New file.
45853         * tests/test-send.c: New file.
45855         Tests for module 'recvfrom'.
45856         * modules/recvfrom-tests: New file.
45857         * tests/test-recvfrom.c: New file.
45859         Tests for module 'recv'.
45860         * modules/recv-tests: New file.
45861         * tests/test-recv.c: New file.
45863         Tests for module 'listen'.
45864         * modules/listen-tests: New file.
45865         * tests/test-listen.c: New file.
45867         Tests for module 'getsockopt'.
45868         * modules/getsockopt-tests: New file.
45869         * tests/test-getsockopt.c: New file.
45871         Tests for module 'getsockname'.
45872         * modules/getsockname-tests: New file.
45873         * tests/test-getsockname.c: New file.
45875         Tests for module 'getpeername'.
45876         * modules/getpeername-tests: New file.
45877         * tests/test-getpeername.c: New file.
45879         Tests for module 'connect'.
45880         * modules/connect-tests: New file.
45881         * tests/test-connect.c: New file.
45883         Tests for module 'bind'.
45884         * modules/bind-tests: New file.
45885         * tests/test-bind.c: New file.
45887         accept4 tests: Fix for native Windows.
45888         * tests/test-accept4.c: Include sockets.h.
45889         (main): Invoke gl_sockets_startup.
45890         * modules/accept4-tests (Depends-on): Add sockets.
45892         accept tests: Fix for native Windows.
45893         * tests/test-accept.c: Include sockets.h.
45894         (main): Invoke gl_sockets_startup.
45895         * modules/accept-tests (Depends-on): Add sockets.
45897 2011-09-19  Bruno Haible  <bruno@clisp.org>
45899         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45900         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45901         do...while(0).
45902         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45903         Suggested by Paul Eggert.
45905 2011-09-19  Bruno Haible  <bruno@clisp.org>
45907         sched: Ensure pid_t is defined.
45908         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45909         not define pid_t.
45910         * lib/sched.in.h: Include <sys/types.h>.
45911         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45914 2011-09-19  Bruno Haible  <bruno@clisp.org>
45916         msvc-inval: Ensure the entire expansion is a single statement.
45917         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45918         of braces.
45920 2011-09-19  Jim Meyering  <meyering@redhat.com>
45922         tests: use printf, not echo in init.sh's warn_ function
45923         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45924         misbehave when given strings containing a backslash or starting
45925         with e.g., -n.  James Youngman suggested setting IFS.
45927 2011-09-19  Eric Blake  <eblake@redhat.com>
45929         futimens: enhance test
45930         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45931         closed non-negative fd.
45933         date: accept 'hence' as opposite of 'ago'
45934         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45935         * tests/test-parse-datetime.c (main): Enhance test.
45936         Suggested by Jesse Wilson.
45938 2011-09-19  Jim Meyering  <meyering@redhat.com>
45940         getcwd: don't fail in a deep directory on a system without openat
45941         Before this change, getcwd would fail when called from a directory
45942         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45943         the non-openat implementation used "..", "../..", "../../..", etc.
45944         to access ancestor directories.  With too many, that string would
45945         be longer than PATH_MAX.
45946         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45947         using gnulib's openat replacement.
45948         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45949         we're using the replacement function.
45951 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45953         maint.mk: avoid warnings from perl about missing files
45954         * top/maint.mk (def_sym_regex): Ignore files listed in
45955         $(gl_other_headers_) that do not exist, say because a project
45956         does not use a corresponding module.
45958 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45960         stat: use pathmax.h only if needed
45961         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45962         This is better for Emacs, which does not have a mingw port and
45963         therefore can avoid the pathmax module.
45965         utimens: remove dependency on dup2
45966         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45967         to work around the Linux kernel bug.
45968         * modules/utimens (Depends-on): Remove dup2.
45970 2011-09-18  Bruno Haible  <bruno@clisp.org>
45972         inet_ntop, inet_pton: Look for it also in libresolv.
45973         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45974         libnsl, search for it in libresolv.
45975         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45976         Needed on Solaris 7.
45978 2011-09-18  Bruno Haible  <bruno@clisp.org>
45980         accept, accept4 tests: Avoid link error on Solaris.
45981         * modules/accept-tests (Makefile.am): Link test-accept against
45982         $(LIBSOCKET).
45983         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45984         $(LIBSOCKET).
45986         accept4: Avoid link error on Solaris.
45987         * modules/accept4 (Link): New section.
45989         socket functions: Avoid link errors on Solaris.
45990         * modules/accept (Depends-on): Add socketlib.
45991         (Link): New section.
45992         * modules/bind (Depends-on): Add socketlib.
45993         (Link): New section.
45994         * modules/connect (Depends-on): Add socketlib.
45995         (Link): New section.
45996         * modules/getpeername (Depends-on): Add socketlib.
45997         (Link): New section.
45998         * modules/getsockname (Depends-on): Add socketlib.
45999         (Link): New section.
46000         * modules/getsockopt (Depends-on): Add socketlib.
46001         (Link): New section.
46002         * modules/listen (Depends-on): Add socketlib.
46003         (Link): New section.
46004         * modules/recv (Depends-on): Add socketlib.
46005         (Link): New section.
46006         * modules/recvfrom (Depends-on): Add socketlib.
46007         (Link): New section.
46008         * modules/send (Depends-on): Add socketlib.
46009         (Link): New section.
46010         * modules/sendto (Depends-on): Add socketlib.
46011         (Link): New section.
46012         * modules/setsockopt (Depends-on): Add socketlib.
46013         (Link): New section.
46014         * modules/shutdown (Depends-on): Add socketlib.
46015         (Link): New section.
46016         * modules/socket (Depends-on): Add socketlib.
46017         (Link): New section.
46019 2011-09-18  Bruno Haible  <bruno@clisp.org>
46021         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
46022         * tests/test-ptsname.c (main): Terminate the test if it takes longer
46023         than 5 seconds.
46024         * modules/ptsname-tests (configure.ac): Test for alarm.
46026 2011-09-18  Bruno Haible  <bruno@clisp.org>
46028         posix_spawn_file_actions_add*: Fix module dependencies.
46029         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
46030         posix_spawn_file_actions_init.
46031         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
46032         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
46034 2011-09-18  Bruno Haible  <bruno@clisp.org>
46036         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
46037         * tests/test-rename.h (test_rename): Allow error code EEXIST.
46038         * tests/test-renameat.c (main): Likewise.
46040 2011-09-18  Bruno Haible  <bruno@clisp.org>
46042         Tests for module 'accept4'.
46043         * modules/accept4-tests: New file.
46044         * tests/test-accept4.c: New file.
46046 2011-09-18  Bruno Haible  <bruno@clisp.org>
46048         Tests for module 'accept'.
46049         * modules/accept-tests: New file.
46050         * tests/test-accept.c: New file.
46052 2011-09-18  Bruno Haible  <bruno@clisp.org>
46054         dup2: Support for MSVC.
46055         * lib/dup2.c: Include msvc-inval.h.
46056         (rpl_dup2): Handle invalid parameter notifications during dup2 and
46057         _get_osfhandle calls.
46058         * modules/dup2 (Depends-on): Add msvc-inval.
46059         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
46061         New module 'msvc-inval'.
46062         * lib/msvc-inval.h: New file.
46063         * lib/msvc-inval.c: New file.
46064         * m4/msvc-inval.m4: New file.
46065         * modules/msvc-inval: New file.
46067 2011-09-17  Bruno Haible  <bruno@clisp.org>
46069         Tests for module 'pclose'.
46070         * modules/pclose-tests: New file.
46072         New module 'pclose'.
46073         * lib/stdio.in.h (pclose): New declaration.
46074         * lib/pclose.c: New file.
46075         * m4/pclose.m4: New file.
46076         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
46077         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
46078         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
46079         * modules/pclose: New file.
46080         * modules/popen-tests (Depends-on): Add pclose.
46081         * modules/popen-safer-tests (Depends-on): Likewise.
46082         * doc/posix-functions/pclose.texi: Mention the new module.
46084 2011-09-17  Bruno Haible  <bruno@clisp.org>
46086         popen: Support for MSVC.
46087         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
46088         * lib/popen.c (popen): Provide alternate definition for native Windows.
46089         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
46090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
46091         * modules/popen (Depends-on, configure.ac): Update condition.
46092         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
46093         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
46094         fixed.
46096 2011-09-17  Bruno Haible  <bruno@clisp.org>
46098         isnanl, isnand, isnanf: Work around MSVC bug.
46099         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
46101 2011-09-17  Bruno Haible  <bruno@clisp.org>
46103         sys_socket tests: Fix recent mistake.
46104         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
46106 2011-09-17  Bruno Haible  <bruno@clisp.org>
46108         putenv: Support for MSVC.
46109         * modules/putenv (Depends-on): Add environ.
46110         * lib/putenv.c (environ): Disable declaration.
46111         * lib/unistd.in.h: Update comment.
46113 2011-09-17  Bruno Haible  <bruno@clisp.org>
46115         math: Avoid macro redefinition warnings on MSVC.
46116         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
46117         Undefine before redefining.
46119 2011-09-17  Bruno Haible  <bruno@clisp.org>
46121         doc: Mention functions which are declared as macros.
46122         * doc/posix-functions/*[fl].texi: Mention that some functions are
46123         defined as macros with arguments only.
46125 2011-09-17  Bruno Haible  <bruno@clisp.org>
46127         Add dependencies to new dirent related modules.
46128         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
46129         * modules/fts (Depends-on): Likewise.
46130         * modules/glob (Depends-on): Likewise.
46131         * modules/savedir (Depends-on): Likewise.
46132         * modules/scandir (Depends-on): Likewise.
46133         * modules/dirent-safer (Depends-on): Add opendir, closedir.
46134         * modules/fdopendir (Depends-on): Add opendir.
46136 2011-09-17  Bruno Haible  <bruno@clisp.org>
46138         inet_pton: Support for MSVC on Windows Vista or newer.
46139         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
46140         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
46141         HAVE_DECL_INET_PTON is defined.
46142         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
46143         On platforms with <winsock2.h>, test whether inet_pton is declared in
46144         <ws2tcpip.h>. If so, arrange to replace it.
46145         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
46146         REPLACE_INET_PTON.
46147         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
46148         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
46149         (Depends-on, configure.ac): Update condition.
46150         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
46152 2011-09-17  Bruno Haible  <bruno@clisp.org>
46154         inet_ntop: Support for MSVC on Windows Vista or newer.
46155         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
46156         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
46157         HAVE_DECL_INET_NTOP is defined.
46158         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
46159         On platforms with <winsock2.h>, test whether inet_ntop is declared in
46160         <ws2tcpip.h>. If so, arrange to replace it.
46161         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
46162         REPLACE_INET_NTOP.
46163         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
46164         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
46165         (Depends-on, configure.ac): Update condition.
46166         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
46168 2011-09-16  Eric Blake  <eblake@redhat.com>
46170         test-fsync: yet another enhancement
46171         * tests/test-fsync.c (main): Also test behavior on read-only text
46172         file.
46174 2011-09-16  Bruno Haible  <bruno@clisp.org>
46176         Enhance fsync, fdatasync tests.
46177         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
46178         * tests/test-fdatasync.c (main): Likewise.
46180 2011-09-16  Bruno Haible  <bruno@clisp.org>
46182         Support for MSVC compiler: Ensure mode_t gets defined.
46183         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
46184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
46185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
46186         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
46187         * tests/test-fcntl-h.c: Check that mode_t is defined.
46188         * tests/test-sys_stat.c: Likewise.
46189         * tests/test-sys_types.c: Likewise.
46190         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
46191         * doc/posix-headers/sys_stat.texi: Likewise.
46192         * doc/posix-headers/sys_types.texi: Likewise.
46194 2011-09-16  Bruno Haible  <bruno@clisp.org>
46196         sys_stat: Support for MSVC.
46197         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
46198         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
46199         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
46200         MSVC.
46202 2011-09-16  Bruno Haible  <bruno@clisp.org>
46204         Support for MSVC compiler: Ensure off_t gets defined.
46205         * lib/unistd.in.h: Include <sys/types.h>.
46206         * tests/test-fcntl-h.c: Check that off_t is defined.
46207         * tests/test-sys_stat.c: Likewise.
46208         * tests/test-sys_types.c: Likewise.
46210 2011-09-16  Eric Blake  <eblake@redhat.com>
46212         fdatasync: port to Solaris
46213         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
46214         * modules/fdatasync (Link): Document it.
46215         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
46217         fdatasync: port to MacOS X 10.7
46218         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
46219         declared.
46220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
46221         * modules/unistd (Makefile.am): Substitute it.
46222         * lib/unistd.in.h (fdatasync): Declare on MacOS.
46223         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
46225         fdatasync: minor improvements
46226         * modules/fdatasync (Depends-on): Add condition for fsync.
46227         * lib/fdatasync.c (fdatasync): Add comment.
46228         * tests/test-unistd-c++.cc: Test fdatasync.
46230         unistd: update refs to newer POSIX
46231         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
46232         Suggested by Bruno Haible.
46234         fdatasync: new module
46235         * modules/fsync (Description): Document difference to fdatasync.
46236         * modules/fdatasync: New module.
46237         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
46238         * lib/fdatasync.c (fdatasync): Likewise.
46239         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
46240         defaults.
46241         * modules/unistd (Makefile.am): Set witnesses.
46242         * lib/unistd.in.h (fdatasync): Declare.
46243         * MODULES.html.sh: Document it.
46244         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
46245         * modules/fdatasync-tests: New test.
46246         * tests/test-fdatasync.c: Likewise.
46248 2011-09-16  Eric Blake  <eblake@redhat.com>
46250         test-fsync: enhance tests
46251         * modules/fsync-tests (Depends-on): Add errno, for mingw.
46252         * tests/test-fsync.c (main): Enhance test.
46254 2011-09-15  Bruno Haible  <bruno@clisp.org>
46256         Support for MSVC compiler: Ensure ssize_t gets defined.
46257         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
46258         * doc/posix-headers/stdio.texi: Likewise.
46259         * modules/stdio (Depends-on): Add ssize_t.
46260         * modules/sys_socket (Depends-on): Likewise.
46261         * modules/sys_types (Depends-on): Likewise.
46262         * modules/sys_uio (Depends-on): Likewise.
46263         * modules/unistd (Depends-on): Likewise.
46264         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
46265         * tests/test-sys_types.c: Check that ssize_t is defined.
46267 2011-09-14  Bruno Haible  <bruno@clisp.org>
46269         Avoid using #, the m4 comment starter character, near brackets.
46270         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
46271         delimiter character in sed expressions.
46272         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46273         Suggested by Eric Blake.
46275         Properly quote AC_CHECK_DECLS' 4th argument.
46276         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
46277         argument.
46278         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46279         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
46280         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46281         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
46282         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46283         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
46284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
46285         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
46286         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
46287         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46288         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
46289         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46290         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46291         * m4/isinf.m4 (gl_ISINF): Likewise.
46292         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
46293         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46294         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46295         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
46298         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
46299         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
46300         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
46301         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
46302         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
46303         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
46304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
46305         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46307         Reported by Eric Blake.
46309         Properly quote AC_CHECK_DECL's 4th argument.
46310         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
46311         argument.
46312         * m4/argp.m4 (gl_ARGP): Likewise.
46313         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
46314         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
46315         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
46316         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
46317         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
46318         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
46319         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
46320         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
46321         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46322         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
46323         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
46324         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
46325         Reported by Eric Blake.
46327 2011-09-14  Eric Blake  <eblake@redhat.com>
46329         opendir: avoid compile warning
46330         * lib/opendir.c (includes): Always include errno.h.
46331         Reported by Tatsuro MATSUOKA.
46333 2011-09-14  Jim Meyering  <meyering@redhat.com>
46335         maint.mk: sc_tight_scope: propagate failure from sub-make
46336         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
46337         Reported by Martin von Gagern.
46339 2011-09-13  Bruno Haible  <bruno@clisp.org>
46341         tempname: Support for MSVC.
46342         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
46343         MSVC.
46344         * modules/tempname (Depends-on): Add fcntl-h.
46346 2011-09-13  Bruno Haible  <bruno@clisp.org>
46348         sys_time: Support for MSVC.
46349         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
46350         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
46351         include <winsock2.h>.
46352         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
46353         function declarations that collide with POSIX.
46354         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
46355         (Makefile.am): Substitute HAVE_WINSOCK2_H.
46357 2011-09-13  Bruno Haible  <bruno@clisp.org>
46359         stat: Support for MSVC.
46360         * lib/stat.c: Include pathmax.h.
46361         * modules/stat (Depends-on): Add pathmax.
46363         pathmax: Support for native Windows.
46364         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
46366 2011-09-12  Bruno Haible  <bruno@clisp.org>
46368         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
46369         * lib/dirent.in.h (struct dirent): New type.
46370         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
46371         DT_WHT): New macros.
46372         (DIR): New type.
46373         (opendir, closedir): Declare only if the module 'opendir' is enabled.
46374         (readdir, rewinddir): New declarations.
46375         * lib/dirent-private.h: New file.
46376         * lib/opendir.c: New file.
46377         * lib/readdir.c: New file.
46378         * lib/rewinddir.c: New file.
46379         * lib/closedir.c: New file.
46380         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
46381         * m4/opendir.m4: New file.
46382         * m4/readdir.m4: New file.
46383         * m4/rewinddir.m4: New file.
46384         * m4/closedir.m4: New file.
46385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
46386         REPLACE_CLOSEDIR here.
46387         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
46388         readdir, rewinddir are declared.
46389         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
46390         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
46391         HAVE_REWINDDIR, HAVE_CLOSEDIR.
46392         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
46393         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
46394         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
46395         * modules/opendir: New file.
46396         * modules/readdir: New file.
46397         * modules/rewinddir: New file.
46398         * modules/closedir: New file.
46399         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
46400         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
46401         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
46402         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
46403         * NEWS: Mention the 'fchdir' change.
46405 2011-09-11  Bruno Haible  <bruno@clisp.org>
46407         asm-underscore.m4: Support for MSVC.
46408         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
46409         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
46411 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
46413         Doc about crypt functions.
46414         * doc/posix-functions/crypt.texi: Expand range of glibc versions
46415         needing for _GNU_SOURCE to get crypt.
46416         * doc/posix-functions/encrypt.texi: Likewise.
46417         * doc/posix-functions/setkey.texi: Likewise.
46419 2011-09-11  Bruno Haible  <bruno@clisp.org>
46421         doc: Update regarding MSVC 9.
46422         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
46423         tested".
46424         * doc/posix-functions/*.texi: Update with info about MSVC 9.
46425         * doc/posix-headers/*.texi: Likewise.
46426         * doc/pastposix-functions/*.texi: Likewise.
46427         * doc/glibc-functions/*.texi: Likewise.
46428         * doc/glibc-headers/*.texi: Likewise.
46430 2011-09-11  Bruno Haible  <bruno@clisp.org>
46432         unistd et al.: Don't assume <unistd.h> exists.
46433         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
46434         does not exist.
46435         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
46436         exist. But include <stdlib.h>.
46437         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
46438         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
46439         symlink() does not exist.
46440         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
46441         include <io.h> instead.
46442         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
46443         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
46444         include <direct.h> instead.
46445         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
46446         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46447         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
46448         <io.h> instead.
46449         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
46450         correctly if the system does not have hard links.
46451         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
46452         <direct.h> instead.
46453         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
46454         it when looking for function declarations.
46455         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
46456         <direct.h> and <io.h> instead.
46457         * doc/posix-headers/unistd.texi: More details about MSVC problem.
46459 2011-09-11  Bruno Haible  <bruno@clisp.org>
46461         strcase: Support for MSVC.
46462         * modules/strcase (Status, Notice): Remove obsoletion mark.
46463         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
46464         * doc/posix-functions/strncasecmp.texi: Likewise.
46466         strings: Don't assume <strings.h> exists.
46467         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
46468         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
46469         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
46470         * doc/posix-headers/strings.texi: Mention the MSVC problem.
46472 2011-09-11  Bruno Haible  <bruno@clisp.org>
46474         dirent: Don't assume <dirent.h> exists.
46475         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
46476         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
46477         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
46478         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
46480 2011-09-11  Bruno Haible  <bruno@clisp.org>
46482         Fix wint_t on MSVC.
46483         * lib/wchar.in.h (wint_t): On MSVC, override it.
46484         * lib/wctype.in.h (wint_t): Likewise.
46485         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
46486         MSVC.
46487         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
46488         * doc/posix-headers/wctype.texi: Likewise.
46490 2011-09-11  Bruno Haible  <bruno@clisp.org>
46492         sys_types: Fix typo.
46493         * lib/sys_types.in.h: Fix typo in comment.
46494         Reported by Paul Eggert.
46496         Support for MSVC compiler: Ensure size_t gets defined.
46497         * modules/strings (Depends-on): Add 'sys_types'.
46498         * modules/sys_uio (Depends-on): Likewise.
46499         * lib/sys_uio.in.h: Update comment.
46501         C++ tests for module 'sys_types'.
46502         * modules/sys_types-c++-tests: New file.
46503         * tests/test-sys_types-c++.cc: New file.
46505         Tests for module 'sys_types'.
46506         * modules/sys_types-tests: New file.
46507         * tests/test-sys_types.c: New file.
46509         New module 'sys_types'.
46510         * lib/sys_types.in.h: New file.
46511         * m4/sys_types_h.m4: New file.
46512         * modules/sys_types: New file.
46513         * doc/posix-headers/sys_types.texi: Mention the new module and the
46514         size_t problem on MSVC 9.
46516 2011-09-11  Bruno Haible  <bruno@clisp.org>
46518         Support for MSVC compiler: Avoid division by a literal 0.
46519         * lib/math.in.h (NAN): Define through a function call also on MSVC.
46520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
46521         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
46522         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
46523         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
46524         * tests/infinity.h: New file.
46525         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
46526         on MSVC.
46527         * tests/test-ceilf1.c: Include infinity.h.
46528         (main): Use Infinityf.
46529         * tests/test-ceil1.c: Include infinity.h.
46530         (main): Use Infinityd.
46531         * tests/test-ceill.c: Include infinity.h.
46532         (main): Use Infinityl.
46533         * tests/test-dprintf-posix.c: Include infinity.h.
46534         (test_function): Use Infinityd.
46535         * tests/test-floorf1.c: Include infinity.h.
46536         (main): Use Infinityf.
46537         * tests/test-floor1.c: Include infinity.h.
46538         (main): Use Infinityd.
46539         * tests/test-floorl.c: Include infinity.h.
46540         (main): Use Infinityl.
46541         * tests/test-fprintf-posix.c: Include infinity.h.
46542         (test_function): Use Infinityd.
46543         * tests/test-frexp.c: Include infinity.h.
46544         (main): Use Infinityd.
46545         * tests/test-frexpl.c: Include infinity.h.
46546         (main): Use Infinityl.
46547         * tests/test-isfinite.c: Include infinity.h.
46548         (test_isfinitef): Use Infinityf.
46549         (test_isfinited): Use Infinityd.
46550         (test_isfinitel): Use Infinityl.
46551         * tests/test-isinf.c: Include infinity.h.
46552         (test_isinff): Use Infinityf.
46553         (test_isinfd): Use Infinityd.
46554         (test_isinfl): Use Infinityl.
46555         * tests/test-isnan.c: Include infinity.h.
46556         (test_float): Use Infinityf.
46557         (test_double): Use Infinityd.
46558         (test_long_double): Use Infinityl.
46559         * tests/test-isnanf.h: Include infinity.h.
46560         (main): Use Infinityf.
46561         * tests/test-isnand.h: Include infinity.h.
46562         (main): Use Infinityd.
46563         * tests/test-isnanl.h: Include infinity.h.
46564         (main): Use Infinityl.
46565         * tests/test-ldexpl.c: Include infinity.h.
46566         (main): Use Infinityl.
46567         * tests/test-printf-posix.h: Include infinity.h.
46568         (test_function): Use Infinityd.
46569         * tests/test-roundf1.c: Include infinity.h.
46570         (main): Use Infinityf.
46571         * tests/test-round1.c: Include infinity.h.
46572         (main): Use Infinityd.
46573         * tests/test-roundl.c: Include infinity.h.
46574         (main): Use Infinityl.
46575         * tests/test-signbit.c: Include infinity.h.
46576         (test_signbitf): Use Infinityf.
46577         (test_signbitd): Use Infinityd.
46578         (test_signbitl): Use Infinityl.
46579         * tests/test-snprintf-posix.h: Include infinity.h.
46580         (test_function): Use Infinityd, Infinityl.
46581         * tests/test-sprintf-posix.h: Include infinity.h.
46582         (test_function): Use Infinityd, Infinityl.
46583         * tests/test-truncf1.c: Include infinity.h.
46584         (main): Use Infinityf.
46585         * tests/test-trunc1.c: Include infinity.h.
46586         (main): Use Infinityd.
46587         * tests/test-truncl.c: Include infinity.h.
46588         (main): Use Infinityl.
46589         * tests/test-vasnprintf-posix.c: Include infinity.h.
46590         (test_function): Use Infinityd, Infinityl.
46591         * tests/test-vasprintf-posix.c: Include infinity.h.
46592         (test_function): Use Infinityd, Infinityl.
46593         * modules/ceilf-tests (Files): Add tests/infinity.h.
46594         * modules/ceil-tests (Files): Likewise.
46595         * modules/ceill-tests (Files): Likewise.
46596         * modules/dprintf-posix-tests (Files): Likewise.
46597         * modules/floorf-tests (Files): Likewise.
46598         * modules/floor-tests (Files): Likewise.
46599         * modules/floorl-tests (Files): Likewise.
46600         * modules/fprintf-posix-tests (Files): Likewise.
46601         * modules/frexp-tests (Files): Likewise.
46602         * modules/frexp-nolibm-tests (Files): Likewise.
46603         * modules/frexpl-tests (Files): Likewise.
46604         * modules/frexpl-nolibm-tests (Files): Likewise.
46605         * modules/isfinite-tests (Files): Likewise.
46606         * modules/isinf-tests (Files): Likewise.
46607         * modules/isnan-tests (Files): Likewise.
46608         * modules/isnanf-tests (Files): Likewise.
46609         * modules/isnanf-nolibm-tests (Files): Likewise.
46610         * modules/isnand-tests (Files): Likewise.
46611         * modules/isnand-nolibm-tests (Files): Likewise.
46612         * modules/isnanl-tests (Files): Likewise.
46613         * modules/isnanl-nolibm-tests (Files): Likewise.
46614         * modules/ldexpl-tests (Files): Likewise.
46615         * modules/printf-posix-tests (Files): Likewise.
46616         * modules/roundf-tests (Files): Likewise.
46617         * modules/round-tests (Files): Likewise.
46618         * modules/roundl-tests (Files): Likewise.
46619         * modules/signbit-tests (Files): Likewise.
46620         * modules/snprintf-posix-tests (Files): Likewise.
46621         * modules/sprintf-posix-tests (Files): Likewise.
46622         * modules/truncf-tests (Files): Likewise.
46623         * modules/trunc-tests (Files): Likewise.
46624         * modules/truncl-tests (Files): Likewise.
46625         * modules/vasnprintf-posix-tests (Files): Likewise.
46626         * modules/vasprintf-posix-tests (Files): Likewise.
46627         * modules/vdprintf-posix-tests (Files): Likewise.
46628         * modules/vfprintf-posix-tests (Files): Likewise.
46629         * modules/vprintf-posix-tests (Files): Likewise.
46630         * modules/vsnprintf-posix-tests (Files): Likewise.
46631         * modules/vsprintf-posix-tests (Files): Likewise.
46632         * modules/xprintf-posix-tests (Files): Likewise.
46634 2011-09-11  Bruno Haible  <bruno@clisp.org>
46636         Ensure pid_t gets defined.
46637         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
46638         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
46639         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46640         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
46641         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
46642         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
46643         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46644         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46645         * tests/test-fcntl-h.c: Check that pid_t is defined.
46646         * tests/test-sched.c: Likewise.
46647         * tests/test-termios.c: Likewise.
46648         * tests/test-time.c: Likewise.
46649         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
46650         * doc/posix-headers/signal.texi: Likewise.
46651         * doc/posix-headers/sys_types.texi: Likewise.
46652         * doc/posix-headers/time.texi: Likewise.
46654 2011-09-11  Bruno Haible  <bruno@clisp.org>
46656         acl: Fix compilation on Solaris 10 (older version).
46657         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
46658         of ACE_EVERYONE.
46659         * lib/set-mode-acl.c (qset_acl): Likewise.
46660         Reported by Christian Jullien <eligis@orange.fr>.
46662 2011-09-10  Bruno Haible  <bruno@clisp.org>
46664         iconv, unsetenv: Add support for MSVC compiler.
46665         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
46666         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
46668 2011-09-10  Bruno Haible  <bruno@clisp.org>
46670         *printf: Add support for MSVC compiler.
46671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
46672         handles the exception caused by the %n directive. When cross-compiling,
46673         guess no on native Windows.
46674         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46675         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
46676         emulate it through vsnprintf.
46677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
46678         * doc/posix-functions/dprintf.texi: Update documentation regarding
46679         MSVC 9.
46680         * doc/posix-functions/fprintf.texi: Likewise.
46681         * doc/posix-functions/printf.texi: Likewise.
46682         * doc/posix-functions/snprintf.texi: Likewise.
46683         * doc/posix-functions/sprintf.texi: Likewise.
46684         * doc/posix-functions/swprintf.texi: Likewise.
46685         * doc/posix-functions/vdprintf.texi: Likewise.
46686         * doc/posix-functions/vfprintf.texi: Likewise.
46687         * doc/posix-functions/vprintf.texi: Likewise.
46688         * doc/posix-functions/vsnprintf.texi: Likewise.
46689         * doc/posix-functions/vsprintf.texi: Likewise.
46690         * doc/glibc-functions/asprintf.texi: Likewise.
46691         * doc/glibc-functions/obstack_printf.texi: Likewise.
46692         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46693         * doc/glibc-functions/vasprintf.texi: Likewise.
46695 2011-09-10  Bruno Haible  <bruno@clisp.org>
46697         nocrash: Add support for native Windows.
46698         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
46700 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
46701             Bruno Haible  <bruno@clisp.org>
46703         absolute-header, include-next: Add support for MSVC compiler.
46704         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
46705         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
46706         directory separator in #line directives.
46707         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
46708         recognize also backslash as directory separator in #line directives.
46710 2011-09-08  Jim Meyering  <meyering@redhat.com>
46712         maint.mk: mark the post-release commit log with "maint: " prefix
46713         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
46714         one-line commit-log summary.
46716 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
46717             Bruno Haible  <bruno@clisp.org>
46719         Doc about crypt functions.
46720         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
46721         systems.
46722         * doc/posix-functions/encrypt.texi: Likewise.
46723         * doc/posix-functions/setkey.texi: Likewise.
46725 2011-09-08  Simon Josefsson  <simon@josefsson.org>
46727         * lib/gc.h: Fix copyright header.
46729 2011-09-07  Bruno Haible  <bruno@clisp.org>
46731         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
46732         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
46733         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
46735 2011-09-07  Bruno Haible  <bruno@clisp.org>
46737         openat: Work around compilation error with OSF/1 5.1 DTK cc.
46738         * lib/fopen.c: Use different syntax for include of <stdio.h>.
46739         * lib/freopen.c: Likewise.
46740         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
46741         * lib/lstat.c: Likewise.
46742         * lib/stat.c: Likewise.
46743         * lib/open.c: Use different syntax for include of <fcntl.h>.
46744         * lib/openat.c: Include fcntl.h again, explicitly.
46746 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
46748         parse-datetime: document the newly accepted format
46749         * doc/parse-datetime.texi (Combined date and time of day items):
46750         New section.
46752 2011-09-06  Bruno Haible  <bruno@clisp.org>
46754         acl: Fix a test failure on newer Solaris 10 with ZFS.
46755         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
46756         ENOSYS as no ACL.
46757         Reported by Jim Meyering.
46759 2011-09-06  Bruno Haible  <bruno@clisp.org>
46761         acl: Update for AIX >= 5.3 with NFS.
46762         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
46763         ENOSYS as no ACL.
46765         acl: Fix a test failure on AIX >= 5.3 with NFS.
46766         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
46767         as no ACL.
46769 2011-09-06  Bruno Haible  <bruno@clisp.org>
46771         acl: Fix a test failure on IRIX 6.5 with NFS.
46772         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
46773         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
46774         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
46775         * lib/copy-acl.c (qcopy_acl): Likewise.
46777 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46779         openat: port to AIX 7.1 with large files
46780         AIX 7.1 does a "#define openat open64at" if large files are in use,
46781         so we can't simply #undef openat.  Use the orig_openat trick (similar
46782         to orig_open in lib/open.c) to work around the problem.  Problem
46783         reported by Kevin Brott for GNU tar, in the thread containing
46784         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
46785         * lib/openat.c (__need_system_fcntl_h): Define first.
46786         Include <fcntl.h> and <sys/types.h> before undefining.
46787         (orig_openat) [HAVE_OPENAT]: New inline function.
46788         (openat) [HAVE_OPENAT]: Do not undef.
46789         (rpl_openat): Use orig_openat, not openat.
46791 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46792             Bruno Haible  <bruno@clisp.org>
46794         acl: Avoid errors on NonStop Kernel.
46795         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
46796         ENOTSUP errors.
46798 2011-09-05  Bruno Haible  <bruno@clisp.org>
46800         acl: Clean up Solaris code.
46801         * lib/acl-internal.h: Remove no-op #if.
46802         * lib/file-has-acl.c: Likewise.
46803         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
46804         * lib/copy-acl.c (qcopy_acl): Likewise.
46806 2011-09-05  Bruno Haible  <bruno@clisp.org>
46808         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
46809         binaries built on the original Solaris 10.
46810         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
46811         trivial.
46813 2011-09-05  Bruno Haible  <bruno@clisp.org>
46815         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46816         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
46817         10.
46818         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
46819         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
46820         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
46821         instead of acl_get, facl_get, acl_set, facl_set.
46823 2011-09-05  Bruno Haible  <bruno@clisp.org>
46825         copy-file: Try unit tests on more file systems.
46826         * tests/test-copy-file-1.sh: New file.
46827         * tests/test-copy-file-2.sh: New file.
46828         * modules/copy-file-tests (Files): Add them.
46829         (Makefile.am): Add them to TESTS.
46831         acl: Try unit tests on more file systems.
46832         * tests/test-file-has-acl-1.sh: New file.
46833         * tests/test-file-has-acl-2.sh: New file.
46834         * tests/test-set-mode-acl-1.sh: New file.
46835         * tests/test-set-mode-acl-2.sh: New file.
46836         * tests/test-copy-acl-1.sh: New file.
46837         * tests/test-copy-acl-2.sh: New file.
46838         * modules/acl-tests (Files): Add them.
46839         (Makefile.am): Add them to TESTS.
46841 2011-09-04  Bruno Haible  <bruno@clisp.org>
46843         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46844         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
46845         10.
46846         (OLD_ALLOW, OLD_DENY): New macros.
46847         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
46848         ACE_ACCESS_ALLOWED_ACE_TYPE.
46849         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
46850         ACE_ACCESS_DENIED_ACE_TYPE.
46851         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
46852         (NEW_ACE_EXECUTE): Fix value.
46853         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
46854         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
46855         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
46856         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
46857         NEW_ACE_SYNCHRONIZE): New macros.
46858         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
46859         instead of acl_fromtext, acl_set, facl_set.
46860         Fixes a coreutils/tests/cp/perm failure.
46862 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
46864         openat: test for fstatat (..., 0) bug
46865         Further testing with tar suggests that fstatat (..., 0)
46866         does not work in general, on AIX 7.1; see
46867         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
46868         So, give up entirely on AIX 7.1's fstatat, and fall back on our
46869         replacement fstatat (which is what older AIX releases were using
46870         anyway).
46871         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
46872         use is now changed to orig_fstatat.  This was probably the right
46873         thing to do anyway.
46874         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
46875         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
46876         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
46877         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
46878         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
46879         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
46880         if the bug is found.
46882         openat: test for fstatat (AT_FDCWD, ..., 0) bug
46883         This tests for another fstatat bug on AIX 7.1:
46884         fstatat (AT_FDCWD, ..., 0) does not work.  See
46885         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
46886         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
46887         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
46888         (rpl_fstatat): Adjust so that it works around either (or both)
46889         bugs if present.
46890         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
46892 2011-09-03  Karl Berry  <karl@gnu.org>
46894         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46895         in index entries.
46897 2011-09-02  Bruno Haible  <bruno@clisp.org>
46899         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46900         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46901         values of AR, ARFLAGS, RANLIB.
46902         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46904 2011-09-02  Bruno Haible  <bruno@clisp.org>
46906         Find 'ar' program that fits with --host argument.
46907         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46909 2011-09-02  Bruno Haible  <bruno@clisp.org>
46911         tests: init.sh: Support any non-GNU diff.
46912         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46913         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46914         Solaris 8.
46916 2011-09-02  Bruno Haible  <bruno@clisp.org>
46918         tests: init.sh: work also with any non-GNU diff that supports -u
46919         * tests/init.sh: Relax check for diff -u support.
46920         Rather than checking for GNU diff via --version, simply check
46921         for support for -u itself.  Useful at least on OpenBSD 4.9,
46922         AIX 7.1, IRIX 6.5, and Solaris 10.
46924 2011-09-01  Bruno Haible  <bruno@clisp.org>
46926         strtoimax, strtoumax: Document problem on HP-UX 11.
46927         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46928         * doc/posix-functions/strtoumax.texi: Likewise.
46930 2011-09-01  Bruno Haible  <bruno@clisp.org>
46932         strtoumax: Avoid link error on OSF/1 with DTK cc.
46933         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46934         defined as a function.
46935         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46936         strtoumax is defined, not whether it is declared.
46938 2011-09-01  Bruno Haible  <bruno@clisp.org>
46940         strtoimax: Avoid link error on OSF/1 with DTK cc.
46941         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46942         defined as a function.
46943         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46944         strtoimax is defined, not whether it is declared.
46946 2011-09-01  Bruno Haible  <bruno@clisp.org>
46948         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46949         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46950         as a function.
46951         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46952         whether it is declared.
46954 2011-09-01  Bruno Haible  <bruno@clisp.org>
46956         imaxabs: Avoid link error on OSF/1 with DTK cc.
46957         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46958         as a function.
46959         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46960         whether it is declared.
46962 2011-09-01  Bruno Haible  <bruno@clisp.org>
46964         Tests for module 'strtoumax'.
46965         * modules/strtoumax-tests: New file.
46966         * tests/test-strtoumax.c: New file.
46968         Tests for module 'strtoimax'.
46969         * modules/strtoimax-tests: New file.
46970         * tests/test-strtoimax.c: New file.
46972         Tests for module 'imaxdiv'.
46973         * modules/imaxdiv-tests: New file.
46974         * tests/test-imaxdiv.c: New file.
46976         Tests for module 'imaxabs'.
46977         * modules/imaxabs-tests: New file.
46978         * tests/test-imaxabs.c: New file.
46980 2011-09-01  Bruno Haible  <bruno@clisp.org>
46982         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46983         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46984         pthread_create.
46986 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46988         openat: work around AIX 7.1 fstatat issue
46989         This should fix the problem that was not properly fixed
46990         in the previous change, dated 2011-08-30.
46991         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46992         __need_system_stat_h defined.
46993         (orig_fstatat) [HAVE_FSTATAT]: New function.
46994         (rpl_fstatat): Go back to the old way of doing things,
46995         except call orig_fstatat instead of fstatat.
46996         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46997         Remove unnecessary check whether fstatat fills in st_size etc.
46999 2011-09-01  Bruno Haible  <bruno@clisp.org>
47001         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
47002         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
47003         just include the system's header.
47005 2011-08-31  Jim Meyering  <meyering@redhat.com>
47007         tests: avoid spurious assertion failure in test-float.c on ppc64
47008         * tests/test-float.c (test_long_double): Comment out an assertion,
47009         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
47010         with gcc-4.4.4.
47012         maint: indent with spaces, not TABs
47013         I need to get in the habit of running gnulib's "make check".
47014         Both of these would have been caught.
47015         * m4/largefile.m4: Indent with spaces, not TABs.
47016         * lib/parse-datetime.y (iso_8601_time): Likewise.
47017         Spotted by Pádraig Brady.
47019         test-parse-datetime.c: accommodate a relatively strict gcc warning
47020         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
47021         to avoid a warning from gcc's -Werror=missing-declarations.
47022         Insert a few spaces-before-funcall-parenthesis.
47024 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
47026         parse-datetime: accept ISO 8601 date and time rep with "T" separator
47027         The parser now accepts ISO 8601 date-time strings with "T" as the
47028         separator.  It has long parsed dates like "2004-02-29 16:21:42"
47029         with a space between the date and time strings.  Now it also parses
47030         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
47031         variants like "2004-02-29T16:21:42.333-07:00"
47032         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
47033         of day representation using the 'T' separator character.
47034         * doc/parse-datetime.texi (General date syntax): replace use of
47035         deprecated --iso-8601 option with --rfc-3339 in example of date
47036         command output formats that can be parsed.
47037         * tests/test-parse-datetime.c (tm_diff): New function, taken from
47038         lib/parse-datetime.y.
47039         (gmt_offset): New function.
47040         (main): Add additional test cases to validate ISO8601 extended
47041         date and time of day parsing.
47043 2011-08-31  Bruno Haible  <bruno@clisp.org>
47045         freopen: Documentation.
47046         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
47047         name.
47048         Reported by Claudio Bley <claudio.bley@gmail.com>.
47050 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
47052         freopen: Don't crash if the filename argument is NULL.
47053         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
47054         NULL.
47056 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47058         openat: work around AIX 7.1 fstatat bug
47059         Problem reported by Kevin Brott for GNU tar, in the thread containing
47060         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
47061         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
47062         FSTATAT_ST_SIZE_ETC_BROKEN.
47063         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
47064         rpl_fstatat.
47065         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
47066         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
47067         AC_CHECK_FUNCS_ONCE for fstatat.
47068         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
47069         fchmodat, mkdirat, openat and unlinkat.
47071 2011-08-30  Bruno Haible  <bruno@clisp.org>
47073         Avoid endless recursions if config.h includes some header files.
47074         * lib/fopen.c (__need_FILE): Define already before including config.h.
47075         * lib/freopen.c (__need_FILE): Likewise.
47076         * lib/open.c (__need_system_fcntl_h): Likewise.
47077         * lib/stat.c (__need_system_sys_stat_h): Likewise.
47078         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
47079         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
47081 2011-08-25  Karl Berry  <karl@gnu.org>
47083         * config/srclist.txt (ylwrap): new try.
47084         * build-aux/ylwrap: new file.
47086 2011-08-23  Bruno Haible  <bruno@clisp.org>
47088         tmpdir: Use a good default directory on native Windows.
47089         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
47090         (P_tmpdir): Default to _P_tmpdir on native Windows.
47091         (path_search): On native Windows, try the value returned by GetTempPath
47092         before trying P_tmpdir.
47093         * modules/tmpdir (Depends-on): Add pathmax.
47094         Suggested by John Darrington <john@darrington.wattle.id.au>.
47096 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
47098         doc: fix typo in README-release
47099         * top/README-release: Capitalize first word of a sentence.
47101 2011-08-19  Jim Meyering  <meyering@redhat.com>
47103         fts: do not exhaust memory when processing million-entry directories
47104         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
47105         directory would require about 256*N bytes of memory.  Thus, it was
47106         easy to construct a directory too large to be processed by any of
47107         those tools.  With this change, fts' maximum memory utilization is
47108         now limited to around 30MB.
47109         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
47110         (fts_read): When we've processed the final entry (i.e., when
47111         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
47112         using the parent entry to read any remaining entries.  Dispatch
47113         depending on what fts_build returns:
47114         - NULL+stop, aka failure: stop
47115         - NULL otherwise: move up in the dir hierarchy
47116         - non-NULL: handle this new entry
47117         (fts_build): Declare and use new local, continue_readdir.
47118         Prepare to be called from fts_read, when the entries
47119         from a partially-read directory have just been exhausted.
47120         In that case, we'll skip the opendir and instead use the parent's
47121         fts_dirp and derive dir_fd from that.
47122         Finally, in the readdir loop, if we read max_entries entries,
47123         exit the loop ensuring *not* to call closedir.  This is required
47124         so that fts_dirp can be reused on a subsequent call.
47125         Prompted by Ben England's report of memory exhaustion in find
47126         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
47128         maint: fts: move decl of `dp' down into while loop; split a long line
47129         * lib/fts.c (fts_build): No semantic change.
47131         fts: add/use new struct member, fts_dirp
47132         We are about to use this to manage any directory with
47133         too many entries to read all of them into memory at once.
47134         To do that, we'll need to save the DIR* pointer in each
47135         affected FTSENT struct.
47136         * lib/fts_.h: Include <dirent.h>.
47137         (struct FTSENT) [fts_dirp]: New member.
47138         * lib/fts.c (closedir_and_clear): Define.
47139         Use it in place of closedir so that we are sure to
47140         clear the new fts_dirp member when done with it.
47141         (fts_alloc): Initialize the new member.
47142         (fts_lfree): Free, if needed.
47144         maint: fts: give __opendir2 a new parameter and rename
47145         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
47146         than surreptitiously using sole caller's "dir_fd".
47147         (fts_opendir): Rename from __opendir2.
47149         maint: fts.c: remove __opendir2's now-unused parameter, oflag
47150         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
47152         maint: fts.c: correct off-by-one indentation
47153         * lib/fts.c (fts_build): Correct indentation, change style
47154         of a couple of block comments, and bracing style.
47156         maint: fts.c: move __opendir2 #define "up" out of function body
47157         * lib/fts.c (__opendir2): Move "up".  No semantic change.
47159         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
47160         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
47161         out for a long time and besides was useful only on BSD systems.
47163 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47165         regex: port to Stratus OpenVOS
47166         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
47167         define to empty, rather than attempting nonportable optimizations.
47168         Problem reported by Paul Green in:
47169         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
47170         and fix suggested by Eric Blake in:
47171         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
47173 2011-08-17  Eric Blake  <eblake@redhat.com>
47175         getcwd: fix test failures on mingw
47176         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
47177         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
47178         test if long directory cannot be created, and allow mingw errno.
47180         getcwd-lgpl: fix m4 to match relaxed test for BSD
47181         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
47182         (gl_FUNC_GETCWD_SIGNATURE): New macro.
47183         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
47184         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
47185         signature problem.
47187         getcwd: fix compilation on mingw64
47188         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
47189         getcwd.
47190         Reported by Marc-André Lureau.
47192         pipe2: silence compiler warning
47193         * lib/pipe2.c (pipe2): Hide label if it is not used.
47195 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
47197         relocatable-prog: fix link error
47198         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
47199         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
47200         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
47201         into modules/relocatable-lib without noticing that
47202         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
47203         also needs to build relocatable.c.
47205 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
47207         getaddrinfo: fix sh typo in gai_strerrorA decl checking
47208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
47209         shell code: it contained a 'break' that was not in a loop.
47210         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
47211         via a shell-language loop; this may have been true in old Autoconf
47212         versions, but it's not true in Autoconf 2.68.  I found this bug
47213         when testing coreutils git on Solaris 8, whose shell complains
47214         about the syntax error.
47216 2011-08-12  Simon Josefsson  <simon@josefsson.org>
47218         * lib/base64.c: Fix comment to reference RFC 4648.
47219         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
47220         <gvtulder@gmail.com>.
47222 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
47224         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
47226         po/Makefile.in.in: fix make -q problem
47227         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
47228         rule, since there's no file named 'check-macro-version' and its
47229         use as a file breaks make -q.
47230         (all): Don't depend on check-macro-version.
47231         (CHECK_MACRO_VERSION): New macro.
47232         (stamp-po): Use it.
47234         configmake: fix make -q problem
47235         * modules/configmake (configmake.h): Update configmake.h's time stamp
47236         even if the file does not change.  Otherwise, 'make -q' fails.
47237         Problem reported by Simon Josefsson in
47238         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
47240 2011-08-11  Jim Meyering  <meyering@redhat.com>
47242         git-version-gen: correct the advice in a comment
47243         * build-aux/git-version-gen: Correct comment.
47244         Don't recommend to list .tarball-version in .gitignore.
47246 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47248         base64: fix off-by-one buffer size bug
47249         Problem and (trivial) fix reported by Gijs van Tulder in
47250         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
47251         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
47252         * tests/test-base64.c (main): Catch the bug.
47254 2011-08-10  Eric Blake  <eblake@redhat.com>
47256         closein: correct comments
47257         * lib/closein.c (close_stdin): Improve comments.
47259 2011-08-09  Bruno Haible  <bruno@clisp.org>
47261         More tests for 'fseeko'.
47262         * tests/test-fseeko3.c: New file, from Eric Blake.
47263         * tests/test-fseeko3.sh: New file.
47264         * modules/fseeko-tests (Files): Add them.
47265         (TESTS): Add test-fseeko3.sh.
47266         (check_PROGRAMS): Add test-fseeko3.
47268 2011-08-09  Eric Blake  <eblake@redhat.com>
47270         fseeko: remove unneeded hack
47271         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
47273         fseeko: fix bug on glibc
47274         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
47275         Reported by John W. Eaton.
47277 2011-08-08  Bruno Haible  <bruno@clisp.org>
47279         unictype/base: Fix interoperability with preinstalled libunistring.
47280         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
47281         Reported by Simon Josefsson.
47283 2011-08-08  Bruno Haible  <bruno@clisp.org>
47285         iswblank: Detect declaration correctly.
47286         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
47287         AC_CHECK_DECLS invocation.
47289 2011-08-08  Bruno Haible  <bruno@clisp.org>
47291         tcgetsid: Detect declaration correctly.
47292         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
47293         AC_CHECK_DECLS invocation.
47294         Reported by Simon Josefsson.
47296 2011-08-08  Eric Blake  <eblake@redhat.com>
47298         largefile: fix typo that regressed large file support
47299         * modules/largefile (configure.ac-early): Fix section name.
47301 2011-08-06  Karl Berry  <karl@gnu.org>
47303         * MODULES.html.sh (func_all_files): _Noreturn is no longer
47304         a separate module.
47306 2011-08-05  Simon Josefsson  <simon@josefsson.org>
47308         openat: Fix warnings and commens when building unlinkat.c on Hurd.
47309         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
47310         get prototype for free.
47312 2011-08-04  Bruno Haible  <bruno@clisp.org>
47314         Tests for module 'pathmax'.
47315         * modules/pathmax-tests: New file.
47316         * tests/test-pathmax.c: New file.
47318         canonicalize-lgpl: Support larger filenames on the Hurd.
47319         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
47320         Reported by Paul Eggert.
47322         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
47323         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
47324         * lib/chdir-long.h: Include pathmax.h.
47325         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
47326         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
47327         (PATH_MAX): Remove code that is done by pathmax.h.
47328         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
47329         * lib/tmpfile.c: Add a comment.
47330         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
47331         * modules/chdir-long (Depends-on): Add pathmax.
47332         * modules/getcwd (Depends-on): Add pathmax.
47333         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
47334         is not defined.
47335         * doc/posix-headers/limits.texi: Mention the pathmax module.
47336         * NEWS: Mention the change.
47338 2011-08-02  Bruno Haible  <bruno@clisp.org>
47340         pthread_sigmask: Actually use results of gl_THREADLIB.
47341         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
47342         gl_THREADLIB, not gl_[]THREADLIB.
47343         Reported by Eric Blake.
47345 2011-08-02  Jim Meyering  <meyering@redhat.com>
47347         maint.mk: relax the default _gl_TS_function_match regexp
47348         * top/maint.mk (_gl_TS_function_match): Don't require at least one
47349         space between function name and "(" in an "extern" declaration.
47350         That would fail to match a decl with no space there: extern void foo();
47352 2011-07-31  Iain Nicol  <iain@thenicols.net>
47354         git-version-gen: document that EXTRA_DIST must include .version
47355         * build-aux/git-version-gen: In the how-to-use comment, document
47356         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
47357         will fail when run from an unpacked distribution tarball.
47359 2011-08-01  Bruno Haible  <bruno@clisp.org>
47361         wctype-h: Fix last change.
47362         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
47363         REPLACE_TOWLOWER to 0.
47364         Reported by Sam Steingold <sds@gnu.org>.
47366 2011-07-31  Bruno Haible  <bruno@clisp.org>
47368         frexpl: Update autoconf test.
47369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
47370         according to changes of 2011-06-20.
47372 2011-07-31  Bruno Haible  <bruno@clisp.org>
47374         sys_utsname: Add support for Minix.
47375         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
47376         <sys/utsname.h>.
47377         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
47378         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
47380 2011-07-31  Bruno Haible  <bruno@clisp.org>
47382         strings: Add support for Minix.
47383         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
47384         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
47385         * doc/posix-headers/strings.texi: Document the Minix problem.
47387 2011-07-31  Bruno Haible  <bruno@clisp.org>
47389         wctype-h: Add support for Minix.
47390         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
47391         REPLACE_TOWLOWER.
47392         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
47393         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
47394         REPLACE_ISWCNTRL.
47396 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
47398         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
47399         This is a performance improvement for 64-bit hosts: it causes the
47400         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
47402 2011-07-31  Bruno Haible  <bruno@clisp.org>
47404         stdioext: Add support for Minix.
47405         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
47406         * lib/fpurge.c (fpurge): Likewise.
47407         * lib/freadahead.c (freadahead): Likewise.
47408         * lib/freadable.c (freadable): Likewise.
47409         * lib/freading.c (freading): Likewise.
47410         * lib/freadptr.c (freadptr): Likewise.
47411         * lib/freadseek.c (freadptrinc): Likewise.
47412         * lib/fseeko.c (rpl_fseeko): Likewise.
47413         * lib/fseterr.c (fseterr): Likewise.
47414         * lib/fwritable.c (fwritable): Likewise.
47415         * lib/fwriting.c (fwriting): Likewise.
47416         * lib/fflush.c (clear_ungetc_buffer): Update comment.
47417         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
47419 2011-07-31  Bruno Haible  <bruno@clisp.org>
47421         errno: Port to Minix.
47422         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
47423         ECONNABORTED are defined.
47424         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
47425         GNULIB_defined_ECONNABORTED): New macros.
47426         * lib/strerror-override.h (strerror_override): Test also
47427         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
47428         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
47429         ECONNABORTED.
47430         * doc/posix-headers/errno.texi: Mention the Minix problem.
47432 2011-07-31  Bruno Haible  <bruno@clisp.org>
47434         Work around declaration collisions on Minix.
47435         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
47436         defined, set REPLACE_MBSINIT.
47437         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
47438         defined, set REPLACE_MBRTOWC.
47439         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
47440         set REPLACE_MBRLEN.
47441         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
47442         defined, set REPLACE_MBSRTOWCS.
47443         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
47444         defined, set REPLACE_WCRTOMB.
47445         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
47446         defined, set REPLACE_WCSRTOMBS.
47448 2011-07-31  Bruno Haible  <bruno@clisp.org>
47450         Add support for Minix with ACK compiler.
47451         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
47452         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
47453         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
47455 2011-07-31  Bruno Haible  <bruno@clisp.org>
47457         Documentation about Minix.
47458         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
47459         * doc/glibc-headers/*.texi: Likewise.
47460         * doc/posix-functions/*.texi: Likewise.
47461         * doc/glibc-functions/*.texi: Likewise.
47463 2011-07-31  Bruno Haible  <bruno@clisp.org>
47465         snippet/warn-on-use: Fix indentation.
47466         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
47468 2011-07-25  Jim Meyering  <meyering@redhat.com>
47470         tests: test-update-copyright.sh: remove unnecessary "rm" commands
47471         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
47472         commands.
47474 2011-07-27  Jim Meyering  <meyering@redhat.com>
47476         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
47477         * top/maint.mk (gl_extract_significant_defines_): Now that
47478         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
47479         gnulib/lib/signal.in.h, and now that we recommend to
47480         define-if-undefined those two symbols in application code,
47481         we must filter them out of the "significant" list.
47482         This avoids a "make syntax-check" failure in coreutils.
47484 2011-07-26  Eric Blake  <eblake@redhat.com>
47486         warnings: add comments about previous patch
47487         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
47488         * m4/include_next.m4: Likewise.
47489         * m4/warn-on-use.m4: Likewise.
47490         * m4/warnings.m4: Likewise, and simplify use.
47491         Suggested by Stefano Lattarini.
47493         include-next, warnings: support older autoconf
47494         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
47495         AS_VAR_PUSHDEF in a way that works with older autoconf.
47496         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
47497         Reported by Daniel P. Berrange.
47499 2011-07-25  Bruno Haible  <bruno@clisp.org>
47501         fseek, ftell: Fix doc.
47502         * doc/posix-functions/fseek.texi: Reword statement about
47503         AC_SYS_LARGEFILE.
47504         * doc/posix-functions/ftell.texi: Likewise.
47506 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47507             Bruno Haible  <bruno@clisp.org>
47509         Add dependencies to the 'largefile' module.
47510         * modules/fopen (Depends-on): Add 'largefile'.
47511         * modules/freopen (Depends-on): Likewise.
47512         * modules/fseeko (Depends-on): Likewise.
47513         * modules/ftello (Depends-on): Likewise.
47514         * modules/glob (Depends-on): Likewise.
47515         * modules/lseek (Depends-on): Likewise.
47516         * modules/lstat (Depends-on): Likewise.
47517         * modules/mkostemp (Depends-on): Likewise.
47518         * modules/mkostemps (Depends-on): Likewise.
47519         * modules/mkstemp (Depends-on): Likewise.
47520         * modules/mkstemps (Depends-on): Likewise.
47521         * modules/open (Depends-on): Likewise.
47522         * modules/openat (Depends-on): Likewise.
47523         * modules/pread (Depends-on): Likewise.
47524         * modules/pwrite (Depends-on): Likewise.
47525         * modules/scandir (Depends-on): Likewise.
47526         * modules/stat (Depends-on): Likewise.
47527         * modules/tmpfile (Depends-on): Likewise.
47528         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
47529         since the containing module now depends on the largefile module.
47530         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
47531         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
47532         off_t is fixed by gnulib.
47533         * doc/posix-functions/freopen.texi: Likewise.
47534         * doc/posix-functions/fseeko.texi: Likewise.
47535         * doc/posix-functions/fstatat.texi: Likewise.
47536         * doc/posix-functions/ftello.texi: Likewise.
47537         * doc/posix-functions/glob.texi: Likewise.
47538         * doc/posix-functions/lseek.texi: Likewise.
47539         * doc/posix-functions/lstat.texi: Likewise.
47540         * doc/posix-functions/mkstemp.texi: Likewise.
47541         * doc/posix-functions/open.texi: Likewise.
47542         * doc/posix-functions/openat.texi: Likewise.
47543         * doc/posix-functions/pread.texi: Likewise.
47544         * doc/posix-functions/pwrite.texi: Likewise.
47545         * doc/posix-functions/scandir.texi: Likewise.
47546         * doc/posix-functions/stat.texi: Likewise.
47547         * doc/posix-functions/tmpfile.texi: Likewise.
47548         * doc/glibc-functions/mkostemp.texi: Likewise.
47549         * doc/glibc-functions/mkostemps.texi: Likewise.
47550         * doc/glibc-functions/mkstemps.texi: Likewise.
47552 2011-07-25  Bruno Haible  <bruno@clisp.org>
47554         fcntl: Move AC_LIBOBJ invocation to module description.
47555         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
47556         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
47558         fcntl: Remove call-in from fchdir.m4.
47559         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
47560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
47562         dup3: Remove potential call-in from fchdir.m4.
47563         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
47564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
47566         dup2: Move AC_LIBOBJ invocation to module description.
47567         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
47568         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
47569         Don't invoke AC_LIBOBJ.
47570         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
47572         dup2: Remove call-in from fchdir.m4.
47573         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
47574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
47576         fclose: Move AC_LIBOBJ invocation to module description.
47577         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
47578         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
47579         to 1.
47580         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
47582         fclose: Remove call-in from close.m4.
47583         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
47584         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
47586         close: Move AC_LIBOBJ invocation to module description.
47587         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
47588         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
47589         1.
47590         * modules/close (configure.ac): Invoke AC_LIBOBJ.
47592         close: Remove call-in from fchdir.m4.
47593         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
47594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
47596         open: Move AC_LIBOBJ invocation to module description.
47597         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
47598         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
47599         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
47601         open: Remove call-in from fchdir.m4.
47602         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
47603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
47605         fchdir: Start to remove gl_REPLACE_* idiom.
47606         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
47607         (gl_FUNC_FCHDIR): Invoke it.
47609 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47611         * lib/ftell.c (ftell): Comment out cast.
47613         close: use gl_REPLACE_FCLOSE only if defined
47614         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
47615         is defined.  The close module doesn't depend on the fclose module
47616         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
47617         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
47618         I reproduced the problem with "./gnulib-tool --test close sys_socket".
47620 2011-07-24  Jim Meyering  <meyering@redhat.com>
47622         test-select.h: avoid warning when using gcc's -Wmissing-declarations
47623         * tests/test-select.h (test_function): Declare as "static".
47625 2011-07-24  Bruno Haible  <bruno@clisp.org>
47627         doc: Mention the effects of AC_SYS_LARGEFILE.
47628         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
47629         on this function.
47630         * doc/posix-functions/aio_error.texi: Likewise.
47631         * doc/posix-functions/aio_fsync.texi: Likewise.
47632         * doc/posix-functions/aio_read.texi: Likewise.
47633         * doc/posix-functions/aio_return.texi: Likewise.
47634         * doc/posix-functions/aio_suspend.texi: Likewise.
47635         * doc/posix-functions/aio_write.texi: Likewise.
47636         * doc/posix-functions/fgetpos.texi: Likewise.
47637         * doc/posix-functions/fopen.texi: Likewise.
47638         * doc/posix-functions/freopen.texi: Likewise.
47639         * doc/posix-functions/fsetpos.texi: Likewise.
47640         * doc/posix-functions/fstatvfs.texi: Likewise.
47641         * doc/posix-functions/ftruncate.texi: Likewise.
47642         * doc/posix-functions/ftw.texi: Likewise.
47643         * doc/posix-functions/getrlimit.texi: Likewise.
47644         * doc/posix-functions/glob.texi: Likewise.
47645         * doc/posix-functions/lio_listio.texi: Likewise.
47646         * doc/posix-functions/lockf.texi: Likewise.
47647         * doc/posix-functions/mkstemp.texi: Likewise.
47648         * doc/posix-functions/mmap.texi: Likewise.
47649         * doc/posix-functions/nftw.texi: Likewise.
47650         * doc/posix-functions/openat.texi: Likewise.
47651         * doc/posix-functions/opendir.texi: Likewise.
47652         * doc/posix-functions/posix_fadvise.texi: Likewise.
47653         * doc/posix-functions/posix_fallocate.texi: Likewise.
47654         * doc/posix-functions/pread.texi: Likewise.
47655         * doc/posix-functions/pwrite.texi: Likewise.
47656         * doc/posix-functions/readdir.texi: Likewise.
47657         * doc/posix-functions/readdir_r.texi: Likewise.
47658         * doc/posix-functions/rewinddir.texi: Likewise.
47659         * doc/posix-functions/scandir.texi: Likewise.
47660         * doc/posix-functions/seekdir.texi: Likewise.
47661         * doc/posix-functions/setrlimit.texi: Likewise.
47662         * doc/posix-functions/statvfs.texi: Likewise.
47663         * doc/posix-functions/telldir.texi: Likewise.
47664         * doc/posix-functions/tmpfile.texi: Likewise.
47665         * doc/posix-functions/truncate.texi: Likewise.
47666         * doc/glibc-functions/fallocate.texi: Likewise.
47667         * doc/glibc-functions/fstatfs.texi: Likewise.
47668         * doc/glibc-functions/fts_children.texi: Likewise.
47669         * doc/glibc-functions/fts_read.texi: Likewise.
47670         * doc/glibc-functions/getdirentries.texi: Likewise.
47671         * doc/glibc-functions/mkostemp.texi: Likewise.
47672         * doc/glibc-functions/mkostemps.texi: Likewise.
47673         * doc/glibc-functions/mkstemps.texi: Likewise.
47674         * doc/glibc-functions/preadv.texi: Likewise.
47675         * doc/glibc-functions/pwritev.texi: Likewise.
47676         * doc/glibc-functions/sendfile.texi: Likewise.
47677         * doc/glibc-functions/statfs.texi: Likewise.
47679 2011-07-24  Bruno Haible  <bruno@clisp.org>
47681         doc: Fix typo.
47682         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
47684 2011-07-24  Bruno Haible  <bruno@clisp.org>
47686         doc: Mention fsusage.
47687         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
47689 2011-07-24  Bruno Haible  <bruno@clisp.org>
47691         doc: Mention new glibc headers and functions.
47692         * doc/glibc-headers/gshadow.texi: New file.
47693         * doc/glibc-functions/endsgent.texi: New file.
47694         * doc/glibc-functions/fgetsgent.texi: New file.
47695         * doc/glibc-functions/fgetsgent_r.texi: New file.
47696         * doc/glibc-functions/getsgent.texi: New file.
47697         * doc/glibc-functions/getsgent_r.texi: New file.
47698         * doc/glibc-functions/getsgnam.texi: New file.
47699         * doc/glibc-functions/getsgnam_r.texi: New file.
47700         * doc/glibc-functions/putsgent.texi: New file.
47701         * doc/glibc-functions/setsgent.texi: New file.
47702         * doc/glibc-functions/sgetsgent.texi: New file.
47703         * doc/glibc-functions/sgetsgent_r.texi: New file.
47704         * doc/glibc-functions/malloc_info.texi: New file.
47705         * doc/glibc-functions/preadv.texi: New file.
47706         * doc/glibc-functions/pwritev.texi: New file.
47707         * doc/glibc-functions/register_printf_modifier.texi: New file.
47708         * doc/glibc-functions/register_printf_specifier.texi: New file.
47709         * doc/glibc-functions/register_printf_type.texi: New file.
47710         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
47711         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
47712         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
47713         * doc/glibc-functions/pthread_getname_np.texi: New file.
47714         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
47715         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
47716         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
47717         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
47718         * doc/glibc-functions/pthread_setname_np.texi: New file.
47719         * doc/glibc-functions/pthread_sigqueue.texi: New file.
47720         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
47721         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
47722         * doc/glibc-functions/qsort_r.texi: New file.
47723         * doc/glibc-functions/quick_exit.texi: New file.
47724         * doc/glibc-functions/syncfs.texi: New file.
47725         * doc/gnulib.texi: Include them.
47726         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
47727         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
47728         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
47729         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
47730         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
47731         * doc/glibc-functions/execvpe.texi: Likewise.
47733 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47735         ftell: don't include <unistd.h>
47736         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
47737         guaranteed to define off_t, and the ftell module depends on the
47738         stdio module.
47740         ftell: do not assume wraparound signed arithmetic
47741         * lib/ftell.c: Include <limits.h>.
47742         (ftell): Don't assume wraparound signed arithmetic.
47744 2011-07-24  Bruno Haible  <bruno@clisp.org>
47746         close: No longer depend on module 'fclose'.
47747         * modules/close (Depends-on): Remove fclose.
47748         * NEWS: Mention the change.
47749         Suggested by Sam Steingold <sds@gnu.org>.
47751 2011-07-24  Bruno Haible  <bruno@clisp.org>
47753         fsusage: Enable large volume support on AIX >= 5.2.
47754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
47755         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
47756         instead of STAT_STATVFS.
47757         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
47759         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
47760         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
47761         f_blocks field only on MacOS X.
47763         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
47764         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
47765         * modules/fsusage (Depends-on): Add largefile.
47767 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47769         * README: Modernize discussion of signed integers.
47770         Assuming overflow wraparound is no longer safe.
47771         Mention ones' complement and signed magnitude.
47773 2011-07-22  Bruno Haible  <bruno@clisp.org>
47775         select tests, pselect tests: Refactor.
47776         * tests/test-select.h: New file, extracted from tests/test-select.c.
47777         (select_fn): New type.
47778         (test, do_select, do_select_nowait, do_select_wait, test_tty,
47779         test_connect_first, test_accept_first, test_pair, test_socket_pair,
47780         test_pipe): Add my_select argument.
47781         (test_function): Renamed from main. Add my_select argument.
47782         * tests/test-select.c: Move most code to tests/test-select.h. Include
47783         test-select.h.
47784         * modules/select-tests (Files): Add tests/test-select.h.
47785         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
47786         (my_select, main): New functions.
47787         * modules/pselect-tests (Files): Add tests/test-select.h,
47788         tests/macros.h, tests/signature.h.
47789         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
47790         (configure.ac): Check for <sys/wait.h>.
47792 2011-07-22  Bruno Haible  <bruno@clisp.org>
47794         sys_select tests: Check the signature of FD_*.
47795         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
47796         signature tests from here...
47797         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
47798         here.
47799         * modules/sys_select-tests (Files): Add tests/signature.h.
47801 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47803         largefile: new module, replacing large-inode
47804         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
47805         * MODULES.html.sh: Add largefile, remove large-inode.
47806         * modules/largefile, m4/largefile.m4: New files.
47807         * modules/large-inode, m4/large-inode.m4: Remove.
47809         fsusage: port to MacOS X 10.7 with 4 TiB file systems
47810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
47811         implementations that use only 32 bits to count blocks.
47812         On typical hosts with 1024-byte blocks, this fails with file
47813         systems as small as 4 TiB.  Problem reported by Herb Wartens
47814         <http://debbugs.gnu.org/9140> and this should also fix a similar
47815         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
47817         large-inode: New module
47818         * MODULES.html.sh: Add it.
47819         * modules/large-inode, m4/large-inode.m4: New files.
47821         extensions: Enable extensions on MacOS X 10.5 and later.
47822         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
47824 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
47826         file-has-acl: use acl_extended_file_nofollow if available
47827         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
47828         (acl_extended_file): New macro.
47829         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
47830         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
47832 2011-07-21  Bruno Haible  <bruno@clisp.org>
47834         Declare system functions in a way that works with C++.
47835         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
47836         declare fdopendir as extern "C".
47837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
47838         declare frexpl as extern "C".
47839         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
47840         declare gai_strerror as extern "C".
47841         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
47842         programs, declare gai_strerror as extern "C".
47843         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
47844         declare getlogin_r as extern "C".
47845         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
47846         as extern "C".
47847         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
47848         declare ldexpl as extern "C".
47849         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
47850         as extern "C".
47851         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
47852         program, declare getmntinfo as extern "C".
47853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
47854         stpncpy as extern "C".
47855         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
47856         program, declare __xpg_strerror_r as extern "C".
47857         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
47858         strndup as extern "C".
47859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
47860         declare memset and bzero as extern "C".
47861         Reported by Sam Steingold <sds@gnu.org>.
47863 2011-07-12  Jim Meyering  <meyering@redhat.com>
47865         maint.mk: prohibit inclusion of "verify.h" without use
47866         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
47868 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47870         timer-time: A new module to check for timer_settime()
47871         * m4/timer_time.m4: Check for the posix function.
47872         * modules/timer-time: Add the new module.
47873         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
47874         Mention it.
47876 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
47877             Bruno Haible  <bruno@clisp.org>
47879         pthread_sigmask: assume POSIX threads if --avoid=threadlib
47880         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
47881         not defined, assume POSIX threads and look for pthread_sigmask in
47882         $LIBS, without changing $CPPFLAGS.
47884 2011-07-19  Bruno Haible  <bruno@clisp.org>
47886         strstr: Update cross-compilation guess.
47887         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
47888         CPUs, guess no, in view of glibc
47889         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
47890         Suggested by Eric Blake. Reported by Reuben Thomas.
47892 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47894         getopt-gnu: suppress core dumps from detection code
47895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47896         to suppress core dumps that may well occur on glibc systems.
47897         * modules/getopt-gnu: Depend on nocrash.
47899 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47901         pthread_sigmask: ensure usleep is declared
47902         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47903         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47905 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47907         doc: Document NonStop portability issues.
47908         * doc/posix-functions/sigaction.texi (sigaction):
47909         * doc/posix-headers/signal.texi (signal.h):
47910         Document NonStop.  See Joachim Schmitz in
47911         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47913 2011-07-15  Bruno Haible  <bruno@clisp.org>
47915         ffsl, ffsll: Avoid unportable behaviour.
47916         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47918 2011-07-15  Bruno Haible  <bruno@clisp.org>
47920         ffs: More tests.
47921         * tests/test-ffs.c (NBITS): New macro.
47922         (main): Add more tests.
47923         * tests/test-ffsl.c (NBITS): New macro.
47924         (main): Add more tests.
47925         * tests/test-ffsll.c (NBITS): New macro.
47926         (main): Add more tests.
47928 2011-07-15  Eric Blake  <eblake@redhat.com>
47930         ffsl, ffsll: new modules
47931         * modules/ffsl: New file.
47932         * modules/ffsll: Likewise.
47933         * m4/ffsl.m4: Likewise.
47934         * m4/ffsll.m4: Likewise.
47935         * lib/ffsl.c: Likewise.
47936         * lib/ffsl.h: Likewise.
47937         * lib/ffsll.c: Likewise.
47938         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47939         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47940         * modules/string (Makefile.am): Substitute witnesses.
47941         * lib/strings.in.h (ffsl, ffsll): Declare.
47942         * modules/ffsl-tests: New test file.
47943         * modules/ffsll-tests: Likewise.
47944         * tests/test-ffsl.c: Likewise.
47945         * tests/test-ffsll.c: Likewise.
47946         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47947         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47948         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47950         ffs: fix m4 prerequisite
47951         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47953         ffs: avoid undefined behavior
47954         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47955         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47956         Reported by Bruno Haible.
47958 2011-07-12  Bruno Haible  <bruno@clisp.org>
47960         pthread_sigmask: Rely on module 'threadlib'.
47961         * modules/pthread_sigmask (Depends-on): Add threadlib.
47962         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47963         is defined.
47965 2011-07-12  Bruno Haible  <bruno@clisp.org>
47967         regex: Depend on module 'strcase'.
47968         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47970 2011-07-12  Jim Meyering  <meyering@redhat.com>
47972         warn-on-use: fix typo in file name
47973         * modules/snippet/warn-on-use (Files): Correct file name:
47974         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47976 2011-07-12  Bruno Haible  <bruno@clisp.org>
47978         strings: Document module.
47979         * doc/posix-headers/strings.texi: Mention module 'strings'.
47981 2011-07-12  Bruno Haible  <bruno@clisp.org>
47983         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47984         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47985         (Files, Makefile.am): Update.
47986         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47987         * modules/stdlib (Depends-on): Update.
47989 2011-07-12  Bruno Haible  <bruno@clisp.org>
47991         * NEWS: Mention the changes.
47993         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47994         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47995         (Files, Makefile.am): Update.
47996         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47997         * modules/arpa_inet (Depends-on): Update.
47998         * modules/ctype (Depends-on): Update.
47999         * modules/dirent (Depends-on): Update.
48000         * modules/fcntl-h (Depends-on): Update.
48001         * modules/glob (Depends-on): Update.
48002         * modules/iconv-h (Depends-on): Update.
48003         * modules/inttypes-incomplete (Depends-on): Update.
48004         * modules/langinfo (Depends-on): Update.
48005         * modules/locale (Depends-on): Update.
48006         * modules/math (Depends-on): Update.
48007         * modules/netdb (Depends-on): Update.
48008         * modules/poll-h (Depends-on): Update.
48009         * modules/pty (Depends-on): Update.
48010         * modules/search (Depends-on): Update.
48011         * modules/signal (Depends-on): Update.
48012         * modules/spawn (Depends-on): Update.
48013         * modules/stdio (Depends-on): Update.
48014         * modules/stdlib (Depends-on): Update.
48015         * modules/string (Depends-on): Update.
48016         * modules/strings (Depends-on): Update.
48017         * modules/sys_file (Depends-on): Update.
48018         * modules/sys_ioctl (Depends-on): Update.
48019         * modules/sys_select (Depends-on): Update.
48020         * modules/sys_socket (Depends-on): Update.
48021         * modules/sys_stat (Depends-on): Update.
48022         * modules/sys_time (Depends-on): Update.
48023         * modules/sys_times (Depends-on): Update.
48024         * modules/sys_utsname (Depends-on): Update.
48025         * modules/sys_wait (Depends-on): Update.
48026         * modules/termios (Depends-on): Update.
48027         * modules/time (Depends-on): Update.
48028         * modules/unistd (Depends-on): Update.
48029         * modules/wchar (Depends-on): Update.
48030         * modules/wctype-h (Depends-on): Update.
48031         * MODULES.html.sh (Support for building libraries and executables):
48032         Update.
48034         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
48035         * modules/snippet/unused-parameter: Renamed from
48036         modules/unused-parameter.
48037         (Files, Makefile.am): Update.
48038         * build-aux/snippet/unused-parameter.h: Renamed from
48039         build-aux/unused-parameter.h.
48040         * modules/selinux-h (Depends-on): Update.
48041         * modules/unistr/base (Depends-on): Update.
48042         * MODULES.html.sh (Core language properties): Update.
48044         Rename module 'link-warning' to 'snippet/link-warning'.
48045         * modules/snippet/link-warning: Renamed from modules/link-warning.
48046         (Files, Makefile.am): Update.
48047         * build-aux/snippet/link-warning.h: Renamed from
48048         build-aux/link-warning.h.
48049         * MODULES.html.sh (Support for building libraries and executables):
48050         Update.
48052         Rename module 'c++defs' to 'snippet/c++defs'.
48053         * modules/snippet/c++defs: Renamed from modules/c++defs.
48054         (Files, Makefile.am): Update.
48055         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
48056         * modules/arpa_inet (Depends-on): Update.
48057         * modules/ctype (Depends-on): Update.
48058         * modules/dirent (Depends-on): Update.
48059         * modules/fcntl-h (Depends-on): Update.
48060         * modules/glob (Depends-on): Update.
48061         * modules/iconv-h (Depends-on): Update.
48062         * modules/langinfo (Depends-on): Update.
48063         * modules/locale (Depends-on): Update.
48064         * modules/math (Depends-on): Update.
48065         * modules/netdb (Depends-on): Update.
48066         * modules/poll-h (Depends-on): Update.
48067         * modules/pty (Depends-on): Update.
48068         * modules/search (Depends-on): Update.
48069         * modules/signal (Depends-on): Update.
48070         * modules/spawn (Depends-on): Update.
48071         * modules/stdio (Depends-on): Update.
48072         * modules/stdlib (Depends-on): Update.
48073         * modules/string (Depends-on): Update.
48074         * modules/strings (Depends-on): Update.
48075         * modules/sys_ioctl (Depends-on): Update.
48076         * modules/sys_select (Depends-on): Update.
48077         * modules/sys_socket (Depends-on): Update.
48078         * modules/sys_stat (Depends-on): Update.
48079         * modules/sys_time (Depends-on): Update.
48080         * modules/sys_wait (Depends-on): Update.
48081         * modules/termios (Depends-on): Update.
48082         * modules/time (Depends-on): Update.
48083         * modules/unistd (Depends-on): Update.
48084         * modules/wchar (Depends-on): Update.
48085         * modules/wctype-h (Depends-on): Update.
48087         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
48088         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
48089         (Files, Makefile.am): Update.
48090         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
48091         * modules/argv-iter (Depends-on): Update.
48092         * modules/arpa_inet (Depends-on): Update.
48093         * modules/dirent (Depends-on): Update.
48094         * modules/fcntl-h (Depends-on): Update.
48095         * modules/fnmatch (Depends-on): Update.
48096         * modules/getopt-posix (Depends-on): Update.
48097         * modules/glob (Depends-on): Update.
48098         * modules/iconv-h (Depends-on): Update.
48099         * modules/inttypes-incomplete (Depends-on): Update.
48100         * modules/locale (Depends-on): Update.
48101         * modules/math (Depends-on): Update.
48102         * modules/netdb (Depends-on): Update.
48103         * modules/search (Depends-on): Update.
48104         * modules/signal (Depends-on): Update.
48105         * modules/spawn (Depends-on): Update.
48106         * modules/stdio (Depends-on): Update.
48107         * modules/stdlib (Depends-on): Update.
48108         * modules/string (Depends-on): Update.
48109         * modules/strings (Depends-on): Update.
48110         * modules/sys_socket (Depends-on): Update.
48111         * modules/sys_stat (Depends-on): Update.
48112         * modules/sys_time (Depends-on): Update.
48113         * modules/sys_times (Depends-on): Update.
48114         * modules/sys_utsname (Depends-on): Update.
48115         * modules/time (Depends-on): Update.
48116         * modules/unistd (Depends-on): Update.
48117         * modules/wchar (Depends-on): Update.
48118         * MODULES.html.sh (Support for building libraries and executables):
48119         Update.
48121 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
48123         Improvements on _Noreturn and related modules.
48125         modules/_Exit-tests: test _Noreturn too
48126         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
48127         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
48128         (main): Use them.
48130         stdnoreturn, stdnoreturn-tests: remove modules
48131         They're not needed here and a bit premature for use elsewhere.  See
48132         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
48133         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
48134         * tests/test-stdnoreturn.c: Remove files.
48135         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
48136         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
48137         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
48138         and using noreturn.
48139         * modules/openat, modules/sigpipe-die, modules/xalloc:
48140         * modules/xmemdup0, modules/xstrtol:
48141         Remove dependency on stdnoreturn.
48143         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
48144         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
48145         Reparenthesize to avoid GCC warning.
48146         Support Microsoft's syntax.
48147         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
48149         _Noreturn-tests: remove module
48150         * modules/_Noreturn-tests: Remove.
48151         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
48152         * tests/test-_Noreturn.c: Remove.
48153         * tests/test-stdnoreturn.c: Merge from the old
48154         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
48156 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
48158         _Noreturn, stdnoreturn, and related modules.
48160         * top/maint.mk: Adjust to new noreturn support.
48161         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
48162         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
48164         xalloc: use stdnoreturn.h
48165         * lib/xalloc.h: Include <stdnoreturn.h>.
48166         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48167         * modules/xalloc (Depends-on): Add stdnoreturn.
48169         xstrtol: use stdnoreturn.h
48170         * lib/xstrtol.h: Include <stdnoreturn.h>.
48171         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48172         * modules/xstrtol (Depends-on): Add stdnoreturn.
48174         xmemdup0: use stdnoreturn.h
48175         * lib/xmemdup0.h: Include <stdnoreturn.h>.
48176         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48177         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
48179         sigpipe-die: use stdnoreturn.h
48180         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
48181         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48182         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
48184         openat: use stdnoreturn.h
48185         * lib/openat.h: Include <stdnoreturn.h>.
48186         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
48187         * modules/openat (Depends-on): Add stdnoreturn.
48189         * lib/openat-die.c (openat_save_fail): Modernize comment.
48191         * lib/xalloc-die.c (xalloc_die): Modernize comment.
48193         * lib/glthread/thread.h: Modernize comment.
48195         obstack: use _Noreturn
48196         * lib/obstack.c (__attribute__): Remove macro.
48197         (print_and_abort): Use _Noreturn.
48199         c-stack: use _Noreturn
48200         * lib/c-stack.c (die, overflow_handler, segv_handler):
48201         Use _Noreturn rather than __attribute__((noreturn)).
48203         argmatch-tests, exclude_tests: use _Noreturn
48204         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
48205         Remove.
48206         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
48208         stdlib: use _Noreturn
48209         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
48210         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
48211         * modules/stdlib (Depends-on): Add _Noreturn.
48212         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
48214         stdnoreturn-tests: new module
48215         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
48217         stdnoreturn: new module
48218         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
48219         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
48221         _Noreturn-tests: new module
48222         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
48224         _Noreturn: new module
48225         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
48226         New section, mentioning it.
48227         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
48229         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
48231 2011-07-11  Eric Blake  <eblake@redhat.com>
48233         ffs: new module
48234         * modules/ffs: New file.
48235         * m4/ffs.m4: Likewise.
48236         * lib/ffs.c: Likewise.
48237         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
48238         * modules/strings (Makefile.am): Substitute witness.
48239         (Depends-on): Add c++defs.
48240         * lib/strings.in.h (ffs): Declare.
48241         * modules/ffs-tests: New test file.
48242         * tests/test-ffs.c: Test new module.
48243         * MODULES.html.sh (Integer arithmetic functions): Mention it.
48244         * doc/posix-functions/ffs.texi (ffs): Likewise.
48246         regex: avoid compiler warning
48247         * lib/regex.c (includes): Include <strings.h>, for use of
48248         strcasecmp in regcomp.c.
48249         Reported by Joachim Schmitz.
48251 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48253         stdint: respect system's intmax_t if INTMAX_MAX
48254         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
48255         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
48256         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
48257         long but int64_t is long long, and where we will clash with the
48258         system intmax_t if we override it.  See
48259         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
48260         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
48261         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
48262         similarly for UINTMAX_C.
48264 2011-07-08  Bruno Haible  <bruno@clisp.org>
48266         pthread_sigmask tests: Avoid a compiler warning.
48267         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
48268         non-zero.
48270         sigprocmask tests: A better way to avoid a compiler warning.
48271         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
48272         (main): Complain if system() returns non-zero.
48273         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
48275 2011-07-08  Bruno Haible  <bruno@clisp.org>
48277         pthread_sigmask: Work around IRIX bug.
48278         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
48279         bug.
48280         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
48281         there may be unblocked pending signals.
48282         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
48284 2011-07-08  Bruno Haible  <bruno@clisp.org>
48286         pthread_sigmask: Work around Cygwin bug.
48287         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
48288         bug.
48289         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
48290         the system's pthread_sigmask function.
48291         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
48293 2011-07-08  Bruno Haible  <bruno@clisp.org>
48295         pthread_sigmask: Work around bug in single-threaded implementation.
48296         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
48297         FreeBSD, HP-UX, Solaris bug.
48298         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
48299         * lib/pthread_sigmask.c: Include <stddef.h>.
48300         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
48301         the system's pthread_sigmask function.
48302         * modules/pthread_sigmask (configure.ac): Invoke
48303         gl_PREREQ_PTHREAD_SIGMASK.
48304         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
48305         HP-UX, Solaris.
48307 2011-07-08  Eric Blake  <eblake@redhat.com>
48309         test-sigprocmask: avoid compiler warning
48310         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
48311         * tests/test-sigprocmask.c (main): Use it to silence warning.
48312         Reported by Jim Meyering.
48314         test-snprintf: avoid compiler warning
48315         * tests/test-snprintf.c (main): Avoid shadowed declaration.
48316         * tests/test-vsnprintf.c (main): Likewise.
48317         Reported by Jim Meyering.
48319 2011-07-08  Bruno Haible  <bruno@clisp.org>
48321         Tests for module 'pthread_sigmask'.
48322         * modules/pthread_sigmask-tests: New file.
48323         * tests/test-pthread_sigmask1.c: New file, based on
48324         tests/test-sigprocmask.c.
48325         * tests/test-pthread_sigmask2.c: New file.
48327 2011-07-08  Jim Meyering  <meyering@redhat.com>
48329         test-getopt.h: avoid warning about an unused variable
48330         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
48332 2011-07-07  Jim Meyering  <meyering@redhat.com>
48334         maint: reduce list of files exempt from sc_prohibit_leading_TABs
48335         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
48336         now that it no longer contains leading TABs.
48337         Remove unused "url=FIXME" statement.
48339 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48341         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
48342         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
48343         When gl_THREADLIB is not in use, assume that the POSIX sematics
48344         are desired.  This is better for Emacs, which uses POSIX semantics
48345         on GNUish and/or POSIXish platforms, and does not use threads at
48346         all otherwise.
48348         pthread_sigmask: fix typo when testing for libraries
48349         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
48350         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
48352 2011-07-08  Eric Blake  <eblake@redhat.com>
48354         fts: introduce FTS_NOATIME
48355         * lib/fts_.h (FTS_NOATIME): New bit flag.
48356         (FTS_OPTIONMASK): Adjust.
48357         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
48358         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
48360 2011-07-08  Bruno Haible  <bruno@clisp.org>
48362         Tests for module 'thread'.
48363         * modules/thread-tests: New file.
48364         * tests/test-thread_self.c: New file.
48365         * tests/test-thread_create.cc: New file.
48367 2011-07-08  Bruno Haible  <bruno@clisp.org>
48369         thread: Avoid gcc warnings when using gl_thread_self().
48370         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
48371         'void *'.
48372         (gl_thread_self_pointer): Update.
48374 2011-07-07  Bruno Haible  <bruno@clisp.org>
48376         signal-c++-tests: Check declaration of pthread_sigmask.
48377         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
48378         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
48379         $(LIB_PTHREAD_SIGMASK).
48381 2011-07-07  Bruno Haible  <bruno@clisp.org>
48383         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
48384         * lib/signal.in.h (pthread_sigmask): Override if
48385         REPLACE_PTHREAD_SIGMASK is 1.
48386         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48387         REPLACE_PTHREAD_SIGMASK.
48388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
48389         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
48390         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
48391         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
48392         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
48394 2011-07-07  Bruno Haible  <bruno@clisp.org>
48396         pthread_sigmask: Ensure declaration in <signal.h>.
48397         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
48398         include <pthread.h>.
48399         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
48400         problem.
48402 2011-07-07  Bruno Haible  <bruno@clisp.org>
48404         pthread_sigmask: Document the module.
48405         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
48407 2011-07-07  Bruno Haible  <bruno@clisp.org>
48409         pthread_sigmask: Follow gnulib conventions.
48410         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
48411         gl_PTHREAD_SIGMASK.
48412         * modules/pthread_sigmask (configure.ac): Update.
48414 2011-07-07  Bruno Haible  <bruno@clisp.org>
48416         pthread_sigmask: Make declaration C++ safe.
48417         * lib/signal.in.h: In two special conditions, just do an #include_next.
48418         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
48419         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
48420         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48421         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
48422         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
48423         not REPLACE_PTHREAD_MASK.
48424         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
48425         not REPLACE_PTHREAD_MASK.
48426         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
48428 2011-07-07  Bruno Haible  <bruno@clisp.org>
48430         pthread_sigmask: Fix return value.
48431         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
48432         * lib/pthread_sigmask.c: New file.
48433         * modules/pthread_sigmask (Files): Add it.
48434         (configure.ac): Invoke AC_LIBOBJ.
48436 2011-07-07  Eric Blake  <eblake@redhat.com>
48438         getopt: more portable argv creation
48439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
48440         const, use char arrays rather than strings.
48441         Suggested by Paul Eggert.
48443 2011-07-07  Bruno Haible  <bruno@clisp.org>
48445         Tests for module 'sigprocmask'.
48446         * modules/sigprocmask-tests: New file.
48447         * tests/test-sigprocmask.c: New file.
48449 2011-07-07  Bruno Haible  <bruno@clisp.org>
48451         float tests: Tweak.
48452         * tests/test-float.c (main): Tweak skip message.
48454 2011-07-07  Eric Blake  <eblake@redhat.com>
48456         getopt: avoid compiler warning during configure
48457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
48458         assigning string literals to non-const pointer.
48460         getopt-gnu: avoid crash in glibc getopt
48461         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
48462         * tests/test-getopt.h (test_getopt): Enhance test.
48463         * tests/test-getopt_long.h (test_getopt_long): Likewise.
48464         * doc/posix-functions/getopt.texi (getopt): Document it.
48465         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48466         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48467         Likewise.
48469 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
48471         getopt: handle W; without long options in getopt [BZ #12922]
48472         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
48473         but no long options are defined, just return 'W'.
48475 2011-07-07  Bruno Haible  <bruno@clisp.org>
48477         Avoid literal tabs.
48478         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
48479         variable containing a tab instead of a literal tab.
48480         Reported by Jim Meyering.
48482 2011-07-07  Bruno Haible  <bruno@clisp.org>
48484         Comments.
48485         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
48487 2011-07-06  Bruno Haible  <bruno@clisp.org>
48489         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
48490         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
48491         <winsock2.h>.
48492         (rpl_fd_isset, FD_ISSET): New definitions, copied from
48493         lib/sys_socket.in.h.
48494         (close, gethostname): Hide declarations from <winsock2.h>.
48495         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48496         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
48497         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
48498         (select): Don't override if gnulib's <sys/select.h> was already
48499         included.
48500         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
48501         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
48502         setsockopt, shutdown, select): Tweak indentation.
48504 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48506         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
48507         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
48508         in an application that does not use the sys_select module.
48510 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
48512         poll: do not return 0 on timeout=-1
48513         * lib/poll.c: Loop with yield if no events occurred.
48515 2011-07-06  Eric Blake  <eblake@redhat.com>
48517         pthread_sigmask: always replace when not using pthread
48518         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
48519         replacement when using some threading other than pthread.  Fix
48520         logic bug.
48522 2011-07-06  Bruno Haible  <bruno@clisp.org>
48524         Comments.
48525         * m4/printf.m4: Update comments about mingw.
48527 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48529         sys_select: define sigset_t more portably
48530         * lib/sys_select.in.h: Always include <sys/types.h>, since
48531         we now need sigset_t and mingw defines it there.
48532         Include <signal.h> before split inclusion guard, to avoid
48533         mishaps on Solaris, whose <signal.h> eventually includes us.
48534         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
48535         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
48536         which come from ...
48537         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48538         gl_CHECK_TYPE_SIGSET_T.
48539         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
48540         does the real work.
48541         * modules/sys_select (Depends-on): Add 'signal'.
48543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
48544         Suggested by Bruno Haible.
48546         pselect: Use pthread_sigmask, not sigprocmask.
48547         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
48548         multithreaded apps better than sigprocmask does.
48549         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
48550         sigprocmask directly.
48552 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48554         * lib/pselect.c (pselect): Use plain name, without "rpl_".
48555         Don't #undef,  since we don't need any underlying pselect.
48556         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
48557         (Depends-on): Add select.
48558         (Link): Add $(LIBSOCKET).
48559         These changes suggested by Bruno Haible.
48561         pselect: document better
48562         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48563         * doc/posix-functions/pselect.texi (pselect): Document new module.
48565         pthread_sigmask: new module
48566         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48567         * doc/posix-functions/pthread_sigmask.texi: Document new module.
48568         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
48569         This is done only as a macro; I don't know how well that'll
48570         work for C++.  Move <sys/types.h> include before the include_next,
48571         to avoid mishap on Solaris.
48572         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
48573         * modules/signal (Makefile.am): Substitute the check's results.
48574         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
48576         test-pselect: new module
48577         * modules/pselect-tests, tests/test-pselect.c: New files.
48578         * tests/test-select.c, tests/test-sys_select-c++.cc:
48579         If TEST_PSELECT is defined, test pselect instead of testing select.
48581         * tests/test-sys_select.c (sigset_t): Test for it, too.
48582         Suggested by Bruno Haible.
48584 2011-07-05  Eric Blake  <eblake@redhat.com>
48586         snprintf: guarantee %1$d, for libintl
48587         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
48588         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48589         * doc/posix-functions/snprintf.texi (snprintf): Update.
48590         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48591         * tests/test-snprintf.c (main): Enhance test.
48592         * tests/test-vsnprintf.c (main): Likewise.
48594 2011-07-05  Jim Meyering  <meyering@redhat.com>
48596         maint: exempt stdio-read.c and stdio-write.c from the cppi check
48597         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
48598         per Bruno's request, to accommodate this idiom (no space after "#")
48599         even when the function is inside an #if block:
48600         char *
48601         gets (char *s)
48602         #undef gets
48603         {
48604           ...
48605         }
48607 2011-07-04  Jim Meyering  <meyering@redhat.com>
48609         maint: indent with spaces, not TABs, and add a rule to check this
48610         * tests/test-userspec.c: Indent with spaces, not TABs.
48611         * tests/test-argp.c: Likewise.
48612         * tests/test-c-stack2.sh: Likewise.
48613         * tests/test-parse-duration.sh: Likewise
48614         * m4/strtod.m4: Likewise.
48615         * m4/alloca.m4: Likewise.
48616         * m4/pselect.m4: Likewise.
48617         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
48619 2011-07-03  Jim Meyering  <meyering@redhat.com>
48621         maint.mk: correct omissions in prohibit_argmatch_without_use check
48622         This rule would mistakenly report that argmatch.h is included without
48623         use even when both the argmatch and invalid_arg macro were used.
48624         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
48625         of argmatch and invalid_arg.
48627 2011-07-03  Bruno Haible  <bruno@clisp.org>
48629         Comments about EINTR.
48630         * lib/safe-read.h: Explain the purpose of this module.
48631         * lib/safe-write.h: Likewise.
48632         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
48633         module.
48634         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
48635         module.
48636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48638 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
48640         xnanosleep: Rewrite to use new dtotimespec module.
48641         It has the conversion code that used to be in xnanosleep.
48642         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
48643         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
48644         (TIME_T_MAX): Remove.
48645         (xnanosleep): Rewrite in terms of dtotimespec.
48646         * modules/xnanosleep (Depends-on): Add dtotimespec.
48647         Remove intprops, stdbool.
48649         timespec-add, timespec-sub: new modules
48650         * lib/timespec.h (timespec_add, timespec_sub): New decls.
48651         * lib/timespec-add.c, lib/timespec-sub.c:
48652         * modules/timespec-add, modules/timespec-sub: New files.
48654         dtotimespec: new module
48655         * lib/timespec.h (dtotimespec): New decl.
48656         * lib/dtotimespec.c, modules/dtotimespec: New files.
48658         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
48660         pselect: new module
48661         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
48662         (pselect): New decls.
48663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
48664         since the standard pselect decl uses 'restrict'.
48665         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
48666         HAVE_PSELECT, REPLACE_PSELECT.
48667         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
48668         HAVE_PSELECT, REPLACE_PSELECT.
48669         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
48671         sys_select: don't depend on sys_socket
48672         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
48673         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
48674         This fix works on GNU and GNU-like platforms, but has not been tested
48675         on native Windows.
48676         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
48677         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
48678         gl_HEADER_SYS_SOCKET.
48679         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
48680         gl_PREREQ_SYS_H_WINSOCK2.
48682 2011-06-29  Eric Blake  <eblake@redhat.com>
48684         pipe2: fix C89 compile problem
48685         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
48686         Reported by Bruno Haible.
48688         pipe, pipe2: don't corrupt fd on error
48689         * lib/pipe.c (pipe): Leave fd unchanged on error.
48690         * lib/pipe2.c (pipe2): Likewise.
48691         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
48692         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48694 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
48696         mmap-anon: do not use regular expressions inadvertently
48697         * m4/mmap-anon.m4: Remove trailing period from strings sought
48698         in the output.
48700 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
48702         nanosleep: fix integer overflow problem
48703         * lib/nanosleep.c (my_usleep): Don't assume signed integer
48704         arithmetic wraps around on overflow.
48706         nanosleep: simplify carrying
48707         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
48708         first call to the underyling nanosleep, not for the last one.
48709         This doesn't fix any bugs, but it simplifies the computation of
48710         the remaining delay.  Found while auditing integer overflow issues.
48712         dup2: remove test for existence of fcntl
48713         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
48714         "#if HAVE_FCNTL", in the configure-time test program.
48715         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
48716         and therefore speeds up "configure" a bit.  Found while
48717         adding the dup2 module to Emacs.
48719 2011-06-24  Eric Blake  <eblake@redhat.com>
48721         maint.mk: enhance useless header checks
48722         * top/maint.mk (_sc_header_without_use): Check both include
48723         styles.
48724         (sc_prohibit_assert_without_use)
48725         (sc_prohibit_close_stream_without_use)
48726         (sc_prohibit_getopt_without_use)
48727         (sc_prohibit_quotearg_without_use)
48728         (sc_prohibit_quote_without_use)
48729         (sc_prohibit_long_options_without_use)
48730         (sc_prohibit_inttostr_without_use)
48731         (sc_prohibit_ignore_value_without_use)
48732         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
48733         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
48734         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
48735         (sc_prohibit_hash_pjw_without_use)
48736         (sc_prohibit_safe_read_without_use)
48737         (sc_prohibit_argmatch_without_use)
48738         (sc_prohibit_canonicalize_without_use)
48739         (sc_prohibit_root_dev_ino_without_use)
48740         (sc_prohibit_openat_without_use)
48741         (sc_prohibit_c_ctype_without_use)
48742         (sc_prohibit_signal_without_use)
48743         (sc_prohibit_stdio--_without_use)
48744         (sc_prohibit_stdio-safer_without_use)
48745         (sc_prohibit_strings_without_use)
48746         (sc_prohibit_intprops_without_use)
48747         (sc_prohibit_stddef_without_use)
48748         (sc_prohibit_xfreopen_without_use): Update clients.
48750 2011-06-24  Jim Meyering  <meyering@redhat.com>
48752         syntax-check: keep one maint.mk rule in sync with its header
48753         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
48754         of the bug Eric has just fixed, with today's commit 25e4c2ec.
48755         I prefer to avoid temporary files here, so use <(...), but that
48756         is not supported by /bin/sh, so...
48757         (SHELL): Define to /bin/bash.
48759 2011-06-24  Eric Blake  <eblake@redhat.com>
48761         maint.mk: update sc_prohibit_intprops_without_use
48762         * top/maint.mk (_intprops_names): Match recent changes.
48764 2011-06-24  Bruno Haible  <bruno@clisp.org>
48766         strerror-override: No-op tweak.
48767         * lib/strerror-override.h (strerror_override): Reorder conditions,
48768         for consistency with lib/strerror-override.c.
48770 2011-06-23  Eric Blake  <eblake@redhat.com>
48772         maint.mk: test further PATH_MAX issues
48773         * top/maint.mk (sc_prohibit_path_max_array): Rename...
48774         (sc_prohibit_path_max_allocation): ...and also test alloca.
48775         Suggested by Jim Meyering.
48777 2011-06-22  Eric Blake  <eblake@redhat.com>
48779         maint.mk: add syntax-check to avoid char[PATH_MAX]
48780         * top/maint.mk (sc_prohibit_path_max_array): New rule.
48782         stat: be robust to PATH_MAX definition
48783         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
48784         * modules/stat (Depends-on): Add verify.
48786         link: work around IRIX bug
48787         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
48788         * lib/link.c (rpl_link): Work around it.
48789         * tests/test-link.h (test_link): Enhance test.
48790         * doc/posix-functions/link.texi (link): Document the bug.
48792         getopt: silence clang warning
48793         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
48794         dereference.
48795         Reported by Gustavo Martin Domato.
48797 2011-06-22  Jim Meyering  <meyering@redhat.com>
48799         bootstrap: do not insert a blank line into each .gitignore file
48800         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
48802 2011-06-21  Eric Blake  <eblake@redhat.com>
48804         perror: test for output mismatch
48805         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
48806         perror on IRIX.
48808         strerror_r: fix OpenBSD behavior on out-of-range
48809         * lib/strerror_r.c (strerror_r): Always use maximal string.
48810         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
48812         strerror_r: fix OpenBSD behavior on 0
48813         * lib/strerror-override.c (strerror_override): Also override 0
48814         when needed.
48815         * lib/strerror-override.h (strerror_override): Likewise.
48816         * lib/strerror.c (strerror): Simplify, now that 0 override is done
48817         earlier.
48818         * lib/strerror_r.c (strerror_r): Likewise.
48819         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
48820         behavior...
48821         (gl_FUNC_STRERROR_0): ...into new macro.
48822         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
48823         is overridden.
48824         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
48825         * modules/strerror-override (Files): Add strerror.m4.
48826         (configure.ac): Also provide override for 0 when needed.
48827         * doc/posix-functions/strerror.texi (strerror): Document this.
48828         * doc/posix-functions/perror.texi (perror): Likewise.
48830         perror: adjust array size
48831         * modules/perror (Depends-on): Add strerror-override.
48832         * lib/perror.c (perror): Use it to avoid magic number.
48834         strerror-override: reduce size
48835         * lib/strerror-override.c (strerror_override): Use fewer lines.
48837 2011-06-20  Bruno Haible  <bruno@clisp.org>
48839         pathmax: Ensure correct value for PATH_MAX on HP-UX.
48840         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
48842 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48844         alloca: port to compilers that can optimize like GCC 4.6.0
48845         * lib/alloca.c (find_stack_direction): New signature, taken from
48846         Autoconf git.  This works with GCC 4.6.0.  This code should never
48847         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
48848         be used with other compilers that optimize as well as GCC 4.6.0 does.
48849         (alloca): Adjust to new signature.
48850         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
48851         New macro, which patches Autoconf in a similar way.
48853         c-stack: stop worrying about stack direction
48854         * lib/c-stack.c (find_stack_direction): Remove.
48855         (segv_handler): Don't worry about stack direction growth, as it's
48856         too much of a pain to configure this correctly, given how compilers
48857         are optimizing-away our stack-growth detection code.  Instead, assume
48858         that any access to just before or just after the stack is OK.
48859         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48860         Don't require AC_FUNC_ALLOCA; no longer needed.
48862 2011-06-20  Eric Blake  <eblake@redhat.com>
48864         test-stat: don't allocate PATH_MAX bytes
48865         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
48866         PATH_MAX-sized buffer.
48867         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
48868         * modules/stat-tests (Depends-on): Likewise.
48869         * tests/test-fstatat.c (includes): Drop pathmax.h.
48870         * tests/test-stat.c (includes): Likewise.
48871         Reported by Bruno Haible.
48873 2011-06-20  Bruno Haible  <bruno@clisp.org>
48875         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
48876         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
48877         * lib/float.c: New file.
48878         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
48879         REPLACE_FLOAT_LDBL.
48880         * modules/float (Files): Add lib/float.c.
48881         (configure.ac): Invoke AC_LIBOBJ.
48882         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
48884 2011-06-20  Bruno Haible  <bruno@clisp.org>
48886         Tests for module 'float'.
48887         * modules/float-tests: New file.
48888         * tests/test-float.c: New file.
48890 2011-06-19  Bruno Haible  <bruno@clisp.org>
48892         isinf: Coding style.
48893         * lib/isinf.c: Use GNU coding style.
48895 2011-06-19  Bruno Haible  <bruno@clisp.org>
48897         linkat test: Avoid test failure on AIX 7.1.
48898         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48899         * tests/test-link.h (test_link): Likewise.
48901 2011-06-19  Bruno Haible  <bruno@clisp.org>
48903         pread test: Avoid test failure on OpenBSD 4.9.
48904         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48906 2011-06-19  Bruno Haible  <bruno@clisp.org>
48908         sprintf-posix: Fix test failure on AIX 7.1.
48909         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48910         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48911         on AIX.
48912         * doc/posix-functions/fprintf.texi: Likewise.
48913         * doc/posix-functions/printf.texi: Likewise.
48914         * doc/posix-functions/snprintf.texi: Likewise.
48915         * doc/posix-functions/sprintf.texi: Likewise.
48916         * doc/posix-functions/vdprintf.texi: Likewise.
48917         * doc/posix-functions/vfprintf.texi: Likewise.
48918         * doc/posix-functions/vprintf.texi: Likewise.
48919         * doc/posix-functions/vsnprintf.texi: Likewise.
48920         * doc/posix-functions/vsprintf.texi: Likewise.
48922 2011-06-19  Bruno Haible  <bruno@clisp.org>
48924         roundl-ieee: Fix test failure on AIX 7.1.
48925         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48926         * doc/posix-functions/roundl.texi: Mention problem with negative
48927         arguments.
48929 2011-06-19  Bruno Haible  <bruno@clisp.org>
48931         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48932         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48933         * doc/posix-functions/round.texi: Mention problem with negative
48934         arguments.
48935         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48937 2011-06-19  Bruno Haible  <bruno@clisp.org>
48939         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48941         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48942         * doc/posix-functions/roundf.texi: Mention problem with negative
48943         arguments.
48944         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48946 2011-06-19  Bruno Haible  <bruno@clisp.org>
48948         ceilf-ieee: Work around bug on MacOS X 10.5.
48949         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48951         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48952         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48953         IEEE compliant, avoid compiler optimizations.
48954         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48955         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48956         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48957         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48958         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48959         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48960         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48961         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48962         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48963         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48965 2011-06-19  Bruno Haible  <bruno@clisp.org>
48967         ceilf-ieee: Work around bug on AIX 7.1.
48968         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48969         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48971 2011-06-19  Bruno Haible  <bruno@clisp.org>
48973         ceil-ieee: Work around bug on AIX 7.1.
48974         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48975         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48977 2011-06-18  Bruno Haible  <bruno@clisp.org>
48979         fsync test: Avoid test failure on MacOS X and AIX.
48980         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48981         EINVAL.
48983 2011-06-18  Bruno Haible  <bruno@clisp.org>
48985         openat, fdopendir tests: Fix link errors.
48986         * modules/openat-tests (Depends-on): Add progname.
48987         * modules/fdopendir-tests (Depends-on): Likewise.
48988         * tests/test-fchownat.c: Include progname.h.
48989         (main): Call set_program_name.
48990         * tests/test-fstatat.c: Include progname.h.
48991         (main): Call set_program_name.
48992         * tests/test-mkdirat.c: Include progname.h.
48993         (main): Call set_program_name.
48994         * tests/test-openat.c: Include progname.h.
48995         (main): Call set_program_name.
48996         * tests/test-unlinkat.c: Include progname.h.
48997         (main): Call set_program_name.
48998         * tests/test-fdopendir.c: Include progname.h.
48999         (main): Call set_program_name.
49001 2011-06-18  Bruno Haible  <bruno@clisp.org>
49003         Doc update.
49004         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
49005         HP-UX.
49006         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
49008 2011-06-18  Bruno Haible  <bruno@clisp.org>
49010         getcwd tests: Avoid compilation error on HP-UX 11.31.
49011         * modules/getcwd-tests (Depends-on): Add pathmax.
49012         * tests/test-getcwd.c: Include pathmax.h.
49014 2011-06-18  Bruno Haible  <bruno@clisp.org>
49016         isfinite, isinf: Fix link error on AIX 6 and 7.
49017         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
49018         needed, also test the macro with a 'float' argument.
49019         * m4/isinf.m4 (gl_ISINF): Likewise.
49021 2011-06-18  Bruno Haible  <bruno@clisp.org>
49023         getloadavg: Don't clobber LIBS. Regression from previous commit.
49024         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
49025         AC_CHECK_LIB from here...
49026         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
49027         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
49028         gl_func_getloadavg_done.
49029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49031 2011-06-18  Bruno Haible  <bruno@clisp.org>
49033         clean-temp: Improve documentation.
49034         * lib/clean-temp.h: Explain better how to use this module.
49035         Reported by John Darrington <john@darrington.wattle.id.au>.
49037 2011-06-17  Bruno Haible  <bruno@clisp.org>
49039         pread, pwrite: Avoid cc warning on AIX.
49040         * lib/unistd.in.h (pread): Undefine before defining as a macro.
49041         (pwrite): Likewise.
49043 2011-06-17  Bruno Haible  <bruno@clisp.org>
49045         spawn-pipe tests: Fix link error.
49046         * tests/test-spawn-pipe-child.c: Undefine fprintf.
49047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49049 2011-06-17  Bruno Haible  <bruno@clisp.org>
49051         Tests: Remove unnecessary dependency.
49052         * modules/canonicalize-tests (Depends-on): Remove progname.
49053         * modules/chown-tests (Depends-on): Likewise.
49054         * modules/dirname-tests (Depends-on): Likewise.
49055         * modules/fdopendir-tests (Depends-on): Likewise.
49056         * modules/fdutimensat-tests (Depends-on): Likewise.
49057         * modules/hash-tests (Depends-on): Likewise.
49058         * modules/lchown-tests (Depends-on): Likewise.
49059         * modules/linkat-tests (Depends-on): Likewise.
49060         * modules/renameat-tests (Depends-on): Likewise.
49061         * modules/spawn-pipe-tests (Depends-on): Likewise.
49062         * modules/utimensat-tests (Depends-on): Likewise.
49064 2011-06-17  Bruno Haible  <bruno@clisp.org>
49066         spawn-pipe tests: Fix link error.
49067         * tests/test-spawn-pipe-child.c: Undefine fflush.
49069 2011-06-17  Bruno Haible  <bruno@clisp.org>
49071         Fix tests link errors.
49072         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
49073         * modules/chown-tests (Makefile.am): Don't link test-chown with
49074         LIBINTL.
49075         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
49076         LIBINTL.
49077         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
49078         LIBINTL.
49079         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
49080         LIBINTL.
49082 2011-06-16  Bruno Haible  <bruno@clisp.org>
49084         crypto/gc-sha1: Fix recent regression.
49085         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
49086         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
49088         crypto/gc-md5: Fix recent regression.
49089         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
49091         crypto/gc-md4: Fix recent regression.
49092         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
49093         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
49095         crypto/gc-arctwo: Fix recent regression.
49096         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
49097         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
49099         crypto/gc-rijndael: Fix recent regression.
49100         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
49101         (configure.ac): Invoke AC_LIBOBJ here.
49102         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
49103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49105         crypto/gc-hmac-sha1: Fix recent regression.
49106         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
49107         (configure.ac): Invoke AC_LIBOBJ here.
49108         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
49109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49111         crypto/gc-hmac-md5: Fix recent regression.
49112         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
49113         (configure.ac): Invoke AC_LIBOBJ here.
49114         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
49115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49117         crypto/gc-des: Fix recent regression.
49118         * modules/crypto/gc-des (Files): Remove m4/des.m4.
49119         (configure.ac): Invoke AC_LIBOBJ here.
49120         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
49121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49123         crypto/gc-arcfour: Fix recent regression.
49124         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
49125         (configure.ac): Invoke AC_LIBOBJ here.
49126         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
49127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49129 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
49131         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
49132         After the 2011-05-21 change, this macro requires
49133         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
49134         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49136 2011-06-16  Bruno Haible  <bruno@clisp.org>
49138         fprintftime: Move AC_LIBOBJ invocations to module description.
49139         * m4/fprintftime.m4: Remove file.
49140         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
49141         (configure.ac): Remove gl_FPRINTFTIME call.
49142         (Makefile.am): Augment lib_SOURCES.
49143         Reported by Jim Meyering.
49145 2011-06-16  Bruno Haible  <bruno@clisp.org>
49147         tmpfile-safer: Finish 2011-05-23 commit.
49148         * m4/stdio-safer.m4: Really remove file.
49149         Reported by Jim Meyering.
49151 2011-06-16  Bruno Haible  <bruno@clisp.org>
49153         syntax-check: Fix typo.
49154         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
49155         printf-posix.m4.
49156         Reported by Jim Meyering.
49158 2011-06-13  Jim Meyering  <meyering@redhat.com>
49160         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
49161         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
49163 2011-05-23  Bruno Haible  <bruno@clisp.org>
49165         yesno: Move AC_LIBOBJ invocations to module description.
49166         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
49167         * modules/yesno (Makefile.am): Augment lib_SOURCES.
49169 2011-05-23  Bruno Haible  <bruno@clisp.org>
49171         xstrtol: Move AC_LIBOBJ invocations to module description.
49172         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
49173         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
49175 2011-05-23  Bruno Haible  <bruno@clisp.org>
49177         xstrtold: Move AC_LIBOBJ invocations to module description.
49178         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
49179         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
49181 2011-05-23  Bruno Haible  <bruno@clisp.org>
49183         xstrtod: Move AC_LIBOBJ invocations to module description.
49184         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
49185         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
49187 2011-05-23  Bruno Haible  <bruno@clisp.org>
49189         xnanosleep: Move AC_LIBOBJ invocations to module description.
49190         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
49191         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
49193 2011-05-23  Bruno Haible  <bruno@clisp.org>
49195         xgetcwd: Move AC_LIBOBJ invocations to module description.
49196         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
49197         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
49199 2011-05-23  Bruno Haible  <bruno@clisp.org>
49201         xalloc: Move AC_LIBOBJ invocations to module description.
49202         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
49203         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
49205 2011-05-23  Bruno Haible  <bruno@clisp.org>
49207         write-any-file: Move AC_LIBOBJ invocations to module description.
49208         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
49209         invocation.
49210         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
49212 2011-05-23  Bruno Haible  <bruno@clisp.org>
49214         utimens: Move AC_LIBOBJ invocations to module description.
49215         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
49216         * modules/utimens (Makefile.am): Augment lib_SOURCES.
49218 2011-05-23  Bruno Haible  <bruno@clisp.org>
49220         utimecmp: Move AC_LIBOBJ invocations to module description.
49221         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
49222         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
49224 2011-05-23  Bruno Haible  <bruno@clisp.org>
49226         userspec: Move AC_LIBOBJ invocations to module description.
49227         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
49228         * modules/userspec (Makefile.am): Augment lib_SOURCES.
49230 2011-05-23  Bruno Haible  <bruno@clisp.org>
49232         unlinkdir: Move AC_LIBOBJ invocations to module description.
49233         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
49234         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
49236 2011-05-23  Bruno Haible  <bruno@clisp.org>
49238         unistd-safer: Move AC_LIBOBJ invocations to module description.
49239         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
49240         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
49242 2011-05-23  Bruno Haible  <bruno@clisp.org>
49244         tempname: Move AC_LIBOBJ invocations to module description.
49245         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
49246         * modules/tempname (Makefile.am): Augment lib_SOURCES.
49248 2011-05-23  Bruno Haible  <bruno@clisp.org>
49250         strftime: Move AC_LIBOBJ invocations to module description.
49251         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
49252         * modules/strftime (Makefile.am): Augment lib_SOURCES.
49254 2011-05-23  Bruno Haible  <bruno@clisp.org>
49256         stdlib-safer: Move AC_LIBOBJ invocations to module description.
49257         * m4/stdlib-safer.m4: Remove file.
49258         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
49259         (configure.ac): Remove gl_STDLIB_SAFER call.
49260         (Makefile.am): Augment lib_SOURCES.
49262 2011-05-23  Bruno Haible  <bruno@clisp.org>
49264         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
49265         * m4/stdio-safer.m4: Remove file.
49266         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
49267         (configure.ac): Remove gl_TMPFILE_SAFER call.
49268         (Makefile.am): Augment lib_SOURCES.
49270 2011-05-23  Bruno Haible  <bruno@clisp.org>
49272         popen-safer: Move AC_LIBOBJ invocations to module description.
49273         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
49274         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
49275         (configure.ac): Remove gl_POPEN_SAFER call.
49276         (Makefile.am): Augment lib_SOURCES.
49278 2011-05-23  Bruno Haible  <bruno@clisp.org>
49280         freopen-safer: Move AC_LIBOBJ invocations to module description.
49281         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
49282         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
49283         (configure.ac): Remove gl_FREOPEN_SAFER call.
49284         (Makefile.am): Augment lib_SOURCES.
49286 2011-05-23  Bruno Haible  <bruno@clisp.org>
49288         fopen-safer: Move AC_LIBOBJ invocations to module description.
49289         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
49290         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
49291         (configure.ac): Remove gl_FOPEN_SAFER call.
49292         (Makefile.am): Augment lib_SOURCES.
49294 2011-05-23  Bruno Haible  <bruno@clisp.org>
49296         crypto/sha512: Move AC_LIBOBJ invocations to module description.
49297         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
49298         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
49300 2011-05-23  Bruno Haible  <bruno@clisp.org>
49302         crypto/sha256: Move AC_LIBOBJ invocations to module description.
49303         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
49304         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
49306 2011-05-23  Bruno Haible  <bruno@clisp.org>
49308         crypto/sha1: Move AC_LIBOBJ invocations to module description.
49309         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
49310         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
49312 2011-05-23  Bruno Haible  <bruno@clisp.org>
49314         settime: Move AC_LIBOBJ invocations to module description.
49315         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
49316         * modules/settime (Makefile.am): Augment lib_SOURCES.
49318 2011-05-23  Bruno Haible  <bruno@clisp.org>
49320         savedir: Move AC_LIBOBJ invocations to module description.
49321         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
49322         * modules/savedir (Makefile.am): Augment lib_SOURCES.
49324 2011-05-23  Bruno Haible  <bruno@clisp.org>
49326         save-cwd: Move AC_LIBOBJ invocations to module description.
49327         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
49328         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
49330 2011-05-23  Bruno Haible  <bruno@clisp.org>
49332         same: Move AC_LIBOBJ invocations to module description.
49333         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
49334         * modules/same (Makefile.am): Augment lib_SOURCES.
49336 2011-05-23  Bruno Haible  <bruno@clisp.org>
49338         safe-write: Move AC_LIBOBJ invocations to module description.
49339         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
49340         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
49341         instead of gl_SAFE_WRITE.
49342         (Makefile.am): Augment lib_SOURCES.
49344 2011-05-23  Bruno Haible  <bruno@clisp.org>
49346         safe-read: Move AC_LIBOBJ invocations to module description.
49347         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
49348         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
49349         of gl_SAFE_READ.
49350         (Makefile.am): Augment lib_SOURCES.
49352 2011-05-23  Bruno Haible  <bruno@clisp.org>
49354         safe-alloc: Move AC_LIBOBJ invocations to module description.
49355         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
49356         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
49358 2011-05-23  Bruno Haible  <bruno@clisp.org>
49360         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
49361         * m4/rijndael.m4: Remove file.
49362         * modules/crypto/rijndael (Files): Remove it.
49363         (configure.ac): Remove gl_RIJNDAEL call.
49364         (Makefile.am): Augment lib_SOURCES.
49366 2011-05-23  Bruno Haible  <bruno@clisp.org>
49368         readtokens: Move AC_LIBOBJ invocations to module description.
49369         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
49370         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
49372 2011-05-23  Bruno Haible  <bruno@clisp.org>
49374         read-file: Move AC_LIBOBJ invocations to module description.
49375         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
49376         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
49377         of gl_FUNC_READ_FILE.
49378         (Makefile.am): Augment lib_SOURCES.
49380 2011-05-23  Bruno Haible  <bruno@clisp.org>
49382         quotearg: Move AC_LIBOBJ invocations to module description.
49383         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
49384         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
49386 2011-05-23  Bruno Haible  <bruno@clisp.org>
49388         quote: Move AC_LIBOBJ invocations to module description.
49389         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
49390         * modules/quote (Makefile.am): Augment lib_SOURCES.
49392 2011-05-23  Bruno Haible  <bruno@clisp.org>
49394         posixver: Move AC_LIBOBJ invocations to module description.
49395         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
49396         * modules/posixver (Makefile.am): Augment lib_SOURCES.
49398 2011-05-23  Bruno Haible  <bruno@clisp.org>
49400         posixtm: Move AC_LIBOBJ invocations to module description.
49401         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
49402         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
49404 2011-05-23  Bruno Haible  <bruno@clisp.org>
49406         physmem: Move AC_LIBOBJ invocations to module description.
49407         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
49408         * modules/physmem (Makefile.am): Augment lib_SOURCES.
49410 2011-05-23  Bruno Haible  <bruno@clisp.org>
49412         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
49413         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
49414         invocation.
49415         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
49417 2011-05-23  Bruno Haible  <bruno@clisp.org>
49419         mpsort: Move AC_LIBOBJ invocations to module description.
49420         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
49421         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
49423 2011-05-23  Bruno Haible  <bruno@clisp.org>
49425         modechange: Move AC_LIBOBJ invocations to module description.
49426         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
49427         * modules/modechange (Makefile.am): Augment lib_SOURCES.
49429 2011-05-23  Bruno Haible  <bruno@clisp.org>
49431         mkdir-p: Move AC_LIBOBJ invocations to module description.
49432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
49433         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
49435 2011-05-23  Bruno Haible  <bruno@clisp.org>
49437         mkancesdirs: Move AC_LIBOBJ invocations to module description.
49438         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
49439         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
49441 2011-05-23  Bruno Haible  <bruno@clisp.org>
49443         mgetgroups: Move AC_LIBOBJ invocations to module description.
49444         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
49445         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
49447 2011-05-23  Bruno Haible  <bruno@clisp.org>
49449         memxor: Move AC_LIBOBJ invocations to module description.
49450         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
49451         * modules/memxor (Makefile.am): Augment lib_SOURCES.
49453 2011-05-23  Bruno Haible  <bruno@clisp.org>
49455         memcoll: Move AC_LIBOBJ invocations to module description.
49456         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
49457         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
49459 2011-05-23  Bruno Haible  <bruno@clisp.org>
49461         memcasecmp: Move AC_LIBOBJ invocations to module description.
49462         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
49463         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
49465 2011-05-23  Bruno Haible  <bruno@clisp.org>
49467         crypto/md5: Move AC_LIBOBJ invocations to module description.
49468         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
49469         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
49471 2011-05-23  Bruno Haible  <bruno@clisp.org>
49473         crypto/md4: Move AC_LIBOBJ invocations to module description.
49474         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
49475         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
49477 2011-05-23  Bruno Haible  <bruno@clisp.org>
49479         crypto/md2: Move AC_LIBOBJ invocations to module description.
49480         * m4/md2.m4: Remove file.
49481         * modules/crypto/md2 (Files): Remove it.
49482         (configure.ac): Remove gl_MD2 call.
49483         (Makefile.am): Augment lib_SOURCES.
49485 2011-05-23  Bruno Haible  <bruno@clisp.org>
49487         long-options: Move AC_LIBOBJ invocations to module description.
49488         * m4/long-options.m4: Remove file.
49489         * modules/long-options (Files): Remove it.
49490         (configure.ac): Remove gl_LONG_OPTIONS call.
49491         (Makefile.am): Augment lib_SOURCES.
49493 2011-05-23  Bruno Haible  <bruno@clisp.org>
49495         i-ring: Move AC_LIBOBJ invocations to module description.
49496         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
49497         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
49499 2011-05-23  Bruno Haible  <bruno@clisp.org>
49501         idcache: Move AC_LIBOBJ invocations to module description.
49502         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
49503         * modules/idcache (Makefile.am): Augment lib_SOURCES.
49505 2011-05-23  Bruno Haible  <bruno@clisp.org>
49507         human: Move AC_LIBOBJ invocations to module description.
49508         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
49509         * modules/human (Makefile.am): Augment lib_SOURCES.
49511 2011-05-23  Bruno Haible  <bruno@clisp.org>
49513         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
49514         * m4/hmac-sha1.m4: Remove file.
49515         * modules/crypto/hmac-sha1 (Files): Remove it.
49516         (configure.ac): Remove gl_HMAC_SHA1 call.
49517         (Makefile.am): Augment lib_SOURCES.
49519 2011-05-23  Bruno Haible  <bruno@clisp.org>
49521         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
49522         * m4/hmac-md5.m4: Remove file.
49523         * modules/crypto/hmac-md5 (Files): Remove it.
49524         (configure.ac): Remove gl_HMAC_MD5 call.
49525         (Makefile.am): Augment lib_SOURCES.
49527 2011-05-23  Bruno Haible  <bruno@clisp.org>
49529         hash: Move AC_LIBOBJ invocations to module description.
49530         * m4/hash.m4: Remove file.
49531         * modules/hash (Files): Remove it.
49532         (configure.ac): Remove gl_HASH call.
49533         (Makefile.am): Augment lib_SOURCES.
49535 2011-05-23  Bruno Haible  <bruno@clisp.org>
49537         hard-locale: Move AC_LIBOBJ invocations to module description.
49538         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
49539         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
49541 2011-05-23  Bruno Haible  <bruno@clisp.org>
49543         getugroups: Move AC_LIBOBJ invocations to module description.
49544         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
49545         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
49547 2011-05-23  Bruno Haible  <bruno@clisp.org>
49549         gettime: Move AC_LIBOBJ invocations to module description.
49550         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
49551         * modules/gettime (Makefile.am): Augment lib_SOURCES.
49553 2011-05-23  Bruno Haible  <bruno@clisp.org>
49555         getndelim2: Move AC_LIBOBJ invocations to module description.
49556         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
49557         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
49559 2011-05-23  Bruno Haible  <bruno@clisp.org>
49561         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
49562         * m4/gc-pbkdf2-sha1.m4: Remove file.
49563         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
49564         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
49565         (Makefile.am): Augment lib_SOURCES.
49567 2011-05-23  Bruno Haible  <bruno@clisp.org>
49569         fts: Move AC_LIBOBJ invocations to module description.
49570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
49571         * modules/fts (configure.ac): ... to here.
49573 2011-05-23  Bruno Haible  <bruno@clisp.org>
49575         file-type: Move AC_LIBOBJ invocations to module description.
49576         * m4/file-type.m4: Remove file.
49577         * modules/file-type (Files): Remove it.
49578         (configure.ac): Remove gl_FILE_TYPE call.
49579         (Makefile.am): Augment lib_SOURCES.
49581 2011-05-23  Bruno Haible  <bruno@clisp.org>
49583         filenamecat*: Respect rules for use of AC_LIBOBJ.
49584         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
49585         Remove AC_LIBOBJ invocation.
49586         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
49587         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
49589 2011-05-23  Bruno Haible  <bruno@clisp.org>
49591         filemode: Move AC_LIBOBJ invocations to module description.
49592         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
49593         * modules/filemode (Makefile.am): Augment lib_SOURCES.
49595 2011-05-23  Bruno Haible  <bruno@clisp.org>
49597         openat-safer: Move AC_LIBOBJ invocations to module description.
49598         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
49599         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
49601 2011-05-23  Bruno Haible  <bruno@clisp.org>
49603         fcntl-safer: Move AC_LIBOBJ invocations to module description.
49604         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
49605         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
49607 2011-05-23  Bruno Haible  <bruno@clisp.org>
49609         exclude: Move AC_LIBOBJ invocations to module description.
49610         * m4/exclude.m4: Remove file.
49611         * modules/exclude (Files): Remove it.
49612         (configure.ac): Remove gl_EXCLUDE call.
49613         (Makefile.am): Augment lib_SOURCES.
49615 2011-05-23  Bruno Haible  <bruno@clisp.org>
49617         dirname*: Respect rules for use of AC_LIBOBJ.
49618         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
49619         invocations.
49620         * modules/dirname (Makefile.am): Augment lib_SOURCES.
49621         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
49623 2011-05-23  Bruno Haible  <bruno@clisp.org>
49625         dirent-safer: Move AC_LIBOBJ invocations to module description.
49626         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
49627         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
49629 2011-05-23  Bruno Haible  <bruno@clisp.org>
49631         crypto/des: Move AC_LIBOBJ invocations to module description.
49632         * m4/des.m4: Remove file.
49633         * modules/crypto/des (Files): Remove it.
49634         (configure.ac): Remove gl_DES call.
49635         (Makefile.am): Augment lib_SOURCES.
49637 2011-05-23  Bruno Haible  <bruno@clisp.org>
49639         cycle-check: Move AC_LIBOBJ invocations to module description.
49640         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
49641         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
49643 2011-05-23  Bruno Haible  <bruno@clisp.org>
49645         c-strtold: Move AC_LIBOBJ invocations to module description.
49646         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
49647         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
49649 2011-05-23  Bruno Haible  <bruno@clisp.org>
49651         c-strtod: Move AC_LIBOBJ invocations to module description.
49652         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
49653         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
49655 2011-05-23  Bruno Haible  <bruno@clisp.org>
49657         crc: Move AC_LIBOBJ invocations to module description.
49658         * m4/crc.m4: Remove file.
49659         * modules/crc (Files): Remove it.
49660         (configure.ac): Remove gl_CRC call.
49661         (Makefile.am): Augment lib_SOURCES.
49663 2011-05-23  Bruno Haible  <bruno@clisp.org>
49665         close-stream: Move AC_LIBOBJ invocations to module description.
49666         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
49667         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
49669 2011-05-23  Bruno Haible  <bruno@clisp.org>
49671         closeout: Move AC_LIBOBJ invocations to module description.
49672         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
49673         * modules/closeout (Makefile.am): Augment lib_SOURCES.
49675 2011-05-23  Bruno Haible  <bruno@clisp.org>
49677         closein: Move AC_LIBOBJ invocations to module description.
49678         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
49679         * modules/closein (Makefile.am): Augment lib_SOURCES.
49681 2011-05-23  Bruno Haible  <bruno@clisp.org>
49683         cloexec: Move AC_LIBOBJ invocations to module description.
49684         * m4/cloexec.m4: Remove file.
49685         * modules/cloexec (Files): Remove it.
49686         (configure.ac): Remove gl_CLOEXEC call.
49687         (Makefile.am): Augment lib_SOURCES.
49689 2011-05-23  Bruno Haible  <bruno@clisp.org>
49691         check-version: Move AC_LIBOBJ invocations to module description.
49692         * m4/check-version.m4: Remove file.
49693         * modules/check-version (Files): Remove it.
49694         (configure.ac): Remove gl_CHECK_VERSION call.
49695         (Makefile.am): Augment lib_SOURCES.
49697 2011-05-23  Bruno Haible  <bruno@clisp.org>
49699         chdir-safer: Move AC_LIBOBJ invocations to module description.
49700         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
49701         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
49703 2011-05-23  Bruno Haible  <bruno@clisp.org>
49705         canonicalize: Move AC_LIBOBJ invocations to module description.
49706         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
49707         AC_LIBOBJ invocation.
49708         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
49710 2011-05-23  Bruno Haible  <bruno@clisp.org>
49712         canon-host: Move AC_LIBOBJ invocations to module description.
49713         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
49714         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
49715         instead of gl_CANON_HOST.
49716         (Makefile.am): Augment lib_SOURCES.
49718 2011-05-23  Bruno Haible  <bruno@clisp.org>
49720         backupfile: Move AC_LIBOBJ invocations to module description.
49721         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
49722         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
49724 2011-05-23  Bruno Haible  <bruno@clisp.org>
49726         argmatch: Move AC_LIBOBJ invocations to module description.
49727         * m4/argmatch.m4: Remove file.
49728         * modules/argmatch (Files): Remove it.
49729         (configure.ac): Remove gl_ARGMATCH call.
49730         (Makefile.am): Augment lib_SOURCES.
49732 2011-05-23  Bruno Haible  <bruno@clisp.org>
49734         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
49735         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
49736         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
49738 2011-05-23  Bruno Haible  <bruno@clisp.org>
49740         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
49741         * m4/arcfour.m4: Remove file.
49742         * modules/crypto/arcfour (Files): Remove it.
49743         (configure.ac): Remove gl_ARCFOUR call.
49744         (Makefile.am): Augment lib_SOURCES.
49746 2011-05-22  Bruno Haible  <bruno@clisp.org>
49748         write: Move AC_LIBOBJ invocations to module description.
49749         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
49750         * modules/write (configure.ac): ... to here.
49752 2011-05-22  Bruno Haible  <bruno@clisp.org>
49754         wmemset: Move AC_LIBOBJ invocations to module description.
49755         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
49756         here...
49757         * modules/wmemset (configure.ac): ... to here.
49759 2011-05-22  Bruno Haible  <bruno@clisp.org>
49761         wmemmove: Move AC_LIBOBJ invocations to module description.
49762         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
49763         here...
49764         * modules/wmemmove (configure.ac): ... to here.
49766 2011-05-22  Bruno Haible  <bruno@clisp.org>
49768         wmemcpy: Move AC_LIBOBJ invocations to module description.
49769         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
49770         here...
49771         * modules/wmemcpy (configure.ac): ... to here.
49773 2011-05-22  Bruno Haible  <bruno@clisp.org>
49775         wmemcmp: Move AC_LIBOBJ invocations to module description.
49776         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
49777         here...
49778         * modules/wmemcmp (configure.ac): ... to here.
49780 2011-05-22  Bruno Haible  <bruno@clisp.org>
49782         wmemchr: Move AC_LIBOBJ invocations to module description.
49783         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
49784         here...
49785         * modules/wmemchr (configure.ac): ... to here.
49787 2011-05-22  Bruno Haible  <bruno@clisp.org>
49789         wcswidth: Move AC_LIBOBJ invocations to module description.
49790         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
49791         here...
49792         * modules/wcswidth (configure.ac): ... to here.
49794 2011-05-22  Bruno Haible  <bruno@clisp.org>
49796         wcwidth: Respect rules for use of AC_LIBOBJ.
49797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
49798         invocation from here...
49799         * modules/wcwidth (configure.ac): ... to here.
49800         (Depends-on): Update conditions.
49802 2011-05-22  Bruno Haible  <bruno@clisp.org>
49804         wctype: Move AC_LIBOBJ invocations to module description.
49805         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
49806         invocation from here...
49807         * modules/wctype (configure.ac): ... to here.
49808         (Depends-on): Update conditions.
49810 2011-05-22  Bruno Haible  <bruno@clisp.org>
49812         wctrans: Move AC_LIBOBJ invocations to module description.
49813         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
49814         invocation from here...
49815         * modules/wctrans (configure.ac): ... to here.
49817 2011-05-22  Bruno Haible  <bruno@clisp.org>
49819         wctomb: Move AC_LIBOBJ invocations to module description.
49820         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
49821         invocations from here...
49822         * modules/wctomb (configure.ac): ... to here.
49824 2011-05-22  Bruno Haible  <bruno@clisp.org>
49826         wctob: Move AC_LIBOBJ invocations to module description.
49827         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
49828         gl_PREREQ_WCTOB invocations from here...
49829         * modules/wctob (configure.ac): ... to here.
49830         (Depends-on): Update conditions.
49832 2011-05-22  Bruno Haible  <bruno@clisp.org>
49834         wcsxfrm: Move AC_LIBOBJ invocations to module description.
49835         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
49836         here...
49837         * modules/wcsxfrm (configure.ac): ... to here.
49839 2011-05-22  Bruno Haible  <bruno@clisp.org>
49841         wcstok: Move AC_LIBOBJ invocations to module description.
49842         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
49843         * modules/wcstok (configure.ac): ... to here.
49845 2011-05-22  Bruno Haible  <bruno@clisp.org>
49847         wcsstr: Move AC_LIBOBJ invocations to module description.
49848         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
49849         * modules/wcsstr (configure.ac): ... to here.
49851 2011-05-22  Bruno Haible  <bruno@clisp.org>
49853         wcsspn: Move AC_LIBOBJ invocations to module description.
49854         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
49855         * modules/wcsspn (configure.ac): ... to here.
49857 2011-05-22  Bruno Haible  <bruno@clisp.org>
49859         wcsrtombs: Move AC_LIBOBJ invocations to module description.
49860         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
49861         gl_PREREQ_WCSRTOMBS invocations from here...
49862         * modules/wcsrtombs (configure.ac): ... to here.
49864 2011-05-22  Bruno Haible  <bruno@clisp.org>
49866         wcsrchr: Move AC_LIBOBJ invocations to module description.
49867         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
49868         here...
49869         * modules/wcsrchr (configure.ac): ... to here.
49871 2011-05-22  Bruno Haible  <bruno@clisp.org>
49873         wcspbrk: Move AC_LIBOBJ invocations to module description.
49874         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
49875         here...
49876         * modules/wcspbrk (configure.ac): ... to here.
49878 2011-05-22  Bruno Haible  <bruno@clisp.org>
49880         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
49881         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
49882         gl_PREREQ_WCSNRTOMBS invocations from here...
49883         * modules/wcsnrtombs (configure.ac): ... to here.
49885 2011-05-22  Bruno Haible  <bruno@clisp.org>
49887         wcsnlen: Move AC_LIBOBJ invocations to module description.
49888         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
49889         here...
49890         * modules/wcsnlen (configure.ac): ... to here.
49892 2011-05-22  Bruno Haible  <bruno@clisp.org>
49894         wcsncpy: Move AC_LIBOBJ invocations to module description.
49895         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49896         here...
49897         * modules/wcsncpy (configure.ac): ... to here.
49899 2011-05-22  Bruno Haible  <bruno@clisp.org>
49901         wcsncmp: Move AC_LIBOBJ invocations to module description.
49902         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49903         here...
49904         * modules/wcsncmp (configure.ac): ... to here.
49906 2011-05-22  Bruno Haible  <bruno@clisp.org>
49908         wcsncat: Move AC_LIBOBJ invocations to module description.
49909         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49910         here...
49911         * modules/wcsncat (configure.ac): ... to here.
49913 2011-05-22  Bruno Haible  <bruno@clisp.org>
49915         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49916         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49917         from here...
49918         * modules/wcsncasecmp (configure.ac): ... to here.
49920 2011-05-22  Bruno Haible  <bruno@clisp.org>
49922         wcslen: Move AC_LIBOBJ invocations to module description.
49923         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49924         * modules/wcslen (configure.ac): ... to here.
49926 2011-05-22  Bruno Haible  <bruno@clisp.org>
49928         wcsdup: Move AC_LIBOBJ invocations to module description.
49929         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49930         * modules/wcsdup (configure.ac): ... to here.
49932 2011-05-22  Bruno Haible  <bruno@clisp.org>
49934         wcscspn: Move AC_LIBOBJ invocations to module description.
49935         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49936         here...
49937         * modules/wcscspn (configure.ac): ... to here.
49939 2011-05-22  Bruno Haible  <bruno@clisp.org>
49941         wcscpy: Move AC_LIBOBJ invocations to module description.
49942         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49943         * modules/wcscpy (configure.ac): ... to here.
49945 2011-05-22  Bruno Haible  <bruno@clisp.org>
49947         wcscoll: Move AC_LIBOBJ invocations to module description.
49948         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49949         here...
49950         * modules/wcscoll (configure.ac): ... to here.
49952 2011-05-22  Bruno Haible  <bruno@clisp.org>
49954         wcscmp: Move AC_LIBOBJ invocations to module description.
49955         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49956         * modules/wcscmp (configure.ac): ... to here.
49958 2011-05-22  Bruno Haible  <bruno@clisp.org>
49960         wcschr: Move AC_LIBOBJ invocations to module description.
49961         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49962         * modules/wcschr (configure.ac): ... to here.
49964 2011-05-22  Bruno Haible  <bruno@clisp.org>
49966         wcscat: Move AC_LIBOBJ invocations to module description.
49967         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49968         * modules/wcscat (configure.ac): ... to here.
49970 2011-05-22  Bruno Haible  <bruno@clisp.org>
49972         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49973         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49974         here...
49975         * modules/wcscasecmp (configure.ac): ... to here.
49977 2011-05-22  Bruno Haible  <bruno@clisp.org>
49979         wcrtomb: Move AC_LIBOBJ invocations to module description.
49980         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49981         invocations from here...
49982         * modules/wcrtomb (configure.ac): ... to here.
49984 2011-05-22  Bruno Haible  <bruno@clisp.org>
49986         wcpncpy: Move AC_LIBOBJ invocations to module description.
49987         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49988         here...
49989         * modules/wcpncpy (configure.ac): ... to here.
49991 2011-05-22  Bruno Haible  <bruno@clisp.org>
49993         wcpcpy: Move AC_LIBOBJ invocations to module description.
49994         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49995         * modules/wcpcpy (configure.ac): ... to here.
49997 2011-05-22  Bruno Haible  <bruno@clisp.org>
49999         waitpid: Move AC_LIBOBJ invocations to module description.
50000         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
50001         invocation from here...
50002         * modules/waitpid (configure.ac): ... to here.
50004 2011-05-22  Bruno Haible  <bruno@clisp.org>
50006         utimensat: Move AC_LIBOBJ invocations to module description.
50007         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
50008         here...
50009         * modules/utimensat (configure.ac): ... to here.
50011 2011-05-22  Bruno Haible  <bruno@clisp.org>
50013         usleep: Move AC_LIBOBJ invocations to module description.
50014         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
50015         here...
50016         * modules/usleep (configure.ac): ... to here.
50018 2011-05-22  Bruno Haible  <bruno@clisp.org>
50020         unlockpt: Move AC_LIBOBJ invocations to module description.
50021         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
50022         gl_PREREQ_UNLOCKPT invocations from here...
50023         * modules/unlockpt (configure.ac): ... to here.
50025 2011-05-22  Bruno Haible  <bruno@clisp.org>
50027         unlink: Respect rules for use of AC_LIBOBJ.
50028         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
50029         * modules/unlink (configure.ac): ... to here.
50031 2011-05-22  Bruno Haible  <bruno@clisp.org>
50033         uname: Move AC_LIBOBJ invocations to module description.
50034         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
50035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
50036         here...
50037         * modules/uname (configure.ac): ... to here.
50039 2011-05-22  Bruno Haible  <bruno@clisp.org>
50041         ttyname_r: Move AC_LIBOBJ invocations to module description.
50042         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
50043         gl_PREREQ_TTYNAME_R invocations from here...
50044         * modules/ttyname_r (configure.ac): ... to here.
50046 2011-05-22  Bruno Haible  <bruno@clisp.org>
50048         tsearch: Move AC_LIBOBJ invocations to module description.
50049         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
50050         invocations from here...
50051         * modules/tsearch (configure.ac): ... to here.
50053 2011-05-22  Bruno Haible  <bruno@clisp.org>
50055         towctrans: Move AC_LIBOBJ invocations to module description.
50056         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
50057         AC_LIBOBJ invocation from here...
50058         * modules/towctrans (configure.ac): ... to here.
50060 2011-05-22  Bruno Haible  <bruno@clisp.org>
50062         tmpfile: Move AC_LIBOBJ invocations to module description.
50063         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
50064         invocations from here...
50065         * modules/tmpfile (configure.ac): ... to here.
50067 2011-05-22  Bruno Haible  <bruno@clisp.org>
50069         times: Move AC_LIBOBJ invocations to module description.
50070         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
50071         * modules/times (configure.ac): ... to here.
50073 2011-05-22  Bruno Haible  <bruno@clisp.org>
50075         time_r: Move AC_LIBOBJ invocations to module description.
50076         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
50077         invocations from here...
50078         * modules/time_r (configure.ac): ... to here.
50080 2011-05-22  Bruno Haible  <bruno@clisp.org>
50082         timegm: Move AC_LIBOBJ invocations to module description.
50083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
50084         invocations from here...
50085         * modules/timegm (configure.ac): ... to here.
50087 2011-05-22  Bruno Haible  <bruno@clisp.org>
50089         tcgetsid: Move AC_LIBOBJ invocations to module description.
50090         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
50091         and gl_PREREQ_TCGETSID invocations from here...
50092         * modules/tcgetsid (configure.ac): ... to here.
50093         (Depends-on): Update conditions.
50095 2011-05-22  Bruno Haible  <bruno@clisp.org>
50097         symlinkat: Move AC_LIBOBJ invocations to module description.
50098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
50099         here...
50100         * modules/symlinkat (configure.ac): ... to here.
50102 2011-05-22  Bruno Haible  <bruno@clisp.org>
50104         symlink: Move AC_LIBOBJ invocations to module description.
50105         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
50106         here...
50107         * modules/symlink (configure.ac): ... to here.
50109 2011-05-22  Bruno Haible  <bruno@clisp.org>
50111         strverscmp: Move AC_LIBOBJ invocations to module description.
50112         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
50113         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
50114         from here...
50115         * modules/strverscmp (configure.ac): ... to here.
50117 2011-05-22  Bruno Haible  <bruno@clisp.org>
50119         strtok_r: Move AC_LIBOBJ invocations to module description.
50120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
50121         and gl_PREREQ_STRTOK_R invocations from here...
50122         * modules/strtok_r (configure.ac): ... to here.
50123         (Depends-on): Update conditions.
50125 2011-05-22  Bruno Haible  <bruno@clisp.org>
50127         strtoumax: Move AC_LIBOBJ invocations to module description.
50128         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
50129         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
50130         from here...
50131         * modules/strtoumax (configure.ac): ... to here.
50133 2011-05-22  Bruno Haible  <bruno@clisp.org>
50135         strtoimax: Move AC_LIBOBJ invocations to module description.
50136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
50137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
50138         from here...
50139         * modules/strtoimax (configure.ac): ... to here.
50141 2011-05-22  Bruno Haible  <bruno@clisp.org>
50143         strtoull: Move AC_LIBOBJ invocations to module description.
50144         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
50145         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
50146         from here...
50147         * modules/strtoull (configure.ac): ... to here.
50149 2011-05-22  Bruno Haible  <bruno@clisp.org>
50151         strtoll: Move AC_LIBOBJ invocations to module description.
50152         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
50153         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
50154         here...
50155         * modules/strtoll (configure.ac): ... to here.
50157 2011-05-22  Bruno Haible  <bruno@clisp.org>
50159         strtoul: Move AC_LIBOBJ invocations to module description.
50160         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
50161         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
50162         * modules/strtoul (configure.ac): ... to here.
50164 2011-05-22  Bruno Haible  <bruno@clisp.org>
50166         strtol: Move AC_LIBOBJ invocations to module description.
50167         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
50168         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
50169         * modules/strtol (configure.ac): ... to here.
50171 2011-05-22  Bruno Haible  <bruno@clisp.org>
50173         strtod: Move AC_LIBOBJ invocations to module description.
50174         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
50175         invocations from here...
50176         * modules/strtod (configure.ac): ... to here.
50178 2011-05-22  Bruno Haible  <bruno@clisp.org>
50180         strstr*: Move AC_LIBOBJ invocations to module description.
50181         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
50182         invocations from here...
50183         * modules/strstr-simple (configure.ac): ... to here.
50184         * modules/strstr (configure.ac): ... and here.
50186 2011-05-22  Bruno Haible  <bruno@clisp.org>
50188         strsignal: Move AC_LIBOBJ invocations to module description.
50189         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
50190         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
50191         * modules/strsignal (configure.ac): ... to here.
50192         (Depends-on): Update conditions.
50194 2011-05-22  Bruno Haible  <bruno@clisp.org>
50196         strsep: Move AC_LIBOBJ invocations to module description.
50197         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
50198         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
50199         here...
50200         * modules/strsep (configure.ac): ... to here.
50202 2011-05-22  Bruno Haible  <bruno@clisp.org>
50204         strptime: Move AC_LIBOBJ invocations to module description.
50205         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
50206         gl_PREREQ_STRPTIME invocations from here...
50207         * modules/strptime (configure.ac): ... to here.
50209 2011-05-22  Bruno Haible  <bruno@clisp.org>
50211         strpbrk: Move AC_LIBOBJ invocations to module description.
50212         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
50213         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
50214         here...
50215         * modules/strpbrk (configure.ac): ... to here.
50217 2011-05-22  Bruno Haible  <bruno@clisp.org>
50219         strnlen: Move AC_LIBOBJ invocations to module description.
50220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
50221         invocations from here...
50222         * modules/strnlen (configure.ac): ... to here.
50224 2011-05-22  Bruno Haible  <bruno@clisp.org>
50226         strndup: Move AC_LIBOBJ invocations to module description.
50227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
50228         invocations from here...
50229         * modules/strndup (configure.ac): ... to here.
50230         (Depends-on): Update conditions.
50232 2011-05-22  Bruno Haible  <bruno@clisp.org>
50234         strncat: Move AC_LIBOBJ invocations to module description.
50235         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
50236         invocations from here...
50237         * modules/strncat (configure.ac): ... to here.
50239 2011-05-22  Bruno Haible  <bruno@clisp.org>
50241         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
50242         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
50243         invocations from here...
50244         * modules/strdup (configure.ac): ... to here.
50245         * modules/strdup-posix (configure.ac): ... and here.
50247 2011-05-22  Bruno Haible  <bruno@clisp.org>
50249         strcspn: Move AC_LIBOBJ invocations to module description.
50250         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
50251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
50252         here...
50253         * modules/strcspn (configure.ac): ... to here.
50255 2011-05-22  Bruno Haible  <bruno@clisp.org>
50257         strchrnul: Move AC_LIBOBJ invocations to module description.
50258         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
50259         gl_PREREQ_STRCHRNUL invocations from here...
50260         * modules/strchrnul (configure.ac): ... to here.
50262 2011-05-22  Bruno Haible  <bruno@clisp.org>
50264         strcasestr*: Move AC_LIBOBJ invocations to module description.
50265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
50266         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
50267         * modules/strcasestr-simple (configure.ac): ... to here.
50268         * modules/strcasestr (configure.ac): ... and here.
50270 2011-05-22  Bruno Haible  <bruno@clisp.org>
50272         strcase: Move AC_LIBOBJ invocations to module description.
50273         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
50274         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
50275         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
50276         gl_PREREQ_STRNCASECMP invocations from here...
50277         * modules/strcase (configure.ac): ... to here.
50279 2011-05-22  Bruno Haible  <bruno@clisp.org>
50281         stpncpy: Move AC_LIBOBJ invocations to module description.
50282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
50283         here...
50284         * modules/stpncpy (configure.ac): ... to here.
50286 2011-05-22  Bruno Haible  <bruno@clisp.org>
50288         stpcpy: Move AC_LIBOBJ invocations to module description.
50289         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
50290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
50291         here...
50292         * modules/stpcpy (configure.ac): ... to here.
50294 2011-05-21  Bruno Haible  <bruno@clisp.org>
50296         stat: Move AC_LIBOBJ invocations to module description.
50297         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
50298         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
50299         here...
50300         * modules/stat (configure.ac): ... to here.
50302 2011-05-21  Bruno Haible  <bruno@clisp.org>
50304         sleep: Move AC_LIBOBJ invocations to module description.
50305         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
50306         * modules/sleep (configure.ac): ... to here.
50308 2011-05-21  Bruno Haible  <bruno@clisp.org>
50310         signbit: Move AC_LIBOBJ invocations to module description.
50311         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
50312         * modules/signbit (configure.ac): ... to here.
50314 2011-05-21  Bruno Haible  <bruno@clisp.org>
50316         sigprocmask: Move AC_LIBOBJ invocations to module description.
50317         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
50318         gl_PREREQ_SIGPROMASK invocations from here...
50319         * modules/sigprocmask (configure.ac): ... to here.
50321 2011-05-21  Bruno Haible  <bruno@clisp.org>
50323         sigaction: Move AC_LIBOBJ invocations to module description.
50324         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
50325         gl_PREREQ_SIGACTION invocations from here...
50326         * modules/sigaction (configure.ac): ... to here.
50328 2011-05-21  Bruno Haible  <bruno@clisp.org>
50330         sig2str: Move AC_LIBOBJ invocations to module description.
50331         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
50332         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
50333         here...
50334         * modules/sig2str (configure.ac): ... to here.
50336 2011-05-21  Bruno Haible  <bruno@clisp.org>
50338         setlocale: Move AC_LIBOBJ invocations to module description.
50339         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
50340         gl_PREREQ_SETLOCALE invocations from here...
50341         * modules/setlocale (configure.ac): ... to here.
50343 2011-05-21  Bruno Haible  <bruno@clisp.org>
50345         unsetenv: Move AC_LIBOBJ invocations to module description.
50346         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
50347         and gl_PREREQ_UNSETENV invocations from here...
50348         * modules/unsetenv (configure.ac): ... to here.
50349         (Depends-on): Update.
50351 2011-05-21  Bruno Haible  <bruno@clisp.org>
50353         setenv: Move AC_LIBOBJ invocations to module description.
50354         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
50355         here...
50356         * modules/setenv (configure.ac): ... to here.
50358 2011-05-21  Bruno Haible  <bruno@clisp.org>
50360         selinux-h: Move AC_LIBOBJ invocations to module description.
50361         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
50362         AC_LIBOBJ invocation from here...
50363         * modules/selinux-h (configure.ac): ... to here.
50365 2011-05-21  Bruno Haible  <bruno@clisp.org>
50367         select: Respect rules for use of AC_LIBOBJ.
50368         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
50369         here...
50370         * modules/select (configure.ac): ... to here.
50372 2011-05-21  Bruno Haible  <bruno@clisp.org>
50374         scandir: Move AC_LIBOBJ invocations to module description.
50375         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
50376         invocations from here...
50377         * modules/scandir (configure.ac): ... to here.
50379 2011-05-21  Bruno Haible  <bruno@clisp.org>
50381         rpmatch: Move AC_LIBOBJ invocations to module description.
50382         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
50383         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
50384         here...
50385         * modules/rpmatch (configure.ac): ... to here.
50387 2011-05-21  Bruno Haible  <bruno@clisp.org>
50389         rmdir: Respect rules for use of AC_LIBOBJ.
50390         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
50391         * modules/rmdir (configure.ac): ... to here.
50393 2011-05-21  Bruno Haible  <bruno@clisp.org>
50395         renameat: Move AC_LIBOBJ invocations to module description.
50396         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
50397         here...
50398         * modules/renameat (configure.ac): ... to here.
50400 2011-05-21  Bruno Haible  <bruno@clisp.org>
50402         rename: Respect rules for use of AC_LIBOBJ.
50403         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
50404         here...
50405         * modules/rename (configure.ac): ... to here.
50407 2011-05-21  Bruno Haible  <bruno@clisp.org>
50409         remove: Move AC_LIBOBJ invocations to module description.
50410         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
50411         here...
50412         * modules/remove (configure.ac): ... to here.
50414 2011-05-21  Bruno Haible  <bruno@clisp.org>
50416         relocatable-lib: Move AC_LIBOBJ invocations to module description.
50417         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
50418         macro.
50419         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
50420         * modules/relocatable-lib (configure.ac): ... to here.
50421         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50422         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
50424 2011-05-21  Bruno Haible  <bruno@clisp.org>
50426         relocatable-prog: Move AC_LIBOBJ invocations to module description.
50427         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
50428         here...
50429         * modules/relocatable-prog (configure.ac): ... to here.
50431 2011-05-21  Bruno Haible  <bruno@clisp.org>
50433         regex: Move AC_LIBOBJ invocations to module description.
50434         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
50435         invocations from here...
50436         * modules/regex (configure.ac): ... to here.
50438 2011-05-21  Bruno Haible  <bruno@clisp.org>
50440         realloc-*: Move AC_LIBOBJ invocations to module description.
50441         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
50442         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
50443         AC_LIBOBJ invocations from here...
50444         * modules/realloc-gnu (configure.ac): ... to here.
50445         * modules/realloc-posix (configure.ac): ... and here.
50447 2011-05-21  Bruno Haible  <bruno@clisp.org>
50449         readutmp: Move AC_LIBOBJ invocations to module description.
50450         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
50451         * modules/readutmp (configure.ac): ... to here.
50453 2011-05-21  Bruno Haible  <bruno@clisp.org>
50455         readlinkat: Move AC_LIBOBJ invocations to module description.
50456         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
50457         here...
50458         * modules/readlinkat (configure.ac): ... to here.
50460 2011-05-21  Bruno Haible  <bruno@clisp.org>
50462         readlink: Move AC_LIBOBJ invocations to module description.
50463         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
50464         gl_PREREQ_READLINK invocations from here...
50465         * modules/readlink (configure.ac): ... to here.
50467 2011-05-21  Bruno Haible  <bruno@clisp.org>
50469         readline: Move AC_LIBOBJ invocations to module description.
50470         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
50471         gl_PREREQ_READLINE invocations from here...
50472         * modules/readline (configure.ac): ... to here.
50474 2011-05-21  Bruno Haible  <bruno@clisp.org>
50476         read: Move AC_LIBOBJ invocations to module description.
50477         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
50478         * modules/read (configure.ac): ... to here.
50480 2011-05-21  Bruno Haible  <bruno@clisp.org>
50482         rawmemchr: Move AC_LIBOBJ invocations to module description.
50483         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
50484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
50485         from here...
50486         * modules/rawmemchr (configure.ac): ... to here.
50488 2011-05-21  Bruno Haible  <bruno@clisp.org>
50490         random_r: Move AC_LIBOBJ invocations to module description.
50491         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
50492         gl_PREREQ_RANDOM_R invocations from here...
50493         * modules/random_r (configure.ac): ... to here.
50495 2011-05-21  Bruno Haible  <bruno@clisp.org>
50497         pwrite: Move AC_LIBOBJ invocations to module description.
50498         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
50499         * modules/pwrite (configure.ac): ... to here.
50501 2011-05-21  Bruno Haible  <bruno@clisp.org>
50503         putenv: Move AC_LIBOBJ invocations to module description.
50504         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
50505         * modules/putenv (configure.ac): ... to here.
50507 2011-05-21  Bruno Haible  <bruno@clisp.org>
50509         login_tty: Move AC_LIBOBJ invocations to module description.
50510         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
50511         * modules/login_tty (configure.ac): ... to here.
50513 2011-05-21  Bruno Haible  <bruno@clisp.org>
50515         openpty: Move AC_LIBOBJ invocations to module description.
50516         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
50517         * modules/openpty (configure.ac): ... to here.
50519 2011-05-21  Bruno Haible  <bruno@clisp.org>
50521         forkpty: Move AC_LIBOBJ invocations to module description.
50522         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
50523         * modules/forkpty (configure.ac): ... to here.
50525 2011-05-21  Bruno Haible  <bruno@clisp.org>
50527         ptsname: Move AC_LIBOBJ invocations to module description.
50528         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
50529         invocations from here...
50530         * modules/ptsname (configure.ac): ... to here.
50532 2011-05-21  Bruno Haible  <bruno@clisp.org>
50534         pread: Move AC_LIBOBJ invocations to module description.
50535         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
50536         * modules/pread (configure.ac): ... to here.
50538 2011-05-21  Bruno Haible  <bruno@clisp.org>
50540         posix_spawn*: Move AC_LIBOBJ invocations to module description.
50541         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
50542         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
50543         * modules/posix_spawn (configure.ac): ... to here.
50544         * modules/posix_spawnp (configure.ac): ... and here.
50546 2011-05-21  Bruno Haible  <bruno@clisp.org>
50548         popen: Move AC_LIBOBJ invocations to module description.
50549         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
50550         invocations from here...
50551         * modules/popen (configure.ac): ... to here.
50553 2011-05-21  Bruno Haible  <bruno@clisp.org>
50555         poll: Move AC_LIBOBJ invocations to module description.
50556         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
50557         invocations from here...
50558         * modules/poll (configure.ac): ... to here.
50560 2011-05-21  Bruno Haible  <bruno@clisp.org>
50562         pipe-posix: Move AC_LIBOBJ invocations to module description.
50563         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
50564         * modules/pipe-posix (configure.ac): ... to here.
50566 2011-05-21  Bruno Haible  <bruno@clisp.org>
50568         openat: Respect rules for use of AC_LIBOBJ.
50569         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
50570         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50571         * modules/openat (configure.ac): ... to here.
50573 2011-05-21  Bruno Haible  <bruno@clisp.org>
50575         obstack-printf*: Move AC_LIBOBJ invocations to module description.
50576         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
50577         invocation from here...
50578         * modules/obstack-printf (configure.ac): ... to here.
50579         * modules/obstack-printf-posix (configure.ac): ... and here.
50581 2011-05-21  Bruno Haible  <bruno@clisp.org>
50583         nl_langinfo: Move AC_LIBOBJ invocations to module description.
50584         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
50585         from here...
50586         * modules/nl_langinfo (configure.ac): ... to here.
50588 2011-05-21  Bruno Haible  <bruno@clisp.org>
50590         nanosleep: Move AC_LIBOBJ invocations to module description.
50591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
50592         gl_PREREQ_NANOSLEEP invocations from here...
50593         * modules/nanosleep (configure.ac): ... to here.
50595 2011-05-21  Bruno Haible  <bruno@clisp.org>
50597         mountlist: Move AC_LIBOBJ invocations to module description.
50598         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
50599         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
50600         * modules/mountlist (configure.ac): ... to here.
50602 2011-05-21  Bruno Haible  <bruno@clisp.org>
50604         mktime: Respect rules for use of AC_LIBOBJ.
50605         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
50606         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
50607         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
50608         (gl_FUNC_MKTIME_INTERNAL): ... and here...
50609         * modules/mktime (configure.ac): ... to here.
50610         * modules/mktime-internal (configure.ac): ... and here.
50611         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
50613 2011-05-21  Bruno Haible  <bruno@clisp.org>
50615         mkstemps: Move AC_LIBOBJ invocations to module description.
50616         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
50617         here...
50618         * modules/mkstemps (configure.ac): ... to here.
50620 2011-05-21  Bruno Haible  <bruno@clisp.org>
50622         mkstemp: Move AC_LIBOBJ invocations to module description.
50623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
50624         gl_PREREQ_MKSTEMP invocations from here...
50625         * modules/mkstemp (configure.ac): ... to here.
50627 2011-05-21  Bruno Haible  <bruno@clisp.org>
50629         mkostemps: Move AC_LIBOBJ invocations to module description.
50630         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
50631         here...
50632         * modules/mkostemps (configure.ac): ... to here.
50634 2011-05-21  Bruno Haible  <bruno@clisp.org>
50636         mkostemp: Move AC_LIBOBJ invocations to module description.
50637         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
50638         gl_PREREQ_MKOSTEMP invocations from here...
50639         * modules/mkostemp (configure.ac): ... to here.
50641 2011-05-21  Bruno Haible  <bruno@clisp.org>
50643         mknod: Move AC_LIBOBJ invocations to module description.
50644         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
50645         * modules/mknod (configure.ac): ... to here.
50647 2011-05-21  Bruno Haible  <bruno@clisp.org>
50649         mkfifoat: Move AC_LIBOBJ invocations to module description.
50650         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
50651         here...
50652         * modules/mkfifoat (configure.ac): ... to here.
50654 2011-05-21  Bruno Haible  <bruno@clisp.org>
50656         mkfifo: Respect rules for use of AC_LIBOBJ.
50657         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
50658         here...
50659         * modules/mkfifo (configure.ac): ... to here.
50661 2011-05-21  Bruno Haible  <bruno@clisp.org>
50663         mkdtemp: Move AC_LIBOBJ invocations to module description.
50664         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
50665         invocations from here...
50666         * modules/mkdtemp (configure.ac): ... to here.
50668 2011-05-21  Bruno Haible  <bruno@clisp.org>
50670         mkdir: Move AC_LIBOBJ invocations to module description.
50671         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
50672         * modules/mkdir (configure.ac): ... to here.
50674 2011-05-21  Bruno Haible  <bruno@clisp.org>
50676         memset: Move AC_LIBOBJ invocations to module description.
50677         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
50678         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
50679         here...
50680         * modules/memset (configure.ac): ... to here.
50682 2011-05-21  Bruno Haible  <bruno@clisp.org>
50684         memrchr: Move AC_LIBOBJ invocations to module description.
50685         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
50686         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
50687         here...
50688         * modules/memrchr (configure.ac): ... to here.
50690 2011-05-21  Bruno Haible  <bruno@clisp.org>
50692         mempcpy: Move AC_LIBOBJ invocations to module description.
50693         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
50694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
50695         here...
50696         * modules/mempcpy (configure.ac): ... to here.
50698 2011-05-21  Bruno Haible  <bruno@clisp.org>
50700         memmove: Move AC_LIBOBJ invocations to module description.
50701         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
50702         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
50703         here...
50704         * modules/memmove (configure.ac): ... to here.
50706 2011-05-21  Bruno Haible  <bruno@clisp.org>
50708         memmem*: Move AC_LIBOBJ invocations to module description.
50709         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
50710         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
50711         here...
50712         (gl_FUNC_MEMMEM): ... and here...
50713         * modules/memmem-simple (configure.ac): ... to here.
50714         * modules/memmem (configure.ac): ... and here.
50716 2011-05-21  Bruno Haible  <bruno@clisp.org>
50718         memcpy: Move AC_LIBOBJ invocations to module description.
50719         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
50720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
50721         here...
50722         * modules/memcpy (configure.ac): ... to here.
50724 2011-05-21  Bruno Haible  <bruno@clisp.org>
50726         memcmp: Simplify autoconf macro.
50727         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
50728         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
50729         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
50731 2011-05-21  Bruno Haible  <bruno@clisp.org>
50733         memcmp: Move AC_LIBOBJ invocations to module description.
50734         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
50735         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
50736         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
50737         * modules/memcmp (configure.ac): ... to here.
50738         (Depends-on): Update conditions.
50740 2011-05-21  Bruno Haible  <bruno@clisp.org>
50742         memchr: Respect rules for use of AC_LIBOBJ.
50743         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
50744         invocations from here...
50745         * modules/memchr (configure.ac): ... to here.
50747 2011-05-21  Bruno Haible  <bruno@clisp.org>
50749         mbtowc: Move AC_LIBOBJ invocations to module description.
50750         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
50751         invocations from here...
50752         * modules/mbtowc (configure.ac): ... to here.
50754 2011-05-21  Bruno Haible  <bruno@clisp.org>
50756         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
50757         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
50758         gl_PREREQ_MBSRTOWCS invocations from here...
50759         * modules/mbsrtowcs (configure.ac): ... to here.
50761 2011-05-21  Bruno Haible  <bruno@clisp.org>
50763         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
50764         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
50765         gl_PREREQ_MBSNRTOWCS invocations from here...
50766         * modules/mbsnrtowcs (configure.ac): ... to here.
50768 2011-05-21  Bruno Haible  <bruno@clisp.org>
50770         mbsinit: Move AC_LIBOBJ invocations to module description.
50771         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
50772         invocations from here...
50773         * modules/mbsinit (configure.ac): ... to here.
50775 2011-05-21  Bruno Haible  <bruno@clisp.org>
50777         mbrlen: Move AC_LIBOBJ invocations to module description.
50778         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
50779         invocations from here...
50780         * modules/mbrlen (configure.ac): ... to here.
50782 2011-05-21  Bruno Haible  <bruno@clisp.org>
50784         mbrtowc: Respect rules for use of AC_LIBOBJ.
50785         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
50786         invocations from here...
50787         * modules/mbrtowc (configure.ac): ... to here.
50789 2011-05-21  Bruno Haible  <bruno@clisp.org>
50791         malloc-*: Move AC_LIBOBJ invocations to module description.
50792         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
50793         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
50794         AC_LIBOBJ invocations from here...
50795         * modules/malloc-gnu (configure.ac): ... to here.
50796         * modules/malloc-posix (configure.ac): ... and here.
50798 2011-05-21  Bruno Haible  <bruno@clisp.org>
50800         lstat, openat: Respect rules for use of AC_LIBOBJ.
50801         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
50802         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
50803         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
50804         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
50805         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
50806         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
50807         here.
50808         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
50810 2011-05-21  Bruno Haible  <bruno@clisp.org>
50812         lseek: Move AC_LIBOBJ invocations to module description.
50813         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
50814         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50815         * modules/lseek (configure.ac): ... to here.
50817 2011-05-21  Bruno Haible  <bruno@clisp.org>
50819         linkat: Move AC_LIBOBJ invocations to module description.
50820         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
50821         here...
50822         * modules/linkat (configure.ac): ... to here.
50824 2011-05-21  Bruno Haible  <bruno@clisp.org>
50826         link: Respect rules for use of AC_LIBOBJ.
50827         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
50828         * modules/link (configure.ac): ... to here.
50830 2011-05-21  Bruno Haible  <bruno@clisp.org>
50832         lchown: Move AC_LIBOBJ invocations to module description.
50833         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50834         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50835         * modules/lchown (configure.ac): ... to here.
50837 2011-05-21  Bruno Haible  <bruno@clisp.org>
50839         iswctype: Move AC_LIBOBJ invocations to module description.
50840         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
50841         here...
50842         * modules/iswctype (configure.ac): ... to here.
50844 2011-05-21  Bruno Haible  <bruno@clisp.org>
50846         iswblank: Move AC_LIBOBJ invocations to module description.
50847         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
50848         here...
50849         * modules/iswblank (configure.ac): ... to here.
50851 2011-05-21  Bruno Haible  <bruno@clisp.org>
50853         atanl: Move AC_LIBOBJ invocations to module description.
50854         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
50855         * modules/atanl (configure.ac): ... to here.
50857 2011-05-21  Bruno Haible  <bruno@clisp.org>
50859         acosl: Move AC_LIBOBJ invocations to module description.
50860         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
50861         * modules/acosl (configure.ac): ... to here.
50863 2011-05-21  Bruno Haible  <bruno@clisp.org>
50865         asinl: Respect rules for use of AC_LIBOBJ.
50866         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
50867         * modules/asinl (configure.ac): ... to here.
50869 2011-05-21  Bruno Haible  <bruno@clisp.org>
50871         tanl: Move AC_LIBOBJ invocations to module description.
50872         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
50873         * modules/tanl (configure.ac): ... to here.
50875 2011-05-21  Bruno Haible  <bruno@clisp.org>
50877         cosl: Move AC_LIBOBJ invocations to module description.
50878         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
50879         * modules/cosl (configure.ac): ... to here.
50881 2011-05-21  Bruno Haible  <bruno@clisp.org>
50883         sinl: Move AC_LIBOBJ invocations to module description.
50884         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
50885         * modules/sinl (configure.ac): ... to here.
50887 2011-05-21  Bruno Haible  <bruno@clisp.org>
50889         logl: Move AC_LIBOBJ invocations to module description.
50890         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
50891         * modules/logl (configure.ac): ... to here.
50893 2011-05-21  Bruno Haible  <bruno@clisp.org>
50895         expl: Move AC_LIBOBJ invocations to module description.
50896         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50897         * modules/expl (configure.ac): ... to here.
50899 2011-05-21  Bruno Haible  <bruno@clisp.org>
50901         roundl: Move AC_LIBOBJ invocations to module description.
50902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50903         * modules/roundl (configure.ac): ... to here.
50905 2011-05-21  Bruno Haible  <bruno@clisp.org>
50907         round: Move AC_LIBOBJ invocations to module description.
50908         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50909         * modules/round (configure.ac): ... to here.
50911 2011-05-21  Bruno Haible  <bruno@clisp.org>
50913         roundf: Move AC_LIBOBJ invocations to module description.
50914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50915         * modules/roundf (configure.ac): ... to here.
50917 2011-05-21  Bruno Haible  <bruno@clisp.org>
50919         truncl: Move AC_LIBOBJ invocations to module description.
50920         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50921         * modules/truncl (configure.ac): ... to here.
50923 2011-05-21  Bruno Haible  <bruno@clisp.org>
50925         trunc: Move AC_LIBOBJ invocations to module description.
50926         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50927         * modules/trunc (configure.ac): ... to here.
50929 2011-05-21  Bruno Haible  <bruno@clisp.org>
50931         truncf: Move AC_LIBOBJ invocations to module description.
50932         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50933         * modules/truncf (configure.ac): ... to here.
50935 2011-05-21  Bruno Haible  <bruno@clisp.org>
50937         ceill: Move AC_LIBOBJ invocations to module description.
50938         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50939         * modules/ceill (configure.ac): ... to here.
50941 2011-05-21  Bruno Haible  <bruno@clisp.org>
50943         ceil: Move AC_LIBOBJ invocations to module description.
50944         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50945         * modules/ceil (configure.ac): ... to here.
50947 2011-05-21  Bruno Haible  <bruno@clisp.org>
50949         ceilf: Move AC_LIBOBJ invocations to module description.
50950         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50951         * modules/ceilf (configure.ac): ... to here.
50953 2011-05-21  Bruno Haible  <bruno@clisp.org>
50955         floorl: Respect rules for use of AC_LIBOBJ.
50956         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50957         * modules/floorl (configure.ac): ... to here.
50959 2011-05-21  Bruno Haible  <bruno@clisp.org>
50961         floor: Respect rules for use of AC_LIBOBJ.
50962         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50963         * modules/floor (configure.ac): ... to here.
50965 2011-05-21  Bruno Haible  <bruno@clisp.org>
50967         floorf: Move AC_LIBOBJ invocations to module description.
50968         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50969         * modules/floorf (configure.ac): ... to here.
50971 2011-05-20  Bruno Haible  <bruno@clisp.org>
50973         sqrtl: Respect rules for use of AC_LIBOBJ.
50974         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50975         * modules/sqrtl (configure.ac): ... to here.
50977 2011-05-20  Bruno Haible  <bruno@clisp.org>
50979         ldexpl: Respect rules for use of AC_LIBOBJ.
50980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50981         * modules/ldexpl (configure.ac): ... to here.
50983 2011-05-20  Bruno Haible  <bruno@clisp.org>
50985         frexpl*: Respect rules for use of AC_LIBOBJ.
50986         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50987         invocation from here...
50988         * modules/frexpl (configure.ac): ... to here.
50989         * modules/frexpl-nolibm (configure.ac): ... and here.
50991 2011-05-20  Bruno Haible  <bruno@clisp.org>
50993         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50994         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50995         invocation from here...
50996         * modules/frexp (configure.ac): ... to here.
50997         * modules/frexp-nolibm (configure.ac): ... and here.
50999 2011-05-20  Bruno Haible  <bruno@clisp.org>
51001         isnan: Respect rules for use of AC_LIBOBJ.
51002         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
51003         invocations here.
51004         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
51005         REPLACE_ISNAN.
51006         * modules/isnand (configure.ac): Likewise.
51007         * modules/isnanl (configure.ac): Likewise.
51009 2011-05-20  Bruno Haible  <bruno@clisp.org>
51011         isnanl*: Respect rules for use of AC_LIBOBJ.
51012         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
51013         invocation from here...
51014         * modules/isnanl (configure.ac): ... to here.
51015         * modules/isnanl-nolibm (configure.ac): ... and here.
51017 2011-05-20  Bruno Haible  <bruno@clisp.org>
51019         isnand*: Move AC_LIBOBJ invocations to module description.
51020         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
51021         invocation from here...
51022         * modules/isnand (configure.ac): ... to here.
51023         * modules/isnand-nolibm (configure.ac): ... and here.
51025 2011-05-20  Bruno Haible  <bruno@clisp.org>
51027         isnanf*: Move AC_LIBOBJ invocations to module description.
51028         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
51029         invocation from here...
51030         * modules/isnanf (configure.ac): ... to here.
51031         * modules/isnanf-nolibm (configure.ac): ... and here.
51033 2011-05-20  Bruno Haible  <bruno@clisp.org>
51035         isnan*: Separate the AC_LIBOBJ invocations.
51036         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
51037         AC_LIBOBJ invocation.
51038         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
51039         here.
51040         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
51041         AC_LIBOBJ invocation.
51042         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
51043         here.
51044         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
51045         AC_LIBOBJ invocation.
51046         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
51047         here.
51048         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
51050 2011-05-08  Bruno Haible  <bruno@clisp.org>
51052         isinf: Move AC_LIBOBJ invocations to module description.
51053         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
51054         * modules/isinf (configure.ac): ... to here.
51056 2011-05-08  Bruno Haible  <bruno@clisp.org>
51058         isfinite: Move AC_LIBOBJ invocations to module description.
51059         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
51060         * modules/isfinite (configure.ac): ... to here.
51062 2011-05-08  Bruno Haible  <bruno@clisp.org>
51064         isblank: Move AC_LIBOBJ invocations to module description.
51065         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
51066         here...
51067         * modules/isblank (configure.ac): ... to here.
51069 2011-05-08  Bruno Haible  <bruno@clisp.org>
51071         isapipe: Move AC_LIBOBJ invocations to module description.
51072         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
51073         gl_PREREQ_ISAPIPE invocations from here...
51074         * modules/isapipe (configure.ac): ... to here.
51075         (Depends-on): Update condition.
51077 2011-05-08  Bruno Haible  <bruno@clisp.org>
51079         ioctl: Move AC_LIBOBJ invocations to module description.
51080         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
51081         invocations from here...
51082         * modules/ioctl (configure.ac): ... to here.
51083         (Depends-on): Update condition.
51085 2011-05-08  Bruno Haible  <bruno@clisp.org>
51087         imaxdiv: Move AC_LIBOBJ invocations to module description.
51088         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
51089         invocations from here...
51090         * modules/imaxdiv (configure.ac): ... to here.
51092 2011-05-08  Bruno Haible  <bruno@clisp.org>
51094         imaxabs: Move AC_LIBOBJ invocations to module description.
51095         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
51096         invocations from here...
51097         * modules/imaxabs (configure.ac): ... to here.
51099 2011-05-08  Bruno Haible  <bruno@clisp.org>
51101         getaddrinfo: Move AC_LIBOBJ invocations to module description.
51102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
51103         AC_LIBOBJ invocations from here...
51104         * modules/getaddrinfo (configure.ac): ... to here.
51105         (Depends-on): Add conditions.
51107 2011-05-08  Bruno Haible  <bruno@clisp.org>
51109         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
51110         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
51111         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
51112         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
51113         (gl_PREREQ_INET_PTON): ... from here.
51114         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
51115         gl_PREREQ_INET_PTON here.
51116         (Depends-on): Update condition.
51118 2011-05-08  Bruno Haible  <bruno@clisp.org>
51120         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
51121         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
51122         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
51123         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
51124         (gl_PREREQ_INET_NTOP): ... from here.
51125         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
51126         gl_PREREQ_INET_NTOP here.
51127         (Depends-on): Update condition.
51129 2011-05-08  Bruno Haible  <bruno@clisp.org>
51131         iconv_open: Move AC_LIBOBJ invocations to module description.
51132         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
51133         AC_LIBOBJ invocations from here...
51134         * modules/iconv_open (configure.ac): ... to here.
51136 2011-05-08  Bruno Haible  <bruno@clisp.org>
51138         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
51139         If module 'iconv_open' is among the main modules and module
51140         'iconv_open-utf' is among the tests dependencies, then
51141         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
51142         return the special iconv_t values. Therefore iconv() and iconv_close()
51143         must support these special iconv_t values, already in lib, not only in
51144         tests.
51145         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
51146         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
51147         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
51148         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
51149         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
51150         (Depends-on): Add the dependencies of iconv_open-utf.
51151         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
51152         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
51153         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
51155 2011-05-08  Bruno Haible  <bruno@clisp.org>
51157         group-member: Move AC_LIBOBJ invocations to module description.
51158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
51159         gl_PREREQ_GROUP_MEMBER invocations from here...
51160         * modules/group-member (configure.ac): ... to here.
51162 2011-05-08  Bruno Haible  <bruno@clisp.org>
51164         grantpt: Move AC_LIBOBJ invocations to module description.
51165         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
51166         invocations from here...
51167         * modules/grantpt (configure.ac): ... to here.
51169 2011-05-08  Bruno Haible  <bruno@clisp.org>
51171         glob: Move AC_LIBOBJ invocations to module description.
51172         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
51173         from here...
51174         * modules/glob (configure.ac): ... to here.
51176 2011-05-08  Bruno Haible  <bruno@clisp.org>
51178         getusershell: Move AC_LIBOBJ invocations to module description.
51179         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
51180         Move AC_LIBOBJ invocation from here...
51181         * modules/getusershell (configure.ac): ... to here.
51182         (Depends-on): Update condition.
51184 2011-05-08  Bruno Haible  <bruno@clisp.org>
51186         gettimeofday: Move AC_LIBOBJ invocations to module description.
51187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51188         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
51189         gl_PREREQ_GETTIMEOFDAY invocations from here...
51190         * modules/gettimeofday (configure.ac): ... to here.
51192 2011-05-08  Bruno Haible  <bruno@clisp.org>
51194         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
51195         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
51196         just gl_FUNC_TZSET.
51197         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
51198         (gl_FUNC_TZSET_CLOBBER): Remove actions.
51199         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
51200         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
51202 2011-05-08  Bruno Haible  <bruno@clisp.org>
51204         getsubopt: Move AC_LIBOBJ invocations to module description.
51205         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
51206         gl_PREREQ_GETSUBOPT invocations from here...
51207         * modules/getsubopt (configure.ac): ... to here.
51209 2011-05-08  Bruno Haible  <bruno@clisp.org>
51211         getpass-gnu: Move AC_LIBOBJ invocations to module description.
51212         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
51213         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
51214         * modules/getpass-gnu (configure.ac): ... to here.
51216 2011-05-08  Bruno Haible  <bruno@clisp.org>
51218         getpass: Move AC_LIBOBJ invocations to module description.
51219         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
51220         gl_PREREQ_GETPASS invocations from here...
51221         * modules/getpass (configure.ac): ... to here.
51223 2011-05-08  Bruno Haible  <bruno@clisp.org>
51225         getpagesize: Move AC_LIBOBJ invocations to module description.
51226         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
51227         from here...
51228         * modules/getpagesize (configure.ac): ... to here.
51230 2011-05-08  Bruno Haible  <bruno@clisp.org>
51232         getopt: Move AC_LIBOBJ invocations to module description.
51233         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
51234         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
51235         invocations from here...
51236         * modules/getopt-gnu (configure.ac): ... to here.
51237         * modules/getopt-posix (configure.ac): ... and here.
51238         (Depends-on): Update condition.
51240 2011-05-08  Bruno Haible  <bruno@clisp.org>
51242         getopt, argp: Respect rules for use of AC_LIBOBJ.
51243         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
51244         (gl_REPLACE_GETOPT_ALWAYS): New macro.
51245         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
51246         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
51248 2011-05-08  Bruno Haible  <bruno@clisp.org>
51250         getlogin_r: Move AC_LIBOBJ invocations to module description.
51251         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
51252         gl_PREREQ_GETLOGIN_R invocations from here...
51253         * modules/getlogin_r (configure.ac): ... to here.
51255 2011-05-08  Bruno Haible  <bruno@clisp.org>
51257         getlogin: Move AC_LIBOBJ invocations to module description.
51258         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
51259         here...
51260         * modules/getlogin (configure.ac): ... to here.
51262 2011-05-08  Bruno Haible  <bruno@clisp.org>
51264         getloadavg: Move AC_LIBOBJ invocations to module description.
51265         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
51266         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
51267         * modules/getloadavg (configure.ac): ... to here.
51269 2011-05-08  Bruno Haible  <bruno@clisp.org>
51271         gethrxtime: Move AC_LIBOBJ invocations to module description.
51272         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
51273         LIB_GETHRXTIME from here...
51274         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
51275         invocations from here...
51276         * modules/gethrxtime (configure.ac): ... to here.
51278 2011-05-08  Bruno Haible  <bruno@clisp.org>
51280         gethostname: Move AC_LIBOBJ invocations to module description.
51281         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
51282         gl_PREREQ_GETHOSTNAME invocations from here...
51283         * modules/gethostname (configure.ac): ... to here.
51285 2011-05-08  Bruno Haible  <bruno@clisp.org>
51287         getgroups: Move AC_LIBOBJ invocations to module description.
51288         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
51289         here...
51290         * modules/getgroups (configure.ac): ... to here.
51292 2011-05-08  Bruno Haible  <bruno@clisp.org>
51294         getdtablesize: Move AC_LIBOBJ invocations to module description.
51295         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
51296         invocation from here...
51297         * modules/getdtablesize (configure.ac): ... to here.
51299 2011-05-08  Bruno Haible  <bruno@clisp.org>
51301         getdomainname: Move AC_LIBOBJ invocations to module description.
51302         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
51303         gl_PREREQ_GETDOMAINNAME invocations from here...
51304         * modules/getdomainname (configure.ac): ... to here.
51306 2011-05-08  Bruno Haible  <bruno@clisp.org>
51308         getline: Move AC_LIBOBJ invocations to module description.
51309         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
51310         invocations from here...
51311         * modules/getline (configure.ac): ... to here.
51313 2011-05-08  Bruno Haible  <bruno@clisp.org>
51315         getline: Simplify.
51316         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
51317         It's already handled through the module dependency.
51319 2011-05-08  Bruno Haible  <bruno@clisp.org>
51321         getdelim: Move AC_LIBOBJ invocations to module description.
51322         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
51323         and gl_PREREQ_GETDELIM invocations from here...
51324         * modules/getdelim (configure.ac): ... to here.
51325         (Depends-on): Fix condition.
51327 2011-05-08  Bruno Haible  <bruno@clisp.org>
51329         getcwd: Move AC_LIBOBJ invocations to module description.
51330         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
51331         invocations from here...
51332         * modules/getcwd (configure.ac): ... to here.
51334 2011-05-08  Bruno Haible  <bruno@clisp.org>
51336         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
51337         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
51338         here...
51339         * modules/getcwd-lgpl (configure.ac): ... to here.
51341 2011-05-07  Bruno Haible  <bruno@clisp.org>
51343         crypto/gc: Move AC_LIBOBJ invocations to module description.
51344         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
51345         * modules/crypto/gc (configure.ac): ... to here.
51347 2011-05-07  Bruno Haible  <bruno@clisp.org>
51349         fwriting: Move AC_LIBOBJ invocations to module description.
51350         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
51351         here...
51352         * modules/fwriting (configure.ac): ... to here.
51354 2011-05-07  Bruno Haible  <bruno@clisp.org>
51356         fwritable: Move AC_LIBOBJ invocations to module description.
51357         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
51358         here...
51359         * modules/fwritable (configure.ac): ... to here.
51361 2011-05-07  Bruno Haible  <bruno@clisp.org>
51363         futimens: Move AC_LIBOBJ invocations to module description.
51364         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
51365         here...
51366         * modules/futimens (configure.ac): ... to here.
51368 2011-05-07  Bruno Haible  <bruno@clisp.org>
51370         ftruncate: Move AC_LIBOBJ invocations to module description.
51371         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
51372         gl_PREREQ_FTRUNCATE invocations from here...
51373         * modules/ftruncate (configure.ac): ... to here.
51375 2011-05-07  Bruno Haible  <bruno@clisp.org>
51377         fsync: Move AC_LIBOBJ invocations to module description.
51378         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
51379         invocations from here...
51380         * modules/fsync (configure.ac): ... to here.
51382 2011-05-07  Bruno Haible  <bruno@clisp.org>
51384         fsusage: Move AC_LIBOBJ invocations to module description.
51385         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
51386         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
51387         * modules/fsusage (configure.ac): ... to here.
51389 2011-05-07  Bruno Haible  <bruno@clisp.org>
51391         freopen: Move AC_LIBOBJ invocations to module description.
51392         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
51393         invocations from here...
51394         * modules/freopen (configure.ac): ... to here.
51396 2011-05-07  Bruno Haible  <bruno@clisp.org>
51398         free: Move AC_LIBOBJ invocations to module description.
51399         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
51400         invocations from here...
51401         * modules/free (configure.ac): ... to here.
51403 2011-05-07  Bruno Haible  <bruno@clisp.org>
51405         freadable: Move AC_LIBOBJ invocations to module description.
51406         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
51407         here...
51408         * modules/freadable (configure.ac): ... to here.
51410 2011-05-07  Bruno Haible  <bruno@clisp.org>
51412         fpurge: Move AC_LIBOBJ invocations to module description.
51413         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
51414         invocations from here...
51415         * modules/fpurge (configure.ac): ... to here.
51417 2011-05-07  Bruno Haible  <bruno@clisp.org>
51419         fpending: Move AC_LIBOBJ invocations to module description.
51420         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
51421         gl_FUNC_FPENDING.
51422         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
51423         invocations from here...
51424         * modules/fpending (configure.ac): ... to here.
51426 2011-05-07  Bruno Haible  <bruno@clisp.org>
51428         fopen: Move AC_LIBOBJ invocations to module description.
51429         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
51430         invocations from here...
51431         * modules/fopen (configure.ac): ... to here.
51433 2011-05-07  Bruno Haible  <bruno@clisp.org>
51435         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
51436         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
51437         gl_FUNC_FNMATCH_POSIX.
51438         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
51439         invocations from here...
51440         * modules/fnmatch (configure.ac): ... to here.
51441         * modules/fnmatch-gnu (configure.ac): ... and here.
51443 2011-05-07  Bruno Haible  <bruno@clisp.org>
51445         flock: Move AC_LIBOBJ invocations to module description.
51446         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
51447         invocations from here...
51448         * modules/flock (configure.ac): ... to here.
51450 2011-05-07  Bruno Haible  <bruno@clisp.org>
51452         fileblocks: Move AC_LIBOBJ invocations to module description.
51453         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
51454         gl_PREREQ_FILEBLOCKS invocations from here...
51455         * modules/fileblocks (configure.ac): ... to here.
51457 2011-05-06  Bruno Haible  <bruno@clisp.org>
51459         fflush: Move AC_LIBOBJ invocations to module description.
51460         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
51461         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
51462         invocations from here...
51463         * modules/fflush (configure.ac): ... to here.
51465 2011-05-06  Bruno Haible  <bruno@clisp.org>
51467         fdopendir: Move AC_LIBOBJ invocations to module description.
51468         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
51469         here...
51470         * modules/fdopendir (configure.ac): ... to here.
51471         (Depends-on): Improve conditions.
51473 2011-05-06  Bruno Haible  <bruno@clisp.org>
51475         _Exit: Move AC_LIBOBJ invocations to module description.
51476         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
51477         invocations from here...
51478         * modules/_Exit (configure.ac): ... to here.
51480 2011-05-21  Bruno Haible  <bruno@clisp.org>
51482         euidaccess: Respect rules for use of AC_LIBOBJ.
51483         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
51484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
51485         from here...
51486         * modules/euidaccess (configure.ac): ... to here.
51488 2011-05-06  Bruno Haible  <bruno@clisp.org>
51490         error: Move AC_LIBOBJ invocations to module description.
51491         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
51492         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
51493         invocations from here...
51494         * modules/error (configure.ac): ... to here.
51496 2011-05-06  Bruno Haible  <bruno@clisp.org>
51498         duplocale: Move AC_LIBOBJ invocations to module description.
51499         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
51500         gl_PREREQ_DUPLOCALE invocations from here...
51501         * modules/duplocale (configure.ac): ... to here.
51503 2011-05-05  Bruno Haible  <bruno@clisp.org>
51505         dirfd: Move AC_LIBOBJ invocations to module description.
51506         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
51507         gl_FUNC_DIRFD.
51508         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
51509         here...
51510         * modules/dirfd (configure.ac): ... to here.
51511         (Depends-on): Fix condition.
51513 2011-05-05  Bruno Haible  <bruno@clisp.org>
51515         chown: Respect rules for use of AC_LIBOBJ.
51516         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
51517         * modules/chown (configure.ac): ... to here.
51519 2011-05-05  Bruno Haible  <bruno@clisp.org>
51521         chdir-long: Move AC_LIBOBJ invocations to module description.
51522         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
51523         gl_PREREQ_CHDIR_LONG invocations from here...
51524         * modules/chdir-long (configure.ac): ... to here.
51526 2011-05-05  Bruno Haible  <bruno@clisp.org>
51528         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
51529         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
51530         from here...
51531         * modules/canonicalize-lgpl (configure.ac): ... to here.
51533 2011-05-05  Bruno Haible  <bruno@clisp.org>
51535         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
51536         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
51537         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
51538         REPLACE_CALLOC.
51539         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
51540         * modules/calloc-gnu (configure.ac): Likewise.
51542 2011-05-05  Bruno Haible  <bruno@clisp.org>
51544         btowc: Move AC_LIBOBJ invocations to module description.
51545         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
51546         invocations from here...
51547         * modules/btowc (configure.ac): ... to here.
51549 2011-05-21  Bruno Haible  <bruno@clisp.org>
51551         atexit: Move AC_LIBOBJ invocations to module description.
51552         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
51553         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
51554         here...
51555         * modules/atexit (configure.ac): ... to here.
51557 2011-05-05  Bruno Haible  <bruno@clisp.org>
51559         atoll: Move AC_LIBOBJ invocations to module description.
51560         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
51561         invocations from here...
51562         * modules/atoll (configure.ac): ... to here.
51564 2011-05-05  Bruno Haible  <bruno@clisp.org>
51566         argz: Move AC_LIBOBJ invocations to module description.
51567         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
51568         * modules/argz (configure.ac): ... to here.
51570 2011-05-05  Bruno Haible  <bruno@clisp.org>
51572         alphasort: Move AC_LIBOBJ invocations to module description.
51573         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
51574         gl_PREREQ_ALPHASORT invocations from here...
51575         * modules/alphasort (configure.ac): ... to here.
51577 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51579         verify: new macro verify_expr; verify_true deprecated
51580         * NEWS: Mention this.
51581         * doc/verify.texi (Compile-time Assertions): Document this.
51582         * lib/verify.h (verify_true): Deprecate.
51583         (verify_expr): New macro.
51584         * tests/test-verify.c (function): Test verify_expr.
51586 2011-06-14  Jim Meyering  <meyering@redhat.com>
51588         init.sh: give more portable redirection-related advice in a comment
51589         * tests/init.sh (stderr_fileno_): Update the advice in comments.
51590         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
51591         for lots of discussion.  Stefano Lattarini suggested the solution
51592         of putting "9>&2" after the command.  Reported by Bruno Haible.
51594 2011-06-13  Bruno Haible  <bruno@clisp.org>
51596         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
51597         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
51598         'none'.
51600 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
51602         ftoastr: use strtof only if HAVE_STRTOF
51603         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
51604         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
51605         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
51606         * modules/ftoastr (configure.ac): Check for strtof.
51608 2011-06-13  Bruno Haible  <bruno@clisp.org>
51610         gnulib-tool: Addendum to 2011-06-08 commit.
51611         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
51612         and --witness-c-macro have been given, augment AM_CPPFLAGS.
51614 2011-06-13  Bruno Haible  <bruno@clisp.org>
51616         fseeko: Provide a non-inline replacement of fseek().
51617         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
51618         * modules/fseeko (Depends-on): Add fseek.
51619         * modules/fseek (License): Change to LGPLv2+.
51621 2011-06-13  Bruno Haible  <bruno@clisp.org>
51623         ftello: Provide a non-inline replacement of ftell().
51624         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
51625         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
51626         not have ftello() (such as on mingw).
51627         * modules/ftello (Depends-on): Add ftell.
51628         * modules/ftell (License): Change to LGPLv2+.
51630 2011-05-07  Bruno Haible  <bruno@clisp.org>
51632         ftell: Move AC_LIBOBJ invocations to module description.
51633         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
51634         * modules/ftell (configure.ac): ... to here.
51636 2011-05-07  Bruno Haible  <bruno@clisp.org>
51638         ftello: Respect rules for use of AC_LIBOBJ.
51639         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
51640         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
51641         here...
51642         * modules/ftello (configure.ac): ... to here.
51644 2011-05-07  Bruno Haible  <bruno@clisp.org>
51646         fseeko: Simplify.
51647         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
51648         (gl_FUNC_FSEEKO): Inline it here.
51650 2011-05-07  Bruno Haible  <bruno@clisp.org>
51652         fseek: Move AC_LIBOBJ invocations to module description.
51653         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
51654         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
51655         * modules/fseek (configure.ac): ... to here.
51657 2011-05-07  Bruno Haible  <bruno@clisp.org>
51659         fseek: Respect rules for use of AC_LIBOBJ.
51660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
51661         here...
51662         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
51664 2011-05-07  Bruno Haible  <bruno@clisp.org>
51666         fseeko: Respect rules for use of AC_LIBOBJ.
51667         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
51668         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
51669         here...
51670         * modules/fseeko (configure.ac): ... to here.
51672 2011-06-13  Bruno Haible  <bruno@clisp.org>
51674         gnulib-tool: Allow comments in the 'Depends-on' section.
51675         * doc/gnulib.texi (Module description): Mention comment syntax in the
51676         Depends-on section.
51677         * gnulib-tool (func_get_dependencies): Filter out comment lines.
51679 2011-06-13  Bruno Haible  <bruno@clisp.org>
51681         file-set.h: guard __attibute__ use, now that it's not always defined
51682         * lib/file-set.h (record_file): Use __attribute__ only with compiler
51683         versions that support it.  This fixes a coreutils build failure with
51684         the vendor cc on HP-UX 11.31.
51686 2011-06-12  Bruno Haible  <bruno@clisp.org>
51688         acl: Add support for HP-UX >= 11.11 JFS ACLs.
51689         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
51690         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
51691         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
51692         (acl, aclsort): New declarations.
51693         (aclv_nontrivial): New declaration.
51694         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
51695         (file_has_acl): Read also the second kind of HP-UX ACLs.
51696         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
51697         kind of HP-UX ACLs if the first kind fails.
51698         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
51699         second kind of HP-UX ACLs.
51700         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
51701         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
51702         agree.
51703         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51704         hpuxjfs.
51705         Handle hpuxjfs.
51706         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51707         hpuxjfs.
51708         Handle hpuxjfs.
51709         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51710         (func_test_same_acls): Use both lsacl and getacl.
51711         Handle hpuxjfs.
51712         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51713         (func_test_same_acls): Use both lsacl and getacl.
51714         Handle hpuxjfs.
51716 2011-06-12  Bruno Haible  <bruno@clisp.org>
51718         acl: Complete the 2010-08-10 fix.
51719         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
51720         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
51721         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
51722         explicitly.
51723         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
51724         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
51726 2011-06-12  Bruno Haible  <bruno@clisp.org>
51728         spawn-pipe tests: Comments.
51729         * tests/test-spawn-pipe-child.c (main): Update comment.
51730         Reported by James Youngman <jay@gnu.org>.
51732 2011-06-11  James Youngman  <jay@gnu.org>
51734         New module 'stat-size'.
51735         * modules/stat-size: New module.  Provides macros for accessing
51736         file size information in instances of struct stat.  Depends on the
51737         fileblocks module because it calls st_blocks.
51738         * lib/stat-size.h: New file, adapted from coreutils' system.h.
51739         * doc/gnulib.texi: Include stat-size.texi.
51740         * doc/stat-size.texi: Documentation for this module.
51741         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
51742         * m4/fileblocks.m4: Mention that stat-size depends on the call to
51743         AC_STRUCT_ST_BLOCKS.
51745 2011-06-09  Bruno Haible  <bruno@clisp.org>
51747         thread: Support pthreads-win32.
51748         * lib/glthread/thread.h (gl_thread_self): Define differently on
51749         pthreads-win32.
51750         (gl_null_thread): New declaration.
51751         (gl_thread_self_pointer): New macro.
51752         * lib/glthread/thread.c (gl_null_thread): New constant.
51753         * tests/test-lock.c: Use gl_thread_self_pointer instead of
51754         gl_thread_self.
51755         * tests/test-tls.c: Likewise.
51756         Suggested by Paul Eggert. Reported by Eric Blake.
51758 2011-06-09  Bruno Haible  <bruno@clisp.org>
51760         thread: Fix confusion between NULL and 0.
51761         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
51762         Reported by Paul Eggert.
51764 2011-06-09  Bruno Haible  <bruno@clisp.org>
51766         spawn-pipe tests: Avoid test failure on HP-UX 11.
51767         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
51768         is closed.
51770 2011-06-09  Bruno Haible  <bruno@clisp.org>
51772         acl tests: Fix compilation error on HP-UX 11.
51773         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
51775 2011-06-09  Bruno Haible  <bruno@clisp.org>
51777         rmdir: Avoid test failure on HP-UX 10.20.
51778         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
51779         EEXIST.
51781 2011-06-08  Eric Blake  <eblake@redhat.com>
51783         perror: fix test on mingw
51784         * modules/perror-tests (Depends-on): Add dup2.
51786         strerror_r-posix: fix on MacOS
51787         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
51788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
51789         logic bug.
51790         * lib/strerror_r.c (strerror_r): Fix the bug.
51791         * lib/strerror.c (strerror): Likewise.
51792         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51793         problem.
51794         * doc/posix-functions/strerror.texi (strerror): Likewise.
51795         * doc/posix-functions/perror.texi (perror): Likewise.
51796         * tests/test-strerror.c (main): Enhance test.
51797         * tests/test-strerror_r.c (main): Likewise.
51799 2011-06-08  Bruno Haible  <bruno@clisp.org>
51801         gnulib-tool: Better isolation between different gnulib-tool invocations.
51802         * gnulib-tool: New option --witness-c-macro.
51803         (witness_c_macro): New variable.
51804         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
51805         AM_CPPFLAGS define it as a C macro.
51806         (func_emit_tests_Makefile_am): Likewise.
51807         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
51808         read it from there.
51809         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
51810         m4_define, not AC_DEFUN.
51811         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
51812         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
51813         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
51814         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
51815         s|...|...|, to substitute the values of the GNULIB_* module indicator
51816         variables.
51817         * modules/dirent (Makefile.am): Likewise.
51818         * modules/fcntl-h (Makefile.am): Likewise.
51819         * modules/iconv-h (Makefile.am): Likewise.
51820         * modules/langinfo (Makefile.am): Likewise.
51821         * modules/locale (Makefile.am): Likewise.
51822         * modules/math (Makefile.am): Likewise.
51823         * modules/netdb (Makefile.am): Likewise.
51824         * modules/poll-h (Makefile.am): Likewise.
51825         * modules/pty (Makefile.am): Likewise.
51826         * modules/search (Makefile.am): Likewise.
51827         * modules/signal (Makefile.am): Likewise.
51828         * modules/spawn (Makefile.am): Likewise.
51829         * modules/stdio (Makefile.am): Likewise.
51830         * modules/stdlib (Makefile.am): Likewise.
51831         * modules/string (Makefile.am): Likewise.
51832         * modules/sys_ioctl (Makefile.am): Likewise.
51833         * modules/sys_select (Makefile.am): Likewise.
51834         * modules/sys_socket (Makefile.am): Likewise.
51835         * modules/sys_stat (Makefile.am): Likewise.
51836         * modules/sys_times (Makefile.am): Likewise.
51837         * modules/sys_utsname (Makefile.am): Likewise.
51838         * modules/sys_wait (Makefile.am): Likewise.
51839         * modules/termios (Makefile.am): Likewise.
51840         * modules/time (Makefile.am): Likewise.
51841         * modules/unistd (Makefile.am): Likewise.
51842         * modules/wchar (Makefile.am): Likewise.
51844 2011-06-08  Eric Blake  <eblake@redhat.com>
51846         strerror: simplify replacement
51847         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
51848         * modules/strerror (configure.ac): No prereqs needed here...
51849         * modules/strerror-override (configure.ac): ...but this needs it.
51850         (Files): Add file for needed prereq macro.
51852 2011-06-08  Bruno Haible  <bruno@clisp.org>
51854         strerror_r-posix: Tweaks.
51855         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
51856         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
51857         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
51858         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
51859         (gl_FUNC_STRERROR_R): ... to here.
51860         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
51862 2011-06-07  Eric Blake  <eblake@redhat.com>
51864         perror: document fixed bugs
51865         * doc/posix-functions/perror.texi (perror): Document recent
51866         patches.
51868 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
51870         stat-time: get_stat_birthtime failure is better-defined
51871         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
51872         return a timestamp whose tv_sec and tv_nsec values are both -1.
51873         Previously, the spec said only that the tv_nsec value was negative.
51874         This upward-compatible change simplifies GNU tar a bit.
51876 2011-06-07  Eric Blake  <eblake@redhat.com>
51878         strerror_r-posix: work around cygwin 1.7.9
51879         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
51880         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
51881         bug without replacing strerror_r.
51882         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
51883         strerror_r is buggy, but without requiring strerror_r compilation.
51884         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
51886         test-perror: relax test to ignore cygwin bug
51887         * tests/test-perror2.c (main): Relax test on requiring detection
51888         of stream errors, and use unbuffered stream.
51889         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
51890         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
51891         * doc/posix-functions/fputc.texi (fputc): Likewise.
51892         * doc/posix-functions/fputs.texi (fputs): Likewise.
51893         * doc/posix-functions/fputws.texi (fputws): Likewise.
51894         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51895         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51896         * doc/posix-functions/getopt.texi (getopt): Likewise.
51897         * doc/posix-functions/perror.texi (perror): Likewise.
51898         * doc/posix-functions/printf.texi (printf): Likewise.
51899         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51900         * doc/posix-functions/psignal.texi (psignal): Likewise.
51901         * doc/posix-functions/putc.texi (putc): Likewise.
51902         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51903         Likewise.
51904         * doc/posix-functions/putchar.texi (putchar): Likewise.
51905         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51906         Likewise.
51907         * doc/posix-functions/puts.texi (puts): Likewise.
51908         * doc/posix-functions/putwc.texi (putwc): Likewise.
51909         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51910         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51911         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51912         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51913         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51914         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51915         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51916         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51918 2011-05-22  Bruno Haible  <bruno@clisp.org>
51920         strerror: Move AC_LIBOBJ invocations to module description.
51921         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51922         gl_PREREQ_STRERROR invocations from here...
51923         * modules/strerror (configure.ac): ... to here.
51925 2011-05-21  Bruno Haible  <bruno@clisp.org>
51927         perror: Use common idiom.
51928         * modules/perror (configure.ac): Reorder statements.
51930 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51932         tests: fix usage message in 'mktempd_'
51933         * tests/init.sh (mktempd_): In the usage message, use literal
51934         'mktempd_', not '$ME' (which is even undefined), as the name of
51935         the subroutine.
51937 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51939         tests init: new function 'fatal_', for hard errors
51940         Before this patch, the only way offered by tests/init.sh to
51941         properly signal a hard error was the `framework_failure_'
51942         function.  But the error message issued by that function,
51943         as its name would suggest, refers to a set-up failure in the
51944         testsuite, while hard errors can obviously also be due to
51945         other reasons.  The best way to fix this inconsistency is to
51946         introduce a new function with a more general error message.
51947         * tests/init.sh (fatal_): New function.
51949 2011-06-06  Eric Blake  <eblake@redhat.com>
51951         canonicalize-lgpl: use common idiom
51952         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51953         over newer POSIX -Rf.
51954         Reported by Bruno Haible.
51956         canonicalize-lgpl: work around AIX realpath bug
51957         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51958         * doc/posix-functions/realpath.texi (realpath): Document it.
51959         Reported by Bruno Haible.
51961         strerror: work around FreeBSD bug
51962         * lib/strerror.c (strerror): Special case 0.
51963         Reported by Bruno Haible.
51965         strerror-override: avoid bloating errno module
51966         * modules/errno (Files, configure.ac): Move replacement strings...
51967         * modules/strerror-override: ...to new module.
51968         * modules/strerror (Depends-on): Add strerror-override.
51969         * modules/strerror_r-posix (Depends-on): Likewise.
51970         * MODULES.html.sh: Document new module.
51971         Reported by Bruno Haible.
51973 2011-06-06  Bruno Haible  <bruno@clisp.org>
51975         spawn-pipe tests: Rename program.
51976         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51977         * tests/test-spawn-pipe-child.c: Update comment.
51978         * tests/test-spawn-pipe.sh: Update.
51979         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51981         spawn-pipe tests: Link the child program only against libc.
51982         * tests/test-spawn-pipe-child.c: New file, extracted from
51983         tests/test-spawn-pipe.c.
51984         (main): Expect only one argument.
51985         (is_open): New function, copied from tests/test-pipe.c.
51986         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51987         (child_main): Remove function.
51988         (test_pipe): Pass only one argument to the child program.
51989         (main): Remove child process code. Expect the child program's name as
51990         first argument.
51991         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51992         argument.
51993         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51994         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51995         test-spawn-pipe-child against no libraries.
51997 2011-06-06  Bruno Haible  <bruno@clisp.org>
51999         careadlinkat: Avoid mismatch between ssize_t and int.
52000         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
52001         * lib/careadlinkat.c (careadlinkatcwd): Define always.
52003 2011-06-06  Jim Meyering  <meyering@redhat.com>
52005         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
52006         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
52007         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
52009 2011-06-05  Bruno Haible  <bruno@clisp.org>
52011         ansi-c++-opt: Interoperability with libtool.
52012         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
52013         set the variable to "no", not to ":".
52014         * NEWS: Mention the change.
52016 2011-06-05  Bruno Haible  <bruno@clisp.org>
52018         acl: Fix test failure on AIX 7.
52019         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
52020         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
52022 2011-06-05  Bruno Haible  <bruno@clisp.org>
52024         pipe-filter-ii: Fix test failure on AIX and IRIX.
52025         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
52026         with EAGAIN, retry with a smaller buffer size.
52028 2011-06-05  Bruno Haible  <bruno@clisp.org>
52030         localename: Fix link dependencies.
52031         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
52032         * modules/localename-tests (Makefile.am): Link test-localename with
52033         $(LIBTHREAD).
52035 2011-06-05  Bruno Haible  <bruno@clisp.org>
52037         error: Avoid gcc warning.
52038         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
52040 2011-06-05  Bruno Haible  <bruno@clisp.org>
52042         unsetenv: Avoid gcc warning.
52043         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
52045 2011-06-05  Bruno Haible  <bruno@clisp.org>
52047         setenv: Avoid gcc warning.
52048         * lib/setenv.c (setenv): Provide declaration if system lacks it.
52050 2011-06-05  Bruno Haible  <bruno@clisp.org>
52052         sys_select: Ensure memset is declared also on AIX 7.
52053         * lib/sys_select.in.h: Include <string.h> also on AIX.
52054         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
52055         self-contained also on AIX 7.1.
52057 2011-06-04  Jim Meyering  <meyering@redhat.com>
52059         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
52060         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
52061         function name, "error".
52062         (_gl_translatable_diag_func_re): New configurable variable.
52064 2011-06-04  Bruno Haible  <bruno@clisp.org>
52066         getopt: Avoid gcc warning.
52067         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
52069 2011-06-04  Bruno Haible  <bruno@clisp.org>
52071         strerror_r: Fix comments.
52072         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
52073         commit.
52075 2011-06-04  Bruno Haible  <bruno@clisp.org>
52077         perror: Fix compilation error.
52078         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
52079         Undefine fprintf, not sprintf.
52080         * modules/perror (Depends-on): Remove intprops, verify.
52082 2011-06-04  Bruno Haible  <bruno@clisp.org>
52084         setlocale: Enable replacement on Cygwin 1.5.
52085         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
52086         Cygwin 1.5.x.
52087         * doc/posix-functions/setlocale.texi: Mention that the problem with the
52088         LC_CTYPE category also exists on Cygwin 1.5.x.
52090 2011-06-04  Bruno Haible  <bruno@clisp.org>
52092         strerror-override: Don't disable symbol renamings.
52093         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
52094         * lib/strerror-override.c: Include config.h.
52095         (strerror_override): Don't undefine.
52097 2011-06-03  Bruno Haible  <bruno@clisp.org>
52099         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
52100         * lib/localename.h: Update copyright header.
52101         * lib/localename.c: Likewise.
52102         * lib/relocatable.h: Likewise.
52103         * lib/relocatable.c: Likewise.
52105 2011-06-02  Bruno Haible  <bruno@clisp.org>
52107         doc: Fix a module name.
52108         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
52110 2011-06-02  Bruno Haible  <bruno@clisp.org>
52112         pipe2: Remove dependency on 'nonblocking' module.
52113         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
52114         O_NONBLOCK is defined by gnulib.
52115         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
52116         is zero.
52117         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
52118         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
52119         defined by gnulib.
52120         (get_nonblocking_flag): New function.
52121         (main): Test O_NONBLOCK flag only if it is nonzero.
52122         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
52124 2011-06-03  Jim Meyering  <meyering@redhat.com>
52126         maint: three new prohibit-header-without-use rules
52127         Prohibit use of cloexec.h, posixver.h, same.h without use.
52128         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
52129         (sc_prohibit_posixver_without_use): Likewise.
52130         (sc_prohibit_same_without_use): Likewise.
52132 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52134         allocator: 'die' routine is now given requested size
52135         * lib/allocator.h (struct allocator.die): New size arg.
52136         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
52137         If the actual problem is an ssize_t limitation, not a size_t or
52138         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
52140 2011-06-01  Eric Blake  <eblake@redhat.com>
52142         strerror: drop strerror_r dependency
52143         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
52144         * lib/strerror-override.c (strerror_override): ...to new file.
52145         * lib/strerror-override.h: Add prototype.
52146         * lib/strerror-impl.h: Delete.
52147         * lib/strerror.c (strerror): New implementation.
52148         * modules/errno (Files): Add new files.
52149         (configure.ac): Compile new file as appropriate.
52150         * modules/strerror (Files): Drop unused file.
52151         (Depends-on): Drop strerror_r-posix.
52152         * MODULES.html.sh: Document strerror_r-posix.
52153         Requested by Sam Steingold.
52155         perror: call strerror_r directly
52156         * modules/perror (Files): Drop strerror-impl.h.
52157         * lib/perror.c (perror): Use our own stack buffer, rather than
52158         calling a wrapper that uses static storage.
52159         * doc/posix-functions/perror.texi (perror): Document a limitation
52160         of our replacement.
52162         strerror_r: fix includes for FreeBSD
52163         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
52164         since we use abort on some platforms.
52165         Reported by Matthias Bolte.
52167 2011-05-31  Bruno Haible  <bruno@clisp.org>
52169         Fix link errors in tests: openat-die uses gettext-h.
52170         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
52171         against $(LIBINTL).
52172         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
52173         against $(LIBINTL).
52174         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
52175         $(LIBINTL).
52176         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
52177         against $(LIBINTL).
52178         * modules/linkat-tests (Makefile.am): Link test-linkat against
52179         $(LIBINTL).
52180         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
52181         $(LIBINTL).
52182         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
52183         against $(LIBINTL).
52184         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
52185         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
52186         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
52187         $(LIBINTL).
52188         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
52189         $(LIBINTL).
52190         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
52191         $(LIBINTL).
52192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52194 2011-05-31  Bruno Haible  <bruno@clisp.org>
52196         Fix link errors in tests: wait-process uses gettext-h.
52197         * modules/nonblocking-pipe-tests (Makefile.am): Set
52198         test_nonblocking_pipe_main_LDADD.
52199         * modules/nonblocking-socket-tests (Makefile.am): Link
52200         test-nonblocking-socket-main against $(LIBINTL).
52201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52203 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
52205         assert-h: work around 'verify' incompatibility
52206         * lib/verify.h: Use @...@ directives, not ifdef.
52207         * modules/assert-h (assert.h): Implement the directives.
52208         (assert.h): Substitute the symbol-prefix more consistently.
52210 2011-05-29  Jim Meyering  <meyering@redhat.com>
52212         trim: remove three superfluous assignments
52213         * lib/trim.c (trim2): Remove three superfluous assignments
52214         and correct brace positioning.
52216 2011-05-29  Bruno Haible  <bruno@clisp.org>
52218         wctype-h: Avoid namespace pollution on Solaris 2.6.
52219         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
52220         identifiers.
52221         * doc/posix-headers/wctype.texi: Mention the problem.
52222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52224 2011-05-28  Jim Meyering  <meyering@redhat.com>
52226         parse-datetime.y: accommodate -Wstrict-overflow
52227         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
52228         placate -Wstrict-overflow.
52230         trim: avoid a warning from -O2 -Wstrict-overflow
52231         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
52233 2011-05-29  Bruno Haible  <bruno@clisp.org>
52235         gnulib-tool: Fix bug in yesterday's commit.
52236         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
52237         twice.
52239 2011-05-29  Bruno Haible  <bruno@clisp.org>
52241         Allow multiple gnulib generated include files to be combined.
52242         * gnulib-tool (func_compute_include_guard_prefix): New function.
52243         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
52244         ${gl_include_guard_prefix} references.
52245         (func_import, func_create_testdir): Invoke
52246         func_compute_include_guard_prefix.
52247         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
52248         * lib/ctype.in.h: Likewise.
52249         * lib/dirent.in.h: Likewise.
52250         * lib/errno.in.h: Likewise.
52251         * lib/fcntl.in.h: Likewise.
52252         * lib/float.in.h: Likewise.
52253         * lib/getopt.in.h: Likewise.
52254         * lib/iconv.in.h: Likewise.
52255         * lib/langinfo.in.h: Likewise.
52256         * lib/locale.in.h: Likewise.
52257         * lib/math.in.h: Likewise.
52258         * lib/netdb.in.h: Likewise.
52259         * lib/netinet_in.in.h: Likewise.
52260         * lib/poll.in.h: Likewise.
52261         * lib/pthread.in.h: Likewise.
52262         * lib/pty.in.h: Likewise.
52263         * lib/sched.in.h: Likewise.
52264         * lib/se-selinux.in.h: Likewise.
52265         * lib/search.in.h: Likewise.
52266         * lib/signal.in.h: Likewise.
52267         * lib/spawn.in.h: Likewise.
52268         * lib/stdarg.in.h: Likewise.
52269         * lib/stddef.in.h: Likewise.
52270         * lib/stdint.in.h: Likewise.
52271         * lib/stdio.in.h: Likewise.
52272         * lib/stdlib.in.h: Likewise.
52273         * lib/string.in.h: Likewise.
52274         * lib/strings.in.h: Likewise.
52275         * lib/sys_file.in.h: Likewise.
52276         * lib/sys_ioctl.in.h: Likewise.
52277         * lib/sys_select.in.h: Likewise.
52278         * lib/sys_socket.in.h: Likewise.
52279         * lib/sys_stat.in.h: Likewise.
52280         * lib/sys_time.in.h: Likewise.
52281         * lib/sys_times.in.h: Likewise.
52282         * lib/sys_uio.in.h: Likewise.
52283         * lib/sys_utsname.in.h: Likewise.
52284         * lib/sys_wait.in.h: Likewise.
52285         * lib/sysexits.in.h: Likewise.
52286         * lib/termios.in.h: Likewise.
52287         * lib/time.in.h: Likewise.
52288         * lib/unistd.in.h: Likewise.
52289         * lib/wchar.in.h: Likewise.
52290         * lib/wctype.in.h: Likewise.
52291         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
52292         * modules/ctype (Makefile.am): Likewise.
52293         * modules/dirent (Makefile.am): Likewise.
52294         * modules/errno (Makefile.am): Likewise.
52295         * modules/fcntl-h (Makefile.am): Likewise.
52296         * modules/float (Makefile.am): Likewise.
52297         * modules/getopt-posix (Makefile.am): Likewise.
52298         * modules/iconv-h (Makefile.am): Likewise.
52299         * modules/langinfo (Makefile.am): Likewise.
52300         * modules/locale (Makefile.am): Likewise.
52301         * modules/math (Makefile.am): Likewise.
52302         * modules/netdb (Makefile.am): Likewise.
52303         * modules/netinet_in (Makefile.am): Likewise.
52304         * modules/poll-h (Makefile.am): Likewise.
52305         * modules/pthread (Makefile.am): Likewise.
52306         * modules/pty (Makefile.am): Likewise.
52307         * modules/sched (Makefile.am): Likewise.
52308         * modules/search (Makefile.am): Likewise.
52309         * modules/selinux-h (Makefile.am): Likewise.
52310         * modules/signal (Makefile.am): Likewise.
52311         * modules/spawn (Makefile.am): Likewise.
52312         * modules/stdarg (Makefile.am): Likewise.
52313         * modules/stddef (Makefile.am): Likewise.
52314         * modules/stdint (Makefile.am): Likewise.
52315         * modules/stdio (Makefile.am): Likewise.
52316         * modules/stdlib (Makefile.am): Likewise.
52317         * modules/string (Makefile.am): Likewise.
52318         * modules/strings (Makefile.am): Likewise.
52319         * modules/sys_file (Makefile.am): Likewise.
52320         * modules/sys_ioctl (Makefile.am): Likewise.
52321         * modules/sys_select (Makefile.am): Likewise.
52322         * modules/sys_socket (Makefile.am): Likewise.
52323         * modules/sys_stat (Makefile.am): Likewise.
52324         * modules/sys_time (Makefile.am): Likewise.
52325         * modules/sys_times (Makefile.am): Likewise.
52326         * modules/sys_uio (Makefile.am): Likewise.
52327         * modules/sys_utsname (Makefile.am): Likewise.
52328         * modules/sys_wait (Makefile.am): Likewise.
52329         * modules/sysexits (Makefile.am): Likewise.
52330         * modules/termios (Makefile.am): Likewise.
52331         * modules/time (Makefile.am): Likewise.
52332         * modules/unistd (Makefile.am): Likewise.
52333         * modules/wchar (Makefile.am): Likewise.
52334         * modules/wctype-h (Makefile.am): Likewise.
52335         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
52337 2011-05-29  Bruno Haible  <bruno@clisp.org>
52339         assert-h: Allow multiple gnulib generated replacements to coexist.
52340         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
52342 2011-05-29  Bruno Haible  <bruno@clisp.org>
52344         argp: Allow coexistence with strerror_r-posix module.
52345         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
52346         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
52347         by gnulib's <string.h> replacement), assume it has the POSIX signature,
52348         not the glibc signature.
52350 2011-05-28  Bruno Haible  <bruno@clisp.org>
52352         gnulib-tool: Alternative structure of testdirs, similar to --import.
52353         * gnulib-tool: New option --single-configure.
52354         (func_usage): Document it.
52355         (single_configure): New variable.
52356         (func_modules_transitive_closure_separately,
52357         func_modules_transitive_closure_separately,
52358         func_determine_use_libtests, func_modules_add_dummy_separately,
52359         func_modules_to_filelist_separately): New functions, extracted from
52360         func_import.
52361         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
52362         (func_import): Use the new functions.
52363         (func_create_testdir): Set final_modules. Handle $single_configure =
52364         true case.
52366 2011-05-28  Bruno Haible  <bruno@clisp.org>
52368         getloadavg: Remove an unreliable safety check.
52369         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
52370         getloadavg.c is in place.
52371         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
52372         Reported by Sam Steingold <sds@gnu.org>.
52374 2011-05-28  Bruno Haible  <bruno@clisp.org>
52376         doc: Cleanup yet another file produced by texinfo.tex.
52377         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
52379 2011-05-28  Bruno Haible  <bruno@clisp.org>
52381         Finish the conditional dependencies mechanism.
52382         * gnulib-tool: New option --no-conditional-dependencies.
52383         (func_usage): Document it. Don't mark --conditional-dependencies as
52384         experimental.
52385         (cond_dependencies): The possible values can now be true, false, empty.
52386         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
52387         (func_import): Store setting in gnulib-cache.m4 and read it from there.
52388         * doc/gnulib-tool.texi (Conditional dependencies): New section.
52390 2011-05-28  Bruno Haible  <bruno@clisp.org>
52392         doc: Use a recent texinfo.tex.
52393         * doc/Makefile (tex_opts): New variable.
52394         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
52396 2011-05-28  Jim Meyering  <meyering@redhat.com>
52398         intprops.h: adjust comment to match code change
52399         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
52400         only once, it *may* have side effects.  Also fix an unrelated typo.
52401         (_GL_INT_SIGNED): Likewise.
52403 2011-05-26  Simon Josefsson  <simon@josefsson.org>
52405         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
52407 2011-05-26  Bruno Haible  <bruno@clisp.org>
52409         mbsrchr: Avoid collision with system function on Interix.
52410         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
52411         Reported by Markus Duft <mduft@gentoo.org>.
52413 2011-05-15  James Youngman  <jay@gnu.org>
52415         getopt: for ambiguous options, enumerate the possibilities.
52416         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
52417         the ambiguous options when an ambiguous prefix is given. This was
52418         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
52419         glibc change was
52420         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
52422 2011-05-25  Eric Blake  <eblake@redhat.com>
52424         getcwd: work around mingw bug
52425         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
52426         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52427         Reported by Matthias Bolte.
52429 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
52431         test-intprops: disable -Wtype-limits diagnostics
52432         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
52433         diagnostics.  Otherwise, the integer overflow macros generate many
52434         diagnostics.  Reported by Jim Meyering in
52435         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
52437         intprops: shorten, to pacify gcc -Woverlength-strings
52438         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
52439         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
52440         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
52441         likely to run afoul of C compiler limits for string constant lengths.
52442         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
52444 2011-05-24  Eric Blake  <eblake@redhat.com>
52446         docs: document recently fixed glibc printf bug
52447         * doc/posix-functions/fprintf.texi (fprintf): Document it.
52448         * doc/posix-functions/printf.texi (printf): Likewise.
52449         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52450         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52452         closein-tests: convert to init.sh
52453         * modules/closein-tests (Files): Add init.sh
52454         * tests/test-closein.sh Use it.
52456         yesno-tests: convert to init.sh
52457         * modules/yesno-tests (Files): Add init.sh.
52458         * tests/test-yesno.sh: Use it.
52460         atexit-tests: ensure reliable exit status
52461         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
52462         Reported by Bruno Haible.
52464 2011-05-24  Bruno Haible  <bruno@clisp.org>
52466         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
52467         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
52468         gl_PREREQ_STRERROR_R invocations from here...
52469         * modules/strerror_r-posix (configure.ac): ... to here.
52471 2011-05-24  Eric Blake  <eblake@redhat.com>
52473         strerror_r: fix missing header
52474         * lib/strerror_r.c: Avoid compiler warning about snprintf.
52476         strerror_r: fix AIX test failures
52477         * lib/strerror_r.c (strerror_r): Convert silent truncation to
52478         ERANGE failure.
52480         strerror_r: fix Solaris test failures
52481         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
52482         failures.
52483         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
52485         strerror_r: enforce POSIX recommendations
52486         * lib/strerror_r.c (safe_copy): New helper method.
52487         (strerror_r): Guarantee a non-empty string.
52488         * tests/test-strerror_r.c (main): Enhance tests to incorporate
52489         recent POSIX rulings and to match our strerror guarantees.
52490         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
52492 2011-05-24  Jim Meyering  <meyering@redhat.com>
52494         test-perror2.c: avoid warning about unused variable
52495         * tests/test-perror2.c (main): Remove declaration of unused "fp".
52497 2011-05-24  Eric Blake  <eblake@redhat.com>
52499         perror: avoid spurious test failure on HP-UX
52500         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
52502         tests: fix logic bug in init.sh
52503         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
52504         shell.
52506 2011-05-24  Jim Meyering  <meyering@redhat.com>
52508         utimensat: do not reference an out-of-scope buffer
52509         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
52510         declared in an inner scope, yet "times" would be dereferenced outside
52511         the scope in which "ts" was valid.
52512         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
52513         of ts[2] "out/up", so that the use of aliased "times" (via
52514         "times = ts;") does not end up referencing an out-of-scope "ts"
52516         opendir-safer.c: don't clobber errno; don't close negative FD
52517         * lib/opendir-safer.c (opendir_safer):
52518         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
52519         file descriptor, and more importantly, don't clobber the
52520         offending errno value with EINVAL.  Before, upon failure
52521         of dup_safer, we would pass the negative file descriptor to
52522         fdopendir, which would clobber errno.
52524 2011-05-23  Bruno Haible  <bruno@clisp.org>
52526         idcache: Fix module description.
52527         * modules/idcache (Include): Set to "idcache.h".
52529 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
52531         gnulib-tool: fix portability problem with MacOS sed
52532         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
52533         before the "}".  Problem reported by Leo in
52534         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
52535         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
52536         sed_extract_condition1, sed_extract_condition2.
52538 2011-05-23  Bruno Haible  <bruno@clisp.org>
52540         hash: Simplify autoconf macro.
52541         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
52543 2011-05-23  Bruno Haible  <bruno@clisp.org>
52545         getugroups: Fix module description.
52546         * modules/getugroups (Include): Set to "getugroups.h".
52548 2011-05-23  Bruno Haible  <bruno@clisp.org>
52550         linkat: Simplify autoconf macro.
52551         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
52553 2011-05-23  Bruno Haible  <bruno@clisp.org>
52554             Eric Blake  <eblake@redhat.com>
52556         linkat, renameat: Update dependencies.
52557         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
52558         * modules/linkat (Depends-on): Likewise. Remove also readlink,
52559         symlinkat.
52561 2011-05-23  Jim Meyering  <meyering@redhat.com>
52563         maint.mk: more tight_scope improvements
52564         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
52565         (_gl_TS_headers): Define only in if-0'd block.
52566         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
52567         sometimes we must *not* use it.  Adjust uses accordingly.
52568         (sc_tight_scope): Use much simpler grep-based test to determine
52569         whether we skip this rule.
52571         maint.mk: generalize/improve the tight-scope rule
52572         * top/maint.mk: Emit a warning when the test is skipped.
52573         (_gl_TS_dir): Add $(srcdir)/ prefix.
52574         (_gl_TS_function_match): Simplify, rather than trying
52575         to enumerate common types.  Otherwise, it would fail to match an
52576         "extern unsigned char const *" declaration in idutils.
52577         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
52578         a way to support use of that type of macro.
52579         (_gl_TS_var_match): Simplify regexp.
52580         (_gl_TS_obj_files): New configurable variable.
52581         (_gl_TS_headers): Likewise.
52583 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52585         verify: fix bug when gnulib <assert.h> is also included
52586         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
52587         is defined, not if _GL_STATIC_ASSERT_H is not defined.
52588         Perhaps there's a better way, but this fixes the immediate problem.
52589         Problem reported by Bruno Haible in
52590         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
52592 2011-05-22  Bruno Haible  <bruno@clisp.org>
52594         xgetcwd: Simplify autoconf macro.
52595         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
52597 2011-05-22  Bruno Haible  <bruno@clisp.org>
52599         New module 'mktime-internal'.
52600         * modules/mktime-internal: New file.
52601         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
52602         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
52603         mktime_internal as a C macro if libc has __mktime_internal.
52604         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
52605         conditions.
52606         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
52608 2011-05-22  Bruno Haible  <bruno@clisp.org>
52610         timegm: Correct mktime replacement statements.
52611         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
52612         defining mktime as a C macro. This completes a 2009-07-28 commit.
52614 2011-05-22  Bruno Haible  <bruno@clisp.org>
52616         timegm: Simplify autoconf macro.
52617         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
52619 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
52621         clock-time: change to LGPLv2+.
52622         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
52623         BSD-like but we have no mark for that; this is good enough for now.
52625 2011-05-21  Bruno Haible  <bruno@clisp.org>
52627         strerror_r: Fix comments.
52628         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
52630 2011-05-21  Bruno Haible  <bruno@clisp.org>
52632         relocatable-prog-wrapper: Fix possible link error.
52633         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
52634         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
52635         (gl_FUNC_SETENV): ... to here.
52636         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
52637         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
52639 2011-05-21  Bruno Haible  <bruno@clisp.org>
52641         relocatable-prog-wrapper: Assume strerror() exists.
52642         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
52643         m4/strerror.m4.
52644         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
52645         * lib/relocwrapper.c: Remove mention of strerror module.
52646         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
52647         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
52648         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
52649         C macro.
52651 2011-05-21  Bruno Haible  <bruno@clisp.org>
52653         select: Simplify replacement idiom.
52654         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
52655         Win32 platforms.
52656         * lib/sys_select.in.h (select): Simplify accordingly.
52657         * modules/select (Depends-on): Likewise.
52659 2011-05-21  Bruno Haible  <bruno@clisp.org>
52661         mkdir-p: Simplify autoconf macro.
52662         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
52663         gl_FUNC_LCHOWN.
52665 2011-05-21  Eric Blake  <eblake@redhat.com>
52667         strerror_r: avoid clobbering strerror on cygwin
52668         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
52669         fall back instead to sys_errlist.
52670         * modules/strerror (configure.ac): Add witness.
52671         * tests/test-strerror_r.c (main): Enhance test.
52672         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52673         * tests/test-perror2.c (main): Free memory before exit.
52675 2011-05-21  Bruno Haible  <bruno@clisp.org>
52677         mkdtemp: Use gnulib naming conventions.
52678         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
52679         * modules/mkdtemp (configure.ac): Update.
52681 2011-05-20  Eric Blake  <eblake@redhat.com>
52683         strerror_r: avoid corrupting errno on Solaris
52684         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
52685         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52687         strerror_r: avoid compiler warning
52688         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
52690         strerror_r: simplify AIX code
52691         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
52693         test-perror: avoid spurious failure on FreeBSD
52694         * modules/perror-tests (Depends-on): Add strerror, now that
52695         strerror_r no longer pulls it in.
52697 2011-05-20  Bruno Haible  <bruno@clisp.org>
52699         strerror_r-posix: Remove unused dependencies.
52700         * modules/strerror_r-posix (Depends-on): Remove strerror.
52701         Reported by Eric Blake.
52703 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52705         intprops: remove assumption about A|B representation
52706         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
52707         is a valid integer if both A and B are.  Although this is true for
52708         all known practical hosts, the C standard doesn't guarantee it,
52709         and the code need not assume it.  Also, this change may work around
52710         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
52711         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
52713 2011-05-20  Eric Blake  <eblake@redhat.com>
52715         perror: work around FreeBSD bug
52716         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
52717         is broken.  Move AC_LIBOBJ...
52718         * modules/perror (configure.ac): Here.
52719         * doc/posix-functions/perror.texi (perror): Document this.
52720         * tests/test-perror2.c (main): Enhance test.
52722         test-perror: check for strerror interactions
52723         * tests/macros.h (STREQ): Add macro.
52724         * modules/perror-tests (Files): Add second test.
52725         * tests/test-perror2.c (main): New file.
52726         * doc/posix-functions/perror.texi (perror): Document glibc bug.
52728         test-perror: rewrite to use init script
52729         * modules/perror-tests (Files): Add init.sh.
52730         * tests/test-perror.sh: Use temporary directory.
52732 2011-05-20  Jim Meyering  <meyering@redhat.com>
52734         maint: replace misused "a" with "an"
52735         * doc/intprops.texi: "a integer"
52736         * doc/regex.texi: "a explanation"
52737         * lib/alignof.h: "a object"
52738         * lib/argmatch.h: "a explanation"
52739         * lib/argp-help.c: "a option" and "a OPTION_DOC"
52740         * lib/stdint.in.h: "a integer"
52741         * lib/userspec.c: "a owner"
52742         * doc/gnulib.texi: Fix "a idea", and reword.
52744 2011-05-19  Jim Meyering  <meyering@redhat.com>
52746         maint: correct misuse of "a" and "an"
52747         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
52748         * lib/argp-help.c: "an docum...": s/an/a/
52749         * lib/argp-parse.c: "An vector": s/An/A/
52750         * lib/execute.c: "an native": s/an/a/
52751         * lib/spawn-pipe.c: Likewise.
52752         * lib/gc.h: "an Gc_rc": s/an/a/
52753         * lib/unigbrk.in.h: "an grapheme": s/an/a/
52754         * lib/fts.c: "an stat.st_dev": s/an/a/
52756 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52758         intprops-tests: work around HP-UX 11.23 cc bug with constants
52759         * tests/test-intprops.c (VERIFY): New macro.
52760         (main): Use it, instead of verify, to work around the compiler bug; see
52761         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52763         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
52764         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
52765         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
52766         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
52767         (_GL_REMAINDER_OVERFLOW): Use it.
52769         intprops-tests: revert unsigned part of previous change
52770         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
52771         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
52772         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
52773         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
52775 2011-05-19  Bruno Haible  <bruno@clisp.org>
52777         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
52778         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
52779         strerror_r() returned without filling the buffer.
52780         Reported by Eric Blake.
52782 2011-05-19  Eric Blake  <eblake@redhat.com>
52784         strerror_r: guarantee unchanged errno
52785         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
52786         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
52787         failure.
52788         * tests/test-strerror_r.c (main): Enhance test.
52790 2011-05-19  Bruno Haible  <bruno@clisp.org>
52792         strerror_r: Reorder #if blocks.
52793         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
52794         for consistency with the previous commit.
52796 2011-05-19  Bruno Haible  <bruno@clisp.org>
52798         perror: Avoid clobbering the strerror buffer when possible.
52799         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
52800         * lib/strerror.c: Include it.
52801         * modules/strerror (Files): Add lib/strerror-impl.h.
52802         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
52803         (my_strerror): New function, defined through lib/strerror-impl.h.
52804         (perror): Use it instead of strerror.
52805         * modules/perror (Files): Add lib/strerror-impl.h.
52806         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
52808 2011-05-19  Eric Blake  <eblake@redhat.com>
52810         strerror_r: fix on newer cygwin
52811         * lib/strerror_r.c (strerror_r): Cygwin now has
52812         __xpg_strerror_r, use it.
52814 2011-05-19  Bruno Haible  <bruno@clisp.org>
52816         strerror_r: Avoid clobbering the strerror buffer when possible.
52817         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
52818         (sys_nerr, sys_errlist): New declarations.
52819         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
52820         HP-UX, native Win32, IRIX, and 32-bit Solaris.
52821         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
52823 2011-05-19  Bruno Haible  <bruno@clisp.org>
52825         strerror_r: Fix test failure on mingw.
52826         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
52827         EXTEND_STRERROR_R.
52828         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
52829         macros from errno.in.h instead.
52831 2011-05-19  Eric Blake  <eblake@redhat.com>
52833         strerror: relax test for Solaris
52834         * tests/test-strerror.c (main): Permit Solaris behavior.
52835         * tests/test-strerror_r.c (main): Likewise.
52837         strerror: enforce POSIX ruling on strerror(0)
52838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
52839         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52840         * lib/strerror_r.c (rpl_strerror_r): Work around it.
52841         * doc/posix-functions/strerror.texi (strerror): Document it.
52842         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
52843         * tests/test-strerror.c (main): Strengthen test.
52844         * tests/test-strerror_r.c (main): Likewise.
52846 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52848         intprop-tests: port to older and more-pedantic compilers
52849         * modules/intprops-tests (Files): Add tests/macros.h.
52850         * tests/test-intprops.c: Include macros.h.
52851         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
52852         it's no longer documented to expand to an integer constant expression.
52853         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
52854         argument is floating point, as it's no longer documented to expand
52855         to an integer constant expression in that case.
52856         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
52857         compiler bugs reported by Bruno Haible.  See
52858         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52859         (U0, U1): New constants, to work around the same bugs.  Also,
52860         in tests, use e.g., "(unsigned int) 39" rather than "39u".
52862         intprops: work around C compiler bugs
52863         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
52864         bug in Sun C 5.11 2010/08/13 and other compilers; see
52865         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52867         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
52868         * doc/intprops.texi (Integer Type Determination): Fix
52869         documentation for TYPE_IS_INTEGER: it returns an constant
52870         expression, not an integer constant expression.  Fix doc for
52871         TYPE_SIGNED: it returns an integer constant expression only if its
52872         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
52873         hardly worth documented that way....)
52875 2011-05-18  Bruno Haible  <bruno@clisp.org>
52877         strerror_r: Avoid clobbering the strerror buffer when possible.
52878         * lib/strerror_r.c (strerror_r): Merge the three implementations.
52879         Handle gnulib defined errno values here. When strerror() returns NULL
52880         or an empty string, return EINVAL.
52881         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
52882         gnulib defined errno values here.
52883         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
52885 2011-05-18  Eric Blake  <eblake@redhat.com>
52887         fnmatch: avoid compiler warning
52888         * lib/fnmatch_loop.c (FCT): Use correct type.
52889         Reported by Matthias Bolte.
52891 2011-05-13  Jim Meyering  <meyering@redhat.com>
52893         maint.mk: three new prohibit_<HDR>_without_use rules
52894         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52895         (sc_prohibit_stdio-safer_without_use): Likewise.
52896         (sc_prohibit_xfreopen_without_use): Likewise.
52898 2011-05-17  Jim Meyering  <meyering@redhat.com>
52900         announce-gen: fail if the NEWS delta is empty
52901         If there's nothing noteworthy in NEWS, then either you forgot
52902         or you shouldn't be releasing.
52903         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52905 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52907         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52908         reserved symbols starting with double underscore from the check.
52910 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52912         intprops: add doc
52913         * doc/intprops.texi: New file, documenting intprops.
52914         * doc/gnulib.texi (Particular Modules): Include it.
52916         verify: add doc to gnulib manual and fix example
52917         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52918         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52919         (Compile-time Assertions): Fix example so it can't overflow.
52921 2011-05-17  Jim Meyering  <meyering@redhat.com>
52923         warnings.m4: don't usurp save_CPPFLAGS variable name
52924         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52926         doc: fix typo
52927         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52929 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52930             Bruno Haible  <bruno@clisp.org>
52932         doc: Tweak recent change.
52933         * README (Portability guidelines): Tweak new text.
52934         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52935         Interix 6.1.
52937 2011-05-16  Eric Blake  <eblake@redhat.com>
52939         inttypes: avoid autoconf warning
52940         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52941         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52943 2011-05-16  Sam Steingold  <sds@gnu.org>
52944         and Eric Blake  <eblake@redhat.com>
52946         vc-list-files: accept multiple directory operands
52947         * build-aux/vc-list-files: Iterate over all remaining operands.
52949 2011-05-16  Bruno Haible  <bruno@clisp.org>
52951         Fix confusion regarding deprecated modules.
52952         * modules/calloc (Status, Notice): Mark module as deprecated, not
52953         obsolete.
52954         * modules/fnmatch-posix (Status, Notice): Likewise.
52955         * modules/getdate (Status, Notice): Likewise.
52956         * modules/getopt (Status, Notice): Likewise.
52957         * modules/malloc (Status, Notice): Likewise.
52958         * modules/pipe (Status, Notice): Likewise.
52959         * modules/realloc (Status, Notice): Likewise.
52960         * modules/rename-dest-slash (Status, Notice): Likewise.
52961         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52962         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52963         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52964         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52965         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52967 2011-05-16  Bruno Haible  <bruno@clisp.org>
52969         doc: List the target platforms.
52970         * doc/gnulib-intro.texi (Target Platforms): New section.
52971         * doc/gnulib.texi (Introduction): Update menu.
52972         * README (Portability guidelines): Refer to the new section. Update
52973         statement about oldest supported environment. Remove rationale why
52974         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52975         unportable C89 function.
52976         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52977         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52979 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52981         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52983 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52985         intprops-tests: new module
52986         * modules/intprops-tests, tests/test-intprops.c: New files.
52988         intprops: add safe, portable integer overflow checking
52989         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52990         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52991         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52992         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52993         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52994         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52995         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52996         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52997         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52998         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52999         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
53001 2011-05-12  James Youngman  <jay@gnu.org>
53003         Add a test for glibc's Bugzilla bug #12378.
53004         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
53005         doesn't allow the literal matching of a lone "[" (which is
53006         required by POSIX).
53007         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
53009 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
53011         Sync glibc change fixing Bugzilla bug #12378.
53012         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
53013         beginning and fall back to matching as normal character if the
53014         string ends before the matching ']' is found.  This is what POSIX
53015         requires.
53017 2011-05-13  Eric Blake  <eblake@redhat.com>
53019         getcwd-lgpl: relax test for FreeBSD
53020         * doc/posix-functions/getcwd.texi (getcwd): Document portability
53021         issue.
53022         * tests/test-getcwd-lgpl.c (main): Relax test.
53023         Reported by Matthias Bolte.
53025 2011-05-11  Eric Blake  <eblake@redhat.com>
53027         test-fflush: silence compiler warning
53028         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
53030 2011-05-11  Bruno Haible  <bruno@clisp.org>
53032         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
53033         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
53034         * modules/canonicalize (Depends-on): Add 'nocrash'.
53035         * modules/canonicalize-lgpl (Depends-on): Likewise.
53036         * doc/posix-functions/realpath.texi: Update platforms list.
53037         Reported by Ryan Schmidt <ryandesign@macports.org>.
53039 2011-05-11  Bruno Haible  <bruno@clisp.org>
53041         group-member: Declare function in <unistd.h>.
53042         * lib/unistd.in.h (group_member): New declaration.
53043         * lib/group-member.h: Remove file.
53044         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
53045         * tests/test-unistd-c++.cc: Check signature of group_member.
53046         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
53047         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
53048         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
53049         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
53050         HAVE_GROUP_MEMBER.
53051         * modules/group-member (Files): Remove lib/group-member.h.
53052         (Depends-on): Add unistd. Specify conditions.
53053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53054         (Include): Change to <unistd.h>.
53055         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
53056         HAVE_GROUP_MEMBER.
53057         * NEWS: Mention the change.
53058         * lib/euidaccess.c: Don't include group-member.h.
53060 2011-05-11  Bruno Haible  <bruno@clisp.org>
53062         group-member: Document module.
53063         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
53064         module.
53066 2011-05-11  Bruno Haible  <bruno@clisp.org>
53068         fclose: Fix mistake earlier today.
53069         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
53071 2011-05-11  Eric Blake  <eblake@redhat.com>
53073         fclose: preserve fflush errors
53074         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
53075         Reported by Jim Meyering.
53077         bootstrap: support a prereq of 'rpcgen -' on RHEL5
53078         * build-aux/bootstrap (check_versions): When no specific version
53079         is required, merely check that the app produces an exit status
53080         that indicates its existence.
53082         maint.mk: drop redundant check
53083         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
53084         the same but better.
53086 2011-05-11  Bruno Haible  <bruno@clisp.org>
53088         fclose: Fix possible link error.
53089         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
53090         unregister_shadow_fd. Improve comments.
53091         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
53092         Eric Blake.
53094 2011-05-11  Jim Meyering  <meyering@redhat.com>
53096         maint.mk: improve "can not" detection and generalize rule name
53097         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
53098         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
53099         Use the same technique as in sc_prohibit_doubled_word, so that
53100         we recognize "can not" also when the words are separated by a newline.
53101         Suggested by Eric Blake.
53102         (perl_filename_lineno_text_): Define.  Factored out of...
53103         (prohibit_doubled_word_): ...here.  Use the new definition.
53104         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
53105         (prohibit_undesirable_word_seq_RE_): New overridable variable.
53106         (ignore_undesirable_word_sequence_RE_): New overridable variable.
53108 2011-05-10  Eric Blake  <eblake@redhat.com>
53110         fclose: avoid double close race when possible
53111         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
53112         all but WINDOWS_SOCKETS.
53114 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
53116         openat: correct new comment
53117         * lib/openat-proc.c (openat_proc_name): Correct the comment.
53119 2011-05-10  Jim Meyering  <meyering@redhat.com>
53121         openat: add comments
53122         * lib/openat-proc.c (openat_proc_name): Add comments,
53123         mostly from Eric Blake.
53125 2011-05-09  Eric Blake  <eblake@redhat.com>
53127         openat: reduce syscalls in first probe of /proc
53128         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
53129         be a directory.  Simplify the probe for .. bugs.
53130         * modules/openat (Depends-on): Drop same-inode.
53131         Reported by Bastien ROUCARIES.
53133 2011-05-09  Jim Meyering  <meyering@redhat.com>
53135         maint.mk: change semantics/name of tight_scope variables
53136         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
53137         Rename variables to align with semantics that make them more useful.
53139         maint.mk: tweak new rule's name not to impinge
53140         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
53141         (sc_tight_scope): Use new rule name rather than $@-0.
53143         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
53144         * top/maint.mk (sc_tight_scope): New rule.
53145         (sc_tight_scope-0): New rule, ifdef'd out.
53146         (_gl_TS_dir): Default.
53147         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
53148         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
53150 2011-05-09  Simon Josefsson  <simon@josefsson.org>
53152         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
53153         Haible <bruno@clisp.org>.
53155 2011-05-08  Bruno Haible  <bruno@clisp.org>
53157         Comments.
53158         * m4/isnanf.m4: Add comment.
53159         * m4/isnanl.m4: Likewise.
53161 2011-05-08  Bruno Haible  <bruno@clisp.org>
53163         glob: Remove obsolete macro.
53164         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
53166 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
53168         intprops: Sun C 5.11 supports __typeof__
53169         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
53170         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
53171         which is new.
53172         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
53174         intprops: switch to usual gnulib indenting and naming
53175         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
53176         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
53178         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
53180 2011-05-08  Jim Meyering  <meyering@redhat.com>
53182         maint.mk: suppress "Entering/Leaving directory" diag in announcement
53183         * top/maint.mk (release-prep): Use make's --no-print-directory
53184         option when generating the announcement.  This eliminates the
53185         pesky "make[2]: Entering/Leaving directory" diagnostics in the
53186         generated announcement template.
53188 2011-05-08  Bruno Haible  <bruno@clisp.org>
53190         tzset: Fix gettimeofday wrapper on Solaris 2.6.
53191         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
53192         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
53194 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
53196         ignore-value, verify: Omit include files from lib_SOURCES.
53197         * modules/ignore-value, modules/verify (Makefile.am):
53198         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
53199         that leads Automake to duplicate use of am__objects_... variables
53200         in Makefile.in.  See
53201         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
53203 2011-05-07  Bruno Haible  <bruno@clisp.org>
53205         fclose: Simplify autoconf macro.
53206         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
53207         defined.
53209 2011-05-07  Bruno Haible  <bruno@clisp.org>
53211         canonicalize-lgpl: Fix autoconf macro ordering bug.
53212         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
53213         gl_STDLIB_H_DEFAULTS.
53215 2011-05-06  Eric Blake  <eblake@redhat.com>
53217         maintainer-makefile: make sc_po_check easier to tune
53218         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
53219         to probe for strings, such as an alternate location for gnulib.
53221         fclose: guarantee behavior on seekable stdin
53222         * modules/fclose (Depends-on): Add fflush.
53223         * doc/posix-functions/fclose.texi (fclose): Document this.
53224         * tests/test-fclose.c (main): Make test for this unconditional.
53226 2011-05-06  Bruno Haible  <bruno@clisp.org>
53228         fflush, fpurge: Relicense under LGPLv2+.
53229         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
53230         * modules/fpurge (License): Likewise.
53231         With permission from Eric Blake and Jim Meyering.
53232         Suggested by Eric Blake.
53234 2011-05-06  Karl Berry  <karl@gnu.org>
53236         * MODULES.html.sh (func_all_modules): remove exit.
53238 2011-05-06  Jim Meyering  <meyering@redhat.com>
53240         maint.mk: use info-gnu@ as the default only for a stable release
53241         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
53242         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
53243         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
53244         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
53246 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53248         assert-h: new module, which supports C1X-style static_assert
53249         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
53250         * lib/verify.h: Revamp so that this can be copied into assert.h,
53251         while retaining the ability to use it standalone as before.
53252         Rename private identifiers so as not to encroach on the
53253         standard C namespace, since this is now used by assert.h.
53254         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
53255         the old verify_true.
53256         (_GL_VERIFY_TRUE): New macro, with much of the contents of
53257         the old verify_true.  Use _GL_VERIFY_TYPE.
53258         (_GL_VERIFY): New macro, with much of the contents of the old verify.
53259         (static_assert): New macro, if _GL_STATIC_ASSERT_H
53260         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
53261         defined when this file is copied into the replacement assert.h.
53262         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
53263         and _Static_assert is not built in.
53264         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
53265         defined, and use the new macros mentioned above.
53266         * doc/posix-headers/assert.texi: Document this.
53268 2011-05-05  Bruno Haible  <bruno@clisp.org>
53270         fclose, fflush: Respect rules for use of AC_LIBOBJ.
53271         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
53272         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
53273         gl_REPLACE_FCLOSE here.
53274         * modules/fflush (Depends-on): Remove fclose.
53275         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
53276         combination with module 'fclose'.
53278 2011-05-05  Bruno Haible  <bruno@clisp.org>
53280         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
53281         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
53282         gl_FUNC_FFLUSH.
53283         (gl_FUNC_FFLUSH): Use it.
53284         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
53285         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
53286         gl_REPLACE_FSEEKO here.
53288 2011-05-05  Bruno Haible  <bruno@clisp.org>
53290         tzset: Relicense under LGPL.
53291         * modules/tzset (License): Change to LGPL.
53292         No agreement needed; it's a no-op.
53294         strtoimax, strtoumax: Relicense under LGPL.
53295         * modules/strtoimax (License): Change to LGPL.
53296         * modules/strtoumax (License): Likewise.
53297         With permission from Jim Meyering, Paul Eggert:
53298         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
53299         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
53301         getgroups: Relicense under LGPL.
53302         * modules/getgroups (License): Change to LGPL.
53303         With permission from Jim Meyering, Paul Eggert, Eric Blake:
53304         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
53305         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
53306         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53308         nanosleep: Relicense under LGPL.
53309         * modules/nanosleep (License): Change to LGPL.
53310         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
53311         Haible:
53312         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
53313         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
53314         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53315         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
53317         futimens: Relicense under LGPL.
53318         * modules/futimens (License): Change to LGPL.
53319         With permission from Eric Blake:
53320         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53322         fflush: Relicense under LGPL.
53323         * modules/fflush (License): Change to LGPL.
53324         With permission from Eric Blake, Bruno Haible, Jim Meyering:
53325         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
53326         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
53327         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
53329         tmpfile: Relicense under LGPL.
53330         * modules/tmpfile (License): Change to LGPL.
53331         With permission from Ben Pfaff:
53332         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
53334         isfinite: Relicense under LGPL.
53335         * modules/isfinite (License): Change to LGPL.
53336         With permission from Ben Pfaff, Bruno Haible:
53337         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
53338         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
53340         acosl..tanl: Relicense under LGPL.
53341         * modules/acosl (License): Change to LGPL.
53342         * modules/asinl (License): Likewise.
53343         * modules/atanl (License): Likewise.
53344         * modules/cosl (License): Likewise.
53345         * modules/expl (License): Likewise.
53346         * modules/logl (License): Likewise.
53347         * modules/sinl (License): Likewise.
53348         * modules/sqrtl (License): Likewise.
53349         * modules/tanl (License): Likewise.
53350         Source code originally from glibc and Paolo Bonzini. Agreements:
53351         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
53352         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
53354 2011-05-05  Bruno Haible  <bruno@clisp.org>
53356         signal: Define sighandler_t.
53357         * lib/signal.in.h (sighandler_t): New type.
53358         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
53359         whether sighandler_t is defined.
53360         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
53361         * modules/signal (Depends-on): Add extensions.
53362         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
53363         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
53364         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
53366 2011-05-05  Eric Blake  <eblake@redhat.com>
53368         maint: remove useless REPLACE_*_H macros
53369         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
53370         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
53371         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
53372         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
53373         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
53374         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
53375         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
53376         * m4/btowc.m4: Update callers.
53377         * m4/dirfd.m4: Likewise.
53378         * m4/duplocale.m4: Likewise.
53379         * m4/fchdir.m4: Likewise.
53380         * m4/fdopendir.m4: Likewise.
53381         * m4/inet_ntop.m4: Likewise.
53382         * m4/inet_pton.m4: Likewise.
53383         * m4/ioctl.m4: Likewise.
53384         * m4/mbrlen.m4: Likewise.
53385         * m4/mbrtowc.m4: Likewise.
53386         * m4/mbsinit.m4: Likewise.
53387         * m4/mbsnrtowcs.m4: Likewise.
53388         * m4/mbsrtowcs.m4: Likewise.
53389         * m4/poll.m4: Likewise.
53390         * m4/setlocale.m4: Likewise.
53391         * m4/wcrtomb.m4: Likewise.
53392         * m4/wcsnrtombs.m4: Likewise.
53393         * m4/wcsrtombs.m4: Likewise.
53394         * m4/wctob.m4: Likewise.
53395         * m4/wcwidth.m4: Likewise.
53396         * modules/posix_spawn: Likewise.
53397         * modules/posix_spawn_file_actions_addclose: Likewise.
53398         * modules/posix_spawn_file_actions_adddup2: Likewise.
53399         * modules/posix_spawn_file_actions_addopen: Likewise.
53400         * modules/posix_spawn_file_actions_destroy: Likewise.
53401         * modules/posix_spawn_file_actions_init: Likewise.
53402         * modules/posix_spawnattr_destroy: Likewise.
53403         * modules/posix_spawnattr_getflags: Likewise.
53404         * modules/posix_spawnattr_getpgroup: Likewise.
53405         * modules/posix_spawnattr_getschedparam: Likewise.
53406         * modules/posix_spawnattr_getschedpolicy: Likewise.
53407         * modules/posix_spawnattr_getsigdefault: Likewise.
53408         * modules/posix_spawnattr_getsigmask: Likewise.
53409         * modules/posix_spawnattr_init: Likewise.
53410         * modules/posix_spawnattr_setflags: Likewise.
53411         * modules/posix_spawnattr_setpgroup: Likewise.
53412         * modules/posix_spawnattr_setschedparam: Likewise.
53413         * modules/posix_spawnattr_setschedpolicy: Likewise.
53414         * modules/posix_spawnattr_setsigdefault: Likewise.
53415         * modules/posix_spawnattr_setsigmask: Likewise.
53416         * modules/posix_spawnp: Likewise.
53418 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
53420         Add option to do-release-commit-and-tag to specify branch.
53421         * build-aux/do-release-commit-and-tag: Add --branch.
53423 2011-05-03  Bruno Haible  <bruno@clisp.org>
53425         Avoid unnecessary compilation units, through conditional dependencies.
53426         * modules/accept (Depends-on): Add conditions to the dependencies.
53427         * modules/acosl (Depends-on): Likewise.
53428         * modules/argz (Depends-on): Likewise.
53429         * modules/asinl (Depends-on): Likewise.
53430         * modules/atanl (Depends-on): Likewise.
53431         * modules/atoll (Depends-on): Likewise.
53432         * modules/bind (Depends-on): Likewise.
53433         * modules/btowc (Depends-on): Likewise.
53434         * modules/canonicalize-lgpl (Depends-on): Likewise.
53435         * modules/ceil (Depends-on): Likewise.
53436         * modules/ceilf (Depends-on): Likewise.
53437         * modules/ceill (Depends-on): Likewise.
53438         * modules/chdir-long (Depends-on): Likewise.
53439         * modules/chown (Depends-on): Likewise.
53440         * modules/close (Depends-on): Likewise.
53441         * modules/connect (Depends-on): Likewise.
53442         * modules/cosl (Depends-on): Likewise.
53443         * modules/dirfd (Depends-on): Likewise.
53444         * modules/dprintf (Depends-on): Likewise.
53445         * modules/dprintf-posix (Depends-on): Likewise.
53446         * modules/error (Depends-on): Likewise.
53447         * modules/euidaccess (Depends-on): Likewise.
53448         * modules/expl (Depends-on): Likewise.
53449         * modules/faccessat (Depends-on): Likewise.
53450         * modules/fchdir (Depends-on): Likewise.
53451         * modules/fclose (Depends-on): Likewise.
53452         * modules/fcntl (Depends-on): Likewise.
53453         * modules/fdopendir (Depends-on): Likewise.
53454         * modules/fflush (Depends-on): Likewise.
53455         * modules/floor (Depends-on): Likewise.
53456         * modules/floorf (Depends-on): Likewise.
53457         * modules/floorl (Depends-on): Likewise.
53458         * modules/fnmatch (Depends-on): Likewise.
53459         * modules/fopen (Depends-on): Likewise.
53460         * modules/fprintf-posix (Depends-on): Likewise.
53461         * modules/frexp (Depends-on): Likewise.
53462         * modules/frexp-nolibm (Depends-on): Likewise.
53463         * modules/frexpl (Depends-on): Likewise.
53464         * modules/frexpl-nolibm (Depends-on): Likewise.
53465         * modules/fseek (Depends-on): Likewise.
53466         * modules/fsusage (Depends-on): Likewise.
53467         * modules/ftell (Depends-on): Likewise.
53468         * modules/ftello (Depends-on): Likewise.
53469         * modules/futimens (Depends-on): Likewise.
53470         * modules/getcwd (Depends-on): Likewise.
53471         * modules/getcwd-lgpl (Depends-on): Likewise.
53472         * modules/getdelim (Depends-on): Likewise.
53473         * modules/getdomainname (Depends-on): Likewise.
53474         * modules/getgroups (Depends-on): Likewise.
53475         * modules/gethostname (Depends-on): Likewise.
53476         * modules/getline (Depends-on): Likewise.
53477         * modules/getlogin_r (Depends-on): Likewise.
53478         * modules/getopt-posix (Depends-on): Likewise.
53479         * modules/getpeername (Depends-on): Likewise.
53480         * modules/getsockname (Depends-on): Likewise.
53481         * modules/getsockopt (Depends-on): Likewise.
53482         * modules/getsubopt (Depends-on): Likewise.
53483         * modules/getusershell (Depends-on): Likewise.
53484         * modules/glob (Depends-on): Likewise.
53485         * modules/grantpt (Depends-on): Likewise.
53486         * modules/iconv_open (Depends-on): Likewise.
53487         * modules/iconv_open-utf (Depends-on): Likewise.
53488         * modules/inet_ntop (Depends-on): Likewise.
53489         * modules/inet_pton (Depends-on): Likewise.
53490         * modules/ioctl (Depends-on): Likewise.
53491         * modules/isapipe (Depends-on): Likewise.
53492         * modules/isfinite (Depends-on): Likewise.
53493         * modules/isinf (Depends-on): Likewise.
53494         * modules/lchown (Depends-on): Likewise.
53495         * modules/ldexpl (Depends-on): Likewise.
53496         * modules/link (Depends-on): Likewise.
53497         * modules/linkat (Depends-on): Likewise.
53498         * modules/listen (Depends-on): Likewise.
53499         * modules/logl (Depends-on): Likewise.
53500         * modules/lstat (Depends-on): Likewise.
53501         * modules/mbrlen (Depends-on): Likewise.
53502         * modules/mbrtowc (Depends-on): Likewise.
53503         * modules/mbsinit (Depends-on): Likewise.
53504         * modules/mbsnrtowcs (Depends-on): Likewise.
53505         * modules/mbsrtowcs (Depends-on): Likewise.
53506         * modules/mbtowc (Depends-on): Likewise.
53507         * modules/memcmp (Depends-on): Likewise.
53508         * modules/mkdir (Depends-on): Likewise.
53509         * modules/mkdtemp (Depends-on): Likewise.
53510         * modules/mkfifo (Depends-on): Likewise.
53511         * modules/mkfifoat (Depends-on): Likewise.
53512         * modules/mknod (Depends-on): Likewise.
53513         * modules/mkostemp (Depends-on): Likewise.
53514         * modules/mkostemps (Depends-on): Likewise.
53515         * modules/mkstemp (Depends-on): Likewise.
53516         * modules/mkstemps (Depends-on): Likewise.
53517         * modules/mktime (Depends-on): Likewise.
53518         * modules/nanosleep (Depends-on): Likewise.
53519         * modules/open (Depends-on): Likewise.
53520         * modules/openat (Depends-on): Likewise.
53521         * modules/perror (Depends-on): Likewise.
53522         * modules/poll (Depends-on): Likewise.
53523         * modules/popen (Depends-on): Likewise.
53524         * modules/posix_spawn (Depends-on): Likewise.
53525         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
53526         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53527         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53528         * modules/posix_spawnp (Depends-on): Likewise.
53529         * modules/pread (Depends-on): Likewise.
53530         * modules/printf-posix (Depends-on): Likewise.
53531         * modules/ptsname (Depends-on): Likewise.
53532         * modules/putenv (Depends-on): Likewise.
53533         * modules/pwrite (Depends-on): Likewise.
53534         * modules/readline (Depends-on): Likewise.
53535         * modules/readlink (Depends-on): Likewise.
53536         * modules/readlinkat (Depends-on): Likewise.
53537         * modules/recv (Depends-on): Likewise.
53538         * modules/recvfrom (Depends-on): Likewise.
53539         * modules/regex (Depends-on): Likewise.
53540         * modules/remove (Depends-on): Likewise.
53541         * modules/rename (Depends-on): Likewise.
53542         * modules/renameat (Depends-on): Likewise.
53543         * modules/rmdir (Depends-on): Likewise.
53544         * modules/round (Depends-on): Likewise.
53545         * modules/roundf (Depends-on): Likewise.
53546         * modules/roundl (Depends-on): Likewise.
53547         * modules/rpmatch (Depends-on): Likewise.
53548         * modules/select (Depends-on): Likewise.
53549         * modules/send (Depends-on): Likewise.
53550         * modules/sendto (Depends-on): Likewise.
53551         * modules/setenv (Depends-on): Likewise.
53552         * modules/setlocale (Depends-on): Likewise.
53553         * modules/setsockopt (Depends-on): Likewise.
53554         * modules/shutdown (Depends-on): Likewise.
53555         * modules/sigaction (Depends-on): Likewise.
53556         * modules/signbit (Depends-on): Likewise.
53557         * modules/sigprocmask (Depends-on): Likewise.
53558         * modules/sinl (Depends-on): Likewise.
53559         * modules/sleep (Depends-on): Likewise.
53560         * modules/snprintf (Depends-on): Likewise.
53561         * modules/snprintf-posix (Depends-on): Likewise.
53562         * modules/socket (Depends-on): Likewise.
53563         * modules/sprintf-posix (Depends-on): Likewise.
53564         * modules/sqrtl (Depends-on): Likewise.
53565         * modules/stat (Depends-on): Likewise.
53566         * modules/strchrnul (Depends-on): Likewise.
53567         * modules/strdup-posix (Depends-on): Likewise.
53568         * modules/strerror (Depends-on): Likewise.
53569         * modules/strerror_r-posix (Depends-on): Likewise.
53570         * modules/strndup (Depends-on): Likewise.
53571         * modules/strnlen (Depends-on): Likewise.
53572         * modules/strptime (Depends-on): Likewise.
53573         * modules/strsep (Depends-on): Likewise.
53574         * modules/strsignal (Depends-on): Likewise.
53575         * modules/strstr-simple (Depends-on): Likewise.
53576         * modules/strtod (Depends-on): Likewise.
53577         * modules/strtoimax (Depends-on): Likewise.
53578         * modules/strtok_r (Depends-on): Likewise.
53579         * modules/strtoumax (Depends-on): Likewise.
53580         * modules/symlink (Depends-on): Likewise.
53581         * modules/symlinkat (Depends-on): Likewise.
53582         * modules/tanl (Depends-on): Likewise.
53583         * modules/tcgetsid (Depends-on): Likewise.
53584         * modules/tmpfile (Depends-on): Likewise.
53585         * modules/trunc (Depends-on): Likewise.
53586         * modules/truncf (Depends-on): Likewise.
53587         * modules/truncl (Depends-on): Likewise.
53588         * modules/uname (Depends-on): Likewise.
53589         * modules/unlink (Depends-on): Likewise.
53590         * modules/unlockpt (Depends-on): Likewise.
53591         * modules/unsetenv (Depends-on): Likewise.
53592         * modules/usleep (Depends-on): Likewise.
53593         * modules/utimensat (Depends-on): Likewise.
53594         * modules/vasprintf (Depends-on): Likewise.
53595         * modules/vdprintf (Depends-on): Likewise.
53596         * modules/vdprintf-posix (Depends-on): Likewise.
53597         * modules/vfprintf-posix (Depends-on): Likewise.
53598         * modules/vprintf-posix (Depends-on): Likewise.
53599         * modules/vsnprintf (Depends-on): Likewise.
53600         * modules/vsnprintf-posix (Depends-on): Likewise.
53601         * modules/vsprintf-posix (Depends-on): Likewise.
53602         * modules/wcrtomb (Depends-on): Likewise.
53603         * modules/wcscasecmp (Depends-on): Likewise.
53604         * modules/wcscspn (Depends-on): Likewise.
53605         * modules/wcsdup (Depends-on): Likewise.
53606         * modules/wcsncasecmp (Depends-on): Likewise.
53607         * modules/wcsnrtombs (Depends-on): Likewise.
53608         * modules/wcspbrk (Depends-on): Likewise.
53609         * modules/wcsrtombs (Depends-on): Likewise.
53610         * modules/wcsspn (Depends-on): Likewise.
53611         * modules/wcsstr (Depends-on): Likewise.
53612         * modules/wcstok (Depends-on): Likewise.
53613         * modules/wcswidth (Depends-on): Likewise.
53614         * modules/wctob (Depends-on): Likewise.
53615         * modules/wctomb (Depends-on): Likewise.
53616         * modules/wctype (Depends-on): Likewise.
53617         * modules/wcwidth (Depends-on): Likewise.
53618         * modules/write (Depends-on): Likewise.
53620 2011-05-03  Bruno Haible  <bruno@clisp.org>
53622         Support for conditional dependencies.
53623         * doc/gnulib.texi (Module description): Document the syntax of
53624         conditional dependencies.
53625         * gnulib-tool: New option --conditional-dependencies.
53626         (func_usage): Document it.
53627         (cond_dependencies): New variable.
53628         (func_get_automake_snippet_conditional,
53629         func_get_automake_snippet_unconditional): New functions, extracted from
53630         func_get_automake_snippet.
53631         (func_get_automake_snippet): Use them.
53632         (sed_first_32_chars): New variable.
53633         (func_module_shellfunc_name): New function.
53634         (func_module_shellvar_name): New function.
53635         (func_module_conditional_name): New function.
53636         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
53637         func_cond_module_condition): New functions.
53638         (func_modules_transitive_closure): Add support for conditional
53639         dependencies.
53640         (func_emit_lib_Makefile_am): For a conditional module, enclose the
53641         conditional automake snippet in an automake conditional.
53642         (func_emit_autoconf_snippets): Emit shell functions that contain the
53643         code for conditional modules.
53644         (func_import, func_create_testdir): Update specification.
53646 2011-05-03  Eric Blake  <eblake@redhat.com>
53648         test-getaddrinfo: report error information
53649         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
53651 2011-05-03  Jim Meyering  <meyering@redhat.com>
53653         bootstrap: avoid build failure when $GZIP is set
53654         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
53655         program name.  If defined at all, it is supposed to list gzip options.
53656         Reported by Alan Curry in http://debbugs.gnu.org/8609
53658 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
53660         readme-release: new module with release instructions
53661         * modules/readme-release: New module.
53662         * top/README-release: New file, from coreutils, grep, diffutils.
53663         * MODULES.html.sh (Support for maintaining and releasing): Add it.
53665 2011-05-02  Eric Blake  <eblake@redhat.com>
53667         fflush: also replace fclose when fixing fflush
53668         * modules/fflush (Depends-on): Add fclose.
53669         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
53670         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
53671         memstreams with no backing fd.
53672         * doc/posix-functions/fclose.texi (fclose): Document the use of
53673         fflush module to fix the bug.
53674         * tests/test-fclose.c (main): Relax test when fclose is used in
53675         isolation.
53677         fclose: add some tests
53678         * modules/fclose-tests: New test module.
53679         * tests/test-fclose.c: New file.
53680         * doc/posix-functions/fclose.texi (fclose): Document the bug.
53682         fclose: reduced dependencies
53683         * modules/fclose (Depends-on): Switch from fflush/fseeko to
53684         simpler lseek.
53685         * lib/fclose.c (rpl_fclose): Likewise.
53686         Reported by Simon Josefsson.
53688         exit: drop remaining clients
53689         * modules/argmatch (Depends-on): Replace exit with stdlib.
53690         * modules/copy-file (Depends-on): Likewise.
53691         * modules/execute (Depends-on): Likewise.
53692         * modules/exitfail (Depends-on): Likewise.
53693         * modules/obstack (Depends-on): Likewise.
53694         * modules/pagealign_alloc (Depends-on): Likewise.
53695         * modules/pipe-filter-gi (Depends-on): Likewise.
53696         * modules/pipe-filter-ii (Depends-on): Likewise.
53697         * modules/savewd (Depends-on): Likewise.
53698         * modules/spawn-pipe (Depends-on): Likewise.
53699         * modules/wait-process (Depends-on): Likewise.
53700         * modules/xsetenv (Depends-on): Likewise.
53701         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
53702         * modules/git-merge-changelog (Depends-on): Likewise.
53703         * modules/long-options (Depends-on): Likewise.
53704         * modules/pt_chown (Depends-on): Likewise.
53705         * modules/sysexits (Depends-on): Likewise.
53707         freading: relax license from LGPLv3+ to LGPLv2+
53708         * modules/freading (License): Relax LGPL version.
53710 2011-05-02  Bruno Haible  <bruno@clisp.org>
53712         fchdir: Remove unused dependencies.
53713         * modules/fchdir (Depends-on): Remove include_next.
53715 2011-05-02  Bruno Haible  <bruno@clisp.org>
53717         gnulib-tool: Refactor.
53718         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
53719         from func_emit_autoconf_snippets.
53720         (func_emit_autoconf_snippets): Use it.
53722 2011-05-02  Simon Josefsson  <simon@josefsson.org>
53724         * NEWS: Document removal of 'exit'.
53725         * modules/exit: Remove file.
53727 2011-05-01  Bruno Haible  <bruno@clisp.org>
53729         Update DEPENDENCIES.
53730         * DEPENDENCIES (gettext): Recommend the newest release.
53731         Reported by Simon Josefsson.
53733 2011-05-01  Bruno Haible  <bruno@clisp.org>
53735         gnulib-tool: Reduce code duplication.
53736         * gnulib-tool (func_emit_autoconf_snippets): New function.
53737         (func_import, func_create_testdir): Use it.
53739 2011-04-30  Eric Blake  <eblake@redhat.com>
53741         fclose: don't fail on non-seekable input stream
53742         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
53743         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
53744         since fflush is allowed to fail in that case.
53746 2011-04-30  Bruno Haible  <bruno@clisp.org>
53748         dup3: cleanup
53749         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
53751 2011-04-30  Bruno Haible  <bruno@clisp.org>
53753         netdb: Make it work in C++ mode.
53754         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
53755         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
53756         module.
53757         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
53758         gl_MODULE_INDICATOR_FOR_TESTS.
53759         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
53760         * modules/netdb-c++-tests: New file.
53761         * tests/test-netdb-c++.cc: New file.
53763 2011-04-30  Bruno Haible  <bruno@clisp.org>
53765         New modules 'vfscanf', 'vscanf'.
53766         * modules/vfscanf: New file.
53767         * modules/vscanf: New file.
53768         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
53769         here.
53770         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
53771         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
53773 2011-04-30  Bruno Haible  <bruno@clisp.org>
53775         passfd: Add comments.
53776         * lib/passfd.c: Add comments about platforms.
53778 2011-04-30  Bruno Haible  <bruno@clisp.org>
53780         sys_uio: Make <sys/uio.h> self-contained.
53781         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
53782         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
53784 2011-04-30  Bruno Haible  <bruno@clisp.org>
53786         sys_socket: Ensure 'struct iovec' definition.
53787         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
53788         <sys/socket.h>.
53789         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
53791 2011-04-30  Bruno Haible  <bruno@clisp.org>
53793         sys_uio: Protect definition of 'struct iovec'.
53794         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
53795         it as a C struct.
53797 2011-04-30  Bruno Haible  <bruno@clisp.org>
53799         manywarnings: fix indentation
53800         * m4/manywarnings.m4: Indent by 2 spaces consistently.
53802 2011-04-30  Pádraig Brady  <P@draigBrady.com>
53804         manywarnings: add -Wno-missing-field-initializers if needed.
53805         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
53806         option if it's needed to allow initialization with { 0, }
53808 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
53810         announce-gen: cosmetic improvement
53811         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
53813 2011-04-29  Jim Meyering  <meyering@redhat.com>
53815         vc-list-files: indent with spaces, not TABs
53816         * build-aux/vc-list-files: Convert leading TABs to spaces,
53817         to match the style of most other files in gnulib.
53819         announce-gen: indent with spaces, not TABs
53820         * build-aux/announce-gen: Convert all TABs to spaces, to match
53821         the style of most other files in gnulib.
53823 2011-04-29  Eric Blake  <eblake@redhat.com>
53825         quotearg: avoid uninitialized variable use
53826         * lib/quotearg.c (quoting_options_from_style): Initialize
53827         remaining fields, and ensure that custom styles are only used via
53828         quoting_options rather than quoting_style.
53830 2011-04-29  Jim Meyering  <meyering@redhat.com>
53832         maint.mk: remove unused VC-tag variable
53833         * top/maint.mk (VC-tag): Remove unused variable.
53835 2011-04-29  Bruno Haible  <bruno@clisp.org>
53837         netdb: fix gai_strerror replacements
53838         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
53839         * modules/netdb: Substitute it.
53841 2011-04-29  Jim Meyering  <meyering@redhat.com>
53843         test-getcwd.c: avoid new set-but-not-used warning
53844         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
53845         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
53846         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
53847         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
53849         test-hash.c: avoid a new shadowing warning
53850         * tests/test-hash.c (main): Don't shadow "dup".
53852 2011-04-28  Eric Blake  <eblake@redhat.com>
53854         getaddrinfo: fix gai_strerror signature
53855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
53856         and work around mingw with UNICODE defined.
53857         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
53858         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
53859         * modules/netdb (Makefile.am): Substitute it.
53860         * lib/netdb.in.h (gai_strerror): Declare replacement.
53861         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
53862         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
53863         the fix.
53865         getsockopt: avoid compiler warning
53866         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
53867         Reported by Matthias Bolte.
53869         tests: drop unused link dependency
53870         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
53871         * modules/dirent-safer-tests (Makefile.am): Likewise.
53872         * modules/fdopendir-tests (Makefile.am): Likewise.
53873         * modules/mkfifoat-tests (Makefile.am): Likewise.
53874         * modules/openat-safer-tests (Makefile.am): Likewise.
53875         * modules/openat-tests (Makefile.am): Likewise.
53876         * modules/readlinkat-tests (Makefile.am): Likewise.
53877         * modules/symlinkat-tests (Makefile.am): Likewise.
53878         * modules/linkat-tests (Makefile.am): Likewise.
53879         (Depends-on): Switch to filenamecat-lgpl.
53880         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
53881         LIBINTL.
53882         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
53883         * tests/test-linkat.c (main): Don't require xalloc.
53885         hash, mgetgroups: drop xalloc dependency
53886         * lib/hash.c (includes): Adjust includes.
53887         * lib/mgetgroups.c (includes): Likewise.
53888         (xgetgroups): Move...
53889         * lib/xgetgroups.c: ...to new file.
53890         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
53891         * modules/xgetgroups: New file, split from...
53892         * modules/mgetgroups: ...here.
53893         (Depends-on): Add xalloc-oversized.
53894         * modules/hash (Depends-on): Likewise.
53895         * modules/hash-tests (Depends-on): Drop xalloc.
53896         (test_hash_LDADD): Drop unused library.
53897         * tests/test-hash.c (main): Break xalloc dependency.
53898         (includes): Drop unused include.
53900         xalloc-oversized: new module
53901         * modules/xalloc-oversized: New module.
53902         * modules/xalloc (Depends-on): Add it.
53903         * lib/xalloc.h (xalloc_oversized): Move...
53904         * lib/xalloc-oversized.h: ...into new file.
53906         utimecmp: drop dependency on xmalloc
53907         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53908         due to memory pressure.
53909         * modules/utimecmp (Depends-on): Drop xalloc.
53911 2011-04-27  Eric Blake  <eblake@redhat.com>
53913         getcwd: fix mingw bugs
53914         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53915         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53916         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53918 2011-04-27  Bruno Haible  <bruno@clisp.org>
53920         mkstemps: Ensure declaration on MacOS X 10.5.
53921         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53922         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53923         MacOS X.
53925 2011-04-27  Bruno Haible  <bruno@clisp.org>
53927         mkstemp: More documentation.
53928         * doc/posix-functions/mkstemp.texi: Document header file problem on
53929         MacOS X.
53931 2011-04-27  Bruno Haible  <bruno@clisp.org>
53933         mkstemp: Tweak configure message when cross-compiling.
53934         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53935         result as a guess.
53937 2011-04-27  Bruno Haible  <bruno@clisp.org>
53939         clean-temp: Clarify what it does.
53940         * lib/clean-temp.h: Add more comments.
53941         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53942         module.
53943         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53944         * doc/glibc-functions/mkstemps.texi: Likewise.
53945         * doc/glibc-functions/mkostemps.texi: Likewise.
53947 2011-04-27  Eric Blake  <eblake@redhat.com>
53949         fchdir: avoid extra chdir and fix test
53950         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53951         getcwd-lgpl.
53952         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53953         have to be canonical.
53954         (canonicalize_file_name): Drop unused macro.
53955         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53957         filenamecat-lgpl: fix licence
53958         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53959         when it was first created.
53961         linkat, renameat: add missing dependency
53962         * modules/linkat (Depends-on): Require getcwd-lgpl.
53963         * modules/renameat (Depends-on): Likewise.
53965         tests: reduce dependencies
53966         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53967         * tests/test-renameat.c (main): Likewise.
53968         * modules/linkat-tests (Depends-on): Relax dependency.
53969         * modules/renameat-tests (Depends-on): Likewise.
53970         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53971         dependency explicit.
53973         save-cwd: reduce default dependency
53974         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53975         * lib/save-cwd.c: Update comments.
53976         * NEWS: Document the semantic change.
53978         getcwd: enhance tests
53979         * tests/test-getcwd-lgpl.c: New file, taken from...
53980         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53981         repeat long path stress tests from m4 probe.
53982         * modules/getcwd-lgpl-tests: New module.
53983         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53984         * m4/getcwd-abort-bug.m4: Update comment.
53985         * m4/getcwd-path-max.m4: Likewise.
53987         getcwd-lgpl: new module
53988         * modules/getcwd-lgpl: New module.
53989         * lib/getcwd-lgpl.c: New file.
53990         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53991         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53992         * modules/getcwd (configure.ac): Set C witness.
53993         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53995         getcwd: tweak comments
53996         * m4/getcwd-abort-bug.m4: Fix comments.
53997         * m4/getcwd-path-max.m4: Likewise.
53998         * m4/getcwd.m4: Likewise.
54000 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
54001         and Eric Blake  <eblake@redhat.com>
54003         mkstemp: replace if system version uses wrong permissions
54004         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
54005         read/write mode bits set in file created by mkstemp.
54006         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
54008 2011-04-27  Eric Blake  <eblake@redhat.com>
54010         passfd: avoid compiler warning
54011         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
54012         Reported by Laine Stump.
54014 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
54016         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
54017         required by the NetBSD (and perhaps other 4.4BSD derived) join.
54019 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
54020         and Eric Blake  <eblake@redhat.com>
54022         mkstemp: mention clean-temp module
54023         * lib/mkstemp.c: Add comment.
54024         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
54026 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
54028         inttypes: also provide default values for 32-bit tests
54029         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
54030         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
54032 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54034         strtoumax: remove dependency on strtoimax
54035         This is like the strtoull change of yesterday.
54036         * modules/strtoumax (Files): Add lib/strtoimax.c.
54037         (Depends-on): Remove strtoimax and add verify.
54039         inttypes-incomplete: new module
54040         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
54041         all but the PRI* and SCN* parts of gl_INTTYPES_H.
54042         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
54043         of gl_INTTYPES_H.
54044         (gl_INTTYPES_H): Rewrite in terms of these new macros.
54045         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
54046         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
54047         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
54048         * modules/strtoumax, modules/xstrtol (Depends-on):
54049         Depend on inttypes-incomplete, not inttypes.
54050         * modules/inttypes-incomplete: New module, containing the contents
54051         of the old modules/inttypes module, except that the Files: section
54052         omits m4/inttypes-pri.m4, and the configure.ac section invokes
54053         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
54054         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
54055         (Depends-on): Depend only on inttypes-incomplete.
54056         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
54058         inttypes: omit now-redundant strtoimax and strtoumax work
54059         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
54060         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
54062         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
54063         This supports apps that need pointers to strtoimax and strtoumax,
54064         and ports to HP-UX 11.00 64.bit, which has macros that expand to
54065         nonexistent functions.  See
54066         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
54067         et seq.
54068         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
54069         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
54070         a macro.
54071         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
54073 2011-04-25  Simon Josefsson  <simon@josefsson.org>
54075         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
54077 2011-04-25  Bruno Haible  <bruno@clisp.org>
54079         strtol, strtoul: Mark modules as obsolete.
54080         * modules/strtol (Status, Notice): New sections.
54081         * modules/strtoul (Status, Notice): New sections.
54083 2011-04-25  Bruno Haible  <bruno@clisp.org>
54085         strtod: Remove check for strtod, unless supporting old platforms.
54086         * modules/strtod-obsolete: New file.
54087         * m4/strtod-obsolete.m4: New file.
54088         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
54089         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
54090         * modules/strtod (Depends-on): Add strtod-obsolete.
54091         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
54093 2011-04-25  Bruno Haible  <bruno@clisp.org>
54095         strcase: Make module obsolete.
54096         * modules/strcase (Status, Notice): New sections.
54098 2011-04-25  Bruno Haible  <bruno@clisp.org>
54100         dup2: Remove check for dup2, unless supporting old obsolete platforms.
54101         * modules/dup2-obsolete: New file.
54102         * m4/dup2-obsolete.m4: New file.
54103         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
54104         gl_FUNC_DUP2_OBSOLETE is not also defined.
54105         * modules/dup2 (Depends-on): Add dup2-obsolete.
54106         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
54108 2011-04-25  Bruno Haible  <bruno@clisp.org>
54110         strnlen: Avoid memchr related link error on old obsolete platforms.
54111         * modules/memchr-obsolete: New file.
54112         * m4/memchr-obsolete.m4: New file.
54113         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
54114         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
54115         * modules/memchr (Depends-on): Add memchr-obsolete.
54116         * modules/strnlen (Depends-on): Likewise.
54117         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
54119 2011-04-25  Jim Meyering  <meyering@redhat.com>
54121         maint.mk: makefile_at_at_check extend and clean up
54122         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
54123         in addition to */Makefile.am.
54124         Exempt legitimate uses of @VAR@ notation, e.g.,
54125         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
54126         Remove obsolete coreutils-specific comment.
54127         Prompted by discussion here:
54128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
54130 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54132         strtoul: remove dependency on strtol
54133         This is so that 'configure' need not check for strtol merely because
54134         the application needs strtoul.
54135         * modules/strtoul (Files): Add lib/strtol.c.
54136         (Depends-on): Remove strtol.
54138         strtoull: remove dependency on strtoul
54139         This is like the strtoll change.
54140         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
54141         (Depends-on): Remove strtoul.
54143         strtoll: remove dependency on strtol
54144         This is so that 'configure' need not check for strtol merely because
54145         the application needs strtoll.
54146         * modules/strtoll (Files): Add lib/strtol.c.
54147         (Depends-on): Remove strtol.
54149 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54151         inttypes: Move some configure check to module 'imaxdiv'.
54152         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
54153         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
54154         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
54156 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54158         inttypes: Move some configure check to module 'imaxabs'.
54159         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
54160         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
54161         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
54163 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54165         inttypes: Remove configure tests that are not needed since 2009-12-31.
54166         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
54167         gl_cv_header_working_inttypes_h.
54169 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
54171         * modules/strnlen (Depends-on): Remove memchr.
54172         The strnlen implementation doesn't need the memchr module's fixes; see
54173         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
54175         strtol: remove dependency on wchar
54176         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
54177         * modules/strtol (Depends-on): Remove wchar.
54179 2011-04-21  Eric Blake  <eblake@redhat.com>
54181         passfd: fix test regression on Linux
54182         * modules/passfd-tests (configure.ac): Correct socketpair check.
54184         passfd: speed up configure and drop unused code
54185         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
54186         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
54187         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
54188         Instead of probing at configure for unix_scm_rights_bsd44_way,
54189         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
54190         check to a struct member probe.
54191         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
54192         (sendfd, recvfd): Update preprocessor checks.
54193         * modules/passfd (Files): Reflect rename, and drop unused file.
54194         (Depends-on): Drop unused dependency.
54196         passfd: allow compilation on mingw
54197         * modules/sys_socket (Depends-on): Add sys_uio.
54198         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
54199         iovec and a minimal struct msghdr.
54200         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
54201         * tests/test-sys_socket.c (main): Enhance test.
54202         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
54203         guaranteed to provide what we need.
54204         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
54205         * modules/passfd-tests (Depends-on): Add sys_wait.
54206         * tests/test-passfd.c (main): Skip test on mingw, for now.
54207         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
54208         partial 'struct msghdr' implementation.
54210         sys_uio: new module
54211         * modules/sys_uio: New module.
54212         * modules/sys_uio-tests: Likewise.
54213         * lib/sys_uio.in.h: New file.
54214         * m4/sys_uio_h.m4: Likewise.
54215         * tests/test-sys_uio.c: Likewise.
54216         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
54217         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
54219 2011-04-20  Jim Meyering  <meyering@redhat.com>
54221         useless-if-before-free: avoid false-positive
54222         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
54223         disjunct so that it too requires a terminating ";".  Without that,
54224         this script would identify as useless one statement from gcc that
54225         was not:
54226           if (aligned_ptr)
54227             free (((void **) aligned_ptr) [-1]);
54229 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
54231         doc: update users.txt.
54232         * users.txt: Add barcode.
54234 2011-04-19  Bruno Haible  <bruno@clisp.org>
54236         ioctl: Remove link dependency on native Windows.
54237         * lib/fd-hook.h: Renamed from lib/close-hook.h.
54238         (gl_close_fn, gl_ioctl_fn): New types.
54239         (struct fd_hook): Renamed from struct close_hook. Change type of
54240         private_close_fn field. Add private_ioctl_fn field.
54241         (close_hook_fn): Add parameter for primary close method.
54242         (execute_close_hooks, execute_all_close_hooks): Likewise.
54243         (ioctl_hook_fn): New type.
54244         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
54245         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
54246         argument.
54247         (unregister_fd_hook): Renamed from unregister_close_hook.
54248         * lib/fd-hook.c: Renamed from lib/close-hook.c.
54249         Don't include <unistd.h>.
54250         (close): Remove undef.
54251         (anchor): Update.
54252         (execute_close_hooks): Add argument for primary close method.
54253         (execute_all_close_hooks): Likewise.
54254         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
54255         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
54256         argument. Allow each argument to be NULL.
54257         (unregister_fd_hook): Renamed from unregister_close_hook.
54258         * lib/close.c (rpl_close): Pass 'close' function pointer to
54259         execute_all_close_hooks.
54260         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
54261         (primary_ioctl): New function.
54262         (ioctl): Don't call ioctlsocket here. Instead, call
54263         execute_all_ioctl_hooks.
54264         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
54265         close method.
54266         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
54267         (fd_sockets_hook): Renamed from close_sockets_hook.
54268         (gl_sockets_startup, gl_sockets_cleanup): Update.
54269         * modules/fd-hook: Renamed from modules/close-hook. Update.
54270         * modules/close (Depends-on): Add fd-hook, remove close-hook.
54271         * modules/sockets (Depends-on): Likewise.
54272         * modules/ioctl (Depends-on): Add fd-hook.
54273         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
54274         GNULIB_SOCKET.
54276 2011-04-19  Bruno Haible  <bruno@clisp.org>
54278         Move the support of O_NONBLOCK in open() to the 'open' module.
54279         * modules/nonblocking (Depends-on): Remove 'open'.
54280         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
54281         gl_cv_have_open_O_NONBLOCK.
54282         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
54283         O_NONBLOCK support.
54284         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
54286 2011-04-17  Bruno Haible  <bruno@clisp.org>
54288         pipe2: Simplify code.
54289         * lib/pipe2.c (pipe2): Reduce code duplication.
54291 2011-04-17  Bruno Haible  <bruno@clisp.org>
54293         nonblocking: Add comment.
54294         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
54296 2011-04-17  Bruno Haible  <bruno@clisp.org>
54298         nonblocking: Add tests for sockets.
54299         * tests/test-nonblocking-socket.sh: New file.
54300         * tests/test-nonblocking-socket-main.c: New file.
54301         * tests/test-nonblocking-socket-child.c: New file.
54302         * tests/test-nonblocking-socket.h: New file.
54303         * tests/socket-server.h: New file.
54304         * tests/socket-client.h: New file.
54305         * modules/nonblocking-socket-tests: New file.
54306         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
54308 2011-04-17  Bruno Haible  <bruno@clisp.org>
54310         nonblocking: Add tests for pipes.
54311         * tests/test-nonblocking-pipe.sh: New file.
54312         * tests/test-nonblocking-pipe-main.c: New file.
54313         * tests/test-nonblocking-pipe-child.c: New file.
54314         * tests/test-nonblocking-pipe.h: New file.
54315         * tests/test-nonblocking-writer.h: New file.
54316         * tests/test-nonblocking-reader.h: New file.
54317         * tests/test-nonblocking-misc.h: New file.
54318         * modules/nonblocking-pipe-tests: New file.
54319         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
54321 2011-04-16  Bruno Haible  <bruno@clisp.org>
54323         gettext: Clarify the needed programmer actions.
54324         * modules/gettext (Notice): New field.
54325         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54327 2011-04-16  Bruno Haible  <bruno@clisp.org>
54329         strchrnul: Tweak last commit.
54330         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
54331         bug.
54332         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
54333         as in _GL_FUNCDECL_SYS.
54334         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
54335         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
54337 2011-04-15  Eric Blake  <eblake@redhat.com>
54339         strchrnul: work around cygwin bug
54340         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
54341         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
54342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
54343         * modules/string (Makefile.am): Substitute it.
54344         * lib/string.in.h (strchrnul): Use it.
54346 2011-04-15  Bruno Haible  <bruno@clisp.org>
54348         Don't require lib/stdio-write.c when only module 'stdio' is used.
54349         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
54350         invocation.
54351         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
54353 2011-04-14  Bruno Haible  <bruno@clisp.org>
54355         Support non-blocking pipe I/O in read() on native Windows.
54356         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
54357         (read): New declaration.
54358         * lib/read.c: New file.
54359         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
54360         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
54361         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
54362         vscanf): New declarations.
54363         * lib/stdio-read.c: New file.
54364         * m4/read.m4: New file.
54365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
54366         REPLACE_READ.
54367         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
54368         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
54369         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
54370         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
54371         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
54372         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
54373         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
54374         * modules/read: New file.
54375         * modules/nonblocking (Files): Add lib/stdio-read.c.
54376         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
54377         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
54378         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
54379         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
54380         * modules/pread (Depends-on): Add read.
54381         * modules/safe-read (Depends-on): Likewise.
54382         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
54383         gets, scanf, vfscanf, vscanf): Verify signatures.
54384         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
54385         problem with non-blocking pipes.
54386         * doc/posix-functions/fgetc.texi: Likewise.
54387         * doc/posix-functions/fgets.texi: Likewise.
54388         * doc/posix-functions/fread.texi: Likewise.
54389         * doc/posix-functions/fscanf.texi: Likewise.
54390         * doc/posix-functions/getc.texi: Likewise.
54391         * doc/posix-functions/getchar.texi: Likewise.
54392         * doc/posix-functions/gets.texi: Likewise.
54393         * doc/posix-functions/scanf.texi: Likewise.
54394         * doc/posix-functions/vfscanf.texi: Likewise.
54395         * doc/posix-functions/vscanf.texi: Likewise.
54397 2011-04-14  Bruno Haible  <bruno@clisp.org>
54399         Support non-blocking pipe I/O in write() on native Windows.
54400         * lib/write.c (rpl_write): Split a write request that failed merely
54401         because the byte count was larger than the pipe buffer's size.
54402         * doc/posix-functions/write.texi: Mention the problem with large byte
54403         counts.
54405 2011-04-14  Bruno Haible  <bruno@clisp.org>
54407         wchar: Ensure that wchar_t gets defined on uClibc.
54408         * lib/wchar.in.h: On uClibc, include <stddef.h>.
54409         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
54411 2011-04-13  Bruno Haible  <bruno@clisp.org>
54413         safe-write, full-read: Avoid unnecessary compilation units.
54414         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
54415         (Depends-on): Remove safe-read. Add ssize_t.
54416         * modules/full-read (Files): Add lib/full-write.c.
54417         (Depends-on): Add full-write.
54419 2011-04-13  Bruno Haible  <bruno@clisp.org>
54421         Support non-blocking pipe I/O and SIGPIPE in pwrite().
54422         * modules/pwrite (Depends-on): Add 'write'.
54424 2011-04-13  Bruno Haible  <bruno@clisp.org>
54426         Support non-blocking pipe I/O in write() on native Windows.
54427         * lib/unistd.in.h (write): Enable replacement also if
54428         GNULIB_UNISTD_H_NONBLOCKING is 1.
54429         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
54430         (rpl_write): When failing to write on a non-blocking pipe, change
54431         errno from ENOSPC to EAGAIN.
54432         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
54433         putchar, puts, vfprintf, vprintf): Enable replacement also if
54434         GNULIB_STDIO_H_NONBLOCKING is 1.
54435         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
54436         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
54437         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
54438         CALL_WITH_SIGPIPE_EMULATION.
54439         (CALL_WITH_SIGPIPE_EMULATION): Use them.
54440         * m4/nonblocking.m4: New file.
54441         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
54442         for non-blocking I/O support.
54443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54444         GNULIB_UNISTD_H_NONBLOCKING.
54445         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
54446         required for non-blocking I/O support.
54447         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
54448         * modules/nonblocking (Files): Add m4/nonblocking.m4,
54449         lib/stdio-write.c, m4/asm-underscore.m4.
54450         (Depends-on): Add stdio, unistd.
54451         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
54452         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
54453         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
54454         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
54455         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
54456         problem with non-blocking pipes.
54457         * doc/posix-functions/fputc.texi: Likewise.
54458         * doc/posix-functions/fputs.texi: Likewise.
54459         * doc/posix-functions/fwrite.texi: Likewise.
54460         * doc/posix-functions/printf.texi: Likewise.
54461         * doc/posix-functions/putc.texi: Likewise.
54462         * doc/posix-functions/putchar.texi: Likewise.
54463         * doc/posix-functions/puts.texi: Likewise.
54464         * doc/posix-functions/vfprintf.texi: Likewise.
54465         * doc/posix-functions/vprintf.texi: Likewise.
54466         * doc/posix-functions/write.texi: Likewise.
54468 2011-04-10  Jim Meyering  <meyering@redhat.com>
54470         maint.mk: prohibit doubled words
54471         Detect them also when they're separated by a newline.
54472         There are 3 ways to customize it:
54473           - disable the test on a per file basis, as usual with rules using
54474             $(VC_LIST_EXCEPT)
54475           - replace the default doubled-word-selecting regexp (affects all files)
54476           - ignore a particular file-vs-doubled-word match
54477         I nearly used that last one to ignore the "is is" match in
54478         coreutils' NEWS file, since the text was "ls -is is ..."
54479         To do that, I would have added this line to cfg.mk:
54480           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
54481         but it would have ignored any "is is" match in NEWS.
54482         Low probability, but still...
54483         Instead, I changed the text, slightly:
54484           -  ls -is is now consistent with ls -lis in ignoring values returned
54485           +  "ls -is" is now consistent with ls -lis in ignoring values returned
54486         * top/maint.mk (prohibit_double_word_RE_): Provide default.
54487         (prohibit_doubled_word_): Define.
54488         (sc_prohibit_doubled_word): New rule.
54489         (sc_prohibit_the_the): Remove.  Subsumed by the above.
54491 2011-04-10  Jim Meyering  <meyering@redhat.com>
54493         maint: fix doubled-word typo in comment
54494         * m4/gethostname.m4: s/is is/it is/
54495         * m4/getdomainname.m4: Likewise.
54497 2011-04-10  Jim Meyering  <meyering@redhat.com>
54499         maint: remove doubled word: s/it it/it/
54500         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
54502 2011-04-10  Jim Meyering  <meyering@redhat.com>
54504         maint.mk: remove useless semicolon and backslash
54505         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
54506         semicolon and backslash.
54508 2011-04-10  Bruno Haible  <bruno@clisp.org>
54510         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
54511         * modules/stdint-tests (Depends-on): Add wchar.
54513 2011-04-10  Jim Meyering  <meyering@redhat.com>
54515         maint: remove doubled words in comments, e.g., s/a a/a/
54516         * lib/strptime.c (day_of_the_week): s/the the/the/
54517         * tests/test-chown.h (test_chown): s/a a/a/
54519         test-chown.h: correct a cast
54520         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
54521         when the destination is a stat.st_gid.
54523 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
54525         getaddrinfo: Fix test for sa_len member.
54526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
54527         include <sys/types.h> before <sys/socket.h>.
54529 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54531         maint: change "can not" to "cannot"
54532         * doc/posix-functions/iconv.texi (iconv): This one crossed line
54533         boundaries.
54535 2011-04-09  Jim Meyering  <meyering@redhat.com>
54537         maint: change "a a" to "a"
54538         * tests/test-lchown.h (test_lchown): s/a a/a/
54540         maint.mk: prohibit \<the the\>
54541         * top/maint.mk (sc_prohibit_the_the): New rule.
54543         maint: fix "the the" in comment
54544         * lib/count-one-bits.h: s/the the/the/
54546         maint: change "can not" to "cannot"
54547         But do not change the occurrences in maintain.texi or in
54548         build-aux/po/Makefile.in.in, which I presume comes from gettext.
54549         * doc/gnulib-tool.texi: s/can not/cannot/
54550         * doc/posix-functions/accept.texi (accept): Likewise.
54551         * doc/posix-functions/socket.texi (socket): Likewise.
54552         * lib/mbrtowc.c: Likewise.
54554         maint.mk: prohibit use of "can not"
54555         * top/maint.mk (sc_prohibit_can_not): New rule.
54556         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
54558 2011-04-09  Bruno Haible  <bruno@clisp.org>
54560         careadlinkat: Guard against misuse of careadlinkatcwd.
54561         * lib/careadlinkat.c: Include <stdlib.h>.
54562         (careadlinkatcwd): Check that the fd argument is as expected.
54564 2011-04-09  Bruno Haible  <bruno@clisp.org>
54566         careadlinkat: Use common coding style.
54567         * lib/careadlinkat.c: Move gnulib includes after system includes.
54569 2011-04-09  Bruno Haible  <bruno@clisp.org>
54571         careadlinkat: Clarify specification.
54572         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
54573         (careadlinkatcwd): Add comment.
54574         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
54576 2011-04-09  Bruno Haible  <bruno@clisp.org>
54578         areadlinkat: Avoid link error on many platforms.
54579         * modules/areadlinkat (Depends-on): Add areadlink.
54581 2011-04-09  Bruno Haible  <bruno@clisp.org>
54583         allocator, careadlinkat: Fix double-inclusion guard.
54584         * lib/allocator.h: Fix double-inclusion guard.
54585         * lib/careadlinkat.h: Likewise.
54587 2011-04-09  Bruno Haible  <bruno@clisp.org>
54589         relocatable-prog-wrapper: Update after module 'areadlink' changed.
54590         * lib/relocwrapper.c: Update dependencies hierarchy.
54591         * build-aux/install-reloc: Update list of files to be compiled.
54592         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
54593         lib/allocator.[hc].
54595 2011-04-08  Eric Blake  <eblake@redhat.com>
54597         strftime: silence gnulib-tool warning
54598         * modules/strftime-tests (Depends-on): Drop automatic dependency.
54600 2011-04-08  Bruno Haible  <bruno@clisp.org>
54602         verify: Fix syntax error with GCC 4.6 in C++ mode.
54603         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
54604         (HAVE_STATIC_ASSERT): New macro.
54605         (verify_true, verify): Use 'static_assert' if it is supported and
54606         '_Static_assert' is not supported.
54608 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
54610         allocator: New module.
54611         * modules/allocator, lib/allocator.c: New files.
54612         * lib/allocator.h (stdlib_allocator): New decl.
54613         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
54614         Remove.  Do not include <stdlib.h>.
54615         (careadlinkat): Use stdlib_allocator instead of rolling our own.
54616         * modules/careadlinkat (Files): Remove lib/allocator.h.
54617         (Depends-on): Add allocator.
54619         stdlib: let modules use system malloc, realloc
54620         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
54621         if !_GL_USE_STDLIB_ALLOC.
54622         (malloc, realloc): Limit this change to a smaller scope.
54624         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
54625         (malloc, realloc): Don't #undef; no longer needed.
54626         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54627         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54628         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54629         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54630         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54631         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54632         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54633         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54635         careadlinkat: rename members to avoid problem
54636         * lib/allocator.h (struct allocator): Rename members from
54637         malloc/realloc to allocate/reallocate, to avoid problems if malloc
54638         and realloc are #define'd.  Reported by Eric Blake in
54639         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
54640         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
54642 2011-04-08  Eric Blake  <eblake@redhat.com>
54644         nonblocking: reduce dependency
54645         * tests/test-nonblocking.c: Only test sockets when in use.
54646         * modules/nonblocking-tests (Depends-on): Drop socket.
54647         (Makefile.am): Link even if sockets are not present.
54648         * modules/pipe2-tests (Makefile.am): Likewise.
54649         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
54651         pipe2: fix O_NONBLOCK support on mingw
54652         * modules/pipe2 (Depends-on): Add nonblocking.
54653         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
54654         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
54655         * tests/test-nonblocking.c (main): Likewise.
54656         * modules/pipe2-tests (Makefile.am): Avoid link failure.
54658         fcntl-h: fix O_ACCMODE on cygwin
54659         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
54660         * lib/fcntl.in.h (O_ACCMODE): Fix it.
54662         pipe-filter: drop O_NONBLOCK workarounds
54663         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
54664         * modules/pipe-filter-ii (Depends-on): Likewise.
54665         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
54667         nonblocking: provide O_NONBLOCK for mingw
54668         * modules/nonblocking (Depends-on): Add open.
54669         (configure.ac): Set new witness macro.
54670         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
54671         * modules/fcntl-h (Makefile.am): Substitute it.
54672         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
54673         nonblocking module is in use.
54674         * lib/nonblocking.c: Adjust portability test.
54675         * lib/open.c (open): Don't let native open see gnulib flag.
54676         * tests/test-fcntl-h.c (main): Enhance test.
54677         * tests/test-open.h (test_open): Likewise.
54678         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
54680         careadlinkat: fix compilation error on mingw
54681         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
54682         within struct allocator.
54684 2011-04-06  Eric Blake  <eblake@redhat.com>
54686         binary-io: relicense under LGPLv2+
54687         * modules/binary-io (License): Relax to LGPLv2+.
54688         Requested for libvirt, and required by pipe2.
54690 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
54692         verify: use _Static_assert if available
54693         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
54694         (verify_true, verify): Use it if available.  This generates better
54695         diagnostics with GCC 4.6.0 and later.
54697 2011-04-05  Bruno Haible  <bruno@clisp.org>
54699         Remove leftover generated .h files after config.status changed.
54701         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
54702         GL_GENERATE_ALLOCA_H.
54703         * modules/alloca-opt (Makefile.am): Remove alloca.h if
54704         GL_GENERATE_ALLOCA_H evaluates to false.
54706         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
54707         GL_GENERATE_ARGZ_H.
54708         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
54709         evaluates to false.
54711         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
54712         GL_GENERATE_BYTESWAP_H.
54713         * modules/byteswap (Makefile.am): Remove byteswap.h if
54714         GL_GENERATE_BYTESWAP_H evaluates to false.
54716         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
54717         GL_GENERATE_ERRNO_H.
54718         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
54719         evaluates to false.
54721         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
54722         GL_GENERATE_FLOAT_H.
54723         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
54724         evaluates to false.
54726         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
54727         GL_GENERATE_FNMATCH_H.
54728         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
54729         GL_GENERATE_FNMATCH_H evaluates to false.
54731         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
54732         GL_GENERATE_GLOB_H.
54733         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
54734         evaluates to false.
54736         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
54737         automake conditional GL_GENERATE_ICONV_H.
54738         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
54739         evaluates to false.
54741         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
54742         GL_GENERATE_NETINET_IN_H.
54743         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
54744         GL_GENERATE_NETINET_IN_H evaluates to false.
54746         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
54747         conditional GL_GENERATE_PTHREAD_H.
54748         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
54749         * modules/pthread (Makefile.am): Remove pthread.h if
54750         GL_GENERATE_PTHREAD_H evaluates to false.
54752         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
54753         GL_GENERATE_SCHED_H.
54754         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
54755         evaluates to false.
54757         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
54758         conditional GL_GENERATE_SELINUX_CONTEXT_H.
54759         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
54760         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
54762         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
54763         GL_GENERATE_STDARG_H.
54764         * modules/stdarg (Makefile.am): Remove stdarg.h if
54765         GL_GENERATE_STDARG_H evaluates to false.
54767         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
54768         GL_GENERATE_STDBOOL_H.
54769         * modules/stdbool (Makefile.am): Remove stdbool.h if
54770         GL_GENERATE_STDBOOL_H evaluates to false.
54772         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
54773         conditional GL_GENERATE_STDDEF_H.
54774         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
54775         * modules/stddef (Makefile.am): Remove stddef.h if
54776         GL_GENERATE_STDDEF_H evaluates to false.
54778         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
54779         GL_GENERATE_STDINT_H.
54780         * modules/stdint (Makefile.am): Remove stdint.h if
54781         GL_GENERATE_STDINT_H evaluates to false.
54783         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
54784         GL_GENERATE_SYSEXITS_H.
54785         * modules/sysexits (Makefile.am): Remove sysexits.h if
54786         GL_GENERATE_SYSEXITS_H evaluates to false.
54788         Reported by Karl Berry and Ralf Wildenhues.
54790 2011-04-05  Bruno Haible  <bruno@clisp.org>
54792         Ensure to rebuild generated .h files when config.status has changed.
54793         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
54794         config.status.
54795         * modules/ctype (Makefile.am): Likewise.
54796         * modules/dirent (Makefile.am): Likewise.
54797         * modules/errno (Makefile.am): Likewise.
54798         * modules/fcntl-h (Makefile.am): Likewise.
54799         * modules/float (Makefile.am): Likewise.
54800         * modules/getopt-posix (Makefile.am): Likewise.
54801         * modules/glob (Makefile.am): Likewise.
54802         * modules/iconv-h (Makefile.am): Likewise.
54803         * modules/inttypes (Makefile.am): Likewise.
54804         * modules/langinfo (Makefile.am): Likewise.
54805         * modules/locale (Makefile.am): Likewise.
54806         * modules/math (Makefile.am): Likewise.
54807         * modules/netdb (Makefile.am): Likewise.
54808         * modules/netinet_in (Makefile.am): Likewise.
54809         * modules/poll-h (Makefile.am): Likewise.
54810         * modules/pthread (Makefile.am): Likewise.
54811         * modules/pty (Makefile.am): Likewise.
54812         * modules/sched (Makefile.am): Likewise.
54813         * modules/search (Makefile.am): Likewise.
54814         * modules/selinux-h (Makefile.am): Likewise.
54815         * modules/signal (Makefile.am): Likewise.
54816         * modules/spawn (Makefile.am): Likewise.
54817         * modules/stdarg (Makefile.am): Likewise.
54818         * modules/stdbool (Makefile.am): Likewise.
54819         * modules/stddef (Makefile.am): Likewise.
54820         * modules/stdint (Makefile.am): Likewise.
54821         * modules/stdio (Makefile.am): Likewise.
54822         * modules/stdlib (Makefile.am): Likewise.
54823         * modules/string (Makefile.am): Likewise.
54824         * modules/strings (Makefile.am): Likewise.
54825         * modules/sys_file (Makefile.am): Likewise.
54826         * modules/sys_ioctl (Makefile.am): Likewise.
54827         * modules/sys_select (Makefile.am): Likewise.
54828         * modules/sys_socket (Makefile.am): Likewise.
54829         * modules/sys_stat (Makefile.am): Likewise.
54830         * modules/sys_time (Makefile.am): Likewise.
54831         * modules/sys_times (Makefile.am): Likewise.
54832         * modules/sys_utsname (Makefile.am): Likewise.
54833         * modules/sys_wait (Makefile.am): Likewise.
54834         * modules/sysexits (Makefile.am): Likewise.
54835         * modules/termios (Makefile.am): Likewise.
54836         * modules/time (Makefile.am): Likewise.
54837         * modules/unistd (Makefile.am): Likewise.
54838         * modules/wchar (Makefile.am): Likewise.
54839         * modules/wctype-h (Makefile.am): Likewise.
54840         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
54842 2011-04-05  Bruno Haible  <bruno@clisp.org>
54844         pipe2: Relicense under LGPLv2+.
54845         * modules/pipe2 (License): Change to LGPLv2+.
54846         Requested by Eric Blake, for libvirt.
54848 2011-04-05  Bruce Korb  <bkorb@gnu.org>
54850         bootstrap: compute gnulib_extra_files after updating build_aux
54851         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
54852         change build_aux or also supply gnulib_extra_files.  Handle correctly.
54854 2011-04-05  Eric Blake  <eblake@redhat.com>
54856         bootstrap: preserve git whitelist item sorting
54857         * build-aux/bootstrap (sort_patterns): New function.
54858         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
54860 2011-04-05  Simon Josefsson  <simon@josefsson.org>
54862         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
54863         sc_space_tab check.
54865 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
54867         areadlink, areadlinkat: rewrite in terms of careadlinkat
54868         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
54869         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
54870         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
54871         (malloc, realloc): Remove #undefs.
54872         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
54873         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
54874         readlink, ssize_t, stdint, unistd.
54875         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
54876         areadlink, stdint.
54878         careadlinkat: new module
54879         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
54880         * modules/careadlinkat: New files, written by me with
54881         a review and feedback from Ben Pfaff in
54882         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
54884 2011-04-01  Bruno Haible  <bruno@clisp.org>
54886         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
54887         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
54888         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
54889         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
54890         Reported by Bruce Korb <bruce.korb@gmail.com>.
54892 2011-04-01  Bruno Haible  <bruno@clisp.org>
54894         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54895         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54896         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54897         * modules/wcpcpy (Depends-on): Add extensions.
54898         * modules/wcpncpy (Depends-on): Likewise.
54899         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54900         systems.
54901         * doc/posix-functions/wcpncpy.texi: Likewise.
54902         * doc/posix-functions/wcwidth.texi: Likewise.
54904 2011-03-31  Eric Blake  <eblake@redhat.com>
54906         nonblocking: fix mingw test failures
54907         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54908         non-blocking flag on regular file.
54909         (get_nonblocking_flag): Set errno on invalid fd.
54910         * tests/test-nonblocking.c (main): Avoid test failure on
54911         directories if fchdir is not active.
54912         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54914 2011-03-31  Bruno Haible  <bruno@clisp.org>
54916         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54917         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54918         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54919         Reported by Simon Josefsson <simon@josefsson.org>.
54921 2011-03-31  Bruno Haible  <bruno@clisp.org>
54922         and Eric Blake  <eblake@redhat.com>
54924         nonblocking: new module
54925         * modules/nonblocking: New module.
54926         * modules/nonblocking-tests: Likewise.
54927         * lib/nonblocking.h: New file.
54928         * lib/nonblocking.c: Likewise.
54929         * tests/test-nonblocking.c: New test.
54930         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54932 2011-03-30  Bruno Haible  <bruno@clisp.org>
54934         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54935         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54936         instead of 'printf' format for GCC >= 4.4.
54937         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54938         (fprintf, printf, vfprintf, vprintf): Declare with
54939         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54940         the system's vfprintf() function.
54941         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54943 2011-03-30  Eric Blake  <eblake@redhat.com>
54945         passfd: fix scoping bug
54946         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54947         before sendmsg/recvmsg.
54949         passfd: standardize coding conventions
54950         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54951         can be learned at compile time.
54952         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54953         ifdefs.
54954         (sendfd, recvfd): Follow gnulib code conventions.
54956         passfd: fix incorrect sendmsg arguments
54957         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54958         incorrect msg_controllen value.
54959         * modules/passfd-tests (Depends-on): Check for alarm.
54960         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54961         Reported by Bastien ROUCARIES.
54963 2011-03-30  Bruno Haible  <bruno@clisp.org>
54965         c-strcasestr: Relicense under LGPLv2+.
54966         * modules/c-strcasestr (License): Change to LGPLv2+.
54967         Requested by Eric Blake, for libvirt.
54969 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54971         * users.txt: Add libidn2.  Fix libtasn1 link.
54973 2011-03-30  Jim Meyering  <meyering@redhat.com>
54975         tests: readlink* ("",... fails with EINVAL on newer kernels
54976         readlink and readlinkat have typically failed with ENOENT for
54977         the invalid, empty file name,  "".  However, with the advent
54978         of linux-2.6.39, they fail with EINVAL.
54979         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54980         when operating on the empty file name.
54981         * tests/test-readlink.h (test_readlink): Likewise.
54983 2011-03-29  Bruno Haible  <bruno@clisp.org>
54985         Relicense some modules under LGPLv2+, for libidn2.
54986         * modules/array-mergesort (License): Change to LGPLv2+.
54987         * modules/c-strcaseeq (License): Likewise.
54988         * modules/striconveh (License): Likewise.
54989         * modules/striconveha (License): Likewise.
54990         * modules/uniconv/base (License): Likewise.
54991         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54992         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54993         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54994         * modules/unictype/base (License): Likewise.
54995         * modules/unictype/bidiclass-of (License): Likewise.
54996         * modules/unictype/category-M (License): Likewise.
54997         * modules/unictype/category-none (License): Likewise.
54998         * modules/unictype/category-of (License): Likewise.
54999         * modules/unictype/category-test (License): Likewise.
55000         * modules/unictype/category-test-withtable (License): Likewise.
55001         * modules/unictype/combining-class (License): Likewise.
55002         * modules/unictype/joiningtype-of (License): Likewise.
55003         * modules/unictype/scripts (License): Likewise.
55004         * modules/uninorm/base (License): Likewise.
55005         * modules/uninorm/canonical-decomposition (License): Likewise.
55006         * modules/uninorm/composition (License): Likewise.
55007         * modules/uninorm/decompose-internal (License): Likewise.
55008         * modules/uninorm/decomposition-table (License): Likewise.
55009         * modules/uninorm/nfc (License): Likewise.
55010         * modules/uninorm/nfd (License): Likewise.
55011         * modules/uninorm/u32-normalize (License): Likewise.
55012         * modules/unistr/base (License): Likewise.
55013         * modules/unistr/u32-cpy (License): Likewise.
55014         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
55015         * modules/unistr/u32-to-u8 (License): Likewise.
55016         * modules/unistr/u32-uctomb (License): Likewise.
55017         * modules/unistr/u8-check (License): Likewise.
55018         * modules/unistr/u8-mblen (License): Likewise.
55019         * modules/unistr/u8-mbtouc (License): Likewise.
55020         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
55021         * modules/unistr/u8-mbtoucr (License): Likewise.
55022         * modules/unistr/u8-prev (License): Likewise.
55023         * modules/unistr/u8-strlen (License): Likewise.
55024         * modules/unistr/u8-to-u32 (License): Likewise.
55025         * modules/unistr/u8-uctomb (License): Likewise.
55026         * modules/unitypes (License): Likewise.
55027         Requested by Simon Josefsson.
55029 2011-03-29  Simon Josefsson  <simon@josefsson.org>
55031         lib-symbol-visibility: Add a notice.
55032         * modules/lib-symbol-visibility (Notice): New field.
55034 2011-03-29  Bruno Haible  <bruno@clisp.org>
55036         getaddrinfo: Doc fix.
55037         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
55038         section "fixed in Gnulib".
55040 2011-03-28  Simon Josefsson  <simon@josefsson.org>
55042         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
55043         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
55045 2011-03-26  Bruno Haible  <bruno@clisp.org>
55047         unictype/property-byname: Reduce the number of load-time relocations.
55048         * lib/unictype/pr_byname.c: Include <stdlib.h>.
55049         (UC_PROPERTY_INDEX_*): New enumeration values.
55050         (uc_property_byname): Convert an index from the lookup table to an
55051         uc_property_t.
55052         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
55053         values.
55055 2011-03-26  Bruno Haible  <bruno@clisp.org>
55057         unictype/property-byname: Allow omitted word separators and aliases.
55058         * lib/unictype/pr_byname.gperf: Add property names without word
55059         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
55060         for 'space'.
55062 2011-03-26  Bruno Haible  <bruno@clisp.org>
55064         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
55065         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
55066         also hyphens to space.
55067         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
55068         without spaces.
55069         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
55071 2011-03-26  Bruno Haible  <bruno@clisp.org>
55073         unictype/joiningtype-byname: Recognize long names as well.
55074         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
55075         a long name.
55076         * lib/unictype/joiningtype_byname.c: Include <string.h>,
55077         unictype/joiningtype_byname.h.
55078         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
55079         * lib/unictype/joiningtype_byname.gperf: New file.
55080         * modules/unictype/joiningtype-byname (Files): Add
55081         lib/unictype/joiningtype_byname.gperf.
55082         (Depends-on): Add gperf.
55083         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
55084         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
55085         long names.
55087         Tests for module 'unictype/joiningtype-longname'.
55088         * modules/unictype/joiningtype-longname-tests: New file.
55089         * tests/unictype/test-joiningtype_longname.c: New file.
55091         New module 'unictype/joiningtype-longname'.
55092         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
55093         * lib/unictype/joiningtype_longname.c: New file.
55094         * modules/unictype/joiningtype-longname: New file.
55095         * modules/unictype/joiningtype-all (Depends-on): Add
55096         unictype/joiningtype-longname.
55098 2011-03-26  Bruno Haible  <bruno@clisp.org>
55100         unictype/bidiclass-byname: Recognize long names as well.
55101         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
55102         name.
55103         * lib/unictype/bidi_byname.c: Include <string.h>,
55104         unictype/bidi_byname.h.
55105         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
55106         * lib/unictype/bidi_byname.gperf: New file.
55107         * modules/unictype/bidiclass-byname (Files): Add
55108         lib/unictype/bidi_byname.gperf.
55109         (Depends-on): Add gperf.
55110         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
55111         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
55112         long names.
55114         Tests for module 'unictype/bidiclass-longname'.
55115         * modules/unictype/bidiclass-longname-tests: New file.
55116         * tests/unictype/test-bidi_longname.c: New file.
55118         New module 'unictype/bidiclass-longname'.
55119         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
55120         * lib/unictype/bidi_longname.c: New file.
55121         * modules/unictype/bidiclass-longname: New file.
55122         * modules/unictype/bidiclass-all (Depends-on): Add
55123         unictype/bidiclass-longname.
55125 2011-03-26  Bruno Haible  <bruno@clisp.org>
55127         unictype/bidi*: Rename modules.
55128         * modules/unictype/bidiclass-all: Renamed from
55129         modules/unictype/bidicategory-all.
55130         * modules/unictype/bidiclass-name: Renamed from
55131         modules/unictype/bidiclass-name.
55132         (Description): Update.
55133         * modules/unictype/bidiclass-name-tests: Renamed from
55134         modules/unictype/bidicategory-name-tests.
55135         * modules/unictype/bidiclass-byname: Renamed from
55136         modules/unictype/bidicategory-byname.
55137         (Description): Update.
55138         * modules/unictype/bidiclass-byname-tests: Renamed from
55139         modules/unictype/bidicategory-byname-tests.
55140         * modules/unictype/bidiclass-of: Renamed from
55141         modules/unictype/bidicategory-of.
55142         (Description): Update.
55143         * modules/unictype/bidiclass-of-tests: Renamed from
55144         modules/unictype/bidicategory-of-tests.
55145         * modules/unictype/bidiclass-test: Renamed from
55146         modules/unictype/bidicategory-test.
55147         (Description): Update.
55148         * modules/unictype/bidiclass-test-tests: Renamed from
55149         modules/unictype/bidicategory-test-tests.
55150         * modules/unictype/bidicategory-all: New file, a simple redirection.
55151         * modules/unictype/bidicategory-name: Likewise.
55152         * modules/unictype/bidicategory-byname: Likewise.
55153         * modules/unictype/bidicategory-of: Likewise.
55154         * modules/unictype/bidicategory-test: Likewise.
55155         * modules/unictype/property-bidi-* (Dependencies): Update.
55156         * lib/unictype/bidi_*.c: Update comment.
55158 2011-03-26  Bruno Haible  <bruno@clisp.org>
55160         unictype/bidi*: Rename functions, part 2.
55161         * modules/unictype/bidicategory-name (configure.ac): Update required
55162         libunistring version.
55163         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
55165 2011-03-25  Bruno Haible  <bruno@clisp.org>
55167         New module 'unictype/combining-class-all'.
55168         * modules/unictype/combining-class-all: New file.
55170         Tests for module 'unictype/combining-class-byname'.
55171         * modules/unictype/combining-class-byname-tests: New file.
55172         * tests/unictype/test-combiningclass_byname.c: New file.
55174         New module 'unictype/combining-class-byname'.
55175         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
55176         * lib/unictype/combiningclass_byname.c: New file.
55177         * lib/unictype/combiningclass_byname.gperf: New file.
55178         * modules/unictype/combining-class-byname: New file.
55180         Tests for module 'unictype/combining-class-longname'.
55181         * modules/unictype/combining-class-longname-tests: New file.
55182         * tests/unictype/test-combiningclass_longname.c: New file.
55184         New module 'unictype/combining-class-longname'.
55185         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
55186         * lib/unictype/combiningclass_longname.c: New file.
55187         * modules/unictype/combining-class-longname: New file.
55189         Tests for module 'unictype/combining-class-name'.
55190         * modules/unictype/combining-class-name-tests: New file.
55191         * tests/unictype/test-combiningclass_name.c: New file.
55193         New module 'unictype/combining-class-name'.
55194         * lib/unictype.in.h (uc_combining_class_name): New declaration.
55195         * lib/unictype/combiningclass_name.c: New file.
55196         * modules/unictype/combining-class-name: New file.
55198 2011-03-25  Bruno Haible  <bruno@clisp.org>
55200         unictype/combining-class: Rename source files.
55201         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
55202         of unictype/combining.h.
55203         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
55204         Update.
55205         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
55206         * modules/unictype/combining-class (Description): Fix.
55207         (Files, Makefile.am): Update.
55208         * tests/unictype/test-combiningclass.c: Renamed from
55209         tests/unictype/test-combining.c.
55210         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
55212 2011-03-25  Bruno Haible  <bruno@clisp.org>
55214         unictype: Update list of canonical combining classes.
55215         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
55217 2011-03-25  Bruno Haible  <bruno@clisp.org>
55219         unictype/category-byname: Recognize long names as well.
55220         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
55221         a long name.
55222         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
55223         unictype/categ_byname.h.
55224         (UC_CATEGORY_INDEX_*): New enumeration values.
55225         (uc_general_category_byname): Use uc_general_category_lookup and
55226         convert from index to value.
55227         * lib/unictype/categ_byname.gperf: New file.
55228         * modules/unictype/category-byname (Files): Add
55229         lib/unictype/categ_byname.gperf.
55230         (Depends-on): Add gperf.
55231         (Makefile.am): Add rule for generating unictype/categ_byname.h.
55232         * tests/unictype/test-categ_byname.c (main): Test the recognition of
55233         long names.
55235         Tests for module 'unictype/category-longname'.
55236         * modules/unictype/category-longname-tests: New file.
55237         * tests/unictype/test-categ_longname.c: New file.
55239         New module 'unictype/category-longname'.
55240         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
55241         * lib/unictype/categ_longname.c: New file.
55242         * modules/unictype/category-longname: New file.
55243         * modules/unictype/category-all (Depends-on): Add it.
55245 2011-03-25  Bruno Haible  <bruno@clisp.org>
55247         Tests for module 'unictype/category-LC'.
55248         * modules/unictype/category-LC-tests: New file.
55249         * tests/unictype/test-categ_LC.c: New file, automatically generated.
55251         New module 'unictype/category-LC'.
55252         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
55253         (UC_CATEGORY_LC): New declaration.
55254         (UC_CASED_LETTER): New macro.
55255         * lib/gen-uni-tables.c (is_category_LC): New function.
55256         (output_categories): Also handle category LC.
55257         (UC_CATEGORY_MASK_LC): New enumeration value.
55258         (general_category_byname): Also handle category LC.
55259         * lib/unictype/categ_LC.c: New file.
55260         * lib/unictype/categ_LC.h: New file, automatically generated.
55261         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
55262         category LC.
55263         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
55264         * modules/unictype/category-LC: New file.
55265         * modules/unictype/category-byname (Depends-on): Add
55266         unictype/category-LC.
55267         * modules/unictype/category-all (Depends-on): Likewise.
55269 2011-03-25  Eric Blake  <eblake@redhat.com>
55271         xmalloc: revert yesterday's regression
55272         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
55273         realloc's underlying behavior (allowing allocation of zero-size
55274         objects, especially if malloc-gnu is also in use).
55276 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
55278         maint.mk: add missing version to VC-tag
55279         * top/maint.mk: git tag was missing actual tag name; add it.
55281         valgrind: do leak checking, and exit with code 1 on error (not 0)
55282         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
55283         to VALGRIND.
55285 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
55287         posix-modules: say what it does.
55288         * posix-modules: Add a line to the --help output saying what it does.
55290 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
55292         xmalloc: Do not leak if underlying realloc is C99 compatible.
55293         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
55294         This avoids a leak on C99-based systems.  See
55295         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
55297 2011-03-24  Eric Blake  <eblake@redhat.com>
55299         realloc: document portability problem
55300         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
55301         passing 0 size to realloc.
55303 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
55305         doc: update users.txt
55306         * users.txt: Add cvsps, tmpwatch
55308 2011-03-23  Matt Rice  <ratmice@gmail.com>
55310         doc: update users.txt
55311         * users.txt: Add gdb.
55313 2011-03-23  Jim Meyering  <meyering@redhat.com>
55315         doc: update users.txt
55316         Looking through matches up to the following URL (there are still
55317         several more pages), I found several projects that use gnulib:
55318         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
55319         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
55320         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
55322 2011-03-22  Bruno Haible  <bruno@clisp.org>
55324         unictype/bidi*: Rename functions.
55325         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
55326         uc_bidi_class, uc_is_bidi_class): New declarations.
55327         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
55328         uc_bidi_category_byname.
55329         (uc_bidi_category_byname): New function.
55330         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
55331         u_bidi_category_name.
55332         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
55333         (uc_bidi_category_name): New function.
55334         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
55335         uc_bidi_category.
55336         (uc_bidi_category): New function.
55337         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
55338         uc_is_bidi_category. Invoke uc_bidi_class.
55339         (uc_is_bidi_category): New function.
55340         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
55341         instead of uc_bidi_category_byname.
55342         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
55343         instead of uc_bidi_category_name.
55344         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
55345         uc_bidi_category.
55346         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
55347         instead of uc_is_bidi_category.
55349 2011-03-21  Bruno Haible  <bruno@clisp.org>
55351         New module 'unictype/joininggroup-all'.
55352         * modules/unictype/joininggroup-all: New file.
55354         Tests for module 'unictype/joininggroup-of'.
55355         * modules/unictype/joininggroup-of-tests: New file.
55356         * tests/unictype/test-joininggroup_of.c: New file.
55357         * tests/unictype/test-joininggroup_of.h: New file, automatically
55358         generated by gen-uni-tables.
55360         New module 'unictype/joininggroup-of'.
55361         * modules/unictype/joininggroup-of: New file.
55362         * lib/unictype/joininggroup_of.c: New file.
55363         * lib/unictype/joininggroup_of.h: New file, automatically generated by
55364         gen-uni-tables.
55366         Tests for module 'unictype/joininggroup-byname'.
55367         * modules/unictype/joininggroup-byname-tests: New file.
55368         * tests/unictype/test-joininggroup_byname.c: New file.
55370         New module 'unictype/joininggroup-byname'.
55371         * modules/unictype/joininggroup-byname: New file.
55372         * lib/unictype/joininggroup_byname.c: New file.
55373         * lib/unictype/joininggroup_byname.gperf: New file.
55375         Tests for module 'unictype/joininggroup-name'.
55376         * modules/unictype/joininggroup-name-tests: New file.
55377         * tests/unictype/test-joininggroup_name.c: New file.
55379         New module 'unictype/joininggroup-name'.
55380         * modules/unictype/joininggroup-name: New file.
55381         * lib/unictype/joininggroup_name.c: New file.
55382         * lib/unictype/joininggroup_name.h: New file.
55384         New module 'unictype/joiningtype-all'.
55385         * modules/unictype/joiningtype-all: New file.
55387         Tests for module 'unictype/joiningtype-of'.
55388         * modules/unictype/joiningtype-of-tests: New file.
55389         * tests/unictype/test-joiningtype_of.c: New file.
55390         * tests/unictype/test-joiningtype_of.h: New file, automatically
55391         generated by gen-uni-tables.
55393         New module 'unictype/joiningtype-of'.
55394         * modules/unictype/joiningtype-of: New file.
55395         * lib/unictype/joiningtype_of.c: New file.
55396         * lib/unictype/joiningtype_of.h: New file, automatically generated by
55397         gen-uni-tables.
55399         Tests for module 'unictype/joiningtype-byname'.
55400         * modules/unictype/joiningtype-byname-tests: New file.
55401         * tests/unictype/test-joiningtype_byname.c: New file.
55403         New module 'unictype/joiningtype-byname'.
55404         * modules/unictype/joiningtype-byname: New file.
55405         * lib/unictype/joiningtype_byname.c: New file.
55407         Tests for module 'unictype/joiningtype-name'.
55408         * modules/unictype/joiningtype-name-tests: New file.
55409         * tests/unictype/test-joiningtype_name.c: New file.
55411         New module 'unictype/joiningtype-name'.
55412         * modules/unictype/joiningtype-name: New file.
55413         * lib/unictype/joiningtype_name.c: New file.
55415         unictype: Add support for Arabic shaping properties.
55416         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
55417         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
55418         declarations.
55419         (UC_JOINING_GROUP_*): New enumeration values.
55420         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
55421         declarations.
55422         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
55423         (unicode_joining_type): New variable.
55424         (UC_JOINING_GROUP_*): New enumeration values.
55425         (unicode_joining_group): New variable.
55426         (fill_arabicshaping, joining_type_as_c_identifier,
55427         output_joining_type_test, output_joining_type,
55428         joining_group_as_c_identifier, output_joining_group_test,
55429         output_joining_group): New functions.
55430         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
55431         fill_arabicshaping and output_joining_type_test, output_joining_type,
55432         output_joining_group_test, output_joining_group.
55433         Reported by Simon Josefsson.
55435 2011-03-21  Jim Meyering  <meyering@redhat.com>
55437         strftime: fix a bug in yesterday's change
55438         * lib/strftime.c (add): Accommodate width's initial value of -1.
55439         Otherwise, nstrftime would copy uninitialized data into
55440         the result buffer.
55442 2011-03-21  Jim Meyering  <meyering@redhat.com>
55444         tests: add strftime-tests module
55445         * tests/test-strftime.c: New file.
55446         * modules/strftime-tests: New module.
55448 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55450         strftime: don't assume a byte count fits in 'int'
55451         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
55452         found this problem by static analysis, using gcc -Wstrict-overflow
55453         (GCC 4.5.2, x86-64).  This reported an optimization that depended
55454         on an integer overflow having undefined behavior, but it turns out
55455         that the argument is a size, which might not fit in 'int' anyway,
55457 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55459         stdio: don't require ignore_value around fwrite
55461         This patch works around libc bug 11959
55462         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
55463         Without this patch, applications must often write
55464         ignore_value (fwrite (...)) even though the ignore_value is
55465         not helpful here.  It's common to write many objects, using
55466         fwrite/printf/etc., and then use ferror to detect output error.
55468         I considered making this patch optional, but decided against it,
55469         because libc is obviously being inconsistent here: there is no
55470         reason libc should insist that user code must inspect fwrite
55471         return's value without also insisting that it inspect printf's,
55472         putchar's, etc.  If user code wants to have a strict style where
55473         all these functions' values are checked (so that ferror need not
55474         be checked), we could add support for that style in a new gnulib
55475         module, but in the meantime it's better to be consistent and to
55476         support common usage.
55478         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
55479         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
55480         that we are compiling in checking mode, and if not C++, and
55481         if not already wrapping fwrite for some other reason.
55482         (fwrite): #define to rpl_fwrite if the latter is defined.
55484 2011-03-20  Bruno Haible  <bruno@clisp.org>
55486         verror: Fix compilation error introduced on 2011-02-13.
55487         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
55488         instead of __attribute__.
55489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55491 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55492             Bruno Haible  <bruno@clisp.org>
55494         socklen: do not depend on sys_socket
55495         While trying to modify Emacs to use gnulib's socklen module,
55496         I discovered a circular dependency: socklen depends on sys_socket
55497         and vice versa.  Emacs can use socklen, but it does not need
55498         sys_socket because it has its own substitute for sys/socket.h.
55499         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
55500         gl_TYPE_SOCKLEN_T.
55501         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
55502         gl_PREREQ_SYS_H_SOCKET.
55503         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
55504         gl_PREREQ_SYS_H_SOCKET.
55505         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
55506         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
55507         * modules/socklen (Depends-on): Do not depend on sys_socket.
55508         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
55510 2011-03-20  Jim Meyering  <meyering@redhat.com>
55512         maint.mk: sort file names *after* new transformation
55513         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
55514         prefix would have led to an unwarranted failure in GNU parted.
55515         Sort after that transformation.
55517 2011-03-19  Jim Meyering  <meyering@redhat.com>
55519         maint.mk: fix po-file syntax-check rule
55520         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
55521         Patch by Bruno Haible.
55523 2011-03-19  Bruno Haible  <bruno@clisp.org>
55525         socklen: Update comment.
55526         * m4/socklen.m4: Update comment about platforms.
55528 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55529             Bruno Haible  <bruno@clisp.org>
55531         inet_ntop, inet_pton: Simplify.
55532         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
55533         documented to provide socklen_t and we already depend on sys_socket.
55534         * modules/inet_pton (Depends-on): Likewise.
55535         * lib/arpa_inet.in.h: Adjust comment.
55537 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55538             Bruno Haible  <bruno@clisp.org>
55540         netdb: Simplify.
55541         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
55542         documented to provide socklen_t and we already depend on sys_socket.
55543         * lib/netdb.in.h: Adjust comment.
55545 2011-03-19  Bruno Haible  <bruno@clisp.org>
55547         sys_socket, netdb: Document problem with socklen_t.
55548         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
55549         platforms.
55550         * doc/posix-headers/netdb.texi: Likewise.
55552 2011-03-18  Eric Blake  <eblake@redhat.com>
55554         maint.mk: let po check work in VPATH build
55555         * top/maint.mk (po_file): Allow cfg.mk override.
55556         (sc_po_check): Allow VPATH use.
55557         Reported by Jiri Denemark.
55559 2011-03-16  Jim Meyering  <meyering@redhat.com>
55561         maint.mk: allow fine-grained syntax-check exclusion via Make variables
55562         Before, you would have had to create one .x-sc_ file per rule in order
55563         to exempt offending files.  Now, you may instead use a Make variable --
55564         usually defined in cfg.mk -- whose name identifies the affected rule.
55565         * top/maint.mk (_sc_excl): Define.
55566         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
55567         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
55569 2011-03-13  Bruno Haible  <bruno@clisp.org>
55571         ignore-value tests: Avoid warnings.
55572         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
55573         empty for gcc < 3.4.
55575 2011-03-13  Bruno Haible  <bruno@clisp.org>
55577         passfd: Fix link error on Solaris.
55578         * modules/passfd (Description): Correct.
55579         (Depends-on): Add socketlib.
55580         (Link): New section.
55581         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
55583 2011-03-13  Bruno Haible  <bruno@clisp.org>
55585         passfd: Fix link error on AIX 5.2.
55586         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
55588 2011-03-13  Bruno Haible  <bruno@clisp.org>
55590         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
55591         * lib/sys_socket.in.h: Include <stddef.h>.
55592         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
55593         CMSG_FIRSTHDR. Remove unused variable.
55595 2011-03-13  Bruno Haible  <bruno@clisp.org>
55597         passfd: Fix compilation error on OpenBSD.
55598         * lib/passfd.c: Include <sys/uio.h>.
55600 2011-03-13  Bruno Haible  <bruno@clisp.org>
55602         passfd test: Fix warnings.
55603         * tests/test-passfd.c: Include <sys/wait.h>.
55604         (main): Fix typo.
55606 2011-03-13  Bruno Haible  <bruno@clisp.org>
55608         passfd module, part 4, tweaks.
55609         * tests/test-passfd.c: Reorder includes.
55610         (main): Fix perror and printf calls.
55612 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55614         passfd module, part 4.
55615         * modules/passfd-tests: New file.
55616         * tests/test-passfd.c: New file.
55618 2011-03-13  Jim Meyering  <meyering@redhat.com>
55620         Makefile: rely on GNU make; derive syntax-check rule names
55621         Rather than requiring that each sc_ rule be listed as a dependent
55622         of "check", use features of GNU make to derive the list.
55623         * Makefile (syntax-check-rules): Define.
55624         (check): Depend on the new variable, not the hard-coded list.
55626 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
55627             Bruno Haible  <bruno@clisp.org>
55629         passfd module, part 3.
55630         * lib/passfd.h (recvfd): Add a flags argument.
55631         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
55632         (recvfd): Add a flags argument.
55633         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
55634         exists.
55635         * modules/passfd (Depends-on): Add cloexec.
55636         Suggested by Eric Blake.
55638 2011-03-13  Bruno Haible  <bruno@clisp.org>
55640         passfd module, part 2, tweaks.
55641         * modules/passfd (Files): Reorder.
55642         (Depends-on): Remove errno.
55643         (Include): Remove <sys/socket.h>, <sys/un.h>.
55644         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
55645         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
55646         specification header. Include <sys/socket.h> always. Don't include
55647         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
55648         (sendfd): Clarify that it sets errno when it fails.
55649         (recvfd): Fix specification.
55651 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55653         passfd module, part 2.
55654         * modules/passfd: New file.
55655         * lib/passfd.h: New file.
55656         * lib/passfd.c: New file.
55658 2011-03-12  Bruno Haible  <bruno@clisp.org>
55660         wcswidth, mbswidth: Avoid integer overflow.
55661         * lib/wcswidth.c: Include <limits.h>.
55662         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
55663         * lib/mbswidth.c: Include <limits.h>.
55664         (mbsnwidth): Avoid 'int' overflow.
55665         Reported by Jim Meyering.
55667 2011-03-12  Bruno Haible  <bruno@clisp.org>
55669         futimens, utimensat: Avoid endless recursion on Solaris 10.
55670         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
55671         Solaris.
55672         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
55673         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
55675 2011-03-11  Jim Meyering  <meyering@redhat.com>
55677         maint.mk: relax a regexp to accommodate other formatting styles
55678         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
55679         between "ngettext" and the following "(".
55681 2011-03-11  Pádraig Brady  <P@draigBrady.com>
55683         maint.mk: suppress a false positive warning
55684         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
55685         diagnostics are marked with ngettext.
55687 2011-03-10  Eric Blake  <eblake@redhat.com>
55689         wchar: add explicit dependencies, for Tru64
55690         * modules/mbmemcasecoll (Depends-on): Add wchar.
55691         * modules/mbtowc (Depends-on): Likewise.
55692         * modules/vasnprintf (Depends-on): Likewise.
55693         * modules/unistdio/u-printf-args (Depends-on): Likewise.
55694         * modules/wctomb (Depends-on): Likewise.
55695         Reported by Peter O'Gorman.
55697 2011-03-08  Bruno Haible  <bruno@clisp.org>
55699         passfd module, part 1, tweaks.
55700         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
55701         Improve indentation. Improve AC_MSG_CHECKING messages.
55702         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
55703         gl_SOCKET_FAMILIES.
55705 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55707         passfd module, part 1.
55708         * m4/afunix.m4: New file.
55709         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
55710         sockets.
55712 2011-03-08  Bruno Haible  <bruno@clisp.org>
55714         regex-quote: New API.
55715         * lib/regex-quote.h: Include <stdbool.h>.
55716         (struct regex_quote_spec): New type.
55717         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55718         New declarations.
55719         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55720         'const struct regex_quote_spec *' argument.
55721         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
55722         (pcre_special): New constant.
55723         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55724         New functions.
55725         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55726         'const struct regex_quote_spec *' argument.
55727         * modules/regex-quote (Depends-on): Add stdbool.
55728         * tests/test-regex-quote.c (check): Update for new API. Add test for
55729         anchored results.
55730         * NEWS: Mention the API change.
55731         Reported by Reuben Thomas and Eric Blake.
55733 2011-03-06  Bruno Haible  <bruno@clisp.org>
55735         regex-quote: Fix creation of POSIX extended regular expressions.
55736         * lib/regex-quote.c (ere_special): Add grouping and alternation
55737         operators.
55739 2011-03-05  Bruno Haible  <bruno@clisp.org>
55741         doc: Improve doc regarding autopoint vs. gnulib.
55742         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
55743         disable autopoint while running autoreconf.
55744         Suggested by Ralf Wildenhues.
55746 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55748         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
55749         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
55751 2011-03-03  Bruce Korb  <bkorb@gnu.org>
55753         parse-duration: remove xalloc.h dependency
55754         * lib/parse-duration.c (parse_period): handle NULL return from
55755         strdup instead of calling xstrdup().
55756         * modules/parse-duration: remove "xalloc" dependency
55758 2011-03-03  Matthew Booth  <mbooth@redhat.com>
55760         bootstrap: honor m4_base when running aclocal
55761         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
55763 2011-03-02  Jim Meyering  <meyering@redhat.com>
55765         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
55766         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
55767         on request from Matt Booth.
55769 2011-03-01  Eric Blake  <eblake@redhat.com>
55771         test-link: work on Hurd
55772         * tests/test-link.h (test_link): Hurd rejects linking directories
55773         with EISDIR instead of the POSIX-mandated EPERM.
55775 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
55777         stdio: simplify by moving files to printf-posix, sigpipe
55778         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
55779         since this symbol is needed only if printf is replaced.
55780         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
55781         Require gl_ASM_SYMBOL_PREFIX.
55782         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
55783         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
55784         (Depends-on): Add 'raise'.
55785         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
55786         * modules/stdio (Files): Remove lib/stdio-write.c,
55787         m4/asm-underscore.m4.
55788         (Depends-on): Remove 'raise'.
55790         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
55791         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
55792         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
55793         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
55795 2011-02-28  Bruno Haible  <bruno@clisp.org>
55797         localcharset: Assume ANSI C behaviour of free().
55798         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
55799         calling free().
55800         Suggested by Simon Josefsson <simon@josefsson.org>.
55802 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
55803             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
55804             Bruno Haible  <bruno@clisp.org>  (tiny change)
55806         On Cygwin, use /proc file system instead of win32 API.
55807         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
55808         Win32 file names.
55809         (DllMain): Simplify by removing Cygwin specific code.
55810         (find_shared_library_fullname): Use Linux specific implementation also
55811         for Cygwin.
55812         (get_shared_library_fullname): Update accordingly.
55813         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
55814         Win32 file names.
55815         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
55816         Cygwin specific code.
55818 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
55819             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
55821         Fix OpenMP flag detection for various Fortran compilers.
55822         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
55823         OpenMP-conditional compilation construct, to force compile
55824         failure with missing OpenMP flag.
55825         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
55827 2011-02-25  Eric Blake  <eblake@redhat.com>
55829         strstr: expand test coverage
55830         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
55831         compilation.
55832         * tests/test-memmem.c (main): Duplicate tests.
55833         * tests/test-strcasestr.c (main): Likewise.
55834         * tests/test-c-strcasestr.c (main): Likewise.
55836 2011-02-25  Jim Meyering  <meyering@redhat.com>
55838         maint.mk: detect missing-NL-at-EOF, too
55839         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
55840         it also detects when a file lacks a newline at EOF.
55841         (require_exactly_one_NL_at_EOF_): Renamed from
55842         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
55843         since people may well have .x-sc_... file names tied to the
55844         existing name.  Suggested by Eric Blake.
55846 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55848         dirname: move m4/dos.m4 functionality into lib/dosname.h
55850         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
55851         extracts symbols from it, puts them into config.h; but it's much
55852         easier to use the symbols directly.  filename.h already does this,
55853         but it disagrees with dos.m4 in some respects.  This patch
55854         introduces a different include file dosname.h that packages up
55855         dos.m4, and then later we can work on merging filename.h and
55856         dosname.h.  Applications that need only the easy-to-configure
55857         symbols should consider including dosname.h rather than dirname.h.
55858         * NEWS: Mention incompatible changes.
55859         * m4/dos.m4: Remove.
55860         * lib/dosname.h, modules/dosname: New files.
55861         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
55862         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
55863         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
55864         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
55865         Include dosname.h, not dirname.h.
55866         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
55867         Include dosname.h, for definitions of symbols like ISSLASH
55868         that used to be in config.h.
55869         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
55870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
55871         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55872         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55873         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
55874         * modules/rmdir (Files): Likewise.
55875         * modules/stat (Files): Likewise.
55876         * modules/unlink (Files): Likewise.
55877         * modules/dirname-lgpl (Depends-on): Add dosname.
55878         * modules/lstat (Depends-on): Likewise.
55879         * modules/openat (Depends-on): Likewise.
55880         * modules/rmdir (Depends-on): Likewise.
55881         * modules/savewd (Depends-on): Likewise.
55882         * modules/stat (Depends-on): Likewise.
55883         * modules/unlink (Depends-on): Likewise.
55884         * modules/openat (Depends-on): Remove dirname-lgpl.
55885         * modules/savewd (Depends-on): Likewise.
55886         * tests/test-dirname.c: Do not use removed symbols like
55887         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
55888         the remaining symbols, e.g., ISSLASH ('\\').
55890 2011-02-25  Eric Blake  <eblake@redhat.com>
55892         strstr: revert patches that introduced bug and pessimization
55893         * lib/str-two-way.h: Add another reference.
55894         (two_way_short_needle, two_way_long_needle): Revert changes from
55895         2011-02-24; they pessimize search speed.
55896         (critical_factorization): Partially revert changes from
55897         2010-06-22; they violate the requirement that the left half of the
55898         needle be smaller than the period of the needle.
55900 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55902         filenamecat: remove unnecessary dependency on dirname-lgpl
55903         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55904         is no direct dependency, just an indirect one via filenamecat-lgpl.
55906         remove: remove unnecessary use of m4/dos.m4
55907         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55908         * modules/remove (FILES): Remove m4/dos.m4.
55910         * lib/openat-proc.c: Don't include dirname.h; not needed.
55912         backupfile: remove unnecessary use of m4/dos.m4
55913         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55914         of its symbols are used by the backupfile code.  backupfile.c does
55915         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55916         for the rare case of programs that want all their backup file
55917         names to live within 8+3 limits, and dos.m4 doesn't address that.
55918         * modules/backupfile (Files): Remove m4/dos.m4.
55920 2011-02-24  Jim Meyering  <meyering@redhat.com>
55922         strstr: fix a bug whereby strstr would mistakenly return NULL
55923         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55924         in period calculation.
55925         (two_way_long_needle): Likewise.
55926         The original problem was reported by Mike Stump in
55927         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55928         Ralf Wildenhues provided the short needle and haystack.
55929         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55930         Add a more involved test to trigger the bug in two_way_long_needle.
55932 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55934         gnulib-tool: remove use of bold display in help screen
55935         * gnulib-tool (func_usage): Do not use bold display anymore in the
55936         help screen.  That was just meant to be a temporary emphasis for a
55937         backward-incompatible change.
55939 2011-02-23  Bruno Haible  <bruno@clisp.org>
55941         Fix misindentation of preprocessor directives.
55942         * lib/argp-namefrob.h: Reindent preprocessor directives.
55943         * lib/getopt_int.h (struct _getopt_data): Likewise.
55944         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55945         * lib/vasnprintf.c (decode_long_double): Likewise.
55946         * tests/test-argmatch.c: Insert blank lines, for clarity.
55947         * tests/test-exclude.c: Likewise.
55949 2011-02-22  Bruno Haible  <bruno@clisp.org>
55951         ioctl: Fix for MacOS X in 64-bit mode.
55952         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55953         value.
55954         Suggested by Eric Blake.
55955         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55957 2011-02-22  Jim Meyering  <meyering@redhat.com>
55959         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55960         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55961         in lib/.
55963 2011-02-22  Eric Blake  <eblake@redhat.com>
55965         maint: avoid any CDPATH issue
55966         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55968         maint: adjust cpp indentation for my modules, as well
55969         * Makefile (sc_cpp_indent_check): Add my name.
55970         * lib/fbufmode.c: Filter through cppi.
55971         * lib/fpurge.c: Likewise.
55972         * lib/freadable.c: Likewise.
55973         * lib/freading.c: Likewise.
55974         * lib/fwritable.c: Likewise.
55975         * lib/fwriting.c: Likewise.
55976         * lib/sigaction.c: Likewise.
55978 2011-02-22  Jim Meyering  <meyering@redhat.com>
55980         maint: adjust cpp indentation to reflect nesting depth
55981         I.e., in a block of code that begins with an unnested "#if",
55982         put one space between the "#" in column 1 and following token.
55983         For example,
55984         -#include <sys/vfs.h>
55985         +# include <sys/vfs.h>
55986         Do this only in .c files that are part of a module I maintain.
55987         * lib/linkat.c: Filter through cppi.
55988         * lib/nanosleep.c: Likewise.
55989         * lib/openat.c: Likewise.
55990         * lib/openat-die.c: Likewise.
55991         * lib/dup3.c: Likewise.
55992         * lib/fchownat.c: Likewise.
55993         * lib/flock.c: Likewise.
55994         * lib/fsync.c: Likewise.
55995         * lib/fts.c: Likewise.
55996         * lib/getpass.c: Likewise.
55997         * lib/gettimeofday.c: Likewise.
55998         * lib/userspec.c: Likewise.
55999         * Makefile (sc_cpp_indent_check): New rule, to check this.
56001 2011-02-22  Bruno Haible  <bruno@clisp.org>
56003         New module 'wctomb'.
56004         * lib/stdlib.in.h (wctomb): New declaration.
56005         * lib/wctomb.c: New file.
56006         * lib/wctomb-impl.h: New file.
56007         * m4/wctomb.m4: New file.
56008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
56009         REPLACE_WCTOMB.
56010         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
56011         REPLACE_WCTOMB.
56012         * modules/wctomb: New file.
56013         * tests/test-stdlib-c++.cc: Test signature of wctomb.
56014         * doc/posix-functions/wctomb.texi: Mention the new module.
56015         * modules/wctob (Depends-on): Add wctomb.
56017 2011-02-22  Bruno Haible  <bruno@clisp.org>
56019         New module 'mbtowc'.
56020         * lib/stdlib.in.h (mbtowc): New declaration.
56021         * lib/mbtowc.c: New file.
56022         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
56023         * m4/mbtowc.m4: New file.
56024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
56025         REPLACE_MBTOWC.
56026         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
56027         REPLACE_MBTOWC.
56028         * modules/mbtowc: New file.
56029         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
56030         * doc/posix-functions/mbtowc.texi: Mention the new module.
56031         * modules/btowc (Depends-on): Add mbtowc.
56033 2011-02-22  Bruno Haible  <bruno@clisp.org>
56035         wcrtomb: Add more tests for native Windows platforms.
56036         * tests/test-wcrtomb-w32-1.sh: New file.
56037         * tests/test-wcrtomb-w32-2.sh: New file.
56038         * tests/test-wcrtomb-w32-3.sh: New file.
56039         * tests/test-wcrtomb-w32-4.sh: New file.
56040         * tests/test-wcrtomb-w32-5.sh: New file.
56041         * tests/test-wcrtomb-w32.c: New file.
56042         * modules/wcrtomb-tests (Files): Add them.
56043         (Makefile.am): Arrange to run these tests.
56044         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
56045         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
56047 2011-02-20  Bruno Haible  <bruno@clisp.org>
56049         wcrtomb: Enhance test.
56050         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
56052 2011-02-20  Bruno Haible  <bruno@clisp.org>
56054         mbrtowc: Tiny optimization.
56055         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
56057 2011-02-20  Jim Meyering  <meyering@redhat.com>
56059         test-exclude.c: remove unmatched #endif
56060         * tests/test-exclude.c: Remove stray #endif, left over from
56061         the change of a week ago.
56063 2011-02-19  Jim Meyering  <meyering@redhat.com>
56065         git-version-gen: skip "-dirty" check when appropriate
56066         * build-aux/git-version-gen: Don't run any git commands when the
56067         version string comes from .tarball-version.  Prior to this, we
56068         would run git update-index --refresh even from a just-unpacked
56069         tarball directory, and that could affect a .git/ directory in a
56070         parent of the build directory.  Reported by Mike Frysinger.
56072 2011-02-19  Bruno Haible  <bruno@clisp.org>
56074         unictype/property-byname: Reduce the size of the 'data' segment.
56075         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
56077 2011-02-19  Bruno Haible  <bruno@clisp.org>
56079         unictype/scripts: Reduce the size of the 'data' segment.
56080         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
56081         '%pic'.
56082         * lib/unictype/scripts_byname.gperf: Regenerated.
56084 2011-02-19  Bruno Haible  <bruno@clisp.org>
56086         stdint: Update documentation.
56087         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
56089 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
56091         stdint: omit redundant check for wchar.h
56092         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
56093         always tests whether wchar.h exists, so remove the now-redundant test.
56095 2011-02-18  Bruno Haible  <bruno@clisp.org>
56097         stdint: Cut dependency to module 'wchar'.
56098         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
56099         include the necessary prerequisites.
56100         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
56101         * modules/stdint (Depends-on): Remove wchar.
56102         (Makefile.am): Substitute HAVE_WCHAR_H.
56103         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
56105 2011-02-18  Eric Blake  <eblake@redhat.com>
56107         longlong: skip, rather than fail, on cross-compilation
56108         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
56109         when cross-compiling; regression from 2011-02-16.
56111 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
56113         * NEWS: Mention 2011-02-08 change to stdlib.
56115 2011-02-17  Bruno Haible  <bruno@clisp.org>
56117         getloadavg: Add comments about platforms.
56118         * m4/getloadavg.m4: Add comment.
56119         * lib/getloadavg.c: Likewise.
56121 2011-02-17  Bruno Haible  <bruno@clisp.org>
56123         getloadavg: Fix link error on Solaris 2.6.
56124         * modules/getloadavg (Link): New section.
56125         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
56126         linking test-getloadavg.
56127         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
56128         getloadavg.
56130 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
56132         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
56133         It was 'int', but this doesn't match the IRIX 6.5 manual.
56134         Suggested by Bruno Haible in
56135         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
56137 2011-02-17  Bruno Haible  <bruno@clisp.org>
56139         havelib: Fix comments.
56140         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
56141         change.
56143 2011-02-17  Bruno Haible  <bruno@clisp.org>
56145         havelib: Update config.rpath.
56146         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
56148 2011-02-17  Bruno Haible  <bruno@clisp.org>
56150         getloadavg test: Add some plausibility checks.
56151         * tests/test-getloadavg.c (check_avg): Print a warning when the value
56152         is improbable.
56154 2011-02-16  Eric Blake  <eblake@redhat.com>
56156         maintainer-makefile: make syntax-check a no-op from tarballs
56157         * top/maint.mk (no-vc-detected): New rule.
56158         (local-checks-available): Use it to avoid hanging if someone tries
56159         'make syntax-check' from a tarball.  Also append to any non-syntax
56160         checks already defined in cfg.mk.
56162 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
56164         longlong: tune, particularly for common case of c99
56166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
56167         or running anything if c99, or if unsigned long long int does not
56168         work.  In either case, we know the answer without further tests.
56169         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
56170         it at most once, and use its results for both long long int and
56171         unsigned long long int.  This is more likely to be efficient in
56172         the common case where the program wants to check for both long
56173         long int and unsigned long long int.
56174         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
56175         since the answer is already known.
56177 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
56179         getloadavg: set errno
56180         * lib/getloadavg.c: Set errno when returning -1.  If no other
56181         error number looks appropriate, set it to ENOSYS if the getloadavg
56182         looks like it can't possibly ever work, ENOTSUP otherwise.
56183         Suggested by Bruno Haible in
56184         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
56186         getloadavg: trim unused parts and speed up 'configure'
56187         * NEWS: Document this.
56188         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
56189         always compiled if getloadavg is absent.
56190         Move test code to ...
56191         * tests/test-getloadavg.c: New file, containing previous
56192         contents of test from lib/getloadavg.c.  It also contains
56193         suggestions by Bruno Haible in
56194         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
56195         * modules/getloadavg-tests: New file.
56196         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
56197         Do tests in the same order as they're needed for getloadavg.c.
56198         Omit setgid-related tests that generate symbols KMEM_GROUP,
56199         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
56200         Do only the tests that are needed to see whether the system has
56201         getloadavg, moving the other tests into ...
56202         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
56203         NLIST_NAME_UNION; nobody should be using it.  Do not define
56204         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
56205         relevant, as the user of this module shouldn't care how getloadavg
56206         is implemented.
56208         getloadavg: omit unused var
56209         * lib/getloadavg.c (getloadavg): Omit unused local variable.
56211 2011-02-15  Jim Meyering  <meyering@redhat.com>
56213         doc: update users.txt
56214         * users.txt: Update iwhd's URL.
56216 2011-02-13  Bruno Haible  <bruno@clisp.org>
56218         Consistent macro naming for macros that use GCC __attribute__.
56219         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
56220         _ATTRIBUTE_NONNULL_.
56221         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
56222         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
56223         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
56224         ATTRIBUTE_DEPRECATED.
56225         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
56226         ATTRIBUTE_NORETURN.
56227         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
56228         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
56229         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
56230         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
56231         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
56232         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
56233         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
56234         ATTRIBUTE_SENTINEL.
56235         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
56236         ATTRIBUTE_RETURN_CHECK.
56237         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
56238         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
56239         ATTRIBUTE_NORETURN.
56240         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
56241         Reported by Paul Eggert.
56243 2011-02-13  Bruno Haible  <bruno@clisp.org>
56245         Don't interfere with a program's definition of __attribute__.
56246         * lib/argp.h (__attribute__): Remove definition.
56247         (_GL_ATTRIBUTE_FORMAT): New macro.
56248         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
56249         * lib/argp-fmtstream.h (__attribute__): Remove definition.
56250         (_GL_ATTRIBUTE_FORMAT): New macro.
56251         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
56252         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
56253         GCC 3 or newer.
56254         * lib/error.h (__attribute__): Remove definition.
56255         (_GL_ATTRIBUTE_FORMAT): New macro.
56256         (error, error_at_line): Use it.
56257         * lib/hash.h (__attribute__): Remove definition.
56258         (ATTRIBUTE_WUR): Update definition. Define always.
56259         * lib/openat.h (__attribute__): Remove definition.
56260         (ATTRIBUTE_NORETURN): Update definition. Define always.
56261         * lib/sigpipe-die.h (__attribute__): Remove definition.
56262         (ATTRIBUTE_NORETURN): Update definition. Define always.
56263         * lib/vasnprintf.h (__attribute__): Remove definition.
56264         (_GL_ATTRIBUTE_FORMAT): New macro.
56265         (asnprintf, vasnprintf): Use it.
56266         * lib/xalloc.h (__attribute__): Remove definition.
56267         (ATTRIBUTE_NORETURN): Update definition. Define always.
56268         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
56269         * lib/xmemdup0.h (__attribute__): Remove definition.
56270         (ATTRIBUTE_NORETURN): Update definition. Define always.
56271         * lib/xprintf.h (__attribute__): Remove definition.
56272         (_GL_ATTRIBUTE_FORMAT): New macro.
56273         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
56274         * lib/xstrtol.h (__attribute__): Remove definition.
56275         (ATTRIBUTE_NORETURN): Update definition. Define always.
56276         * lib/xvasprintf.h (__attribute__): Remove definition.
56277         (_GL_ATTRIBUTE_FORMAT): New macro.
56278         (xasprintf, xvasprintf): Use it.
56279         * tests/test-argmatch.c (__attribute__): Remove definition.
56280         (ATTRIBUTE_NORETURN): Update definition. Define always.
56281         * tests/test-exclude.c (__attribute__): Remove definition.
56282         (ATTRIBUTE_NORETURN): Update definition. Define always.
56283         Reported by Paul Eggert.
56285 2011-02-13  Bruno Haible  <bruno@clisp.org>
56287         mbrtowc: Add more tests for native Windows platforms.
56288         * tests/test-mbrtowc-w32-1.sh: New file.
56289         * tests/test-mbrtowc-w32-2.sh: New file.
56290         * tests/test-mbrtowc-w32-3.sh: New file.
56291         * tests/test-mbrtowc-w32-4.sh: New file.
56292         * tests/test-mbrtowc-w32-5.sh: New file.
56293         * tests/test-mbrtowc-w32.c: New file.
56294         * modules/mbrtowc-tests (Files): Add them.
56295         (Makefile.am): Arrange to run these tests.
56296         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
56297         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
56299 2011-02-13  Bruno Haible  <bruno@clisp.org>
56301         mbrtowc: Work around native Windows bug.
56302         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
56303         guess when no suitable locale for testing was found.
56304         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
56306 2011-02-13  Bruno Haible  <bruno@clisp.org>
56308         mbsinit: Work around mingw bug.
56309         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
56310         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
56311         Windows.
56312         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
56314 2011-02-13  Bruno Haible  <bruno@clisp.org>
56316         mbsinit: Don't crash for a NULL argument.
56317         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
56318         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
56320 2011-02-13  Bruno Haible  <bruno@clisp.org>
56322         Don't interfere with a program's definition of __attribute__.
56323         * lib/stdio.in.h (__attribute__): Remove definition.
56324         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
56325         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
56326         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
56327         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
56328         * lib/string.in.h (__attribute__): Remove definition.
56329         Reported by Paul Eggert.
56331 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56333         stdlib: don't get in the way of non-GCC __attribute__
56334         See thread starting at
56335         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
56336         Revert previous stdlib change, installing the following instead:
56337         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
56338         to get in the way of a non-GCC compiler that supports __attribute__.
56339         (_GL_ATTRIBUTE_RETURN): New macro.
56340         (_Exit): Use it instead of __attribute__.
56342 2011-02-12  Bruno Haible  <bruno@clisp.org>
56344         quotearg test: Avoid test failure on mingw.
56345         * tests/test-quotearg.sh: Convert the locale identifier from native
56346         Windows syntax to Unix syntax.
56348 2011-02-12  Bruno Haible  <bruno@clisp.org>
56350         setlocale: Prefer gnulib's override over libintl's override.
56351         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
56352         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
56353         GNULIB_defined_setlocale is set.
56355 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56357         stdlib: support non-GCC __attribute__
56359         Fix a serious and tricky problem encountered when attempting to
56360         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
56361         5.5, but it crashed due to memory corruption on Solaris 10 with
56362         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
56363         bits that are otherwise zero.  This tagging is optional inside
56364         Emacs but is preferred and is used when __attribute__ ((__aligned
56365         (8))) works, as it does with both recent-enough GCC and with Sun C
56366         5.11.  However, Sun C 5.11 is not GCC and does not #define
56367         __GNUC__ and __GNUC_MINOR__.
56369         When I added the getloadavg module to Emacs, it brought in
56370         stdlib.in.h, which contained this fragment:
56372            #ifndef __attribute__
56373            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
56374            #  define __attribute__(Spec)   /* empty */
56375            # endif
56376            #endif
56378         When files that include <stdlib.h> were compiled with Sun C 5.11,
56379         the above code disabled __attribute__ ((__aligned (8))), which
56380         caused variables to not be properly aligned, which eventually led
56381         to the pointer corruption mentioned above.  (This was a bit hard
56382         to diagnose, unfortunately.)
56384         Several "#define __attribute__(X) /* empty */" code snippets need
56385         to be eradicated from Gnulib to work with non-GCC compilers that
56386         support __attribute__.  The Autoconf way to do this is to test for
56387         each kind of attribute that we want support for, and selectively
56388         enable that in source code.
56390         Fix this problem just for stdlib.h, by adding a test for the
56391         __noreturn__ attribute, and change stdlib.in.h to use that test
56392         when needed.  This technique can be easily generalized to the
56393         other *.in.h files and attributes, and a similar technique can be
56394         used for *.h and *.c files.  This patch is enough to solve the
56395         problem for Emacs + getloadavg, and I thought I'd publish it for
56396         feedback before undertaking further, similar fixes in other
56397         modules.
56399         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
56400         because it's not needed for stdlib.h.  It merely substitutes the
56401         value directly into stdlib.h.  We may well need to #define it, or
56402         similar symbols, for other modules, but it's nice to also have an
56403         option to not #define it for applications like Emacs that do not
56404         need it.
56406         * lib/stdlib.in.h (__attribute__): Do not #define.
56407         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
56408         be defined only if the _Exit module is also used.
56409         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
56410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
56411         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
56412         platforms.
56413         * modules/_Exit (Files): Add m4/attribute.m4.
56414         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
56415         * m4/attribute.m4: New file.
56417 2011-02-12  Bruno Haible  <bruno@clisp.org>
56419         wcsrtombs: Work around bug on native Windows.
56420         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
56421         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
56422         instead of len.
56423         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
56425 2011-02-12  Bruno Haible  <bruno@clisp.org>
56427         mbsrtowcs: Work around bug on native Windows.
56428         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
56429         against mingw bug.
56430         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
56432 2011-02-12  Bruno Haible  <bruno@clisp.org>
56434         Avoid setlocale bugs in tests.
56435         * modules/btowc (Dependencies): Add setlocale.
56436         * modules/c-strcase (Dependencies): Likewise.
56437         * modules/mbmemcasecmp (Dependencies): Likewise.
56438         * modules/mbmemcasecoll (Dependencies): Likewise.
56439         * modules/mbrtowc (Dependencies): Likewise.
56440         * modules/mbscasecmp (Dependencies): Likewise.
56441         * modules/mbscasestr (Dependencies): Likewise.
56442         * modules/mbschr (Dependencies): Likewise.
56443         * modules/mbscspn (Dependencies): Likewise.
56444         * modules/mbsinit (Dependencies): Likewise.
56445         * modules/mbsncasecmp (Dependencies): Likewise.
56446         * modules/mbsnrtowcs (Dependencies): Likewise.
56447         * modules/mbspbrk (Dependencies): Likewise.
56448         * modules/mbspcasecmp (Dependencies): Likewise.
56449         * modules/mbsrchr (Dependencies): Likewise.
56450         * modules/mbsrtowcs (Dependencies): Likewise.
56451         * modules/mbsspn (Dependencies): Likewise.
56452         * modules/mbsstr (Dependencies): Likewise.
56453         * modules/nl_langinfo (Dependencies): Likewise.
56454         * modules/quotearg (Dependencies): Likewise.
56455         * modules/unicase/locale-language (Dependencies): Likewise.
56456         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
56457         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
56458         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
56459         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
56460         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
56461         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
56462         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
56463         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
56464         * modules/vasnprintf-posix (Dependencies): Likewise.
56465         * modules/wcrtomb (Dependencies): Likewise.
56466         * modules/wcsnrtombs (Dependencies): Likewise.
56467         * modules/wcsrtombs (Dependencies): Likewise.
56469 2011-02-12  Bruno Haible  <bruno@clisp.org>
56471         setlocale: Workaround native Windows bug.
56472         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
56473         succeeds but sets LC_CTYPE to "C", report a failure.
56474         * tests/test-setlocale2.sh: New file.
56475         * tests/test-setlocale2.c: New file.
56476         * modules/setlocale-tests (Files): Add the new files.
56477         (Makefile.am): Enable test-setlocale2.sh test.
56478         * doc/posix-functions/setlocale.texi: Mention workaround.
56480 2011-02-11  Bruno Haible  <bruno@clisp.org>
56482         Tests for module 'setlocale'.
56483         * modules/setlocale-tests: New file.
56484         * tests/test-setlocale1.sh: New file.
56485         * tests/test-setlocale1.c: New file.
56487         New module 'setlocale'.
56488         * lib/locale.in.h (setlocale): New declaration.
56489         * lib/setlocale.c: New file, based on
56490         gettext/gettext-runtime/intl/setlocale.c.
56491         * m4/setlocale.m4: New file.
56492         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
56493         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
56494         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
56495         REPLACE_SETLOCALE.
56496         * modules/setlocale: New file.
56497         * tests/test-locale-c++.cc: Test the declaration of setlocale.
56498         * doc/posix-functions/setlocale.texi: Mention the new module.
56500 2011-02-11  Bruno Haible  <bruno@clisp.org>
56502         Prepare for locale dependent tests on mingw.
56503         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
56504         because it has the wrong locale encoding.
56505         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
56506         French_France.1252 instead of "fr".
56507         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
56508         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
56509         because it has the wrong locale encoding.
56510         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
56511         native Windows, try Turkish_Turkey.65001.
56512         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
56513         Chinese_China.54936.
56515         Prepare for locale dependent tests on mingw.
56516         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
56517         differently.
56518         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
56519         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
56520         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56521         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56523 2011-02-11  Eric Blake  <eblake@redhat.com>
56525         strptime: avoid compiler warnings
56526         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
56527         compiler warnings about dead code.
56528         Reported by Daniel P. Berrange.
56530 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
56532         doc: update users.txt
56533         * users.txt: Add rcs.
56535 2011-02-10  John W. Eaton  <jwe@gnu.org>
56537         doc: update users.txt
56538         * users.txt: Add octave.
56540 2011-02-10  Jim Meyering  <meyering@redhat.com>
56542         doc: update users.txt
56543         * users.txt: Add iwhd.
56545 2011-02-09  Bruno Haible  <bruno@clisp.org>
56547         gnulib-tool: Make copyright notice adjustment more robust.
56548         * gnulib-tool (func_import): In sed_transform_main_lib_file,
56549         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
56550         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
56551         License".
56552         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
56554 2011-02-06  Bruno Haible  <bruno@clisp.org>
56556         New module 'towctrans'.
56557         * modules/towctrans: New file.
56558         * lib/wctype.in.h (towctrans): New declaration.
56559         * lib/towctrans.c: New file.
56560         * lib/towctrans-impl.h: New file.
56561         * m4/towctrans.m4: New file.
56562         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
56563         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
56564         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
56565         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
56566         * doc/posix-functions/towctrans.texi: Mention the new module.
56568 2011-02-06  Bruno Haible  <bruno@clisp.org>
56570         New module 'wctrans'.
56571         * modules/wctrans: New file.
56572         * lib/wctype.in.h (wctrans): New declaration.
56573         * lib/wctrans.c: New file.
56574         * lib/wctrans-impl.h: New file.
56575         * m4/wctrans.m4: New file.
56576         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
56577         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
56578         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
56579         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
56580         * doc/posix-functions/wctrans.texi: Mention the new module.
56582 2011-02-06  Bruno Haible  <bruno@clisp.org>
56584         New module 'iswctype'.
56585         * modules/iswctype: New file.
56586         * lib/wctype.in.h (iswctype): New declaration.
56587         * lib/iswctype.c: New file.
56588         * lib/iswctype-impl.h: New file.
56589         * m4/iswctype.m4: New file.
56590         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
56591         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
56592         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
56593         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
56594         * doc/posix-functions/iswctype.texi: Mention the new module and the
56595         HP-UX 11.00 problem.
56597 2011-02-06  Bruno Haible  <bruno@clisp.org>
56599         New module 'wctype'.
56600         * modules/wctype: Change to represent the wctype() substitute.
56601         * lib/wctype.in.h (wctype): New declaration.
56602         * lib/wctype.c: New file.
56603         * lib/wctype-impl.h: New file.
56604         * m4/wctype.m4: New file.
56605         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
56606         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
56607         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
56608         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
56609         * doc/posix-functions/wctype.texi: Mention the new module and the
56610         HP-UX 11.00 problem.
56612 2011-02-06  Bruno Haible  <bruno@clisp.org>
56614         wctype-h: Ensure wctype_t and wctrans_t are defined.
56615         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
56616         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56617         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56618         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
56619         HAVE_WCTRANS_T.
56620         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
56622 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
56624         flock: fix license typo
56626         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
56627         omitted.
56629 2011-02-08  Bruno Haible  <bruno@clisp.org>
56631         Split large sed scripts, for HP-UX sed.
56632         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
56633         to avoid HP-UX limit of 99 commands, in the near future.
56634         * modules/stdlib (Makefile.am): Likewise.
56635         * modules/unistd (Makefile.am): Likewise.
56636         * modules/wchar (Makefile.am): Likewise.
56637         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56638         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
56639         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
56641 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56642             Bruno Haible  <bruno@clisp.org>
56644         stdlib: improve random_r modularization
56645         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
56646         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
56647         you also need the random_r module to get this material right.
56648         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
56649         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
56650         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
56652 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56654         stdlib: don't depend on stdint
56655         * lib/stdlib.in.h: Don't include <stdint.h> merely because
56656         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
56657         be independent of whether stdint.h is needed.
56658         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
56659         here, instead of ...
56660         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
56661         struct random_data should be using the random_r module, not just
56662         the stdlib module (which wouldn't make sense: what package needs
56663         just struct random_data without also needing random_r?).
56664         * modules/stdlib (Depends-on): Remove stdint.
56666         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
56667         See the thread rooted at
56668         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
56669         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
56670         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
56671         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
56672         __VMS)); previously it was always included (via fcntl--.h).
56673         (getloadavg): Do not use c_strtod.  Instead, approximate it by
56674         hand; this is good enough for load averages.  Also, do not use
56675         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
56676         flags directly if available and don't bother otherwise.  (Packages
56677         that need the extra reliability should use the modules that define
56678         these flags on older platforms that lack them.)
56679         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
56680         fcntl-safer.
56682 2011-02-08  Jim Meyering  <meyering@redhat.com>
56684         di-set.h, ino-map.h: add multiple-inclusion guard
56685         Technically, the guard is required only for ino-map.h, due to its
56686         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
56687         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
56688         * lib/ino-map.h: Likewise.
56690 2011-02-06  Bruno Haible  <bruno@clisp.org>
56692         iswblank: Ensure declaration on glibc systems.
56693         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
56694         * modules/iswblank (Dependencies): Add 'extensions'.
56695         * doc/posix-functions/iswblank.texi: Document the glibc problem.
56697 2011-02-06  Bruno Haible  <bruno@clisp.org>
56699         New module 'iswblank'.
56700         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
56701         * modules/iswblank: New file.
56702         * modules/wctype-h (Files): Remove lib/iswblank.c.
56703         (Makefile.am): Substitute GNULIB_ISWBLANK.
56704         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
56705         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
56706         (gl_WCTYPE_H_DEFAULTS): New macro.
56707         (gl_WCTYPE_H): Require it. Remove iswblank related code.
56708         * modules/iswblank-tests: New file.
56709         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
56710         * tests/test-wctype-h.c (main): Remove iswblank tests.
56711         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
56712         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
56713         of 'wctype-h'.
56714         * NEWS: Mention the change.
56715         * modules/mbchar (Depends-on): Add iswblank.
56717 2011-02-08  Bruno Haible  <bruno@clisp.org>
56719         di-set tests: Refactor.
56720         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
56721         unnecessary includes.
56722         (ASSERT): Remove macro.
56723         (main): Make C90 compliant by avoiding variable declaration after
56724         statement.
56725         * modules/di-set-tests (Files): Add tests/macros.h.
56727 2011-02-08  Bruno Haible  <bruno@clisp.org>
56729         ino-map tests: Refactor.
56730         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
56731         unnecessary includes.
56732         (ASSERT): Remove macro.
56733         (main): Make C90 compliant by avoiding variable declaration after
56734         statement.
56735         * modules/ino-map-tests (Files): Add tests/macros.h.
56737 2011-02-08  Jim Meyering  <meyering@redhat.com>
56739         di-set: add "const" to a cast
56740         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
56741         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
56743 2011-02-06  Bruno Haible  <bruno@clisp.org>
56745         Rename module 'wctype' to 'wctype-h'.
56746         * modules/wctype-h: Renamed from modules/wctype.
56747         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
56748         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
56749         (Files, Depends-on, Makefile.am): Update.
56750         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
56751         (Files, Makefile.am): Update.
56752         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
56753         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
56754         * doc/posix-headers/wctype.texi: Update.
56755         * doc/posix-functions/iswalnum.texi: Update.
56756         * doc/posix-functions/iswalpha.texi: Update.
56757         * doc/posix-functions/iswblank.texi: Update.
56758         * doc/posix-functions/iswcntrl.texi: Update.
56759         * doc/posix-functions/iswdigit.texi: Update.
56760         * doc/posix-functions/iswgraph.texi: Update.
56761         * doc/posix-functions/iswlower.texi: Update.
56762         * doc/posix-functions/iswprint.texi: Update.
56763         * doc/posix-functions/iswpunct.texi: Update.
56764         * doc/posix-functions/iswspace.texi: Update.
56765         * doc/posix-functions/iswupper.texi: Update.
56766         * doc/posix-functions/iswxdigit.texi: Update.
56767         * doc/posix-functions/towlower.texi: Update.
56768         * doc/posix-functions/towupper.texi: Update.
56769         * NEWS: Mention the change.
56770         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
56771         * modules/mbchar (Dependencies): Likewise.
56772         * modules/mbswidth (Dependencies): Likewise.
56773         * modules/quotearg (Dependencies): Likewise.
56774         * modules/regex (Dependencies): Likewise.
56775         * modules/wcscasecmp (Dependencies): Likewise.
56776         * modules/wcsncasecmp (Dependencies): Likewise.
56777         * modules/wcwidth (Dependencies): Likewise.
56779 2011-02-06  Bruno Haible  <bruno@clisp.org>
56781         New module 'wcswidth'.
56782         * modules/wcswidth: New file.
56783         * lib/wchar.in.h (wcswidth): New declaration.
56784         * lib/wcswidth.c: New file.
56785         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
56786         * m4/wcswidth.m4: New file.
56787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
56788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
56789         REPLACE_WCSWIDTH.
56790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
56791         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
56792         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
56793         * doc/posix-functions/wcswidth.texi: Mention the new module.
56795 2011-02-06  Bruno Haible  <bruno@clisp.org>
56797         New module 'wcstok'.
56798         * modules/wcstok: New file.
56799         * lib/wchar.in.h (wcstok): New declaration.
56800         * lib/wcstok.c: New file.
56801         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
56802         * m4/wcstok.m4: New file.
56803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
56804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
56805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
56806         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
56807         * doc/posix-functions/wcstok.texi: Mention the new module.
56809 2011-02-06  Bruno Haible  <bruno@clisp.org>
56811         New module 'wcsstr'.
56812         * modules/wcsstr: New file.
56813         * lib/wchar.in.h (wcsstr): New declaration.
56814         * lib/wcsstr.c: New file.
56815         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
56816         * m4/wcsstr.m4: New file.
56817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
56818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
56819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
56820         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
56821         * doc/posix-functions/wcsstr.texi: Mention the new module.
56823 2011-02-06  Bruno Haible  <bruno@clisp.org>
56825         New module 'wcspbrk'.
56826         * modules/wcspbrk: New file.
56827         * lib/wchar.in.h (wcspbrk): New declaration.
56828         * lib/wcspbrk.c: New file.
56829         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
56830         * m4/wcspbrk.m4: New file.
56831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
56832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
56833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
56834         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
56835         * doc/posix-functions/wcspbrk.texi: Mention the new module.
56837 2011-02-06  Bruno Haible  <bruno@clisp.org>
56839         New module 'wcsspn'.
56840         * modules/wcsspn: New file.
56841         * lib/wchar.in.h (wcsspn): New declaration.
56842         * lib/wcsspn.c: New file.
56843         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
56844         * m4/wcsspn.m4: New file.
56845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
56846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
56847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
56848         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
56849         * doc/posix-functions/wcsspn.texi: Mention the new module.
56851 2011-02-06  Bruno Haible  <bruno@clisp.org>
56853         New module 'wcscspn'.
56854         * modules/wcscspn: New file.
56855         * lib/wchar.in.h (wcscspn): New declaration.
56856         * lib/wcscspn.c: New file.
56857         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
56858         * m4/wcscspn.m4: New file.
56859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
56860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
56861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
56862         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
56863         * doc/posix-functions/wcscspn.texi: Mention the new module.
56865 2011-02-06  Bruno Haible  <bruno@clisp.org>
56867         New module 'wcsrchr'.
56868         * modules/wcsrchr: New file.
56869         * lib/wchar.in.h (wcsrchr): New declaration.
56870         * lib/wcsrchr.c: New file.
56871         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
56872         * m4/wcsrchr.m4: New file.
56873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
56874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
56875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
56876         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
56877         * doc/posix-functions/wcsrchr.texi: Mention the new module.
56879 2011-02-06  Bruno Haible  <bruno@clisp.org>
56881         New module 'wcschr'.
56882         * modules/wcschr: New file.
56883         * lib/wchar.in.h (wcschr): New declaration.
56884         * lib/wcschr.c: New file.
56885         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
56886         * m4/wcschr.m4: New file.
56887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
56888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
56889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
56890         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
56891         * doc/posix-functions/wcschr.texi: Mention the new module.
56893 2011-02-06  Bruno Haible  <bruno@clisp.org>
56895         New module 'wcsdup'.
56896         * modules/wcsdup: New file.
56897         * lib/wchar.in.h (wcsdup): New declaration.
56898         * lib/wcsdup.c: New file.
56899         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56900         * m4/wcsdup.m4: New file.
56901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56904         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56905         * doc/posix-functions/wcsdup.texi: Mention the new module.
56907 2011-02-06  Bruno Haible  <bruno@clisp.org>
56909         New module 'wcsxfrm'.
56910         * modules/wcsxfrm: New file.
56911         * lib/wchar.in.h (wcsxfrm): New declaration.
56912         * lib/wcsxfrm.c: New file.
56913         * lib/wcsxfrm-impl.h: New file.
56914         * m4/wcsxfrm.m4: New file.
56915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56918         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56919         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56921 2011-02-06  Bruno Haible  <bruno@clisp.org>
56923         New module 'wcscoll'.
56924         * modules/wcscoll: New file.
56925         * lib/wchar.in.h (wcscoll): New declaration.
56926         * lib/wcscoll.c: New file.
56927         * lib/wcscoll-impl.h: New file.
56928         * m4/wcscoll.m4: New file.
56929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56932         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56933         * doc/posix-functions/wcscoll.texi: Mention the new module.
56935 2011-02-06  Bruno Haible  <bruno@clisp.org>
56937         New module 'wcsncasecmp'.
56938         * modules/wcsncasecmp: New file.
56939         * lib/wchar.in.h (wcsncasecmp): New declaration.
56940         * lib/wcsncasecmp.c: New file.
56941         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56942         * m4/wcsncasecmp.m4: New file.
56943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56946         HAVE_WCSNCASECMP.
56947         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56948         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56950 2011-02-06  Bruno Haible  <bruno@clisp.org>
56952         New module 'wcscasecmp'.
56953         * modules/wcscasecmp: New file.
56954         * lib/wchar.in.h (wcscasecmp): New declaration.
56955         * lib/wcscasecmp.c: New file.
56956         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56957         * m4/wcscasecmp.m4: New file.
56958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56961         HAVE_WCSCASECMP.
56962         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56963         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56965 2011-02-05  Bruno Haible  <bruno@clisp.org>
56967         New module 'wcsncmp'.
56968         * modules/wcsncmp: New file.
56969         * lib/wchar.in.h (wcsncmp): New declaration.
56970         * lib/wcsncmp.c: New file.
56971         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56972         * m4/wcsncmp.m4: New file.
56973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56976         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56977         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56979 2011-02-05  Bruno Haible  <bruno@clisp.org>
56981         New module 'wcscmp'.
56982         * modules/wcscmp: New file.
56983         * lib/wchar.in.h (wcscmp): New declaration.
56984         * lib/wcscmp.c: New file.
56985         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56986         * m4/wcscmp.m4: New file.
56987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56990         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56991         * doc/posix-functions/wcscmp.texi: Mention the new module.
56993 2011-02-05  Bruno Haible  <bruno@clisp.org>
56995         New module 'wcsncat'.
56996         * modules/wcsncat: New file.
56997         * lib/wchar.in.h (wcsncat): New declaration.
56998         * lib/wcsncat.c: New file.
56999         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
57000         * m4/wcsncat.m4: New file.
57001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
57002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
57003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
57004         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
57005         * doc/posix-functions/wcsncat.texi: Mention the new module.
57007 2011-02-05  Bruno Haible  <bruno@clisp.org>
57009         New module 'wcscat'.
57010         * modules/wcscat: New file.
57011         * lib/wchar.in.h (wcscat): New declaration.
57012         * lib/wcscat.c: New file.
57013         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
57014         * m4/wcscat.m4: New file.
57015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
57016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
57017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
57018         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
57019         * doc/posix-functions/wcscat.texi: Mention the new module.
57021 2011-02-05  Bruno Haible  <bruno@clisp.org>
57023         New module 'wcpncpy'.
57024         * modules/wcpncpy: New file.
57025         * lib/wchar.in.h (wcpncpy): New declaration.
57026         * lib/wcpncpy.c: New file.
57027         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
57028         * m4/wcpncpy.m4: New file.
57029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
57030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
57031         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
57032         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
57033         * doc/posix-functions/wcpncpy.texi: Mention the new module.
57035 2011-02-05  Bruno Haible  <bruno@clisp.org>
57037         New module 'wcsncpy'.
57038         * modules/wcsncpy: New file.
57039         * lib/wchar.in.h (wcsncpy): New declaration.
57040         * lib/wcsncpy.c: New file.
57041         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
57042         * m4/wcsncpy.m4: New file.
57043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
57044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
57045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
57046         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
57047         * doc/posix-functions/wcsncpy.texi: Mention the new module.
57049 2011-02-05  Bruno Haible  <bruno@clisp.org>
57051         New module 'wcpcpy'.
57052         * modules/wcpcpy: New file.
57053         * lib/wchar.in.h (wcpcpy): New declaration.
57054         * lib/wcpcpy.c: New file.
57055         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
57056         * m4/wcpcpy.m4: New file.
57057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
57058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
57059         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
57060         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
57061         * doc/posix-functions/wcpcpy.texi: Mention the new module.
57063 2011-02-05  Bruno Haible  <bruno@clisp.org>
57065         New module 'wcscpy'.
57066         * modules/wcscpy: New file.
57067         * lib/wchar.in.h (wcscpy): New declaration.
57068         * lib/wcscpy.c: New file.
57069         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
57070         * m4/wcscpy.m4: New file.
57071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
57072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
57073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
57074         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
57075         * doc/posix-functions/wcscpy.texi: Mention the new module.
57077 2011-02-05  Bruno Haible  <bruno@clisp.org>
57079         New module 'wcsnlen'.
57080         * modules/wcsnlen: New file.
57081         * lib/wchar.in.h (wcsnlen): New declaration.
57082         * lib/wcsnlen.c: New file.
57083         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
57084         * m4/wcsnlen.m4: New file.
57085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
57086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
57087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
57088         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
57089         * doc/posix-functions/wcsnlen.texi: Mention the new module.
57091 2011-02-05  Bruno Haible  <bruno@clisp.org>
57093         New module 'wcslen'.
57094         * modules/wcslen: New file.
57095         * lib/wchar.in.h (wcslen): New declaration.
57096         * lib/wcslen.c: New file.
57097         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
57098         * m4/wcslen.m4: New file.
57099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
57100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
57101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
57102         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
57103         * doc/posix-functions/wcslen.texi: Mention the new module.
57105 2011-02-05  Bruno Haible  <bruno@clisp.org>
57107         New module 'wmemset'.
57108         * modules/wmemset: New file.
57109         * lib/wchar.in.h (wmemset): New declaration.
57110         * lib/wmemset.c: New file.
57111         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
57112         * m4/wmemset.m4: New file.
57113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
57114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
57115         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
57116         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
57117         * doc/posix-functions/wmemset.texi: Mention the new module.
57119 2011-02-05  Bruno Haible  <bruno@clisp.org>
57121         New module 'wmemmove'.
57122         * modules/wmemmove: New file.
57123         * lib/wchar.in.h (wmemmove): New declaration.
57124         * lib/wmemmove.c: New file.
57125         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
57126         * m4/wmemmove.m4: New file.
57127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
57128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
57129         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
57130         HAVE_WMEMMOVE.
57131         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
57132         * doc/posix-functions/wmemmove.texi: Mention the new module.
57134 2011-02-05  Bruno Haible  <bruno@clisp.org>
57136         New module 'wmemcpy'.
57137         * modules/wmemcpy: New file.
57138         * lib/wchar.in.h (wmemcpy): New declaration.
57139         * lib/wmemcpy.c: New file.
57140         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
57141         * m4/wmemcpy.m4: New file.
57142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
57143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
57144         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
57145         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
57146         * doc/posix-functions/wmemcpy.texi: Mention the new module.
57148 2011-02-05  Bruno Haible  <bruno@clisp.org>
57150         New module 'wmemcmp'.
57151         * modules/wmemcmp: New file.
57152         * lib/wchar.in.h (wmemcmp): New declaration.
57153         * lib/wmemcmp.c: New file.
57154         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
57155         * m4/wmemcmp.m4: New file.
57156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
57157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
57158         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
57159         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
57160         * doc/posix-functions/wmemcmp.texi: Mention the new module.
57162 2011-02-07  Jim Meyering  <meyering@redhat.com>
57164         di-set, ino-map: new modules, from coreutils
57165         * lib/di-set.c: New file.
57166         * lib/di-set.h: Likewise.
57167         * lib/ino-map.c: Likewise.
57168         * lib/ino-map.h: Likewise.
57169         * modules/di-set: Likewise.
57170         * modules/di-set-tests: Likewise.
57171         * modules/ino-map: Likewise.
57172         * modules/ino-map-tests: Likewise.
57173         * tests/test-di-set.c: Likewise.
57174         * tests/test-ino-map.c: Likewise.
57176 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
57178         getloadavg: merge minor changes from Emacs
57180         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
57181         (getloadavg): Use memset, not bzero.
57183         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
57184         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
57185         clash (bug#86).
57187 2010-11-14  Bruno Haible  <bruno@clisp.org>
57189         Allow multiple gnulib generated replacements to coexist.
57190         * lib/getopt.in.h (struct option): Avoid identical redefinition.
57191         * lib/inttypes.in.h (imaxdiv_t): Likewise.
57192         * lib/langinfo.in.h (nl_item): Likewise.
57193         * lib/math.in.h (_NaN, NAN): Likewise.
57194         * lib/netdb.in.h (struct addrinfo): Likewise.
57195         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
57196         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
57197         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
57198         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
57199         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
57200         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
57201         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
57202         pthread_mutexattr_init, pthread_mutexattr_settype,
57203         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
57204         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
57205         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
57206         pthread_spin_trylock, pthread_spin_unlock): Likewise.
57207         * lib/sched.in.h (struct sched_param): Likewise.
57208         * lib/se-selinux.in.h (security_class_t, security_context_t,
57209         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
57210         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
57211         lsetfilecon, fsetfilecon, security_check_context,
57212         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
57213         Likewise.
57214         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
57215         Likewise.
57216         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
57217         _gl_function_taking_int_returning_void_t, union sigval,
57218         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
57219         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
57220         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
57221         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
57222         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
57223         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
57224         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
57225         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
57226         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
57227         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
57228         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
57229         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
57230         socklen_t, rpl_fd_isset): Likewise.
57231         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
57232         * lib/sys_time.in.h (struct timeval): Likewise.
57233         * lib/sys_times.in.h (struct tms): Likewise.
57234         * lib/sys_utsname.in.h (struct utsname):
57235         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
57236         * lib/unistd.in.h (getpagesize): Likewise.
57237         * lib/wchar.in.h (mbstate_t): Likewise.
57238         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57239         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
57240         towlower, towupper): Likewise.
57241         Reported by Sam Steingold <sds@gnu.org>.
57243 2011-02-05  Eric Blake  <eblake@redhat.com>
57245         unsetenv: work around Haiku issues
57246         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
57247         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
57249 2010-12-30  Bruce Korb  <bkorb@gnu.org>
57251         libposix: avoid calling error() within libposix
57252         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
57253         is defined.
57255 2011-02-05  Eric Blake  <eblake@redhat.com>
57257         strerror_r-posix: port to cygwin
57258         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
57259         implementation.
57260         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
57261         * tests/test-strerror_r.c (main): Fix test.
57262         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
57263         issue.
57265 2011-02-05  Bruno Haible  <bruno@clisp.org>
57267         New module 'wmemchr'.
57268         * modules/wmemchr: New file.
57269         * lib/wchar.in.h (wmemchr): New declaration.
57270         * lib/wmemchr.c: New file.
57271         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
57272         * m4/wmemchr.m4: New file.
57273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
57274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
57275         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
57276         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
57277         * doc/posix-functions/wmemchr.texi: Mention the new module.
57279 2011-02-04  Eric Blake  <eblake@redhat.com>
57281         fdopendir: detect FreeBSD bug
57282         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
57283         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
57285 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57287         stdbool: do not define HAVE_STDBOOL_H
57288         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
57289         AC_HEADER_STDBOOL.  All uses changed.  Do not define
57290         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
57291         imported from the latest Autoconf git.  It was motivated by Emacs,
57292         which uses gnulib but does not need HAVE_STDBOOL_H.
57294 2011-02-04  Bruno Haible  <bruno@clisp.org>
57296         wcsnrtombs: Prepare for new module wwcsnrtombs.
57297         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
57298         * lib/wcsnrtombs.c: Include it.
57299         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
57301         wcsrtombs: Prepare for new module wwcsrtombs.
57302         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
57303         * lib/wcsrtombs.c: Include it.
57304         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
57306         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
57307         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
57308         * lib/mbsnrtowcs.c: Include it.
57309         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
57311         mbsrtowcs: Prepare for new module mbsrtowwcs.
57312         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
57313         * lib/mbsrtowcs.c: Include it.
57314         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
57316 2011-02-04  Bruno Haible  <bruno@clisp.org>
57318         vasnprintf: Reduce use of malloc for small format strings.
57319         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
57320         (arguments): Add room for the first 7 arguments.
57321         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
57322         (char_directives, u8_directives, u16_directives, u32_directives): Add
57323         room for the first 7 directives.
57324         * lib/printf-parse.c: Include <string.h>.
57325         (PRINTF_PARSE): Change memory handling code so that it uses the first
57326         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
57327         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
57328         Reported by Pádraig Brady <P@draigbrady.com>.
57330 2011-01-31  Eric Blake  <eblake@redhat.com>
57332         dup2: work around Haiku bug
57333         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
57334         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
57335         * doc/posix-functions/dup2.texi (dup2): Document the bug.
57336         * tests/test-dup2.c (main): Enhance test.
57338 2011-01-31  Simon Josefsson  <simon@josefsson.org>
57340         doc: off_t is not available in eglibc 2.11.2 stdio.h.
57341         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
57342         declared by eglibc 2.11.2.
57343         * lib/stdio.in.h: Likewise.
57345 2011-01-31  Eric Blake  <eblake@redhat.com>
57347         ignore-value: add missing test dependency
57348         * tests/test-ignore-value.c: Revert previous change; stdio.h
57349         provides off_t.
57350         * modules/ignore-value-tests (Depends-on): Add missing dependency.
57352 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
57354         mktime: clarify long_int width checking
57355         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
57356         the top level, to make it clearer that the assumption about
57357         long_int width is being checked.  See
57358         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
57360 2011-01-30  Simon Josefsson  <simon@josefsson.org>
57362         ignore-value: Fix self-test.
57363         * tests/test-ignore-value.c: Include sys/types.h for off_t.
57365 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57367         TYPE_MAXIMUM: avoid theoretically undefined behavior
57368         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
57369         negative number, which the C Standard says has undefined behavior.
57370         In practice this is not a problem, but might as well do it by the book.
57371         Reported by Rich Felker and Eric Blake; see
57372         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
57373         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
57374         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57376         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
57377         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57378         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
57380         mktime: #undef mktime before #defining it
57381         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
57383         mktime: systematically normalize tm_isdst comparisons
57384         * lib/mktime.c (isdst_differ): New function.
57385         (__mktime_internal): Use it systematically for all isdst comparisons.
57386         This completes the fix for libc BZ #6723, and removes the need for
57387         normalizing tm_isdst.  See
57388         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
57389         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
57391         mktime: fix some integer overflow issues and sidestep the rest
57393         This was prompted by a bug report by Benjamin Lindner for MinGW
57394         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
57395         His bug is due to signed integer overflow (0 - INT_MIN), and I
57396         I scanned through mktime.c looking for other integer overflow
57397         problems, fixing all the bugs I found.
57399         Although the C Standard says the resulting code is still not safe
57400         in the presence of integer overflow, in practice it should be good
57401         enough for all real-world two's-complement implementations, except
57402         for debugging environments that deliberately trap on integer
57403         overflow (e.g., gcc -ftrapv).
57405         * lib/mktime.c (WRAPV): New macro.
57406         (SHR): Also check that long_int and time_t shift right in the
57407         usual way, before using the fast-but-unportable method.
57408         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
57409         used.  The code already assumed two's complement, so there's
57410         no need to test for alternatives.  All uses removed.
57411         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
57412         the C standard.  Problem reported by Rich Felker in
57413         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
57414         (twos_complement_arithmetic): Also check long_int and time_t.
57415         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
57416         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
57417         (__mktime_internal): Avoid integer overflow with unary subtraction
57418         in two instances where -1 - X is an adequate replacement for -X,
57419         since the calculations are approximate.
57421 2011-01-29  Eric Blake  <eblake@redhat.com>
57423         mktime: avoid infinite loop
57424         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
57425         type; behavior is still undefined but portable to all known targets.
57426         Reported by Rich Felker.
57428 2011-01-29  Simon Josefsson  <simon@josefsson.org>
57430         rename, unlink, same-inode: Relicense.
57431         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
57432         * modules/unlink (License): Likewise.
57433         * modules/same-inode (License): Likewise.
57435 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57437         mktime: avoid problems on NetBSD 5 / i386
57438         * lib/mktime.c (long_int): New type.  This works around a problem
57439         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
57440         but time_t is 64 bits, and where I expect the existing code is
57441         wrong in some cases.
57442         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
57443         (ydhms_diff): Bring back the compile-time check for wide-enough
57444         year and yday.
57446         mktime: fix misspelling in comment
57447         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
57448         This merges all recent glibc changes of importance.
57450 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57452         move-if-change: cope with concurrent mv of identical file.
57453         * build-aux/move-if-change (CMPPROG): Accept environment
57454         variable as an override for `cmp'.
57455         (usage): Document CMPPROG.
57456         Adjust comparison to drop stdout.  Cope with failure of mv if
57457         the target file exists and is identical to the source, for
57458         parallel builds.
57459         Report from H.J. Lu against binutils in PR binutils/12283.
57461 2011-01-28  Bruce Korb  <bkorb@gnu.org>
57463         * users.txt: Mention sharutils.
57465 2011-01-28  Simon Josefsson  <simon@josefsson.org>
57467         * users.txt: Mention OATH Toolkit.
57469 2011-01-27  Bruno Haible  <bruno@clisp.org>
57471         Prepare for supporting FreeBSD 10.
57472         * build-aux/config.libpath: Remove handling of freebsd1*.
57474 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
57476         Prepare for supporting FreeBSD 10.
57477         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
57478         match FreeBSD 10.0.
57480 2011-01-27  Bruno Haible  <bruno@clisp.org>
57482         vma-iter, get-rusage-as: Add OpenBSD support.
57483         * modules/vma-iter (configure.ac): Test for mquery.
57484         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
57485         * lib/vma-iter.c: Include <sys/mman.h>.
57486         (vma_iterate): Add an implementation based on mquery().
57487         * lib/resource-ext.h (get_rusage_as): Update comments.
57488         * lib/get-rusage-as.c: Likewise.
57489         * lib/get-rusage-data.c: Likewise.
57491 2011-01-26  Karl Berry  <karl@gnu.org>
57493         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
57494         variables to make it easier to override the makeinfo program used.
57496 2011-01-26  Eric Blake  <eblake@redhat.com>
57498         fcntl: work around Haiku F_DUPFD bugs
57499         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
57500         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
57501         cloexec bit on duplication.
57502         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
57504 2011-01-26  Bruno Haible  <bruno@clisp.org>
57506         Enable memory leak tests on AIX.
57507         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
57508         * tests/test-fprintf-posix3.c (main): Likewise.
57510 2011-01-26  Bruno Haible  <bruno@clisp.org>
57512         Tests for module 'get-rusage-data'.
57513         * modules/get-rusage-data-tests: New file.
57514         * tests/test-get-rusage-data.c: New file.
57516         New module 'get-rusage-data'.
57517         * lib/resource-ext.h (get_rusage_data): New declaration.
57518         * lib/get-rusage-data.c: New file.
57519         * modules/get-rusage-data: New file.
57521 2011-01-25  Bruno Haible  <bruno@clisp.org>
57523         get-rusage-as: Allow for easier testing.
57524         * lib/resource-ext.h (get_rusage_as): Add comment.
57525         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
57526         (main): New function for interactive testing.
57528 2011-01-25  Bruno Haible  <bruno@clisp.org>
57530         vma-iter: Treat Haiku like BeOS.
57531         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
57532         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
57534 2011-01-25  Eric Blake  <eblake@redhat.com>
57536         c-stack: fix regression on cygwin when libsigsegv is present
57537         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
57539 2011-01-24  Bruno Haible  <bruno@clisp.org>
57541         vma-iter: Avoid empty intervals.
57542         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
57543         on an empty interval.
57545 2011-01-24  Jim Meyering  <meyering@redhat.com>
57547         u64: remove unnecessary #include
57548         * lib/u64.h: Don't include <stddef.h>.  It was not used.
57550 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57552         Allow the user to avoid the HAVE_RAW_DECL_* macros.
57553         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
57555 2011-01-23  Bruno Haible  <bruno@clisp.org>
57557         New module 'vma-iter'.
57558         * lib/vma-iter.h: New file.
57559         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
57560         * modules/vma-iter: New file.
57561         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
57562         for get_rusage_as_via_iterator.
57563         (vma_iterate_callback): New function.
57564         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
57565         * modules/get-rusage-as (Depends-on): Add vma-iter.
57567 2011-01-23  Bruno Haible  <bruno@clisp.org>
57569         uninorm: Tweak includes.
57570         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
57571         Reported by Jim Meyering.
57573 2011-01-23  Bruno Haible  <bruno@clisp.org>
57575         get-rusage-as: Improve on NetBSD.
57576         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
57577         /proc, like on FreeBSD.
57579 2011-01-23  Jim Meyering  <meyering@redhat.com>
57581         xreadlink.h: remove unnecessary #include
57582         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
57584         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
57585         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
57587 2011-01-23  Bruno Haible  <bruno@clisp.org>
57589         get-rusage-as: Fix bug.
57590         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
57591         original limit when aborting the first loop.
57593 2011-01-23  Bruno Haible  <bruno@clisp.org>
57595         wctype: Ensure valid C syntax.
57596         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
57597         unconditionally, instead of gl_NEXT_HEADERS conditionally.
57599 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57601         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
57602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
57603         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
57604         as they are needed only for configure's test case.
57605         This removes two unnecessary symbols from config.h.
57607         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
57608         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
57609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
57610         AC_CHECK_HEADERS_ONCE on a header that we also invoke
57611         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
57612         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
57613         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
57614         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
57615         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57616         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57617         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
57618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57619         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57620         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57621         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
57622         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57623         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
57624         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57626 2011-01-21  Eric Blake  <eblake@redhat.com>
57628         maintainer-makefile: work with older git for submodule check
57629         * top/maint.mk (public-submodule-commit): Rewrite to avoid
57630         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
57631         Reported by Matthias Bolte.
57633         bootstrap: minor portability fixes
57634         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
57635         (usage): Omit leading capital and trailing . on help phrases, per
57636         GNU Coding Standards.
57637         (check_versions, top level): Prefix messages with script name.
57639 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
57641         bootstrap: support --no-git option
57642         * build-aux/bootstrap: Add --no-git option, to be used when
57643         --gnulib-srcdir points to the exact desired checkout.
57645 2011-01-21  Eric Blake  <eblake@redhat.com>
57647         strerror_r-posix: work with glibc 2.13
57648         * lib/strerror_r.c (strerror_r): Fix return type.
57650 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57651             Bruno Haible  <bruno@clisp.org>
57653         uN_strstr: New unit tests.
57654         * modules/unistr/u8-strstr-tests: New file.
57655         * modules/unistr/u16-strstr-tests: New file.
57656         * modules/unistr/u32-strstr-tests: New file.
57657         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
57658         * tests/unistr/test-u8-strstr.c: New file.
57659         * tests/unistr/test-u16-strstr.c: New file.
57660         * tests/unistr/test-u32-strstr.c: New file.
57662 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57663             Bruno Haible  <bruno@clisp.org>
57665         Make uN_strstr functions O(n) worst-case.
57666         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
57667         16-bit and 32-bit unit cases, use the unibyte algorithm from
57668         lib/mbsstr.c.
57669         * lib/unistr/u8-strstr.c: Include <string.h>.
57670         (UNIT_IS_UINT8_T): New macro.
57671         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
57672         (U_STRLEN, U_STRNLEN): New macros.
57673         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
57674         (U_STRLEN, U_STRNLEN): New macros.
57675         * modules/unistr/u8-strstr (Depends-on): Add strstr.
57676         (configure.ac): Update required libunistring version.
57677         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
57678         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
57679         malloca.
57680         (configure.ac): Update required libunistring version.
57681         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
57682         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
57683         malloca.
57684         (configure.ac): Update required libunistring version.
57686 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57687             Bruno Haible  <bruno@clisp.org>
57689         Prepare for faster uN_strstr functions.
57690         * lib/str-kmp.h: Support definable UNITs.
57691         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
57692         needle_len argument.
57693         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
57694         * lib/mbscasestr.c (mbscasestr): Likewise.
57696 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57698         malloca-tests: make faster by unsetting MALLOC_PERTURB_
57699         * tests/test-malloca.c (main): Unset the environment variable
57700         to greatly speed up the test.
57701         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
57702         * modules/malloca-tests: Depend on unsetenv.
57704 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57706         ignore-value: remove stdint dependency
57707         * lib/ignore-value.h: Remove <stdint.h>
57708         * modules/ignore-value: Remove stdint dependency.
57710 2011-01-21  Jim Meyering  <meyering@redhat.com>
57712         maint.mk: adjust variable name to be consistent with other gl_ vars
57713         * top/maint.mk (gl_public_submodule_commit): Rename the variable
57714         to be lower case.
57716 2011-01-20  Jim Meyering  <meyering@redhat.com>
57718         maint.mk: make "check" depend on public-submodule-commit by default
57719         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
57721 2011-01-20  Bruno Haible  <bruno@clisp.org>
57723         mbfile, mbiter: Complete change from 2008-12-21.
57724         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
57725         * m4/mbiter.m4 (gl_MBITER): Likewise.
57727 2011-01-20  Jim Meyering  <meyering@redhat.com>
57729         init.sh: insert space between each function name and "()"
57730         * tests/init.sh: Make it a little easier to see that a function's
57731         name is "warn_", and not "warn" when looking at the first part of
57732         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
57734 2011-01-20  Jim Meyering  <meyering@redhat.com>
57736         mountlist: clean up code formatting
57737         * lib/mountlist.c (read_file_system_list): Split a long line,
57738         correct bracing style, use NULL in place of "(struct statfs *)0",
57739         don't parenthesize return value, add spaces around "=" and after
57740         ";-in-for-stmt".
57742 2011-01-14  Markus Duft  <mduft@gentoo.org>
57744         mountlist: add support for Interix
57745         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
57746         Apply statvfs to all entries of /dev/fs.
57747         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
57748         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
57750 2011-01-20  Jim Meyering  <meyering@redhat.com>
57752         maint.mk: improve the public-submodule-commit rule
57753         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
57754         to suppress printing of its commands... unless V=1.
57755         Add git submodule's --quiet option to suppress printing of e.g.,
57756         "Entering gnulib" output.
57757         "cd" into $(srcdir) before running git submodule.
57759 2011-01-20  Bruno Haible  <bruno@clisp.org>
57761         include_next: Fix bug introduced on 2011-01-18.
57762         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
57763         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
57764         ac_cv_header_... variable if the second argument is not 'check'.
57765         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
57766         gl_NEXT_HEADERS_INTERNAL.
57768 2011-01-20  Bruno Haible  <bruno@clisp.org>
57770         Allow the user to avoid the GNULIB_TEST_* macros.
57771         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
57772         Suggested by Paul Eggert.
57774 2011-01-14  Jim Meyering  <meyering@redhat.com>
57776         bootstrap: avoid failure when there is no .gitmodules file
57777         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
57778         has been assigned to, even when its value is the empty string.
57779         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
57780         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
57781         Reported by John W. Eaton <jwe@gnu.org>.
57783 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57785         assume <ctype.h>, ..., <time.h> exist
57786         For years gnulib has been assuming the existence of the headers
57787         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
57788         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
57789         them, since they don't appear to be needed.
57790         * README (Portability guidelines): Document this.
57791         * lib/flock.c: Assume <fcntl.h> exists.
57792         * lib/regex_internal.h: Assume <locale.h> exists.
57793         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
57794         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
57795         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
57796         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
57797         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
57798         * m4/regex.m4 (gl_REGEX): Likewise.
57799         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
57800         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
57801         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
57802         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
57803         * tests/test-argp.c: Likewise.
57804         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
57806         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
57807         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
57808         AA_APPLE_UNIVERSAL_BUILD.  See
57809         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
57810         * NEWS: Document this.
57812 2011-01-19  Eric Blake  <eblake@redhat.com>
57814         c-stack: assume stack overflow if SA_SIGINFO unsupported
57815         * lib/c-stack.c (SIGACTION_WORKS): Rename...
57816         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
57817         sigaction will work.
57818         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
57819         behavior match Linux.
57820         * tests/test-c-stack.c (main): Prefer NULL for pointers.
57822         stdbool-tests: accommodate Haiku
57823         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
57825         binary-io: fix O_TEXT on Haiku
57826         * modules/binary-io (Depends-on): Add fcntl-h.
57827         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
57828         than blindly undefining O_TEXT.
57829         Reported by Scott McCreary.
57831 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57833         include_next: do not check for standard headers like stddef.h
57835         I found this problem when modifying Emacs to use gnulib.
57836         I noticed that it added HAVE_STDDEF_H to config.h, even though
57837         gnulib always assumes <stddef.h> exists as per README and this
57838         symbol is unnecessary.
57839         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
57840         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
57841         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
57842         faster for headers like stddef.h that are known to exist.
57843         (gl_CHECK_NEXT_HEADERS): Use it.
57844         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
57845         rather than gl_CHECK_NEXT_HEADERS.
57846         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
57847         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
57849 2011-01-18  Eric Blake  <eblake@redhat.com>
57851         ansi-c++-opt: skip C++ dependency style if C++ is unused
57852         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
57853         tests when we know C++ compilation is not desired.
57854         Reported by Scott McCreary.
57856 2011-01-18  Bruno Haible  <bruno@clisp.org>
57858         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
57859         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
57860         (main): Perform test also when getrlimit and setrlimit don't exist or
57861         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
57862         limiting the address space size using setrlimit, compare the address
57863         space size before and after the test.
57864         * tests/test-dprintf-posix2.c: Likewise.
57865         * tests/test-fprintf-posix3.sh: Update skip messages.
57866         * tests/test-dprintf-posix2.sh: Likewise.
57867         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
57868         * modules/dprintf-posix-tests (Depends-on): Likewise.
57869         Reported by Bruce Korb <bkorb@gnu.org> and
57870         Gary V. Vaughan <gary@gnu.org>.
57872 2011-01-18  Bruno Haible  <bruno@clisp.org>
57874         get-rusage-as: Improvement for Cygwin.
57875         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
57876         areas that are merely reserved.
57878 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57880         strftime: remove dependencies on multibyte modules
57882         strftime depended on mbrlen, mbsinit, and wchar, but these modules
57883         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
57884         only if __osf__ is defined, and I suspect OSF doesn't need these
57885         other modules.  If my guess is wrong, we'll need to come up with a
57886         variant of strftime that doesn't need the multibyte modules.
57888         I discovered this problem when attempting modify Emacs to use the
57889         strftime module.  With the previous gnulib, this caused Emacs to
57890         need 31 new files, ranging from lib/config.charset to
57891         m4/wint_t.m4.  This was overkill and I expect would be offputting
57892         to the Emacs maintainers.  After this change, only 6 new files are
57893         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
57894         stdbool.m4, and tm_gmtoff.m4.
57896         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57897         Suggested by Bruno Haible in
57898         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57899         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57900         and do not check for wchar.h.
57901         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57902         (Depends-on): Remove mbrlen, mbsinit, wchar.
57904 2011-01-18  Bruno Haible  <bruno@clisp.org>
57906         Tests for module 'get-rusage-as'.
57907         * modules/get-rusage-as-tests: New file.
57908         * tests/test-get-rusage-as.c: New file.
57910         New module 'get-rusage-as'.
57911         * modules/get-rusage-as: New file.
57912         * lib/resource-ext.h: New file.
57913         * lib/get-rusage-as.c: New file.
57915 2011-01-17  Eric Blake  <eblake@redhat.com>
57917         sigaction: relax license from LGPLv3+ to LGPLv2+
57918         * modules/sigaction (License): Relax to LGPLv2+.
57920 2011-01-14  Bruno Haible  <bruno@clisp.org>
57922         filemode: Make function declarations usable in C++ mode.
57923         * lib/filemode.h: Enclose function declarations in extern "C" block.
57924         Reported by John W. Eaton <jwe@gnu.org>.
57926 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57928         save-cwd: no longer include "xgetcwd.h"
57929         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57930         This avoids a compilation failure in projects that use save-cwd
57931         without also using the xgetcwd module.
57933 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57935         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57936         This is so that a program like Emacs, which needs only dtoastr,
57937         does not have to bother with distributing and compiling ftoastr
57938         and ldtoastr.
57939         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57940         * modules/dtoastr, modules/ldtoastr: New files.
57941         * modules/ftoastr: Now works just for 'float'.
57942         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57943         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57944         dtoastr.c, ldtoastr.c.
57946 2011-01-11  Jim Meyering  <meyering@redhat.com>
57948         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57949         There is no need to work around the lack of the fchdir function,
57950         since gnulib can now provide a replacement when required.
57951         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57952         * modules/save-cwd (Depends-on): Add fchdir.
57954 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57956         openat, save-cwd: avoid xmalloc
57958         This removes a direct (but undocumented) dependency of openat on
57959         xalloc, along with an indirect dependency via save-cwd.  It also
57960         removes a dependency of save-cwd on xgetcwd, and thereby
57961         indirectly on xalloc.  This change causes the openat substitute
57962         to fall back on save_cwd when memory is tight, and for save_cwd to
57963         fail instead of dying when memory is tight, but that's good enough.
57964         Problem and initial idea for fix reported by Bastien Roucaries in
57965         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57967         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57968         xalloc.h (for xmalloc).
57969         (openat_proc_name): Use malloc, not xmalloc.
57970         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57971         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57973         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57974         This avoids heap allocation for file names whose lengths are in
57975         the range 512..1023, with the upper bound increasing to at most
57976         4031 depending on the platform's PATH_MAX.  (We do not want
57977         pathmax.h here as it might supply a non-constant PATH_MAX.)
57978         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57979         Perhaps they should be moved to malloca.h?
57980         (OPENAT_BUFFER_SIZE): Use them.
57982 2011-01-10  Bruno Haible  <bruno@clisp.org>
57984         doc: Update users.txt.
57985         * users.txt: Add recutils.
57987 2011-01-09  Karl Berry  <karl@gnu.org>
57989         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57991         * doc/configmake.texi: New file.
57992         * doc/gnulib.texi: Include it.
57993         * modules/configmake: Move documentation from here.
57995 2011-01-09  Bruno Haible  <bruno@clisp.org>
57997         Update to Unicode 6.0.0.
57998         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57999         (get_lbp): Update for Unicode 6.0.0.
58000         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
58001         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
58002         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
58003         U+11001, U+11038..U+11046. Remove U+06DE.
58004         (uc_width): Fix bounds of planes.
58005         * tests/uniwidth/test-uc_width2.sh: Same updates as in
58006         lib/uniwidth/width.c.
58007         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
58008         trailing whitespace removed.
58009         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
58010         without comments, but with the original copyright notice.
58011         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
58012         * lib/unicase/ignorable.h: Likewise.
58013         * lib/unicase/tocasefold.h: Likewise.
58014         * lib/unicase/tolower.h: Likewise.
58015         * lib/unicase/totitle.h: Likewise.
58016         * lib/unicase/toupper.h: Likewise.
58017         * lib/unictype/bidi_of.h: Likewise.
58018         * lib/unictype/blocks.h: Likewise.
58019         * lib/unictype/categ_C.h: Likewise.
58020         * lib/unictype/categ_Cn.h: Likewise.
58021         * lib/unictype/categ_L.h: Likewise.
58022         * lib/unictype/categ_Ll.h: Likewise.
58023         * lib/unictype/categ_Lm.h: Likewise.
58024         * lib/unictype/categ_Lo.h: Likewise.
58025         * lib/unictype/categ_Lu.h: Likewise.
58026         * lib/unictype/categ_M.h: Likewise.
58027         * lib/unictype/categ_Mc.h: Likewise.
58028         * lib/unictype/categ_Me.h: Likewise.
58029         * lib/unictype/categ_Mn.h: Likewise.
58030         * lib/unictype/categ_N.h: Likewise.
58031         * lib/unictype/categ_Nd.h: Likewise.
58032         * lib/unictype/categ_No.h: Likewise.
58033         * lib/unictype/categ_P.h: Likewise.
58034         * lib/unictype/categ_Po.h: Likewise.
58035         * lib/unictype/categ_S.h: Likewise.
58036         * lib/unictype/categ_Sc.h: Likewise.
58037         * lib/unictype/categ_Sk.h: Likewise.
58038         * lib/unictype/categ_Sm.h: Likewise.
58039         * lib/unictype/categ_So.h: Likewise.
58040         * lib/unictype/categ_of.h: Likewise.
58041         * lib/unictype/combining.h: Likewise.
58042         * lib/unictype/ctype_alnum.h: Likewise.
58043         * lib/unictype/ctype_alpha.h: Likewise.
58044         * lib/unictype/ctype_graph.h: Likewise.
58045         * lib/unictype/ctype_lower.h: Likewise.
58046         * lib/unictype/ctype_print.h: Likewise.
58047         * lib/unictype/ctype_punct.h: Likewise.
58048         * lib/unictype/ctype_upper.h: Likewise.
58049         * lib/unictype/decdigit.h: Likewise.
58050         * lib/unictype/digit.h: Likewise.
58051         * lib/unictype/numeric.h: Likewise.
58052         * lib/unictype/pr_alphabetic.h: Likewise.
58053         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58054         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58055         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58056         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58057         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58058         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58059         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58060         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58061         * lib/unictype/pr_case_ignorable.h: Likewise.
58062         * lib/unictype/pr_cased.h: Likewise.
58063         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
58064         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
58065         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
58066         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
58067         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
58068         * lib/unictype/pr_combining.h: Likewise.
58069         * lib/unictype/pr_composite.h: Likewise.
58070         * lib/unictype/pr_currency_symbol.h: Likewise.
58071         * lib/unictype/pr_decimal_digit.h: Likewise.
58072         * lib/unictype/pr_deprecated.h: Likewise.
58073         * lib/unictype/pr_format_control.h: Likewise.
58074         * lib/unictype/pr_grapheme_base.h: Likewise.
58075         * lib/unictype/pr_grapheme_extend.h: Likewise.
58076         * lib/unictype/pr_grapheme_link.h: Likewise.
58077         * lib/unictype/pr_id_continue.h: Likewise.
58078         * lib/unictype/pr_id_start.h: Likewise.
58079         * lib/unictype/pr_ideographic.h: Likewise.
58080         * lib/unictype/pr_lowercase.h: Likewise.
58081         * lib/unictype/pr_math.h: Likewise.
58082         * lib/unictype/pr_numeric.h: Likewise.
58083         * lib/unictype/pr_other_alphabetic.h: Likewise.
58084         * lib/unictype/pr_other_id_continue.h: Likewise.
58085         * lib/unictype/pr_other_math.h: Likewise.
58086         * lib/unictype/pr_punctuation.h: Likewise.
58087         * lib/unictype/pr_sentence_terminal.h: Likewise.
58088         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58089         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58090         * lib/unictype/pr_unified_ideograph.h: Likewise.
58091         * lib/unictype/pr_uppercase.h: Likewise.
58092         * lib/unictype/pr_xid_continue.h: Likewise.
58093         * lib/unictype/pr_xid_start.h: Likewise.
58094         * lib/unictype/scripts.h: Likewise.
58095         * lib/unictype/scripts_byname.gperf: Likewise.
58096         * lib/unictype/sy_java_ident.h: Likewise.
58097         * lib/unigbrk/gbrkprop.h: Likewise.
58098         * lib/unilbrk/lbrkprop1.h: Likewise.
58099         * lib/unilbrk/lbrkprop2.h: Likewise.
58100         * lib/uninorm/decomposition-table2.h: Likewise.
58101         * lib/uniwbrk/wbrkprop.h: Likewise.
58102         * tests/unicase/test-cased.c: Likewise.
58103         * tests/unicase/test-ignorable.c: Likewise.
58104         * tests/unicase/test-uc_tolower.c: Likewise.
58105         * tests/unicase/test-uc_totitle.c: Likewise.
58106         * tests/unicase/test-uc_toupper.c: Likewise.
58107         * tests/unictype/test-categ_C.c: Likewise.
58108         * tests/unictype/test-categ_Cn.c: Likewise.
58109         * tests/unictype/test-categ_L.c: Likewise.
58110         * tests/unictype/test-categ_Ll.c: Likewise.
58111         * tests/unictype/test-categ_Lm.c: Likewise.
58112         * tests/unictype/test-categ_Lo.c: Likewise.
58113         * tests/unictype/test-categ_Lu.c: Likewise.
58114         * tests/unictype/test-categ_M.c: Likewise.
58115         * tests/unictype/test-categ_Mc.c: Likewise.
58116         * tests/unictype/test-categ_Me.c: Likewise.
58117         * tests/unictype/test-categ_Mn.c: Likewise.
58118         * tests/unictype/test-categ_N.c: Likewise.
58119         * tests/unictype/test-categ_Nd.c: Likewise.
58120         * tests/unictype/test-categ_No.c: Likewise.
58121         * tests/unictype/test-categ_P.c: Likewise.
58122         * tests/unictype/test-categ_Po.c: Likewise.
58123         * tests/unictype/test-categ_S.c: Likewise.
58124         * tests/unictype/test-categ_Sc.c: Likewise.
58125         * tests/unictype/test-categ_Sk.c: Likewise.
58126         * tests/unictype/test-categ_Sm.c: Likewise.
58127         * tests/unictype/test-categ_So.c: Likewise.
58128         * tests/unictype/test-ctype_alnum.c: Likewise.
58129         * tests/unictype/test-ctype_alpha.c: Likewise.
58130         * tests/unictype/test-ctype_graph.c: Likewise.
58131         * tests/unictype/test-ctype_lower.c: Likewise.
58132         * tests/unictype/test-ctype_print.c: Likewise.
58133         * tests/unictype/test-ctype_punct.c: Likewise.
58134         * tests/unictype/test-ctype_upper.c: Likewise.
58135         * tests/unictype/test-decdigit.h: Likewise.
58136         * tests/unictype/test-digit.h: Likewise.
58137         * tests/unictype/test-numeric.h: Likewise.
58138         * tests/unictype/test-pr_alphabetic.c: Likewise.
58139         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58140         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58141         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58142         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58143         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58144         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58145         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58146         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58147         * tests/unictype/test-pr_case_ignorable.c: Likewise.
58148         * tests/unictype/test-pr_cased.c: Likewise.
58149         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
58150         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
58151         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
58152         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
58153         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
58154         * tests/unictype/test-pr_combining.c: Likewise.
58155         * tests/unictype/test-pr_composite.c: Likewise.
58156         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58157         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58158         * tests/unictype/test-pr_deprecated.c: Likewise.
58159         * tests/unictype/test-pr_format_control.c: Likewise.
58160         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58161         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58162         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58163         * tests/unictype/test-pr_id_continue.c: Likewise.
58164         * tests/unictype/test-pr_id_start.c: Likewise.
58165         * tests/unictype/test-pr_ideographic.c: Likewise.
58166         * tests/unictype/test-pr_lowercase.c: Likewise.
58167         * tests/unictype/test-pr_math.c: Likewise.
58168         * tests/unictype/test-pr_numeric.c: Likewise.
58169         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58170         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58171         * tests/unictype/test-pr_other_math.c: Likewise.
58172         * tests/unictype/test-pr_punctuation.c: Likewise.
58173         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58174         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58175         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58176         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58177         * tests/unictype/test-pr_uppercase.c: Likewise.
58178         * tests/unictype/test-pr_xid_continue.c: Likewise.
58179         * tests/unictype/test-pr_xid_start.c: Likewise.
58180         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
58181         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
58182         changes.
58183         * lib/unictype/categ_Cc.h: Likewise.
58184         * lib/unictype/categ_Cf.h: Likewise.
58185         * lib/unictype/categ_Co.h: Likewise.
58186         * lib/unictype/categ_Cs.h: Likewise.
58187         * lib/unictype/categ_Lt.h: Likewise.
58188         * lib/unictype/categ_Nl.h: Likewise.
58189         * lib/unictype/categ_Pc.h: Likewise.
58190         * lib/unictype/categ_Pd.h: Likewise.
58191         * lib/unictype/categ_Pe.h: Likewise.
58192         * lib/unictype/categ_Pf.h: Likewise.
58193         * lib/unictype/categ_Pi.h: Likewise.
58194         * lib/unictype/categ_Ps.h: Likewise.
58195         * lib/unictype/categ_Z.h: Likewise.
58196         * lib/unictype/categ_Zl.h: Likewise.
58197         * lib/unictype/categ_Zp.h: Likewise.
58198         * lib/unictype/categ_Zs.h: Likewise.
58199         * lib/unictype/ctype_blank.h: Likewise.
58200         * lib/unictype/ctype_cntrl.h: Likewise.
58201         * lib/unictype/ctype_digit.h: Likewise.
58202         * lib/unictype/ctype_space.h: Likewise.
58203         * lib/unictype/ctype_xdigit.h: Likewise.
58204         * lib/unictype/mirror.h: Likewise.
58205         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58206         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58207         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58208         * lib/unictype/pr_bidi_control.h: Likewise.
58209         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58210         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58211         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58212         * lib/unictype/pr_bidi_pdf.h: Likewise.
58213         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58214         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58215         * lib/unictype/pr_dash.h: Likewise.
58216         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58217         * lib/unictype/pr_diacritic.h: Likewise.
58218         * lib/unictype/pr_extender.h: Likewise.
58219         * lib/unictype/pr_hex_digit.h: Likewise.
58220         * lib/unictype/pr_hyphen.h: Likewise.
58221         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58222         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58223         * lib/unictype/pr_ignorable_control.h: Likewise.
58224         * lib/unictype/pr_iso_control.h: Likewise.
58225         * lib/unictype/pr_join_control.h: Likewise.
58226         * lib/unictype/pr_left_of_pair.h: Likewise.
58227         * lib/unictype/pr_line_separator.h: Likewise.
58228         * lib/unictype/pr_logical_order_exception.h: Likewise.
58229         * lib/unictype/pr_non_break.h: Likewise.
58230         * lib/unictype/pr_not_a_character.h: Likewise.
58231         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58232         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58233         * lib/unictype/pr_other_id_start.h: Likewise.
58234         * lib/unictype/pr_other_lowercase.h: Likewise.
58235         * lib/unictype/pr_other_uppercase.h: Likewise.
58236         * lib/unictype/pr_paired_punctuation.h: Likewise.
58237         * lib/unictype/pr_paragraph_separator.h: Likewise.
58238         * lib/unictype/pr_pattern_syntax.h: Likewise.
58239         * lib/unictype/pr_pattern_white_space.h: Likewise.
58240         * lib/unictype/pr_private_use.h: Likewise.
58241         * lib/unictype/pr_quotation_mark.h: Likewise.
58242         * lib/unictype/pr_radical.h: Likewise.
58243         * lib/unictype/pr_soft_dotted.h: Likewise.
58244         * lib/unictype/pr_space.h: Likewise.
58245         * lib/unictype/pr_titlecase.h: Likewise.
58246         * lib/unictype/pr_variation_selector.h: Likewise.
58247         * lib/unictype/pr_white_space.h: Likewise.
58248         * lib/unictype/pr_zero_width.h: Likewise.
58249         * lib/unictype/sy_c_ident.h: Likewise.
58250         * lib/unictype/sy_c_whitespace.h: Likewise.
58251         * lib/unictype/sy_java_whitespace.h: Likewise.
58252         * lib/uninorm/composition-table.gperf: Likewise.
58253         * lib/uninorm/decomposition-table1.h: Likewise.
58254         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
58255         LB8.
58256         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58257         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58258         * modules/unictype/*: Bump version number of expected libunistring
58259         version.
58261 2011-01-09  Bruno Haible  <bruno@clisp.org>
58263         Update to Unicode 5.2.0.
58264         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
58265         trailing whitespace removed.
58267 2011-01-09  Bruno Haible  <bruno@clisp.org>
58269         New Unicode character properties, from Unicode 5.2.0.
58270         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
58271         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
58272         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
58273         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
58274         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
58275         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
58276         uc_is_property_cased, uc_is_property_case_ignorable,
58277         uc_is_property_changes_when_lowercased,
58278         uc_is_property_changes_when_uppercased,
58279         uc_is_property_changes_when_titlecased,
58280         uc_is_property_changes_when_casefolded,
58281         uc_is_property_changes_when_casemapped): New declarations.
58282         * lib/unictype/pr_byname.gperf: Add the new properties.
58283         * modules/unictype/property-byname (Depends-on): Depend on the new
58284         properties modules.
58285         * modules/unictype/property-all (Depends-on): Likewise.
58286         * MODULES.html.sh (Unicode string functions): Add
58287         unictype/property-case-ignorable, unictype/property-cased,
58288         unictype/property-changes-when-casefolded,
58289         unictype/property-changes-when-casemapped,
58290         unictype/property-changes-when-lowercased,
58291         unictype/property-changes-when-titlecased,
58292         unictype/property-changes-when-uppercased.
58294         New module 'unictype/property-changes-when-casemapped'.
58295         * modules/unictype/property-changes-when-casemapped: New file.
58296         * lib/unictype/pr_changes_when_casemapped.c: New file.
58297         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
58298         generated by gen-uni-tables.
58299         * modules/unictype/property-changes-when-casemapped-tests: New file.
58300         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
58301         automatically generated by gen-uni-tables.
58303         New module 'unictype/property-changes-when-casefolded'.
58304         * modules/unictype/property-changes-when-casefolded: New file.
58305         * lib/unictype/pr_changes_when_casefolded.c: New file.
58306         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
58307         generated by gen-uni-tables.
58308         * modules/unictype/property-changes-when-casefolded-tests: New file.
58309         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
58310         automatically generated by gen-uni-tables.
58312         New module 'unictype/property-changes-when-titlecased'.
58313         * modules/unictype/property-changes-when-titlecased: New file.
58314         * lib/unictype/pr_changes_when_titlecased.c: New file.
58315         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
58316         generated by gen-uni-tables.
58317         * modules/unictype/property-changes-when-titlecased-tests: New file.
58318         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
58319         automatically generated by gen-uni-tables.
58321         New module 'unictype/property-changes-when-uppercased'.
58322         * modules/unictype/property-changes-when-uppercased: New file.
58323         * lib/unictype/pr_changes_when_uppercased.c: New file.
58324         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
58325         generated by gen-uni-tables.
58326         * modules/unictype/property-changes-when-uppercased-tests: New file.
58327         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
58328         automatically generated by gen-uni-tables.
58330         New module 'unictype/property-changes-when-lowercased'.
58331         * modules/unictype/property-changes-when-lowercased: New file.
58332         * lib/unictype/pr_changes_when_lowercased.c: New file.
58333         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
58334         generated by gen-uni-tables.
58335         * modules/unictype/property-changes-when-lowercased-tests: New file.
58336         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
58337         automatically generated by gen-uni-tables.
58339         New module 'unictype/property-case-ignorable'.
58340         * modules/unictype/property-case-ignorable: New file.
58341         * lib/unictype/pr_case_ignorable.c: New file.
58342         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
58343         by gen-uni-tables.
58344         * modules/unictype/property-case-ignorable-tests: New file.
58345         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
58346         generated by gen-uni-tables.
58348         New module 'unictype/property-cased'.
58349         * modules/unictype/property-cased: New file.
58350         * lib/unictype/pr_cased.c: New file.
58351         * lib/unictype/pr_cased.h: New file, automatically generated by
58352         gen-uni-tables.
58353         * modules/unictype/property-cased-tests: New file.
58354         * tests/unictype/test-pr_cased.c: New file, automatically generated by
58355         gen-uni-tables.
58357 2011-01-09  Bruno Haible  <bruno@clisp.org>
58359         Update to Unicode 5.2.0.
58360         * lib/gen-uni-tables.c (output_predicate, output_category,
58361         output_combclass, output_bidi_category, output_decimal_digit_test,
58362         output_decimal_digit, output_digit_test, output_digit,
58363         output_numeric_test, output_numeric, output_mirror, output_scripts,
58364         output_scripts_byname, output_blocks, output_ident_category): Fix
58365         comment header.
58366         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
58367         get_wbp.
58368         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
58369         items.
58370         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
58371         Changes_When_Lowercased, Changes_When_Uppercased,
58372         Changes_When_Titlecased, Changes_When_Casefolded,
58373         Changes_When_Casemapped.
58374         (is_property_alphabetic, is_property_default_ignorable_code_point):
58375         Update for Unicode 5.2.0.
58376         (is_property_cased, is_property_case_ignorable,
58377         is_property_changes_when_lowercased,
58378         is_property_changes_when_uppercased,
58379         is_property_changes_when_titlecased,
58380         is_property_changes_when_casefolded,
58381         is_property_changes_when_casemapped): New functions.
58382         (output_properties): Output also the properties cased, case_ignorable,
58383         changes_when_lowercased, changes_when_uppercased,
58384         changes_when_titlecased, changes_when_casefolded,
58385         changes_when_casemapped.
58386         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
58387         Unicode TR#11 revision 17 -> 19.
58388         (LBP_CP): New enumeration value.
58389         (LBP_*): Adjust values accordingly.
58390         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
58391         TR#14 revision 22 -> 24.
58392         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
58393         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
58394         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
58395         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
58396         is_WBP_MIDLETTER.
58397         (output_composition_tables): Allow for 24 bits instead of 16 bits in
58398         the code1 and code2 of each composition rule.
58399         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
58400         * lib/unicase/ignorable.h: Likewise.
58401         * lib/unicase/tocasefold.h: Likewise.
58402         * lib/unicase/tolower.h: Likewise.
58403         * lib/unicase/totitle.h: Likewise.
58404         * lib/unicase/toupper.h: Likewise.
58405         * lib/unictype/bidi_of.h: Likewise.
58406         * lib/unictype/blocks.h: Likewise.
58407         * lib/unictype/categ_C.h: Likewise.
58408         * lib/unictype/categ_Cf.h: Likewise.
58409         * lib/unictype/categ_Cn.h: Likewise.
58410         * lib/unictype/categ_L.h: Likewise.
58411         * lib/unictype/categ_Ll.h: Likewise.
58412         * lib/unictype/categ_Lm.h: Likewise.
58413         * lib/unictype/categ_Lo.h: Likewise.
58414         * lib/unictype/categ_Lu.h: Likewise.
58415         * lib/unictype/categ_M.h: Likewise.
58416         * lib/unictype/categ_Mc.h: Likewise.
58417         * lib/unictype/categ_Mn.h: Likewise.
58418         * lib/unictype/categ_N.h: Likewise.
58419         * lib/unictype/categ_Nd.h: Likewise.
58420         * lib/unictype/categ_Nl.h: Likewise.
58421         * lib/unictype/categ_No.h: Likewise.
58422         * lib/unictype/categ_P.h: Likewise.
58423         * lib/unictype/categ_Pd.h: Likewise.
58424         * lib/unictype/categ_Po.h: Likewise.
58425         * lib/unictype/categ_S.h: Likewise.
58426         * lib/unictype/categ_Sc.h: Likewise.
58427         * lib/unictype/categ_So.h: Likewise.
58428         * lib/unictype/categ_of.h: Likewise.
58429         * lib/unictype/combining.h: Likewise.
58430         * lib/unictype/ctype_alnum.h: Likewise.
58431         * lib/unictype/ctype_alpha.h: Likewise.
58432         * lib/unictype/ctype_graph.h: Likewise.
58433         * lib/unictype/ctype_lower.h: Likewise.
58434         * lib/unictype/ctype_print.h: Likewise.
58435         * lib/unictype/ctype_punct.h: Likewise.
58436         * lib/unictype/ctype_upper.h: Likewise.
58437         * lib/unictype/decdigit.h: Likewise.
58438         * lib/unictype/digit.h: Likewise.
58439         * lib/unictype/numeric.h: Likewise.
58440         * lib/unictype/pr_alphabetic.h: Likewise.
58441         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58442         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58443         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58444         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58445         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58446         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58447         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58448         * lib/unictype/pr_combining.h: Likewise.
58449         * lib/unictype/pr_composite.h: Likewise.
58450         * lib/unictype/pr_currency_symbol.h: Likewise.
58451         * lib/unictype/pr_dash.h: Likewise.
58452         * lib/unictype/pr_decimal_digit.h: Likewise.
58453         * lib/unictype/pr_deprecated.h: Likewise.
58454         * lib/unictype/pr_diacritic.h: Likewise.
58455         * lib/unictype/pr_extender.h: Likewise.
58456         * lib/unictype/pr_grapheme_base.h: Likewise.
58457         * lib/unictype/pr_grapheme_extend.h: Likewise.
58458         * lib/unictype/pr_grapheme_link.h: Likewise.
58459         * lib/unictype/pr_id_continue.h: Likewise.
58460         * lib/unictype/pr_id_start.h: Likewise.
58461         * lib/unictype/pr_ideographic.h: Likewise.
58462         * lib/unictype/pr_ignorable_control.h: Likewise.
58463         * lib/unictype/pr_logical_order_exception.h: Likewise.
58464         * lib/unictype/pr_lowercase.h: Likewise.
58465         * lib/unictype/pr_numeric.h: Likewise.
58466         * lib/unictype/pr_other_alphabetic.h: Likewise.
58467         * lib/unictype/pr_punctuation.h: Likewise.
58468         * lib/unictype/pr_sentence_terminal.h: Likewise.
58469         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58470         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58471         * lib/unictype/pr_unified_ideograph.h: Likewise.
58472         * lib/unictype/pr_uppercase.h: Likewise.
58473         * lib/unictype/pr_xid_continue.h: Likewise.
58474         * lib/unictype/pr_xid_start.h: Likewise.
58475         * lib/unictype/pr_zero_width.h: Likewise.
58476         * lib/unictype/scripts.h: Likewise.
58477         * lib/unictype/scripts_byname.gperf: Likewise.
58478         * lib/unictype/sy_java_ident.h: Likewise.
58479         * lib/unigbrk/gbrkprop.h: Likewise.
58480         * lib/unilbrk/lbrkprop1.h: Likewise.
58481         * lib/unilbrk/lbrkprop2.h: Likewise.
58482         * lib/unilbrk/lbrktables.h: Likewise.
58483         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
58484         LBP_CP. Implement rule LB30.
58485         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
58486         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
58487         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
58488         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
58489         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
58490         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
58491         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
58492         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
58493         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
58494         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
58495         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
58496         bits instead of 16 bits in the code1 and code2 of each composition
58497         rule.
58498         (uc_composition): Update for Unicode 5.2.0.
58499         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
58500         * lib/uninorm/decomposition-table2.h: Likewise.
58501         * lib/uniwbrk/wbrkprop.h: Likewise.
58502         * tests/unicase/test-cased.c: Likewise.
58503         * tests/unicase/test-ignorable.c: Likewise.
58504         * tests/unicase/test-uc_tolower.c: Likewise.
58505         * tests/unicase/test-uc_totitle.c: Likewise.
58506         * tests/unicase/test-uc_toupper.c: Likewise.
58507         * tests/unictype/test-categ_C.c: Likewise.
58508         * tests/unictype/test-categ_Cf.c: Likewise.
58509         * tests/unictype/test-categ_Cn.c: Likewise.
58510         * tests/unictype/test-categ_L.c: Likewise.
58511         * tests/unictype/test-categ_Ll.c: Likewise.
58512         * tests/unictype/test-categ_Lm.c: Likewise.
58513         * tests/unictype/test-categ_Lo.c: Likewise.
58514         * tests/unictype/test-categ_Lu.c: Likewise.
58515         * tests/unictype/test-categ_M.c: Likewise.
58516         * tests/unictype/test-categ_Mc.c: Likewise.
58517         * tests/unictype/test-categ_Mn.c: Likewise.
58518         * tests/unictype/test-categ_N.c: Likewise.
58519         * tests/unictype/test-categ_Nd.c: Likewise.
58520         * tests/unictype/test-categ_Nl.c: Likewise.
58521         * tests/unictype/test-categ_No.c: Likewise.
58522         * tests/unictype/test-categ_P.c: Likewise.
58523         * tests/unictype/test-categ_Pd.c: Likewise.
58524         * tests/unictype/test-categ_Po.c: Likewise.
58525         * tests/unictype/test-categ_S.c: Likewise.
58526         * tests/unictype/test-categ_Sc.c: Likewise.
58527         * tests/unictype/test-categ_So.c: Likewise.
58528         * tests/unictype/test-ctype_alnum.c: Likewise.
58529         * tests/unictype/test-ctype_alpha.c: Likewise.
58530         * tests/unictype/test-ctype_graph.c: Likewise.
58531         * tests/unictype/test-ctype_lower.c: Likewise.
58532         * tests/unictype/test-ctype_print.c: Likewise.
58533         * tests/unictype/test-ctype_punct.c: Likewise.
58534         * tests/unictype/test-ctype_upper.c: Likewise.
58535         * tests/unictype/test-decdigit.h: Likewise.
58536         * tests/unictype/test-digit.h: Likewise.
58537         * tests/unictype/test-numeric.h: Likewise.
58538         * tests/unictype/test-pr_alphabetic.c: Likewise.
58539         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58540         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58541         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58542         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58543         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58544         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58545         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58546         * tests/unictype/test-pr_combining.c: Likewise.
58547         * tests/unictype/test-pr_composite.c: Likewise.
58548         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58549         * tests/unictype/test-pr_dash.c: Likewise.
58550         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58551         * tests/unictype/test-pr_deprecated.c: Likewise.
58552         * tests/unictype/test-pr_diacritic.c: Likewise.
58553         * tests/unictype/test-pr_extender.c: Likewise.
58554         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58555         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58556         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58557         * tests/unictype/test-pr_id_continue.c: Likewise.
58558         * tests/unictype/test-pr_id_start.c: Likewise.
58559         * tests/unictype/test-pr_ideographic.c: Likewise.
58560         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58561         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58562         * tests/unictype/test-pr_lowercase.c: Likewise.
58563         * tests/unictype/test-pr_numeric.c: Likewise.
58564         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58565         * tests/unictype/test-pr_punctuation.c: Likewise.
58566         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58567         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58568         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58569         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58570         * tests/unictype/test-pr_uppercase.c: Likewise.
58571         * tests/unictype/test-pr_xid_continue.c: Likewise.
58572         * tests/unictype/test-pr_xid_start.c: Likewise.
58573         * tests/unictype/test-pr_zero_width.c: Likewise.
58574         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
58575         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
58576         changed behaviour: line breaking is now disallowed between a letter
58577         or '=' and '('.
58578         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58579         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58580         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58581         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
58582         * tests/uniwidth/test-uc_width2.sh: Same updates as in
58583         lib/uniwidth/width.c.
58584         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
58585         without comments, but with the original copyright notice.
58586         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
58587         changes.
58588         * lib/unictype/categ_Cc.h: Likewise.
58589         * lib/unictype/categ_Co.h: Likewise.
58590         * lib/unictype/categ_Cs.h: Likewise.
58591         * lib/unictype/categ_Lt.h: Likewise.
58592         * lib/unictype/categ_Me.h: Likewise.
58593         * lib/unictype/categ_Pc.h: Likewise.
58594         * lib/unictype/categ_Pe.h: Likewise.
58595         * lib/unictype/categ_Pf.h: Likewise.
58596         * lib/unictype/categ_Pi.h: Likewise.
58597         * lib/unictype/categ_Ps.h: Likewise.
58598         * lib/unictype/categ_Sk.h: Likewise.
58599         * lib/unictype/categ_Sm.h: Likewise.
58600         * lib/unictype/categ_Z.h: Likewise.
58601         * lib/unictype/categ_Zl.h: Likewise.
58602         * lib/unictype/categ_Zp.h: Likewise.
58603         * lib/unictype/categ_Zs.h: Likewise.
58604         * lib/unictype/ctype_blank.h: Likewise.
58605         * lib/unictype/ctype_cntrl.h: Likewise.
58606         * lib/unictype/ctype_digit.h: Likewise.
58607         * lib/unictype/ctype_space.h: Likewise.
58608         * lib/unictype/ctype_xdigit.h: Likewise.
58609         * lib/unictype/mirror.h: Likewise.
58610         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58611         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58612         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58613         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58614         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58615         * lib/unictype/pr_bidi_control.h: Likewise.
58616         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58617         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58618         * lib/unictype/pr_bidi_pdf.h: Likewise.
58619         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58620         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58621         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58622         * lib/unictype/pr_format_control.h: Likewise.
58623         * lib/unictype/pr_hex_digit.h: Likewise.
58624         * lib/unictype/pr_hyphen.h: Likewise.
58625         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58626         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58627         * lib/unictype/pr_iso_control.h: Likewise.
58628         * lib/unictype/pr_join_control.h: Likewise.
58629         * lib/unictype/pr_left_of_pair.h: Likewise.
58630         * lib/unictype/pr_line_separator.h: Likewise.
58631         * lib/unictype/pr_math.h: Likewise.
58632         * lib/unictype/pr_non_break.h: Likewise.
58633         * lib/unictype/pr_not_a_character.h: Likewise.
58634         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58635         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58636         * lib/unictype/pr_other_id_continue.h: Likewise.
58637         * lib/unictype/pr_other_id_start.h: Likewise.
58638         * lib/unictype/pr_other_lowercase.h: Likewise.
58639         * lib/unictype/pr_other_math.h: Likewise.
58640         * lib/unictype/pr_other_uppercase.h: Likewise.
58641         * lib/unictype/pr_paired_punctuation.h: Likewise.
58642         * lib/unictype/pr_paragraph_separator.h: Likewise.
58643         * lib/unictype/pr_pattern_syntax.h: Likewise.
58644         * lib/unictype/pr_pattern_white_space.h: Likewise.
58645         * lib/unictype/pr_private_use.h: Likewise.
58646         * lib/unictype/pr_quotation_mark.h: Likewise.
58647         * lib/unictype/pr_radical.h: Likewise.
58648         * lib/unictype/pr_soft_dotted.h: Likewise.
58649         * lib/unictype/pr_space.h: Likewise.
58650         * lib/unictype/pr_titlecase.h: Likewise.
58651         * lib/unictype/pr_variation_selector.h: Likewise.
58652         * lib/unictype/pr_white_space.h: Likewise.
58653         * lib/unictype/sy_c_ident.h: Likewise.
58654         * lib/unictype/sy_c_whitespace.h: Likewise.
58655         * lib/unictype/sy_java_whitespace.h: Likewise.
58656         * modules/uni*/*: Bump version number of expected libunistring version.
58657         Reported by Simon Josefsson.
58659 2011-01-09  Karl Heuer  <kwzh@gnu.org>
58661         useless-if-before-free: fix typo in --help and make the internal,
58662         automatic version date update process work once again.
58663         --help output contained a NUL character instead of the
58664         backslash-zero that was intended.  Also, the "must lie within
58665         the first 8 lines" line is on line 9, and hence not getting
58666         automatically updated.
58667         * build-aux/useless-if-before-free: Fix the former by adding a
58668         backslash, and the latter by condensing the three lines of what-it-does
58669         to a single line, leaving one line of slack for the future.
58671 2011-01-09  Bruno Haible  <bruno@clisp.org>
58673         uniwidth/width: Fix width of U+1D173..U+1D17A.
58674         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
58675         symbolic_width, output_width_property_test): New functions.
58676         (main): Invoke output_nonspacing_property, output_width_property_test.
58677         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
58678         U+1D173..U+1D17A.
58679         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
58680         1.
58681         * modules/uniwidth/*: Bump version number of expected libunistring
58682         version.
58683         * modules/unilbrk/*: Likewise.
58685 2011-01-08  Bruno Haible  <bruno@clisp.org>
58687         uninorm tests: Preserve copyright of Unicode data file.
58688         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
58689         Mention modifications.
58691 2011-01-08  Bruno Haible  <bruno@clisp.org>
58693         gen-uni-tables: Prepare for Unicode 5.2.0.
58694         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
58695         (debug_output_lbp, output_lbp): Update.
58697 2011-01-08  Bruno Haible  <bruno@clisp.org>
58699         unilbrk: Clarify gen-uni-tables.c code.
58700         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
58701         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
58702         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
58704 2011-01-07  Bruno Haible  <bruno@clisp.org>
58706         strtod: Restore errno when successfully parsing Infinity or NaN.
58707         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
58708         restore the original errno.
58710 2011-01-07  Bruno Haible  <bruno@clisp.org>
58712         remove test: Avoid failure on HP-UX 11.
58713         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
58715 2011-01-07  Bruno Haible  <bruno@clisp.org>
58717         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
58718         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
58719         error code.
58721 2011-01-07  Pádraig Brady  <P@draigBrady.com>
58723         ignore-value: fixup comments, and add Eric Blake
58724         as an author since he rewrote the macros.
58725         * lib/ignore-value.h (ignore_value):  State that
58726         we now support aggregates.  Also specify exactly
58727         when the GCC warn_unused_result feature was added.
58729 2011-01-06  Eric Blake  <eblake@redhat.com>
58731         ignore-value: support aggregate types
58732         * lib/ignore-value.h (ignore_value): Provide separate gcc
58733         definition.
58734         * modules/ignore-value-tests: New test module.
58735         * tests/test-ignore-value.c: New test.
58737         maint.mk: improve sc_prohibit_strcmp regex
58738         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
58739         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
58740         definition of STRNEQ.
58742         signal: work around Haiku issue with SIGBUS
58743         * lib/siglist.h: Add comment.
58744         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
58745         strsignal's favoring of SIGSEGV.
58746         * tests/test-signal.c (main): Avoid test failure.
58747         * doc/posix-headers/signal.texi (signal.h): Document the issue.
58748         Reported by Scott McCreary.
58750         maint.mk: add pre-release check to ensure submodule commits are public
58751         * top/maint.mk (public-submodule-commit): New rule.
58752         (submodule-checks): New variable.
58753         (alpha beta stable): Depend on the variable.
58755 2011-01-05  Pádraig Brady  <P@draigBrady.com>
58756         and Jim Meyering  <meyering@redhat.com>
58758         ignore-value: make ignore_value more generic; deprecate ignore_ptr
58759         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
58760         (ATTRIBUTE_DEPRECATED): Define.
58761         (_ignore_case): New function.
58762         (ignore_value): New macro, to replace the old function.
58763         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
58764         * modules/ignore-value (Depends-on): Add stdint.
58766 2011-01-04  Eric Blake  <eblake@redhat.com>
58768         doc: regenerate INSTALL
58769         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
58770         @firstparagraphindent support, now that autoconf dropped it.
58771         (INSTALL_PRELUDE): Reinstate old macro.
58772         * doc/install.texi: Resync from autoconf.
58773         * doc/INSTALL: Reflect recent autoconf update.
58774         * doc/INSTALL.ISO: Likewise.
58775         * doc/INSTALL.UTF-8: Likewise.
58776         Reported by Karl Berry.
58778 2011-01-04  Bruce Korb  <address@hidden>
58780         git-version-gen: avoid a sub-shell
58781         * build-aux/git-version-gen: Redirect stderr in `...` via
58782         "exec 2>...", rather than via an added sub-shell.
58784 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
58786         git-version-gen: use (...) rather than sh -c '...'
58787         * build-aux/git-version-gen: Rather than hard-coding a shell's name
58788         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
58790 2011-01-03  Jim Meyering  <meyering@redhat.com>
58792         git-version-gen: convert leading TABs to spaces
58793         * build-aux/git-version-gen: Expand leading TABs.
58795         git-version-gen: handle failed "git rev-list"
58796         * build-aux/git-version-gen: Rather than leaking a "fatal" error
58797         from git and proceeding as if it had succeeded but printed no SHA1
58798         checksums, suppress the diagnostic and handle the failure.
58799         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
58801         git-version-gen: include command name in one more diagnostic
58802         * build-aux/git-version-gen: When the required .tarball-version file
58803         was missing or unreadable, you might see the diagnostic from "cat",
58804         but no trace of the name of the invoking script.  Now, you still see
58805         the diagnostic from cat, but also get one from "git-version-gen: ".
58806         Inspired by a patch from Bruce Korb.
58808         update-copyright: adjust test to match changed code
58809         * tests/test-update-copyright.sh: Change test's expected output
58810         to match new actual output.
58812 2011-01-02  Bruno Haible  <bruno@clisp.org>
58814         getlogin_r: Avoid test failure on HP-UX 11.
58815         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
58816         ERANGE when the second argument is zero.
58817         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
58818         portability problem.
58820 2011-01-02  Bruce Korb  <bkorb@gnu.org>
58822         * build-aux/update-copyright: doc Simon's changes
58824 2011-01-02  Simon Josefsson  <simon@josefsson.org>
58826         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
58827         environment variable.
58829 2011-01-02  Bruno Haible  <bruno@clisp.org>
58831         unigbrk: Avoid gcc warnings.
58832         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
58833         unused variable.
58834         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
58835         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
58836         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
58837         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
58838         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
58839         Change type of first argument to 'const char *'.
58840         (main): Remove unused variable.
58841         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
58842         type of first argument to 'const char *'.
58843         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
58844         Likewise.
58845         (main): Change type of variable 's'.
58846         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
58847         to 'int'.
58849 2011-01-02  Bruno Haible  <bruno@clisp.org>
58851         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
58852         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
58853         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
58854         bug.
58855         * lib/pwrite.c: Undo 2010-12-31 patch.
58856         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
58858 2011-01-02  Bruno Haible  <bruno@clisp.org>
58860         pread: Fix test whether it works.
58861         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
58863 2011-01-02  Bruno Haible  <bruno@clisp.org>
58865         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
58866         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
58867         ends in "6". Don't require a specific month name. Try also the locale
58868         names found on HP-UX 11 and Solaris 7.
58870 2011-01-02  Bruno Haible  <bruno@clisp.org>
58872         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
58873         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
58874         C linkage.
58875         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
58877 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58879         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
58880         for consistency, since the "cluster" term is not used elsewhere.
58881         * lib/unigbrk.in.h: Update name.
58882         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
58883         * lib/unigbrk/u16-grapheme-next.c: Update name.
58884         * lib/unigbrk/u16-grapheme-prev.c: Update name.
58885         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
58886         * lib/unigbrk/u32-grapheme-next.c: Update name.
58887         * lib/unigbrk/u32-grapheme-prev.c: Update name.
58888         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
58889         * lib/unigbrk/u8-grapheme-next.c: Update name.
58890         * lib/unigbrk/u8-grapheme-prev.c: Update name.
58891         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
58892         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
58893         Suggested by Bruno Haible.
58895 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58897         Remove module 'u8-grapheme-len' as too redundant with
58898         'u8-grapheme-next'.
58899         * modules/unigbrk/u8-grapheme-len: Delete file.
58900         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58901         * lib/unigbrk.in.h: Remove prototype for deleted function.
58902         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58903         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58905         Remove module 'u16-grapheme-len' as too redundant with
58906         'u16-grapheme-next'.
58907         * modules/unigbrk/u16-grapheme-len: Delete file.
58908         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58909         * lib/unigbrk.in.h: Remove prototype for deleted function.
58910         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58911         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58913         Remove module 'u32-grapheme-len' as too redundant with
58914         'u32-grapheme-next'.
58915         * modules/unigbrk/u32-grapheme-len: Delete file.
58916         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58917         * lib/unigbrk.in.h: Remove prototype for deleted function.
58918         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58919         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58921         Suggested by Bruno Haible.
58923 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58925         * unigbrk.in.h: Fix typo: "ben" => "been".
58926         Reported by Bruno Haible.
58928 2011-01-01  Jim Meyering  <meyering@redhat.com>
58930         maint: update almost all copyright ranges to include 2011
58931         Run the new "make update-copyright" rule.
58933 2011-01-01  Jim Meyering  <meyering@redhat.com>
58935         maint: update-copyright: exempt doc/INSTALL*
58936         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58937         since they are generated.  Suggested by Bruno Haible.
58939 2011-01-01  Jim Meyering  <meyering@redhat.com>
58941         maint: refine the update-copyright rule
58942         * Makefile (update-copyright): Also exclude any file that includes
58943         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58944         code that merely generates the comment.
58946 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58948         New module 'u8-grapheme-len'.
58949         * modules/unigbrk/u8-grapheme-len: New file.
58950         * modules/unigbrk/u8-grapheme-len-tests: New file.
58951         * lib/unigbrk.in.h: Add prototype for new function.
58952         * lib/unigbrk/u8-grapheme-len.c: New file.
58953         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58955         New module 'u16-grapheme-len'.
58956         * modules/unigbrk/u16-grapheme-len: New file.
58957         * modules/unigbrk/u16-grapheme-len-tests: New file.
58958         * lib/unigbrk.in.h: Add prototype for new function.
58959         * lib/unigbrk/u16-grapheme-len.c: New file.
58960         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58962         New module 'u32-grapheme-len'.
58963         * modules/unigbrk/u32-grapheme-len: New file.
58964         * modules/unigbrk/u32-grapheme-len-tests: New file.
58965         * lib/unigbrk.in.h: Add prototype for new function.
58966         * lib/unigbrk/u32-grapheme-len.c: New file.
58967         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58969         New module 'u8-grapheme-next'.
58970         * modules/unigbrk/u8-grapheme-next: New file.
58971         * modules/unigbrk/u8-grapheme-next-tests: New file.
58972         * lib/unigbrk.in.h: Add prototype for new function.
58973         * lib/unigbrk/u8-grapheme-next.c: New file.
58974         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58976         New module 'u16-grapheme-next'.
58977         * modules/unigbrk/u16-grapheme-next: New file.
58978         * modules/unigbrk/u16-grapheme-next-tests: New file.
58979         * lib/unigbrk.in.h: Add prototype for new function.
58980         * lib/unigbrk/u16-grapheme-next.c: New file.
58981         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58983         New module 'u32-grapheme-next'.
58984         * modules/unigbrk/u32-grapheme-next: New file.
58985         * modules/unigbrk/u32-grapheme-next-tests: New file.
58986         * lib/unigbrk.in.h: Add prototype for new function.
58987         * lib/unigbrk/u32-grapheme-next.c: New file.
58988         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58990         New module 'u8-grapheme-prev'.
58991         * modules/unigbrk/u8-grapheme-prev: New file.
58992         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58993         * lib/unigbrk.in.h: Add prototype for new function.
58994         * lib/unigbrk/u8-grapheme-prev.c: New file.
58995         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58997         New module 'u16-grapheme-prev'.
58998         * modules/unigbrk/u16-grapheme-prev: New file.
58999         * modules/unigbrk/u16-grapheme-prev-tests: New file.
59000         * lib/unigbrk.in.h: Add prototype for new function.
59001         * lib/unigbrk/u16-grapheme-prev.c: New file.
59002         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
59004         New module 'u32-grapheme-prev'.
59005         * modules/unigbrk/u32-grapheme-prev: New file.
59006         * modules/unigbrk/u32-grapheme-prev-tests: New file.
59007         * lib/unigbrk.in.h: Add prototype for new function.
59008         * lib/unigbrk/u32-grapheme-prev.c: New file.
59009         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
59011         New module 'u8-grapheme-breaks'.
59012         * modules/unigbrk/u8-grapheme-breaks: New file.
59013         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
59014         * lib/unigbrk.in.h: Add prototype for new function.
59015         * lib/unigbrk/u8-grapheme-breaks.c: New file.
59016         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
59018         New module 'u16-grapheme-breaks'.
59019         * modules/unigbrk/u16-grapheme-breaks: New file.
59020         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
59021         * lib/unigbrk.in.h: Add prototype for new function.
59022         * lib/unigbrk/u16-grapheme-breaks.c: New file.
59023         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
59025         New module 'u32-grapheme-breaks'.
59026         * modules/unigbrk/u32-grapheme-breaks: New file.
59027         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
59028         * lib/unigbrk.in.h: Add prototype for new function.
59029         * lib/unigbrk/u32-grapheme-breaks.c: New file.
59030         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
59032         New module 'ulc-grapheme-breaks'.
59033         * modules/unigbrk/ulc-grapheme-breaks: New file.
59034         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
59035         * m4/locale-ar.m4: New file.
59036         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
59037         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
59038         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
59040 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
59042         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
59043         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
59044         modified how this file was generated before I initially submitted
59045         the module, but failed to regenerate it.  This meant that several
59046         of the level2 entries were wrong.
59047         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
59048         Remove the division-by-2 that is folded into the table now that
59049         gbrkprop.h has been regenerated properly.  Now -1 entries are
59050         handled correctly.
59052         New module 'unigbrk/uc-gbrk-prop-tests'.
59053         * modules/unigbrk/uc-gbrk-prop-tests: New file.
59054         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
59055         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
59056         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
59058 2011-01-01  Bruno Haible  <bruno@clisp.org>
59060         Avoid use of hexadecimal escapes.
59061         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
59062         instead of hexadecimal escapes.
59064 2011-01-01  Jim Meyering  <meyering@redhat.com>
59066         maint: new rule to update copyright year ranges
59067         * Makefile (update-copyright): New rule.
59069         maint: indent with TABs in Makefile
59070         * Makefile: Expand leading sequences of spaces to TABs
59072         version-etc: update the copyright year it reports
59073         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
59075 2010-12-31  Bruno Haible  <bruno@clisp.org>
59077         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
59078         * lib/isfinite.c (zerof, zerod, zerol): New variables.
59079         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
59080         zero.
59082 2010-12-31  Bruno Haible  <bruno@clisp.org>
59084         pwrite: Work around HP-UX 11.11 bug.
59085         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
59086         works and set REPLACE_PWRITE if not.
59087         * lib/pwrite.c (pwrite): Add an implementation that uses the system
59088         function.
59089         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
59091 2010-12-31  Bruno Haible  <bruno@clisp.org>
59093         pread: Work around HP-UX 11 bugs.
59094         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
59095         and set REPLACE_PREAD if not.
59096         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
59098 2010-12-31  Eric Blake  <eblake@redhat.com>
59100         nl_langinfo: fix YESEXPR on Irix 6.5
59101         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
59102         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
59103         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
59104         it.
59106 2010-12-31  Bruno Haible  <bruno@clisp.org>
59108         iconv: Document HP-UX 11 bug.
59109         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
59111 2010-12-31  Bruno Haible  <bruno@clisp.org>
59113         ldexpl: Fix link error on HP-UX 11.
59114         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
59115         LDEXPL_LIBM, using $ISNANL_LIBM.
59117 2010-12-31  Eric Blake  <eblake@redhat.com>
59119         ftello: avoid compilation failure with SunStudio c89
59120         * lib/ftello.c (ftello): Use lseek, not llseek.
59122         tests: avoid failing coreutils tests on cygwin
59123         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
59124         (create_exe_shims_): Return 0 when skipping.
59126 2010-12-31  Bruno Haible  <bruno@clisp.org>
59128         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
59129         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
59131 2010-12-31  Bruno Haible  <bruno@clisp.org>
59133         waitpid: Fix link error in C++ mode.
59134         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
59136 2010-12-31  Bruno Haible  <bruno@clisp.org>
59138         isnan: Use GCC built-ins when possible.
59139         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
59140         __builtin_isnan.
59141         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
59142         (isnan): Define using GCC built-ins for GCC >= 4.0.
59144 2010-12-31  Bruno Haible  <bruno@clisp.org>
59146         isnand: Fix mistake.
59147         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
59148         __builtin_isnand.
59150 2010-12-31  Bruno Haible  <bruno@clisp.org>
59152         open: Avoid C++ error on HP-UX 11.
59153         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
59155 2010-12-31  Bruno Haible  <bruno@clisp.org>
59157         time_r: Add missing declarations on HP-UX 11.
59158         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
59159         instead of HAVE_LOCALTIME_R.
59160         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
59161         HAVE_LOCALTIME_R always.
59162         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
59163         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
59164         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
59165         HAVE_LOCALTIME_R.
59166         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
59167         * doc/posix-functions/localtime_r.texi: Likewise.
59169 2010-12-29  Eric Blake  <eblake@redhat.com>
59171         mountlist: tweak previous commit
59172         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
59173         Reported by Paul Eggert.
59175         mountlist: fix local drive detection on cygwin
59176         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
59177         that works for cygwin.
59179 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59181         ftoastr, snprintf: ftoastr + snprintf module
59182         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
59183         since the snprintf module now should be good enough here.
59184         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
59185         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
59186         and gl_MODULE_INDICATOR([snprintf]), but the former enables
59187         GNULIB_SNPRINTF only for the test directory, and the latter
59188         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
59189         seems to suffice by itself.
59191 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59193         alloca: one step towards thread-safety
59194         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
59195         need for a static variable.  All callers changed.  This does not
59196         make the alloca replacement thread-safe, but it's one step.
59198         tests: minor indenting change
59199         * tests/init.sh: Sync from coreutils housekeeping patch
59200         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
59201         to keep lines within 80 columns.
59203 2010-12-28  Jim Meyering  <meyering@redhat.com>
59205         regex: don't infloop on persistent failing calloc
59206         * lib/regexec.c (build_trtable): Return failure indication upon
59207         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
59208         In glibc, this was fixed for version 2.13:
59209         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
59211 2010-12-28  Bruno Haible  <bruno@clisp.org>
59212             Paul Eggert <eggert@cs.ucla.edu>
59214         linkat: Make implementation robust against system behaviour variations.
59215         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
59216         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
59217         way, and to -2 if it needs a generic runtime test.
59218         * lib/linkat.c (solaris_optimized_link_immediate,
59219         solaris_optimized_link_follow): New functions.
59220         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
59221         (check_same_link): Use it.
59223 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
59225         New module 'unigbrk/base'.
59226         * modules/unigbrk/base: New file.
59227         * lib/unigbrk.in.h: New file.
59229         New module 'unigbrk/uc-gbrk-prop'.
59230         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
59231         * modules/unigbrk/uc-gbrk-prop: New file.
59232         * lib/unigbrk/gbrkprop.h: New file.
59233         * lib/unigbrk/uc-gbrk-prop.c: New file.
59235         New module 'unigbrk/uc-is-grapheme-break'.
59236         * modules/unigbrk/uc-is-grapheme-break: New file.
59237         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
59238         * lib/unigbrk/uc-is-grapheme-break.c: New file.
59239         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
59240         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
59241         * tests/unigbrk/GraphemeBreakTest.txt: New file.
59243         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
59245 2010-12-27  Bruno Haible  <bruno@clisp.org>
59247         linkat test: Avoid failure on Solaris 11 2010-11.
59248         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
59250 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59252         utimens: work around glibc rounding bug on more platforms
59253         * lib/utimens.c (fdutimens): Work around rounding bug even if
59254         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
59255         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
59257 2010-12-27  Bruno Haible  <bruno@clisp.org>
59259         select tests: Improve comments.
59260         * tests/test-select.c (do_select): Add comments.
59262 2010-12-27  Bruno Haible  <bruno@clisp.org>
59264         select tests: Safer way of handling timeout.
59265         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
59266         at every invocation.
59268 2010-12-27  Bruno Haible  <bruno@clisp.org>
59270         select tests: Use 'bool' where appropriate.
59271         * tests/test-select.c (connect_to_socket): Change argument type to
59272         'bool'.
59274 2010-12-27  Bruno Haible  <bruno@clisp.org>
59276         select tests: Use existing modules.
59277         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
59278         (configure.ac): Don't test for unistd.h.
59279         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
59280         declared in <unistd.h>.
59282 2010-12-27  Bruno Haible  <bruno@clisp.org>
59284         mbrtowc: Work around a Solaris 7 bug.
59285         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
59286         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
59287         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
59288         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
59289         MBRTOWC_NULL_ARG1_BUG.
59290         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
59291         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
59292         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
59293         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
59295 2010-12-27  Jim Meyering  <meyering@redhat.com>
59297         read-file.c: tweak syntax
59298         * lib/read-file.c (fread_file): Remove space after "*" in function
59299         definitions.
59301 2010-12-27  Bruno Haible  <bruno@clisp.org>
59303         times test: Avoid gcc warnings on OSF/1.
59304         * tests/test-times.c (main): Cast printf arguments from clock_t to
59305         'long int'.
59307 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59309         utimens: work around glibc rounding bug on older Linux kernels
59310         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
59311         on Linux with a glibc whose utimes might not work, then work
59312         around a longstanding glibc bug involving rounding rather than
59313         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
59314         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
59316 2010-12-26  Bruno Haible  <bruno@clisp.org>
59318         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
59319         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
59320         _GL_CXXALIAS_SYS.
59321         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59323 2010-12-26  Bruno Haible  <bruno@clisp.org>
59325         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
59326         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
59327         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59328         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
59329         looking for the declaration.
59330         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59331         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
59332         problem.
59333         * doc/posix-functions/inet_pton.texi: Likewise.
59335 2010-12-26  Bruno Haible  <bruno@clisp.org>
59337         arpa_inet: Use the common idioms with C++ support.
59338         * lib/arpa_inet.in.h: Include c++defs.h.
59339         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
59340         support.
59341         * modules/arpa_inet (Depends-on): Add c++defs.
59342         (Makefile.am): Substitute the contents of c++defs.h.
59343         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
59344         * modules/arpa_inet-c++-tests: New file.
59345         * tests/test-arpa_inet-c++.cc: New file.
59347 2010-12-25  Bruno Haible  <bruno@clisp.org>
59349         Fix more C++ link errors on Solaris 8.
59350         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
59351         $(LIB_EACCESS).
59352         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
59353         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
59354         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
59355         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
59356         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
59358 2010-12-25  Bruno Haible  <bruno@clisp.org>
59360         printf-posix: Fix link error when a non-GCC compiler is used.
59361         * lib/stdio.in.h (printf): When not using GCC, override printf
59362         correctly.
59363         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59365 2010-12-25  Bruno Haible  <bruno@clisp.org>
59367         strerror_r-posix: Update doc.
59368         * doc/posix-functions/strerror_r.texi: Update doc about the return
59369         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
59371 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59373         utimens: simplify the logic of the previous change
59374         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
59375         This should not affect whether the test succeeds or fails.
59377         utimens: configure better on hosts with NFS clock skew
59378         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
59379         uses the clock of the local host.  It might use the clock of the
59380         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
59381         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
59383 2010-12-25  Bruno Haible  <bruno@clisp.org>
59385         ptsname test: Avoid failure on Solaris.
59386         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
59387         open a pseudo-terminal; don't use BSD-style ptys.
59388         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
59390 2010-12-25  Bruno Haible  <bruno@clisp.org>
59392         ptsname: Avoid ERANGE failure on some systems.
59393         * lib/ptsname.c (buffer): Increase size.
59395 2010-12-25  Bruno Haible  <bruno@clisp.org>
59397         rename, renameat: Avoid test failures at NFS mounted locations.
59398         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
59399         so that subsequent mkdir calls succeed.
59401 2010-12-25  Bruno Haible  <bruno@clisp.org>
59403         iswblank: Fix C++ link error on Solaris 8.
59404         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
59405         _GL_FUNCDECL_SYS.
59407 2010-12-25  Bruno Haible  <bruno@clisp.org>
59409         unistd: Fix C++ link error on Solaris 8.
59410         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
59412 2010-12-25  Bruno Haible  <bruno@clisp.org>
59414         readlink doc: Mention an old glibc bug.
59415         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
59417 2010-12-25  Bruno Haible  <bruno@clisp.org>
59419         fcntl-h: Fix for use of C++ on glibc systems.
59420         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59421         also on glibc systems in C++ mode.
59422         Reported by Gary V. Vaughan <gary@gnu.org>.
59424 2010-12-25  Bruno Haible  <bruno@clisp.org>
59426         roundl-ieee: Make it work on OSF/1 5.1 with cc.
59427         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
59429 2010-12-25  Bruno Haible  <bruno@clisp.org>
59431         truncl-ieee: Make it work on OSF/1 5.1 with cc.
59432         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
59433         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
59434         test whether truncl works according to ISO C 99 with IEC 60559.
59435         * m4/truncl-ieee.m4: New file.
59436         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
59437         m4/signbit.m4.
59438         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
59440 2010-12-25  Bruno Haible  <bruno@clisp.org>
59442         ceill-ieee: Make it work on OSF/1 5.1 with cc.
59443         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
59444         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
59445         test whether ceill works according to ISO C 99 with IEC 60559.
59446         * m4/ceill-ieee.m4: New file.
59447         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
59448         m4/signbit.m4.
59449         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
59451 2010-12-25  Bruno Haible  <bruno@clisp.org>
59453         Ensure all prerequisites of <wchar.h> are included.
59454         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
59455         before <wchar.h>.
59456         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
59457         gl_MBRLEN_NUL_RETVAL): Likewise.
59458         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59459         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
59460         AC_FUNC_MBRTOWC): Likewise.
59461         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59462         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59463         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59464         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
59465         Likewise.
59466         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59467         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
59468         (gl_WCHAR_H): Improve comments.
59469         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59471 2010-12-25  Bruno Haible  <bruno@clisp.org>
59473         strtok_r: Fix C syntax error in autoconf macro.
59474         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
59475         characters in test program.
59477 2010-12-24  Bruno Haible  <bruno@clisp.org>
59479         ceil, trunc, round: Fix gcc warnings.
59480         * lib/ceil.c (MIN): Undefine before redefining.
59481         * lib/trunc.c (MIN): Likewise.
59482         * lib/round.c (MIN): Likewise.
59483         Include <math.h> first.
59485 2010-12-24  Bruno Haible  <bruno@clisp.org>
59487         select tests: Avoid failures on OSF/1 5.1.
59488         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
59489         failure of closing the last socket; it may fail with ECONNRESET.
59491 2010-12-24  Eric Blake  <eblake@redhat.com>
59493         stdint: avoid HP-UX 10.20 preprocessor bug
59494         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
59495         than #if.
59496         * tests/test-floor2.c (main): Likewise.
59497         Reported by Peter O'Gorman.
59499         pipe: make obsoletion transition easier
59500         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
59501         * modules/pipe (Files): Include revived file.
59502         (Include): Drop reference, to mirror getdate's behavior.
59504 2010-12-24  Bruno Haible  <bruno@clisp.org>
59506         sys_socket: Hide mismatch of declarations on NonStop Kernel.
59507         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
59508         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
59509         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59511 2010-12-24  Bruno Haible  <bruno@clisp.org>
59513         gethostname: Ensure declaration on NonStop Kernel.
59514         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
59515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59517 2010-12-24  Bruno Haible  <bruno@clisp.org>
59519         sys_select: Ensure all necessary types on NonStop Kernel.
59520         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
59521         include <sys/time.h>.
59522         * doc/posix-headers/sys_select.texi: Mention that it's missing on
59523         NonStop Kernel.
59524         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59526 2010-12-24  Bruno Haible  <bruno@clisp.org>
59528         sys_select: Remove unneeded include.
59529         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
59530         have <sys/select.h>.
59532 2010-12-24  Bruno Haible  <bruno@clisp.org>
59534         gethostname: Provide a fallback for HOST_NAME_MAX.
59535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
59536         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
59537         instead.
59538         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59540 2010-12-24  Bruno Haible  <bruno@clisp.org>
59542         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
59543         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
59544         (SA_RESTART): Likewise.
59545         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59547 2010-12-24  Bruno Haible  <bruno@clisp.org>
59549         signal: Define NSIG.
59550         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
59551         * tests/test-signal.c (nsig): New variable.
59552         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59554 2010-12-24  Bruno Haible  <bruno@clisp.org>
59556         rename, renameat: Avoid test failures on OSF/1 5.1.
59557         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
59558         alternative error codes.
59559         * tests/test-renameat.c (main): Likewise.
59561 2010-12-24  Bruno Haible  <bruno@clisp.org>
59563         *printf: Detect large precisions bug on Solaris 10/SPARC.
59564         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
59565         by Paul Eggert.
59566         * tests/test-snprintf-posix.h (test_function): Add this test code here
59567         too.
59568         * tests/test-sprintf-posix.h (test_function): Likewise.
59569         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59570         * tests/test-vasprintf-posix.c (test_function): Likewise.
59571         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
59572         around by gnulib.
59573         * doc/posix-functions/printf.texi: Likewise.
59574         * doc/posix-functions/snprintf.texi: Likewise.
59575         * doc/posix-functions/sprintf.texi: Likewise.
59576         * doc/posix-functions/vfprintf.texi: Likewise.
59577         * doc/posix-functions/vprintf.texi: Likewise.
59578         * doc/posix-functions/vsnprintf.texi: Likewise.
59579         * doc/posix-functions/vsprintf.texi: Likewise.
59580         * doc/posix-functions/dprintf.texi: Undo last commit.
59581         * doc/posix-functions/vdprintf.texi: Likewise.
59583 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59585         tests: port test-fdutimensat.c to Solaris 8
59586         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
59587         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
59588         On Solaris 8, it fails with errno == ENOSYS, because there is no
59589         futimens (so it can't use the fd), and there is no lutimens (so it
59590         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
59592         vsnprintf: make more consistent with snprintf; doc fixes
59594         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
59595         the byte count return problem was promoted from the snprintf-posix
59596         to the snprintf module.
59597         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
59598         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
59599         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
59600         * tests/test-snprintf.c (main): Check the byte count returned.
59601         * tests/test-vsnprintf.c (main): Likewise.
59603 2010-12-23  Eric Blake  <eblake@redhat.com>
59605         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
59606         * modules/sigpipe (License): Relax license.
59608 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59610         doc: document Solaris printf bug with large float precisions
59611         * doc/posix-functions/dprintf.texi (dprintf):
59612         * doc/posix-functions/fprintf.texi (fprintf):
59613         * doc/posix-functions/printf.texi (printf):
59614         * doc/posix-functions/snprintf.texi (snprintf):
59615         * doc/posix-functions/sprintf.texi (sprintf):
59616         * doc/posix-functions/vdprintf.texi (vdprintf):
59617         * doc/posix-functions/vfprintf.texi (vfprintf):
59618         * doc/posix-functions/vprintf.texi (vprintf):
59619         * doc/posix-functions/vsnprintf.texi (vsnprintf):
59620         * doc/posix-functions/vsprintf.texi (vsprintf):
59621         Mention that these functions mishandle large floating point
59622         precisions on Solaris 10.  The same bug is also present in Solaris
59623         8, and I assume earlier.  This causes "cd gnulib-tests; make
59624         check" to fail on Solaris 8 (and I assume, later) when building
59625         the latest coreutils, in test-vasprintf-posix's call to
59626         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
59627         the wide flavors (e.g., wprintf) so this patch just updates the
59628         documentation for the narrow ones.
59630         test-posixtm.c: add two tests
59631         * tests/test-posixtm.c: Add two tests, to highlight the
59632         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
59633         around this bug; this is merely to document it.
59635 2010-12-22  Bruno Haible  <bruno@clisp.org>
59637         getlogin_r: Work around portability problem on OSF/1.
59638         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
59639         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
59640         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
59641         test for a truncated result.
59642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
59643         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
59644         * modules/getlogin_r (Depends-on): Add memchr.
59645         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
59647 2010-12-22  Bruno Haible  <bruno@clisp.org>
59649         ptsname: Avoid test failure on OSF/1 5.1.
59650         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
59651         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
59652         (same_slave): New function.
59653         (main): Use it to compare ptsname's result with the expected file name.
59655 2010-12-22  Bruno Haible  <bruno@clisp.org>
59657         Port extended stdio modules to HP NonStop Kernel.
59658         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
59659         macros.
59660         * lib/fbufmode.c: Update comments.
59661         * lib/fflush.c: Likewise.
59662         * lib/fpurge.c: Likewise.
59663         * lib/freadable.c: Likewise.
59664         * lib/freadahead.c: Likewise.
59665         * lib/freading.c: Likewise.
59666         * lib/freadptr.c: Likewise.
59667         * lib/freadseek.c: Likewise.
59668         * lib/fseeko.c: Likewise.
59669         * lib/fseterr.c: Likewise.
59670         * lib/fwritable.c: Likewise.
59671         * lib/fwriting.c: Likewise.
59672         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59674 2010-12-22  Bruno Haible  <bruno@clisp.org>
59676         ttyname_r: Work around bug on OSF/1 5.1.
59677         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
59678         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
59679         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
59680         present.
59681         * lib/ttyname_r.c (ttyname_r): Update comments.
59683 2010-12-22  Bruno Haible  <bruno@clisp.org>
59685         round: Implement result sign according to IEEE 754.
59686         * lib/round.c (MIN, MINUS_ZERO): New macros.
59687         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
59688         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
59689         * tests/test-round-ieee.c (main): Likewise.
59690         * tests/test-roundl-ieee.c (main): Likewise.
59692         trunc: Implement result sign according to IEEE 754.
59693         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
59694         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
59695         * tests/test-trunc2.c: Include minus-zero.h.
59696         (MINUS_ZERO): New macro.
59697         (trunc_reference): Keep in sync with lib/trunc.c.
59698         * tests/test-truncf2.c: Include minus-zero.h.
59699         (MINUS_ZERO): New macro.
59700         (truncf_reference): Keep in sync with lib/trunc.c.
59701         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
59702         * tests/test-trunc-ieee.c (main): Likewise.
59703         * tests/test-truncl-ieee.c (main): Likewise.
59705         ceil: Implement result sign according to IEEE 754.
59706         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
59707         (FUNC): Return -0.0 for -1 < x < 0.
59708         * tests/test-ceil2.c: Include minus-zero.h.
59709         (MINUS_ZERO): New macro.
59710         (ceil_reference): Keep in sync with lib/ceil.c.
59711         * tests/test-ceilf2.c: Include minus-zero.h.
59712         (MINUS_ZERO): New macro.
59713         (ceilf_reference): Keep in sync with lib/ceil.c.
59714         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
59715         * tests/test-ceil-ieee.c (main): Likewise.
59716         * tests/test-ceill-ieee.c (main): Likewise.
59718         floor: Implement result sign according to IEEE 754.
59719         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
59720         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
59721         * tests/test-floorf2.c (floorf_reference): Likewise.
59722         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
59723         * tests/test-floor-ieee.c (main): Likewise.
59724         * tests/test-floorl-ieee.c (main): Likewise.
59726 2010-12-22  Bruno Haible  <bruno@clisp.org>
59728         getaddrinfo: Update doc.
59729         * doc/posix-functions/gai_strerror.texi: Return type is also different
59730         on AIX and HP-UX.
59732 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59734         getaddrinfo, inet_ntop: Update doc for Solaris.
59735         * doc/posix-functions/gai_strerror.texi: Return type is also an
59736         issue on Solaris 9 and earlier.
59737         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
59738         on Solaris 10 and earlier.
59740 2010-12-21  Bruno Haible  <bruno@clisp.org>
59742         New module 'roundl-ieee'.
59743         * modules/roundl-ieee: New file.
59744         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
59745         test whether roundl works according to ISO C 99 with IEC 60559.
59746         * m4/roundl-ieee.m4: New file.
59747         * modules/roundl-ieee-tests: New file.
59748         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
59749         * tests/test-roundl.c (main): Remove signbit tests.
59750         * modules/roundl-tests (Depends-on): Remove signbit.
59751         * doc/posix-functions/roundl.texi: Mention the new module.
59753 2010-12-21  Bruno Haible  <bruno@clisp.org>
59755         New module 'truncl-ieee'.
59756         * modules/truncl-ieee: New file.
59757         * modules/truncl-ieee-tests: New file.
59758         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
59759         * tests/test-truncl.c (main): Remove signbit tests.
59760         * modules/truncl-tests (Depends-on): Remove signbit.
59761         * doc/posix-functions/truncl.texi: Mention the new module.
59763 2010-12-21  Bruno Haible  <bruno@clisp.org>
59765         New module 'ceill-ieee'.
59766         * modules/ceill-ieee: New file.
59767         * modules/ceill-ieee-tests: New file.
59768         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
59769         * tests/test-ceill.c (main): Remove signbit tests.
59770         * modules/ceill-tests (Depends-on): Remove signbit.
59771         * doc/posix-functions/ceill.texi: Mention the new module.
59773 2010-12-21  Bruno Haible  <bruno@clisp.org>
59775         New module 'floorl-ieee'.
59776         * modules/floorl-ieee: New file.
59777         * modules/floorl-ieee-tests: New file.
59778         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
59779         * tests/test-floorl.c (main): Remove signbit tests.
59780         * modules/floorl-tests (Depends-on): Remove signbit.
59781         * doc/posix-functions/floorl.texi: Mention the new module.
59783 2010-12-21  Bruno Haible  <bruno@clisp.org>
59785         New module 'round-ieee'.
59786         * modules/round-ieee: New file.
59787         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
59788         whether round works according to ISO C 99 with IEC 60559.
59789         * m4/round-ieee.m4: New file.
59790         * modules/round-ieee-tests: New file.
59791         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
59792         * tests/test-round1.c (main): Remove signbit tests.
59793         * modules/round-tests (Depends-on): Remove 'signbit'.
59794         * doc/posix-functions/round.texi: Mention the new module.
59796 2010-12-21  Bruno Haible  <bruno@clisp.org>
59798         New module 'trunc-ieee'.
59799         * modules/trunc-ieee: New file.
59800         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
59801         whether trunc works according to ISO C 99 with IEC 60559.
59802         * m4/trunc-ieee.m4: New file.
59803         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
59804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
59805         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
59806         * modules/trunc-ieee-tests: New file.
59807         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
59808         * tests/test-trunc1.c (main): Remove signbit tests.
59809         * modules/trunc-tests (Depends-on): Remove 'signbit'.
59810         * doc/posix-functions/trunc.texi: Mention the new module.
59812 2010-12-21  Bruno Haible  <bruno@clisp.org>
59814         New module 'ceil-ieee'.
59815         * modules/ceil-ieee: New file.
59816         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
59817         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
59818         ISO C 99 with IEC 60559.
59819         * m4/ceil-ieee.m4: New file.
59820         * modules/ceil (Files): Add lib/ceil.c.
59821         (Depends-on): Add 'float'.
59822         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59823         * lib/math.in.h (ceil): New declaration.
59824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
59825         REPLACE_CEIL.
59826         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
59827         * modules/ceil-ieee-tests: New file.
59828         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
59829         * tests/test-math-c++.cc: Check the signature of 'ceil'.
59830         * doc/posix-functions/ceil.texi: Mention the new module.
59832 2010-12-21  Bruno Haible  <bruno@clisp.org>
59834         New module 'floor-ieee'.
59835         * modules/floor-ieee: New file.
59836         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
59837         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
59838         ISO C 99 with IEC 60559.
59839         * m4/floor-ieee.m4: New file.
59840         * modules/floor (Files): Add lib/floor.c.
59841         (Depends-on): Add 'float'.
59842         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59843         * lib/math.in.h (floor): New declaration.
59844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
59845         REPLACE_FLOOR.
59846         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
59847         * modules/floor-ieee-tests: New file.
59848         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
59849         * tests/test-math-c++.cc: Check the signature of 'floor'.
59850         * doc/posix-functions/floor.texi: Mention the new module.
59852 2010-12-21  Bruno Haible  <bruno@clisp.org>
59854         New module 'roundf-ieee'.
59855         * modules/roundf-ieee: New file.
59856         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
59857         test whether roundf works according to ISO C 99 with IEC 60559.
59858         * m4/roundf-ieee.m4: New file.
59859         * modules/roundf-ieee-tests: New file.
59860         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
59861         * tests/test-roundf1.c (main): Remove signbit tests.
59862         * modules/roundf-tests (Depends-on): Remove 'signbit'.
59863         * doc/posix-functions/roundf.texi: Mention the new module.
59865 2010-12-21  Bruno Haible  <bruno@clisp.org>
59867         New module 'truncf-ieee'.
59868         * modules/truncf-ieee: New file.
59869         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
59870         test whether truncf works according to ISO C 99 with IEC 60559.
59871         * m4/truncf-ieee.m4: New file.
59872         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
59873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
59874         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
59875         * modules/truncf-ieee-tests: New file.
59876         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
59877         * tests/test-truncf1.c (main): Remove signbit tests.
59878         * modules/truncf-tests (Depends-on): Remove 'signbit'.
59879         * doc/posix-functions/truncf.texi: Mention the new module.
59881 2010-12-21  Bruno Haible  <bruno@clisp.org>
59883         New module 'ceilf-ieee'.
59884         * modules/ceilf-ieee: New file.
59885         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
59886         test whether ceilf works according to ISO C 99 with IEC 60559.
59887         * m4/ceilf-ieee.m4: New file.
59888         * modules/ceilf-ieee-tests: New file.
59889         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
59890         * tests/test-ceilf1.c (main): Remove signbit tests.
59891         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
59892         * doc/posix-functions/ceilf.texi: Mention the new module.
59894 2010-12-21  Bruno Haible  <bruno@clisp.org>
59896         New module 'floorf-ieee'.
59897         * modules/floorf-ieee: New file.
59898         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59899         test whether floorf works according to ISO C 99 with IEC 60559.
59900         * m4/floorf-ieee.m4: New file.
59901         * modules/floorf-ieee-tests: New file.
59902         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59903         * tests/test-floorf1.c (main): Remove signbit tests.
59904         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59905         * doc/posix-functions/floorf.texi: Mention the new module.
59907 2010-12-21  Bruno Haible  <bruno@clisp.org>
59909         Support for minus zero in autoconf macros.
59910         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59911         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59912         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59913         * tests/minus-zero.h: Update comments.
59915 2010-12-21  Bruno Haible  <bruno@clisp.org>
59917         Tests for module 'ceil'.
59918         * modules/ceil-tests: New file.
59919         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59920         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59922 2010-12-21  Bruno Haible  <bruno@clisp.org>
59924         Tests for module 'floor'.
59925         * modules/floor-tests: New file.
59926         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59927         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59929 2010-12-21  Bruno Haible  <bruno@clisp.org>
59931         math: Fix indentation.
59932         * lib/math.in.h (floorf): Fix indentation.
59934 2010-12-21  Bruno Haible  <bruno@clisp.org>
59936         Fix cross-compilation guesses on Solaris.
59937         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59938         not match "solaris2.10".
59939         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59940         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59941         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59943 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59945         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59946         This fixes a problem observed with the latest coreutils snapshot
59947         that caused a test to fail on Solaris 8.  src/csplit.c's call
59948         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59949         earlier, instead of returning the number of bytes that would have
59950         been generated; this causes csplit to incorrectly report memory
59951         exhaustion.
59952         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59953         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59954         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59955         comments to match.
59956         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59957         Fix typo in matching older versions of Solaris: "solaris2.10"
59958         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59959         only for guessing while cross-compiling.
59960         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59962 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59964         ftoastr: fix comment again
59965         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59966         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59967         Also, simplify example a bit by using flags = 0.
59969 2010-12-20  Bruno Haible  <bruno@clisp.org>
59971         round*, trunc*: Update documentation regarding glibc.
59972         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59973         * doc/posix-functions/round.texi: Likewise.
59974         * doc/posix-functions/roundl.texi: Likewise.
59975         * doc/posix-functions/truncf.texi: Likewise.
59976         * doc/posix-functions/trunc.texi: Likewise.
59977         * doc/posix-functions/truncl.texi: Likewise.
59979 2010-12-20  Bruno Haible  <bruno@clisp.org>
59981         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59982         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59983         * doc/posix-functions/round.texi: Likewise.
59984         * doc/posix-functions/roundl.texi: Likewise.
59986 2010-12-20  Bruno Haible  <bruno@clisp.org>
59988         ttyname_r: Add missing declaration on HP-UX 11.
59989         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59990         HAVE_TTYNAME_R.
59991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59992         declared. Set HAVE_TTYNAME_R always.
59993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59994         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59995         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59996         HAVE_TTYNAME_R.
59997         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59999 2010-12-20  Bruno Haible  <bruno@clisp.org>
60001         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
60002         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
60003         * doc/posix-functions/getlogin_r.texi: Likewise.
60004         * tests/test-getlogin.c: Include <errno.h>.
60005         (main): Avoid test failure on HP-UX 11.11.
60006         * tests/test-getlogin_r.c (main): Likewise.
60008 2010-12-20  Bruno Haible  <bruno@clisp.org>
60010         getlogin_r: Add missing declaration on HP-UX 11.
60011         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
60012         declared also when it exists as a function.
60013         * doc/posix-functions/getlogin_r.texi: Document this workaround.
60015 2010-12-20  Bruno Haible  <bruno@clisp.org>
60017         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
60018         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
60019         through wcrtomb.
60021 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60023         ftoastr: fix comment
60024         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
60025         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
60027 2010-12-19  Bruno Haible  <bruno@clisp.org>
60029         isnan: Ensure it is a macro.
60030         * lib/math.in.h (isnan): Define as a macro if not already a macro.
60031         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
60032         Solaris.
60034 2010-12-19  Bruno Haible  <bruno@clisp.org>
60036         ldexpl test: Fix link error on OSF/1 5.1.
60037         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
60039 2010-12-19  Bruno Haible  <bruno@clisp.org>
60041         wctype: Make it work in C++ mode on OSF/1 5.1.
60042         * lib/wctype.in.h (iswblank): Declare but not define here.
60043         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
60044         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
60045         * modules/wctype (Files): Add lib/iswblank.c.
60047 2010-12-19  Bruno Haible  <bruno@clisp.org>
60049         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
60050         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
60051         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
60053 2010-12-19  Bruno Haible  <bruno@clisp.org>
60055         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
60056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
60057         _POSIX_PII_SOCKET.
60058         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
60059         * doc/posix-functions/recvfrom.texi: Likewise.
60060         * doc/posix-functions/send.texi: Likewise.
60061         * doc/posix-functions/sendto.texi: Likewise.
60063 2010-12-19  Bruno Haible  <bruno@clisp.org>
60065         tcgetsid: Add missing declaration on OSF/1 5.1.
60066         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
60067         HAVE_TCGETSID.
60068         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
60069         Don't set HAVE_TCGETSID.
60070         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
60071         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
60072         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
60073         HAVE_TCGETSID.
60074         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
60076 2010-12-19  Bruno Haible  <bruno@clisp.org>
60078         stdio: Fix problem with popen() declaration on OSF/1 5.1.
60079         * lib/stdio.in.h: During the include_next statement, let recursive
60080         includes of this file include only the system header file.
60082 2010-12-19  Bruno Haible  <bruno@clisp.org>
60084         iconv_open: Fix regression from 2010-12-04.
60085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
60086         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
60088 2010-12-19  Bruno Haible  <bruno@clisp.org>
60090         stdbool test: Avoid a gcc warning.
60091         * tests/test-stdbool.c (main): Fail if e1 is false.
60092         Reported by Jim Meyering.
60094 2010-12-19  Jim Meyering  <meyering@redhat.com>
60096         setenv: restore to working order
60097         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
60098         mistakenly removed.
60099         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
60100         HAVE_SETENV.
60101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
60102         HAVE_SETENV.
60104 2010-12-19  Bruno Haible  <bruno@clisp.org>
60106         Document some different function declarations on OSF/1 5.1.
60107         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
60108         * doc/posix-functions/inet_ntop.texi: Likewise.
60109         * doc/posix-functions/gethostname.texi: Likewise.
60110         * lib/unistd.in.h (gethostname): Update comment.
60112 2010-12-19  Bruno Haible  <bruno@clisp.org>
60114         doc: Mention vasprintf-posix module.
60115         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
60116         the 'vasprintf-posix' module.
60117         * doc/glibc-functions/vasprintf.texi: Likewise.
60119 2010-12-19  Bruno Haible  <bruno@clisp.org>
60121         unsetenv: Add missing declaration on OSF/1 5.1.
60122         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
60123         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
60124         Don't set HAVE_UNSETENV. In the test program, set _BSD.
60125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
60126         not HAVE_UNSETENV.
60127         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
60128         HAVE_UNSETENV.
60129         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
60131 2010-12-19  Bruno Haible  <bruno@clisp.org>
60133         setenv: Add missing declaration on OSF/1 5.1.
60134         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
60135         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
60136         declared. Don't set HAVE_SETENV.
60137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
60138         not HAVE_SETENV.
60139         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
60140         HAVE_SETENV.
60141         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
60143 2010-12-19  Bruno Haible  <bruno@clisp.org>
60145         nl_langinfo tests: Avoid gcc warning.
60146         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
60148 2010-12-19  Bruno Haible  <bruno@clisp.org>
60150         mknod: Avoid error in C++ mode on OSF/1 with GCC.
60151         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
60152         _GL_CXXALIAS_SYS.
60154 2010-12-19  Bruno Haible  <bruno@clisp.org>
60156         stdbool: Relax test.
60157         * tests/test-stdbool.c (e): Don't require that casts from a variable's
60158         address to 'bool' work in static initializer, for compilers other than
60159         GCC.
60161 2010-12-19  Bruno Haible  <bruno@clisp.org>
60163         ftello: Add missing declaration on OSF/1 5.1.
60164         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
60165         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
60166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
60167         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
60168         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
60170 2010-12-19  Bruno Haible  <bruno@clisp.org>
60172         fseeko: Add missing declaration on OSF/1 5.1.
60173         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
60174         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
60175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
60176         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
60177         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
60179 2010-12-19  Bruno Haible  <bruno@clisp.org>
60181         fchdir: Add missing declaration on OSF/1 5.1.
60182         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
60183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
60184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
60185         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
60186         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
60188 2010-12-19  Bruno Haible  <bruno@clisp.org>
60190         relocatable-prog-wrapper: Separate from relocatable-prog.
60191         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
60192         uninstall-relocwrapper rule here.
60193         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
60194         Reported by Ian Beckwith <ianb@erislabs.net>.
60196 2010-12-19  Bruno Haible  <bruno@clisp.org>
60198         unistr/u8-mbsnlen: Add missing dependency.
60199         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
60200         Reported by Ian Beckwith <ianb@erislabs.net>.
60202 2010-12-19  Bruno Haible  <bruno@clisp.org>
60204         iconv: Make it possible again to use this module without 'iconv-h'.
60205         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
60206         if it is not defined.
60207         Reported by Ian Beckwith <ianb@erislabs.net>.
60209 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60211         acl: port to Solaris 8 when copying from tmpfs to ufs
60212         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
60213         error number.  Problem observed on Solaris 8 with latest
60214         coreutils, with "mv A B", where A is on a tmpfs file system and B
60215         is on a ufs file system.  This caused coreutils' mv/part-symlink
60216         test to fail.
60218         tests: set fail=0 at start
60219         * tests/init.sh (setup_): Move fail=0 initialization here ...
60220         (mktempd_): ... from here, so that tests can rely on fail being
60221         set to 0 initially.  This fixes a problem in coreutils; see:
60222         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
60224 2010-12-18  Bruno Haible  <bruno@clisp.org>
60226         memmem-simple: Stylistic changes.
60227         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
60228         Fix preprocessor directive indentation.
60230 2010-12-15  Pádraig Brady  <P@draigBrady.com>
60232         memmem, memmem-simple: reorganize and expand empty needle check
60233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
60234         functional checks to memmem-simple so that one has a fully functional
60235         memmem by using just this module.
60236         Restrict the performance only check to the memmem module.
60237         Also expand the empty needle check to ensure the correct
60238         pointer is returned, not just a non NULL pointer.
60239         * doc/glibc-functions/memmem.texi: Rearrange the portability
60240         documentation to correlate with the rearranged checks.
60241         Clarify exactly how the memmem and memmem-simple modules
60242         relate to each other.
60244 2010-12-15  Pádraig Brady  <P@draigBrady.com>
60245             Bruno Haible  <bruno@clisp.org>
60247         Improve cross-compilation guesses for uClibc.
60248         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
60249         that uClibc does not have the glibc bug.
60250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
60251         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
60253 2010-12-14  Eric Blake  <eblake@redhat.com>
60255         configmake: provide fallbacks for oldest supported autotools
60256         * m4/configmake.m4: New file.
60257         * modules/configmake (Files): Ship it.
60258         (configure.ac): Use it to guarantee fallbacks.
60260 2010-12-13  Pádraig Brady  <P@draigBrady.com>
60262         read-file: Improve handling of large files
60263         * lib/read-file.c (fread_file): Minimize realloc()s
60264         for regular files, and better manage sizes around SIZE_MAX.
60266 2010-12-13  Eric Blake  <eblake@redhat.com>
60268         cloexec, fcntl: relax license
60269         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
60270         consent from all contributors.
60271         * modules/fcntl (License): Likewise.
60273 2010-12-10  Bruno Haible  <bruno@clisp.org>
60275         Tests for module 'pipe-posix'.
60276         * modules/pipe-posix-tests: New file.
60277         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
60279 2010-12-10  Bruno Haible  <bruno@clisp.org>
60281         pipe-posix: Make it work in C++ mode.
60282         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
60283         (pipe): Use common idiom, not a macro definition.
60284         * lib/pipe.c: New file.
60285         * m4/pipe.m4: New file.
60286         * modules/pipe-posix (Description): Enhance.
60287         (Files): Add lib/pipe.c, m4/pipe.m4.
60288         (configure.ac): Invoke gl_FUNC_PIPE.
60289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
60290         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
60291         * tests/test-unistd-c++.cc: Check the signature of pipe.
60293 2010-12-10  Bruno Haible  <bruno@clisp.org>
60295         Rename module 'pipe' to 'spawn-pipe'.
60296         * modules/spawn-pipe: New file, renamed from modules/pipe.
60297         (Files, configure.ac, Makefile.am): Update.
60298         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
60299         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
60300         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
60301         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
60302         "spawn-pipe.h" instead of "pipe.h".
60303         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
60304         to gl_SPAWN_PIPE.
60305         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
60306         (Files, Makefile.am): Update.
60307         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
60308         Update.
60309         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
60310         Include "spawn-pipe.h" instead of "pipe.h".
60311         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
60312         * lib/javacomp.c: Likewise.
60313         * lib/javaversion.c: Likewise.
60314         * lib/pipe-filter-gi.c: Likewise.
60315         * lib/pipe-filter-ii.c: Likewise.
60316         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
60317         * modules/javacomp (Depends-on): Likewise.
60318         * modules/javaversion (Depends-on): Likewise.
60319         * modules/pipe-filter-gi (Depends-on): Likewise.
60320         * modules/pipe-filter-ii (Depends-on): Likewise.
60321         * MODULES.html.sh (Executing programs): Update.
60322         * NEWS: Mention the change.
60324 2010-12-10  Eric Blake  <eblake@redhat.com>
60326         pipe-posix: new module
60327         * modules/pipe-posix: New file.
60328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
60329         (gl_UNISTD_H): Check for declaration.
60330         * modules/unistd (Makefile.am): Substitute it.
60331         * lib/unistd.in.h (pipe): Provide it for mingw.
60332         * doc/posix-functions/pipe.texi (pipe): Update documentation.
60333         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
60335 2010-12-07  Bruno Haible  <bruno@clisp.org>
60337         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
60338         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
60339         u8_strcmp_gnu.
60340         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
60342 2010-12-06  Bruno Haible  <bruno@clisp.org>
60344         Update internal documentation.
60345         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
60347 2010-12-04  Bruno Haible  <bruno@clisp.org>
60349         Put more information about failed tests into the test return codes.
60350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
60351         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
60352         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60354         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
60355         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60356         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60357         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
60358         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
60359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60360         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
60361         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60362         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
60363         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60364         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
60365         returns a bit mask.
60366         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
60367         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
60368         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
60369         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
60370         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
60372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60374         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
60375         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
60376         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
60377         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
60378         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
60379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
60380         * m4/link.m4 (gl_FUNC_LINK): Likewise.
60381         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
60382         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
60383         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
60384         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
60385         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
60386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60387         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
60388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
60389         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60390         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
60391         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
60392         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
60393         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
60394         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
60395         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
60396         gl_PRINTF_PRECISION): Likewise.
60397         * m4/regex.m4 (gl_REGEX): Likewise.
60398         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
60399         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
60400         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
60401         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
60402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
60405         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
60406         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60407         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60408         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
60409         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
60410         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
60411         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60412         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
60413         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60414         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
60415         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
60416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60417         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
60418         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
60419         enumerated value.
60420         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
60422 2010-12-04  Bruno Haible  <bruno@clisp.org>
60424         Update for Solaris 11 2010-11.
60425         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
60426         Express, released in November 2010.
60428 2010-12-04  Bruno Haible  <bruno@clisp.org>
60430         nproc: Relax license.
60431         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
60432         and Paul Eggert.
60433         Requested by Ludovic Courtès <ludo@gnu.org>.
60435 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60437         utimecmp: fine-grained src to nearby coarse-grained dest
60439         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
60440         and the source is on a file system with higher-resolution time
60441         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
60442         not work, and the time stamps are close together, the algorithm to
60443         determine the exact resolution from the read-back mtime was buggy:
60444         it had a "!=" where it should have had an "==".  This bug has been
60445         in the code ever since it was introduced to gnulib.
60446         Problem reported by Dan Jacobson in
60447         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
60449 2010-11-30  Bruno Haible  <bruno@clisp.org>
60451         strerror_r-posix: Fix autoconf test.
60452         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
60454 2010-11-28  Bruno Haible  <bruno@clisp.org>
60455             Paul Eggert  <eggert@cs.ucla.edu>
60457         Tests for module 'getdomainname'.
60458         * modules/getdomainname-tests: New file.
60459         * tests/test-getdomainname.c: New file, based on
60460         tests/test-gethostname.c.
60462 2010-11-28  Bruno Haible  <bruno@clisp.org>
60463             Paul Eggert  <eggert@cs.ucla.edu>
60465         getdomainname: Use the system function when possible.
60466         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
60467         (getdomainname): Replace if needed. Provide the declaration if it is
60468         missing. Don't use _GL_CXXALIAS_SYS_CAST.
60469         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
60470         (getdomainname): When the system has getdomainname, call the system
60471         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
60472         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
60473         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
60474         found in libnsl. Look for the declaration also in <netdb.h>. Replace
60475         the function if its second argument is of type 'int' or if it is found
60476         in libnsl.
60477         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
60478         <sys/systeminfo.h> and sysinfo().
60479         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
60480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60481         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
60482         HAVE_GETDOMAINNAME.
60483         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
60484         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
60485         * doc/glibc-functions/getdomainname.texi: Document the problems with
60486         the getdomainname declaration.
60488 2010-11-28  Bruno Haible  <bruno@clisp.org>
60490         sys_socket: Ensure ss_family field on AIX.
60491         * lib/sys_socket.in.h (ss_family): New macro definition.
60492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
60493         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
60494         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
60495         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
60496         * modules/sys_socket (Makefile.am): Substitute
60497         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
60498         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
60500 2010-11-27  Bruno Haible  <bruno@clisp.org>
60502         readline: Improve configure output.
60503         * m4/readline.m4 (gl_FUNC_READLINE): Make the
60504         "checking for readline..." result understandable.
60506 2010-11-27  Bruno Haible  <bruno@clisp.org>
60508         *printf-posix: Detect a bug on Solaris 10/x86.
60509         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
60510         for floating-point output.
60511         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
60512         directive.
60513         * tests/test-snprintf-posix.h (test_function): Likewise.
60514         * tests/test-sprintf-posix.h (test_function): Likewise.
60515         * tests/test-vasprintf-posix.c (test_function): Likewise.
60516         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
60517         * doc/posix-functions/printf.texi: Likewise.
60518         * doc/posix-functions/snprintf.texi: Likewise.
60519         * doc/posix-functions/sprintf.texi: Likewise.
60520         * doc/posix-functions/vfprintf.texi: Likewise.
60521         * doc/posix-functions/vprintf.texi: Likewise.
60522         * doc/posix-functions/vsnprintf.texi: Likewise.
60523         * doc/posix-functions/vsprintf.texi: Likewise.
60524         * doc/glibc-functions/obstack_printf.texi: Likewise.
60525         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
60527 2010-11-27  Bruno Haible  <bruno@clisp.org>
60529         Fix link error when module libunistring-optional is in use.
60530         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
60531         * modules/striconveha-tests (Makefile.am): Likewise.
60533 2010-11-27  Bruno Haible  <bruno@clisp.org>
60535         regex: Mention link dependencies.
60536         * modules/regex (Link): New section.
60537         * modules/rpmatch (Link): Likewise.
60538         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
60540 2010-11-27  Bruno Haible  <bruno@clisp.org>
60542         ftoastr: Fix compilation error on Solaris.
60543         * lib/ftoastr.c: Include <config.h>.
60545 2010-11-27  Bruno Haible  <bruno@clisp.org>
60547         getloadavg: Update documentation.
60548         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
60550 2010-11-27  Bruno Haible  <bruno@clisp.org>
60552         sys_socket: Fix test whether the functions are declared.
60553         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
60554         not <sys/select.h>.
60556 2010-11-27  Bruno Haible  <bruno@clisp.org>
60558         getpass: Make sure to get system declaration on some platforms.
60559         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
60560         gl_USE_SYSTEM_EXTENSIONS.
60561         * modules/getpass (Depends-on): Add extensions.
60563 2010-11-26  Bruno Haible  <bruno@clisp.org>
60565         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
60566         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
60567         'iconv' module is present.
60568         (ICONV_CONST): New macro.
60569         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
60570         ICONV_CONST.
60571         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
60572         set ICONV_CONST.
60573         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
60574         here.
60575         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
60576         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
60577         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
60578         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
60579         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
60580         present.
60582 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60584         ftoastr: comment fix
60585         * lib/ftoastr.c: "little" -> "little or no" in comment
60587 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
60589         stdint: port to GCC 4.3 + OSX + Octave
60590         On this platform, stdint.h is buggy and defines int64_t to long
60591         long int.  The replacement defined it to long int, causing
60592         problems with C++ style name mangling.  Instead, trust the system
60593         definition if INT64_MAX is defined, and likewise for the unsigned
60594         variant.   Problem reported by Jarno Rajahalme in
60595         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
60596         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
60597         and don't mess with int64_t and INT64_MAX in this case.
60598         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
60600 2010-11-24  Bruno Haible  <bruno@clisp.org>
60602         doc: Corrections regarding MacOS X 10.4 and 10.5.
60603         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
60604         MacOS X.
60605         Reported by Simon Josefsson.
60607 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
60609         Uninstall ".bin" files installed by relocwrapper.
60610         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
60611         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
60612         unless it is already there.
60614 2010-11-21  Bruno Haible  <bruno@clisp.org>
60616         Update for NetBSD 5.0.
60617         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60618         NetBSD; the test fails on NetBSD 5.0.
60619         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60620         about NetBSD.
60622 2010-11-21  Bruno Haible  <bruno@clisp.org>
60624         Update for HP-UX 11.23 and HP-UX 11.31.
60625         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
60626         HP-UX.
60628 2010-11-21  Bruno Haible  <bruno@clisp.org>
60630         Update for MacOS X 10.5.
60631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60632         MacOS X; the test fails on MacOS X 10.5.8.
60633         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60634         about MacOS X.
60636 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
60638         bootstrap: add bootstrap_sync option.
60639         See discussion at
60640         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
60641         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
60642         * build-aux/bootstrap: Accept --bootstrap-sync to update
60643         bootstrap if it is not identical to the local gnulib's
60644         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
60645         enable this by default.  Accept --no-bootstrap-sync to disable
60646         it.
60648 2010-11-20  Bruno Haible  <bruno@clisp.org>
60650         Ensure that <features.h> is included before __GLIBC__ is tested.
60651         * lib/printf-parse.h: Include <features.h>.
60652         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
60653         Reported by Mike Frysinger <vapier@gentoo.org>.
60655         Ensure that <features.h> is included before __GLIBC__ is tested.
60656         * lib/wchar.in.h: Include <features.h>.
60657         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
60658         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
60659         Reported by Mike Frysinger <vapier@gentoo.org>.
60661         Ensure that <features.h> is included before __GLIBC__ is tested.
60662         * lib/arpa_inet.in.h: Include <features.h>.
60663         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
60664         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
60665         Reported by Mike Frysinger <vapier@gentoo.org>.
60667         Ensure that <features.h> is included before __GLIBC__ is tested.
60668         * build-aux/link-warning.h: Include <features.h>.
60669         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
60670         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
60671         Reported by Mike Frysinger <vapier@gentoo.org>.
60673         Ensure that <features.h> is included before __GLIBC__ is tested.
60674         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
60675         Reported by Mike Frysinger <vapier@gentoo.org>.
60677 2010-11-20  Bruno Haible  <bruno@clisp.org>
60679         memmem: Fix autoconf test.
60680         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
60682 2010-11-20  Bruno Haible  <bruno@clisp.org>
60684         Port to uClibc.
60685         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
60686         * lib/fcntl.in.h: Likewise.
60687         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
60688         * lib/mbrtowc.c (mbrtowc): Likewise.
60689         * lib/relocatable.c (find_shared_library_fullname): Likewise.
60690         * lib/strerror_r.c: Likewise.
60691         * lib/unistr/u8-strnlen.c: Likewise.
60692         * lib/vasnprintf.c (decimal_point_char): Likewise.
60693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60694         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
60695         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60696         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
60697         * tests/test-sigaction.c (handler, main): Likewise.
60698         * lib/freading.h: Treat uClibc like a non-glibc platform.
60699         * lib/freading.c: Likewise.
60700         * lib/gettext.h: Likewise.
60701         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
60702         Likewise.
60703         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
60704         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60705         * lib/propername.c (proper_name_utf8): Likewise.
60706         * lib/spawn.in.h: Likewise.
60707         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
60708         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
60709         mem_cd_iconveh_internal): Likewise.
60710         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
60711         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60712         strstr, strcasestr): Likewise.
60713         * lib/unicodeio.c (unicode_to_mb): Likewise.
60714         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
60715         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
60716         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
60717         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
60718         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
60719         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
60720         * lib/unistr/u8-stpncpy.c: Likewise.
60721         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60722         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
60723         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60724         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60725         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
60726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
60727         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
60728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
60729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
60730         Likewise.
60731         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60732         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60733         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
60734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60736         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60737         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60738         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60739         * tests/test-getopt.h (OPTIND_MIN): Likewise.
60740         * tests/test-striconveha.c (main): Likewise.
60741         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60742         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
60743         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
60744         * doc/posix-functions/getline.texi: Likewise.
60745         Reported by Mike Frysinger <vapier@gentoo.org>.
60747 2010-11-20  Bruno Haible  <bruno@clisp.org>
60749         nproc: Fix condition.
60750         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
60751         HAVE_PTHREAD_AFFINITY_NP.
60753 2010-11-20  Bruno Haible  <bruno@clisp.org>
60755         Fix a comment.
60756         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
60758 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
60760         ftoastr: don't assume snprintf
60761         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
60762         Implement a subset of snprintf here, by using sprintf safely.
60763         * modules/ftoastr (Depends-on): Remove snprintf.
60765 2010-11-19  Jim Meyering  <meyering@redhat.com>
60767         test-rename.h: fix compilation failure
60768         * tests/test-rename.h (test_rename): Add omitted "}".
60770 2010-11-17  Jim Meyering  <meyering@redhat.com>
60772         maint.mk: add a URL discussing the no-@acronym policy
60773         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
60775 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
60777         ftoastr: depend on snprintf, improve comments
60778         * lib/ftoastr.c: Also mention Loitsch's draft.
60779         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
60780         needed in the current implementation, but it might simplify
60781         speeding up the code later.
60782         * modules/ftoastr: Depend on snprintf; this improves portability.
60783         Suggested by Bruno Haible in the same email.
60785         ftoastr: port to hosts lacking strtof and strtold
60786         Problem reported by Bruno Haible in
60787         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
60788         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
60789         environment and strtold (and presumably strtof) are not available.
60790         * modules/ftoastr (Files): Add m4/c-strtod.m4.
60791         (configure.ac): Require gl_C99_STRTOLD.
60793 2010-11-18  Bruno Haible  <bruno@clisp.org>
60795         c-strtold: Avoid link error on AIX 7.
60796         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
60797         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
60798         (gl_C_STRTOLD): Test whether strtold_l exists.
60799         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60801 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60803         intprops: new macro INT_BITS_STRLEN_BOUND
60804         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
60805         ftoastr.h.  This exposes an internal of intprops.h that was formerly
60806         not exposed.  Also, it uses a slightly tighter bound than before;
60807         though this makes no practical difference, we might as well be as
60808         tight as we easily can.
60810         ftoastr: new module, for lossless conversion of floats to short strings
60811         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
60812         * modules/ftoastr: New files.
60814 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60816         bootstrap: port to Solaris sed
60817         * build-aux/bootstrap (get_version): Port to Solaris sed.
60818         See Ralf Wildenhues's note in
60819         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
60821 2010-11-14  Jim Meyering  <meyering@redhat.com>
60823         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
60824         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
60825         and move definition closer to sole use.
60827 2010-11-13  Jim Meyering  <meyering@redhat.com>
60829         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
60830         Now we require at least autoconf-2.59, which means the work-around
60831         is no longer needed.
60832         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
60833         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60834         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60835         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60836         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60838 2010-11-13  Bruno Haible  <bruno@clisp.org>
60840         rename, renameat: Avoid test failures at NFS mounted locations.
60841         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
60842         functions.
60843         (test_rename): Use assert_nonexistent.
60844         * tests/test-rename.c: Include <dirent.h>.
60845         * tests/test-renameat.c: Likewise.
60846         Reported by Gary V. Vaughan <gary@gnu.org>.
60848         rename, renameat: Document Linux bug with NFS
60849         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
60850         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
60851         * doc/posix-functions/renameat.texi: Likewise.
60852         Suggested by Eric Blake.
60854 2010-11-13  Bruno Haible  <bruno@clisp.org>
60856         rename test: Add comments.
60857         * tests/test-rename.h (test_rename): Add structure and comments.
60859 2010-11-13  Eric Blake  <eblake@redhat.com>
60861         maintainer-makefile: cover a few more files
60862         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
60863         scripts generated within C files, for libvirt.
60865 2010-11-13  Bruno Haible  <bruno@clisp.org>
60867         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
60868         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
60869         character, return the number of bytes that belong together, not always
60870         1.
60871         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
60872         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
60873         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
60874         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
60875         number of bytes of an invalid character.
60876         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
60877         (main): Invoke it.
60878         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
60879         results.
60880         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
60881         malformed byte sequences.
60882         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
60883         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
60884         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
60885         Reported by Ben Pfaff and Paolo Bonzini.
60887 2010-11-13  Bruno Haible  <bruno@clisp.org>
60889         openat: Work around glibc bug with fchownat() and empty file names.
60890         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
60891         (gl_FUNC_FCHOWNAT): Invoke it.
60892         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
60893         * doc/posix-functions/fchownat.texi: Document the glibc bug.
60894         Reported by Gary V. Vaughan <gary@gnu.org>.
60896 2010-11-13  Bruno Haible  <bruno@clisp.org>
60898         openat: Ensure autoconf macro ordering.
60899         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60900         gl_USE_SYSTEM_EXTENSIONS.
60901         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60903 2010-11-13  Bruno Haible  <bruno@clisp.org>
60905         Update comments.
60906         * lib/unistr/u8-check.c: Update file name in comments.
60907         * lib/unistr/u8-mblen.c: Likewise.
60908         * lib/unistr/u8-prev.c: Likewise.
60909         * lib/unistr/u8-strmblen.c: Likewise.
60910         * lib/unistr/u8-strmbtouc.c: Likewise.
60912 2010-11-13  Jim Meyering  <meyering@redhat.com>
60914         tests: avoid test failure on Solaris 10 due to lack of PATH export
60915         * tests/test-update-copyright.sh: Don't forget to export PATH.
60917         init.sh: ensure that IFS is defined, just in case...
60918         * tests/init.sh (setup_): Ensure that IFS is defined,
60919         so that saving and restoring it works as expected.  This
60920         appears to be useful at least for an old version of dash
60921         from a long time ago (RH 6).  See here for details:
60922         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60924         maint.mk: tighten "test a == b" check
60925         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60926         test to files that contain something like #!/bin/sh.
60927         Without this, coreutils would get two false positives in
60928         the comments of C source files.
60930 2010-11-12  Eric Blake  <eblake@redhat.com>
60932         bootstrap: fix typo in previous attempt
60933         * build-aux/bootstrap (buildreq): Correct the grouping.
60934         Reported by Paul Eggert.
60936         maintainer-makefile: prohibit test x == x
60937         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60938         Based on a report by Matthias Bolte.
60940         bootstrap: allow FreeBSD gzip
60941         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60942         which has no '.' and goes to stderr.
60943         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60944         Reported by Matthias Bolte.
60946         maintainer-makefile: check for i18n setup
60947         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60948         will likely work.
60950 2010-11-12  Bruno Haible  <bruno@clisp.org>
60952         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60953         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60954         * lib/nanosleep.c (nanosleep): Likewise.
60956 2010-11-11  Bruno Haible  <bruno@clisp.org>
60958         fcntl-h: Fix for use of C++ on glibc systems.
60959         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60960         also on glibc systems in C++ mode.
60961         Reported by Gary V. Vaughan <gary@gnu.org>.
60963 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60965         mknod: avoid false failure with dash
60966         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60968 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60970         unlink: Fix "is it should" typo in diagnostic.
60971         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60972         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60974 2010-11-11  Bruno Haible  <bruno@clisp.org>
60976         Tests for module 'strerror_r-posix'.
60977         * modules/strerror_r-posix-tests: New file.
60978         * tests/test-strerror_r.c: New file.
60979         * tests/test-string-c++.cc: Check the signature of strerror_r.
60981         New module 'strerror_r-posix'.
60982         * lib/string.in.h (strerror_r): New declaration.
60983         * lib/strerror_r.c: New file.
60984         * m4/strerror_r.m4: New file.
60985         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60986         of strerror_r.
60987         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60988         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60989         * modules/strerror_r-posix: New file.
60990         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60991         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60992         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60993         portability problems.
60995 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60997         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60998         line is also considered for output. Quoted function name in shell
60999         command, so temporary files for functions like MyClass::operator()
61000         are removed correctly without errors.
61002 2010-11-09  Bruno Haible  <bruno@clisp.org>
61004         * doc/posix-functions/strerror.texi: List more failing platforms.
61006         * doc/posix-functions/strerror.texi: Add a comment.
61008 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61010         fdopendir: fix bug on MacOS X when low on file descriptors
61012         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
61013         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
61014         All callers changed.
61015         (fdopendir): Invoke save_cwd at the top level, not after using
61016         multiple dup() calls to use up file descriptors.  Then retry
61017         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
61018         less than the maximum number of open file descriptors, because
61019         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
61020         on Mac OS X 10.6.4 for tar 1.24
61021         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
61022         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
61023         and for tar 1.25
61024         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
61026 2010-11-07  Bruno Haible  <bruno@clisp.org>
61028         vasnprintf: Support I flag on glibc systems.
61029         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
61030         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
61031         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
61032         snprintf function.
61033         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
61034         glibc systems.
61035         * tests/test-vasnprintf-posix3.c: New file.
61036         * modules/vasnprintf-posix-tests (Files): Add it.
61037         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
61039 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61041         [html] Fix copy/paste bug: Use unique name for compiler warnings.
61042         * MODULES.html.sh: For compiler warnings, use name
61043         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
61045 2010-11-05  Eric Blake  <eblake@redhat.com>
61047         ceil, floor: avoid spurious failure with icc
61048         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
61049         [denormals-as-zero] when optimizing without -mieee-fp option.
61050         * tests/test-floorf2.c (floorf_reference): Likewise.
61051         * tests/test-ceilf1.c (dummy): New function.
61052         (main): Use it to outsmart icc's optimization.
61053         * tests/test-floorf1.c (dummy, main): Likewise.
61055         tests: require working signbit
61056         * modules/ceilf-tests (Depends-on): Add signbit.
61057         * modules/ceill-tests (Depends-on): Likewise.
61058         * modules/floorf-tests (Depends-on): Likewise.
61059         * modules/floorl-tests (Depends-on): Likewise.
61060         * modules/round-tests (Depends-on): Likewise.
61061         * modules/roundf-tests (Depends-on): Likewise.
61062         * modules/roundl-tests (Depends-on): Likewise.
61063         * modules/trunc-tests (Depends-on): Likewise.
61064         * modules/truncf-tests (Depends-on): Likewise.
61065         * modules/truncl-tests (Depends-on): Likewise.
61067         strtod: work around icc bug
61068         * lib/strtod.c (minus_zero): Define to working value.
61069         (strtod): Use it to avoid icc bug.
61071         copysign: enhance tests
61072         * modules/copysign-tests (Files): Add minus-zero.h.
61073         * tests/test-copysign.c (main): Also test zeros.
61075 2010-11-04  Eric Blake  <eblake@redhat.com>
61077         ceil, floor, round, trunc: enhance tests of -0
61078         * tests/test-ceilf1.c (main): Ensure correct sign of result.
61079         * tests/test-ceill.c (main): Likewise.
61080         * tests/test-floorf1.c (main): Likewise.
61081         * tests/test-floorl.c (main): Likewise.
61082         * tests/test-round1.c (main): Likewise.
61083         * tests/test-roundf1.c (main): Likewise.
61084         * tests/test-roundl.c (main): Likewise.
61085         * tests/test-trunc1.c (main): Likewise.
61086         * tests/test-truncf1.c (main): Likewise.
61087         * tests/test-truncl.c (main): Likewise.
61089 2010-11-04  Eric Blake  <eblake@redhat.com>
61091         frexp, tests: work around ICC bug with -zero
61092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
61093         works with more compilers.
61094         * tests/minus-zero.h: New file.
61095         * modules/ceilf-tests (Files): Include it.
61096         * modules/ceill-tests (Files): Likewise.
61097         * modules/floorf-tests (Files): Likewise.
61098         * modules/floorl-tests (Files): Likewise.
61099         * modules/frexp-nolibm-tests (Files): Likewise.
61100         * modules/frexp-tests (Files): Likewise.
61101         * modules/frexpl-nolibm-tests (Files): Likewise.
61102         * modules/frexpl-tests (Files): Likewise.
61103         * modules/isnan-tests (Files): Likewise.
61104         * modules/isnand-nolibm-tests (Files): Likewise.
61105         * modules/isnand-tests (Files): Likewise.
61106         * modules/isnanf-nolibm-tests (Files): Likewise.
61107         * modules/isnanf-tests (Files): Likewise.
61108         * modules/isnanl-nolibm-tests (Files): Likewise.
61109         * modules/isnanl-tests (Files): Likewise.
61110         * modules/round-tests (Files): Likewise.
61111         * modules/roundf-tests (Files): Likewise.
61112         * modules/roundl-tests (Files): Likewise.
61113         * modules/ldexpl-tests (Files): Likewise.
61114         * modules/signbit-tests (Files): Likewise.
61115         * modules/snprintf-posix-tests (Files): Likewise.
61116         * modules/sprintf-posix-tests (Files): Likewise.
61117         * modules/strtod-tests (Files): Likewise.
61118         * modules/trunc-tests (Files): Likewise.
61119         * modules/truncf-tests (Files): Likewise.
61120         * modules/truncl-tests (Files): Likewise.
61121         * modules/vsnprintf-posix-tests (Files): Likewise.
61122         * modules/vsprintf-posix-tests (Files): Likewise.
61123         * modules/vasnprintf-posix-tests (Files): Likewise.
61124         * modules/vasprintf-posix-tests (Files): Likewise.
61125         * tests/test-ceilf1.c (main): Use it.
61126         * tests/test-ceill.c (main): Likewise.
61127         * tests/test-floorf1.c (main): Likewise.
61128         * tests/test-floorl.c (main): Likewise.
61129         * tests/test-frexp.c (main): Likewise.
61130         * tests/test-frexpl.c (main): Likewise.
61131         * tests/test-isnan.c (main): Likewise.
61132         * tests/test-isnand.h (main): Likewise.
61133         * tests/test-isnanf.h (main): Likewise.
61134         * tests/test-isnanl.h (main): Likewise.
61135         * tests/test-ldexpl.c (main): Likewise.
61136         * tests/test-round.c (main): Likewise.
61137         * tests/test-roundf.c (main): Likewise.
61138         * tests/test-roundl.c (main): Likewise.
61139         * tests/test-signbit.c (test_signbitf, test_signbitd)
61140         (test_signbitl): Likewise.
61141         * tests/test-snprintf-posix.h (test_function): Likewise.
61142         * tests/test-sprintf-posix.h (test_function): Likewise.
61143         * tests/test-strtod.c (main): Likewise.
61144         * tests/test-trunc1.c (main): Likewise.
61145         * tests/test-truncf1.c (main): Likewise.
61146         * tests/test-truncl.c (main): Likewise.
61148         isnanl: work around icc bug
61149         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
61151 2010-11-03  Eric Blake  <eblake@redhat.com>
61153         tests: fix compiler warnings
61154         * tests/test-getopt.h (test_getopt): Fix condition.
61155         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61156         * tests/test-pipe2.c (main): Likewise.
61157         * tests/test-quotearg-simple.c (main): Avoid icc warning.
61159         utimens: fix broken m4 test
61160         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
61162 2010-10-28  Bruno Haible  <bruno@clisp.org>
61164         posix_spawn*, getdtablesize: Relax license.
61165         * modules/posix_spawn (License): Change to LGPLv2+.
61166         * modules/posix_spawnp (License): Likewise.
61167         * modules/posix_spawn-internal (License): Likewise.
61168         * modules/posix_spawnattr_init (License): Likewise.
61169         * modules/posix_spawnattr_getflags (License): Likewise.
61170         * modules/posix_spawnattr_setflags (License): Likewise.
61171         * modules/posix_spawnattr_getpgroup (License): Likewise.
61172         * modules/posix_spawnattr_setpgroup (License): Likewise.
61173         * modules/posix_spawnattr_getschedparam (License): Likewise.
61174         * modules/posix_spawnattr_setschedparam (License): Likewise.
61175         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
61176         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
61177         * modules/posix_spawnattr_getsigdefault (License): Likewise.
61178         * modules/posix_spawnattr_setsigdefault (License): Likewise.
61179         * modules/posix_spawnattr_getsigmask (License): Likewise.
61180         * modules/posix_spawnattr_setsigmask (License): Likewise.
61181         * modules/posix_spawnattr_destroy (License): Likewise.
61182         * modules/posix_spawn_file_actions_init (License): Likewise.
61183         * modules/posix_spawn_file_actions_addclose (License): Likewise.
61184         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
61185         * modules/posix_spawn_file_actions_addopen (License): Likewise.
61186         * modules/posix_spawn_file_actions_destroy (License): Likewise.
61187         * modules/getdtablesize (License): Likewise.
61188         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
61190 2010-10-26  Bruno Haible  <bruno@clisp.org>
61192         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
61193         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
61194         Cygwin and mingw.
61195         Suggested by Eric Blake.
61197 2010-10-26  Bruno Haible  <bruno@clisp.org>
61199         stdio: Work around compilation error due to renameat() on Solaris 10.
61200         * lib/stdio.in.h: Include <unistd.h> on Solaris.
61201         * lib/renameat.c: Don't include <unistd.h> here.
61202         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
61203         Reported by Paul Eggert and Eric Blake.
61205 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61207         renameat: port to Solaris 10, which declares renameat in unistd.h
61209         * lib/renameat.c: Include unistd.h before stdio.h, because
61210         Solaris 10 declares renameat in unistd.h.  Problem encountered
61211         when building GNU tar 1.24 on Solaris 10.
61213 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
61215         fdopendir: fix C89 compilation
61216         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
61217         compilers.
61219 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
61221         inttostr: simplify by removing unnecessary redundancy
61222         * lib/anytostr.c: Don't include verify.h.
61223         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
61224         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
61225         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
61226         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
61227         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
61228         Likewise.
61229         * modules/inttostr (Depends-on): Remove 'verify'.
61231 2010-10-23  Bruno Haible  <bruno@clisp.org>
61233         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
61234         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
61235         Reported by Eric Blake.
61237 2010-10-23  Bruno Haible  <bruno@clisp.org>
61239         Tests: Fix LOCALE_JA on MirBSD 10.
61240         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
61241         to an UTF-8 locale.
61242         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
61243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61244         Reported by Eric Blake.
61246 2010-10-21  Bruno Haible  <bruno@clisp.org>
61248         nl_langinfo test: Avoid test failure on NetBSD 5.
61249         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
61250         Reported by Eric Blake.
61252 2010-10-21  Eric Blake  <eblake@redhat.com>
61254         c-stack: work around libsigsegv 2.8 bug
61255         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
61256         overflow on at least PowerPC64.
61258 2010-10-17  Bruno Haible  <bruno@clisp.org>
61260         userspec: Drop redundant file.
61261         * modules/userspec (Files): Remove lib/inttostr.h.
61263 2010-10-17  Bruno Haible  <bruno@clisp.org>
61265         nl_langinfo tests: Silence some warnings.
61266         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
61267         Reported by Jim Meyering.
61269 2010-10-17  Bruno Haible  <bruno@clisp.org>
61271         Make use of GCC's attribute __alloc_size__.
61272         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
61273         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
61274         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
61275         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
61276         __alloc_size__.
61277         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
61278         Suggested by Jim Meyering.
61280 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
61282         bootstrap: anchor .gitignore entries.
61283         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
61284         with...
61285         (insert_vc_ignore): ... this new function, which prepends `/' to
61286         all .gitignore entries before passing them to
61287         insert_sorted_if_absent.
61289 2010-10-16  Bruno Haible  <bruno@clisp.org>
61291         nextafter: Fix configure check.
61292         * modules/nextafter (configure.ac): Correct expected prototype.
61294 2010-10-16  Bruno Haible  <bruno@clisp.org>
61296         termios: Update documentation.
61297         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
61299 2010-10-16  Bruno Haible  <bruno@clisp.org>
61301         tests: Make them compile with TinyCC.
61302         * tests/test-strstr.c (main): Remove parentheses around array
61303         initializer.
61305 2010-10-15  Eric Blake  <eblake@redhat.com>
61307         ignore-value: make header idempotent
61308         * lib/ignore-value.h: Add double-inclusion guards.
61309         Reported by Stefan Berger.
61311 2010-10-15  Jim Meyering  <meyering@redhat.com>
61313         GNUmakefile: handle "stable" target, not "major"
61314         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
61315         lists in maint.mk and announce-gen.  Without this, "make stable"
61316         would fail to ensure that $(VERSION) is up to date.
61318 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
61320         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
61321         & co.
61323 2010-10-14  Bruno Haible  <bruno@clisp.org>
61325         vasnprintf: Don't set errno to 0.
61326         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
61327         block that sets it to 0.
61328         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
61330 2010-10-14  Bruno Haible  <bruno@clisp.org>
61332         socketlib: Fix.
61333         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
61334         gl_PREREQ_SYS_H_WINSOCK2.
61335         Reported by Ian Beckwith <ianb@erislabs.net>.
61337 2010-10-13  Jim Meyering  <meyering@redhat.com>
61339         test-select-stdin.c: avoid warn_unused_result warnings
61340         * tests/test-select-stdin.c: Include "macros.h".
61341         ASSERT that read and fflush succeed.
61343 2010-10-13  Jim Meyering  <meyering@redhat.com>
61345         git-version-gen: do require git-VC'd files in cwd
61346         * build-aux/git-version-gen: Reject a git version string
61347         if there are no commits associated with the current directory.
61348         This avoids an unlikely false-positive (unrelated dir whose parent
61349         repository also contains a tag matching v*), as pointed out
61350         by Giuseppe Scrivano in
61351         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
61353 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
61355         argv-iter: omit nonconforming declaration
61356         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
61357         enum arg_iter_err declaration, which doesn't conform to C99.
61358         Solaris 10 cc warns about this.
61360 2010-10-13  Eric Blake  <eblake@redhat.com>
61362         termios: fix compilation on mingw
61363         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
61364         (gl_TERMIOS_H): Adjust it on mingw.
61365         * modules/termios (Makefile.am): Substitute new key.
61366         * lib/termios.in.h (includes): Make include_next conditional.
61367         * doc/posix-headers/termios.texi (termios.h): Update
61368         documentation.
61369         Reported by Daniel P. Berrange.
61371 2010-10-13  Jim Meyering  <meyering@redhat.com>
61373         git-version-gen: don't require that .git/ be in the current dir
61374         * build-aux/git-version-gen: Adjust this script so that it works
61375         when run from any working directory beneath the top-level .git/-
61376         containing directory.  Inspired by a patch from Giuseppe Scrivano,
61377         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
61379         test-select: avoid warn_unused_result warnings
61380         * tests/test-select.c: Include "macros.h".
61381         ASSERT that each call to read, write, and pipe succeeds.
61382         While not technically required, also check each "close".
61383         * modules/select-tests (Files): Add tests/macros.h.
61385         test-symlinkat: remove declaration of unused local
61386         * tests/test-symlinkat.c (main): Remove unused local, "buf".
61388         test-inttostr: avoid shadowing warnings
61389         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
61390         and use malloc rather than the stack for the same reason as
61391         mentioned in the comment justifying the other allocation.
61393 2010-10-11  Bruno Haible  <bruno@clisp.org>
61395         stdlib: Allow multiple gnulib generated replacements to coexist.
61396         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
61397         Reported by Sam Steingold <sds@gnu.org>.
61399 2010-10-11  Jim Meyering  <meyering@redhat.com>
61401         fix a documentation typo
61402         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
61404 2010-10-11  Eric Blake  <eblake@redhat.com>
61406         futimens: work around Solaris 11 bug
61407         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
61408         * tests/test-futimens.h (test_futimens): Enhance, rather than
61409         weaken test.
61410         * doc/posix-functions/futimens.texi (futimens): Document the bug.
61412 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61414         Indentation.
61415         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
61416         higher-level operators more to the left.
61418 2010-10-11  Jim Meyering  <meyering@redhat.com>
61420         test-futimens: avoid unwarranted test failure on Solaris 5.11
61421         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
61422         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
61423         because it tries to dereference the NULL name argument.
61425 2010-10-11  Bruno Haible  <bruno@clisp.org>
61427         Indentation.
61428         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
61429         indentation.
61431 2010-10-11  Jim Meyering  <meyering@redhat.com>
61433         spawn.in.h: make indentation consistent with parentheses
61434         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
61435         Make indentation consistent with parentheses.
61437 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
61439         Fix mismatched parens in previous commit
61440         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
61441         parens.
61443 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61445         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
61447         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
61448         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
61449         * lib/malloca.c: Include "verify.h".
61450         (verify1): Remove, replacing with a verify call.
61451         * lib/relocwrapper.c (verify1): Likewise.
61452         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
61453         Likewise.
61454         * modules/malloca (Depends-on): Add 'verify'.
61455         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
61456         * modules/vasnprintf (Depends-on): Add 'verify'.
61457         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61458         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61459         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61460         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61461         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61462         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61463         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61465         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
61467         Formerly the style was sometimes 2*X - 1, because the C standard
61468         was wrongly thought to disallow ?: in integral constant expressions.
61469         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
61470         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
61471         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
61472         * lib/stdint.in.h (_verify_intmax_size): Likewise.
61473         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
61474         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
61475         verify that time_t cannot be floating.
61477 2010-10-08  Eric Blake  <eblake@redhat.com>
61479         time: enforce recent POSIX ruling that time_t is integral
61480         * lib/time.in.h (__time_t_must_be_integral): Detect any
61481         problematic systems, allowing the rest of gnulib to assume POSIX.
61483 2010-10-08  Jim Meyering  <meyering@redhat.com>
61485         fdopendir: fix a bug on systems lacking openat and /proc support
61486         OpenBSD 4.7 is one such system.  The most noticeable effect was
61487         failure of any application making nontrivial use of fts: rm, du,
61488         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
61489           ./rm: traversal failed: `a': Bad file descriptor
61490         Debugging that, you see that even though FD 6 was closed just
61491         prior to the opendir call in fd_clone_opendir, its resulting
61492         dir->dd_fd was 8, rather than the expected value of 6:
61494         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
61495         93                close (fd);
61496         (gdb) n
61497         94                dir = fd_clone_opendir (dupfd);
61498         (gdb) n
61499         95                saved_errno = errno;
61500         (gdb) p dir->dd_fd
61501         $11 = 8
61503         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
61504         The problem is that on OpenBSD, fd_clone_opendir has to resort
61505         to using the old-style save/restore CWD mechanism, due to its
61506         lack of openat/proc support, and *that* would steal the FD (6)
61507         that opendir was supposed to use.
61509         The fix is to squirrel away the desired FD so that save_cwd uses a
61510         different one, and then free the dest FD right before calling opendir.
61511         That guarantees opendir will use the required file descriptor.
61513         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
61515 2010-10-08  Bruno Haible  <bruno@clisp.org>
61517         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
61518         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
61520 2010-10-08  Bruno Haible  <bruno@clisp.org>
61522         nanosleep: Make replacement POSIX compliant.
61523         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
61524         is out of range.
61525         Reported by Jim Meyering.
61527 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61529         bootstrap: add hook for altering gnulib.mk, for Bison
61530         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
61531         the Bison bootstrapping process can rewrite file names and variables
61532         in this file before later parts of 'bootstrap' use the file.
61533         Bison wants to include lib/gnulib.mk from the top-level makefile,
61534         so it needs the file names in this file to be relative to the top
61535         level, not relative to lib; plus it needs variable names to be
61536         rewritten.
61537         (slurp): Use the new function.
61539         bootstrap: reformat for readability
61540         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
61542 2010-10-08  Eric Blake  <eblake@redhat.com>
61544         docs: update cygwin progress
61545         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
61546         1.7.7.
61547         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
61548         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
61549         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
61550         * doc/posix-functions/carg.texi (carg): Likewise.
61551         * doc/posix-functions/cargf.texi (cargf): Likewise.
61552         * doc/posix-functions/casin.texi (casin): Likewise.
61553         * doc/posix-functions/casinf.texi (casinf): Likewise.
61554         * doc/posix-functions/casinh.texi (casinh): Likewise.
61555         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
61556         * doc/posix-functions/catan.texi (catan): Likewise.
61557         * doc/posix-functions/catanf.texi (catanf): Likewise.
61558         * doc/posix-functions/catanh.texi (catanh): Likewise.
61559         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
61560         * doc/posix-functions/ccos.texi (ccos): Likewise.
61561         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
61562         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
61563         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
61564         * doc/posix-functions/cexp.texi (cexp): Likewise.
61565         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
61566         * doc/posix-functions/cimag.texi (cimag): Likewise.
61567         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
61568         * doc/posix-functions/clog.texi (clog): Likewise.
61569         * doc/posix-functions/clogf.texi (clogf): Likewise.
61570         * doc/posix-functions/conj.texi (conj): Likewise.
61571         * doc/posix-functions/conjf.texi (conjf): Likewise.
61572         * doc/posix-functions/cpow.texi (cpow): Likewise.
61573         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
61574         * doc/posix-functions/cproj.texi (cproj): Likewise.
61575         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
61576         * doc/posix-functions/creal.texi (creal): Likewise.
61577         * doc/posix-functions/crealf.texi (crealf): Likewise.
61578         * doc/posix-functions/csin.texi (csin): Likewise.
61579         * doc/posix-functions/csinf.texi (csinf): Likewise.
61580         * doc/posix-functions/csinh.texi (csinh): Likewise.
61581         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
61582         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
61583         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
61584         * doc/posix-functions/ctan.texi (ctan): Likewise.
61585         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
61586         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
61587         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
61588         * doc/posix-headers/complex.texi (complex.h): Likewise.
61590 2010-10-07  Jim Meyering  <meyering@redhat.com>
61592         parse-datetime: avoid compilation failure on OpenBSD 4.7
61593         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
61594         This works around a compilation failure on OpenBSD 4.7:
61595         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
61597 2010-10-07  Eric Blake  <eblake@redhat.com>
61599         docs: update cygwin progress
61600         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
61601         1.7.6.
61602         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
61603         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
61604         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
61605         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
61606         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
61607         Likewise.
61608         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
61609         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
61610         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
61611         Likewise.
61612         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
61613         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
61614         Likewise.
61615         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
61616         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
61617         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
61618         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
61619         Likewise.
61620         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
61621         Likewise.
61622         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
61624         docs: update parse-datetime history
61625         * doc/parse-datetime.texi (Authors of parse_datetime): Better
61626         documentation of this function's history and alternatives.
61628         cygwin: use more robust version check
61629         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
61630         exclude an eventual cygwin 1.9.1.
61631         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61633         (gl_FUNC_STRCASESTR): Likewise.
61634         Reported by Bruno Haible.
61636 2010-10-06  Bruno Haible  <bruno@clisp.org>
61638         string, sys_select: Avoid #including large headers unless necessary.
61639         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
61640         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
61641         OSF/1, BeOS, Haiku.
61642         Reported by Jim Meyering.
61644 2010-10-05  Eric Blake  <eblake@redhat.com>
61646         memmem, strstr, strcasestr: fix bug with long periodic needle
61647         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
61648         periodic needle having false positive.
61649         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
61650         and cygwin 1.7.7.
61651         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
61652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61653         (gl_FUNC_STRCASESTR): Likewise.
61654         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61655         * tests/test-memmem.c (main): Expose the bug.
61656         * tests/test-strcasestr.c (main): Likewise.
61657         * tests/test-strstr.c (main): Likewise.
61658         * tests/test-c-strcasestr.c (main): Likewise.
61659         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
61660         * doc/posix-functions/strstr.texi (strstr): Likewise.
61661         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61662         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
61664 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61666         parse-datetime: do some more renaming
61667         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
61668         parse_datetime, not get_date.  Mention the renaming.
61669         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
61670         in comments.
61671         * m4/bison.m4: Likewise.
61673 2010-10-05  Eric Blake  <eblake@redhat.com>
61675         parse-datetime: better name than get_date
61676         * NEWS: Reword the deprecation notice.
61677         * modules/get_date: Rename to modules/parse-datetime.
61678         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
61679         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
61680         * lib/get_date.y: Rename to lib/parse-datetime.y.
61681         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
61682         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
61683         * doc/getdate.texi: Provide fallback wrapper.
61684         * lib/getdate.h: Move guts, and wrap...
61685         * lib/parse-datetime.h: ...new file.
61686         * lib/parse-datetime.y (get_date): Rename...
61687         (parse_datetime): ...to this.
61688         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
61689         (gl_PARSE_DATETIME): ...to this.
61690         * doc/posix-functions/getdate.texi (get_date): Provide fallback
61691         documentation.
61692         * modules/getdate (Files): Provide fallback docs and header.
61693         (Notice, Depends-on): Update references.
61694         * tests/test-parse-datetime.c: Likewise.
61695         * DEPENDENCIES: Likewise.
61696         * MODULES.html.sh (Date and time <time.h>): Likewise.
61697         * doc/parse-datetime.texi (Date input formats)
61698         (Authors of parse_datetime): Likewise.
61699         * modules/parse-datetime (Files, configure.ac, Makefile.am)
61700         (Include): Likewise.
61701         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
61702         * gnulib-tool: Likewise.
61703         * m4/bison.m4 (gl_BISON): Likewise.
61704         Suggested by Bruno Haible.
61706 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61708         more ports to Solaris tr, which needs [] around ranges
61709         * gnulib-tool: Solaris tr needs [] around ranges.
61710         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61711         * tests/test-pipe-filter-gi1.c (main): Likewise.
61712         * tests/test-pipe-filter-ii1.c (main): Likewise.
61714 2010-10-05  Eric Blake  <eblake@redhat.com>
61716         bootstrap: fix Solaris regression
61717         * build-aux/bootstrap (check_versions): Solaris tr still needs []
61718         around ranges.
61719         Reported by Pádraig Brady.
61721         bootstrap: work with pkg-config
61722         * build-aux/bootstrap (check_versions): Also transliterate - in
61723         prerequisite name.
61724         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
61725         prerequisites that were already found, to avoid confusion.
61726         Reported by Justin Clift.
61728         faccessat: remove unused wrappers
61729         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
61730         presence of these wrappers dragged in -lgen on Solaris.
61731         Reported by Clemens Brogi; fix suggested by Paul Eggert.
61733 2010-10-05  Jim Meyering  <meyering@redhat.com>
61735         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
61736         * Makefile (sc_pragma_columns): New syntax-check rule.
61738 2010-10-04  Bruno Haible  <bruno@clisp.org>
61740         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
61741         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
61742         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
61743         Reported by Bruce Korb and Eric Blake.
61745 2010-10-04  Bruno Haible  <bruno@clisp.org>
61747         threadlib: Make option --with-libpth-prefix work.
61748         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
61749         use $LIBPTH, not just -lpth.
61751 2010-10-04  Bruno Haible  <bruno@clisp.org>
61753         Avoid line length limitation from HP NonStop system header files.
61754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
61755         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
61756         * lib/ctype.in.h: Likewise.
61757         * lib/dirent.in.h: Likewise.
61758         * lib/errno.in.h: Likewise.
61759         * lib/fcntl.in.h: Likewise.
61760         * lib/float.in.h: Likewise.
61761         * lib/getopt.in.h: Likewise.
61762         * lib/iconv.in.h: Likewise.
61763         * lib/inttypes.in.h: Likewise.
61764         * lib/langinfo.in.h: Likewise.
61765         * lib/locale.in.h: Likewise.
61766         * lib/math.in.h: Likewise.
61767         * lib/netdb.in.h: Likewise.
61768         * lib/netinet_in.in.h: Likewise.
61769         * lib/poll.in.h: Likewise.
61770         * lib/pthread.in.h: Likewise.
61771         * lib/pty.in.h: Likewise.
61772         * lib/sched.in.h: Likewise.
61773         * lib/se-selinux.in.h: Likewise.
61774         * lib/search.in.h: Likewise.
61775         * lib/signal.in.h: Likewise.
61776         * lib/spawn.in.h: Likewise.
61777         * lib/stdarg.in.h: Likewise.
61778         * lib/stddef.in.h: Likewise.
61779         * lib/stdint.in.h: Likewise.
61780         * lib/stdio.in.h: Likewise.
61781         * lib/stdlib.in.h: Likewise.
61782         * lib/string.in.h: Likewise.
61783         * lib/strings.in.h: Likewise.
61784         * lib/sys_file.in.h: Likewise.
61785         * lib/sys_ioctl.in.h: Likewise.
61786         * lib/sys_select.in.h: Likewise.
61787         * lib/sys_socket.in.h: Likewise.
61788         * lib/sys_stat.in.h: Likewise.
61789         * lib/sys_time.in.h: Likewise.
61790         * lib/sys_times.in.h: Likewise.
61791         * lib/sys_utsname.in.h: Likewise.
61792         * lib/sys_wait.in.h: Likewise.
61793         * lib/sysexits.in.h: Likewise.
61794         * lib/termios.in.h: Likewise.
61795         * lib/time.in.h: Likewise.
61796         * lib/unistd.in.h: Likewise.
61797         * lib/wchar.in.h: Likewise.
61798         * lib/wctype.in.h: Likewise.
61799         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
61800         * modules/ctype (Makefile.am): Likewise.
61801         * modules/dirent (Makefile.am): Likewise.
61802         * modules/errno (Makefile.am): Likewise.
61803         * modules/fcntl-h (Makefile.am): Likewise.
61804         * modules/float (Makefile.am): Likewise.
61805         * modules/getopt-posix (Makefile.am): Likewise.
61806         * modules/iconv-h (Makefile.am): Likewise.
61807         * modules/inttypes (Makefile.am): Likewise.
61808         * modules/langinfo (Makefile.am): Likewise.
61809         * modules/locale (Makefile.am): Likewise.
61810         * modules/math (Makefile.am): Likewise.
61811         * modules/netdb (Makefile.am): Likewise.
61812         * modules/netinet_in (Makefile.am): Likewise.
61813         * modules/poll-h (Makefile.am): Likewise.
61814         * modules/pthread (Makefile.am): Likewise.
61815         * modules/pty (Makefile.am): Likewise.
61816         * modules/sched (Makefile.am): Likewise.
61817         * modules/search (Makefile.am): Likewise.
61818         * modules/selinux-h (Makefile.am): Likewise.
61819         * modules/signal (Makefile.am): Likewise.
61820         * modules/spawn (Makefile.am): Likewise.
61821         * modules/stdarg (Makefile.am): Likewise.
61822         * modules/stddef (Makefile.am): Likewise.
61823         * modules/stdint (Makefile.am): Likewise.
61824         * modules/stdio (Makefile.am): Likewise.
61825         * modules/stdlib (Makefile.am): Likewise.
61826         * modules/string (Makefile.am): Likewise.
61827         * modules/strings (Makefile.am): Likewise.
61828         * modules/sys_file (Makefile.am): Likewise.
61829         * modules/sys_ioctl (Makefile.am): Likewise.
61830         * modules/sys_select (Makefile.am): Likewise.
61831         * modules/sys_socket (Makefile.am): Likewise.
61832         * modules/sys_stat (Makefile.am): Likewise.
61833         * modules/sys_time (Makefile.am): Likewise.
61834         * modules/sys_times (Makefile.am): Likewise.
61835         * modules/sys_utsname (Makefile.am): Likewise.
61836         * modules/sys_wait (Makefile.am): Likewise.
61837         * modules/sysexits (Makefile.am): Likewise.
61838         * modules/termios (Makefile.am): Likewise.
61839         * modules/time (Makefile.am): Likewise.
61840         * modules/unistd (Makefile.am): Likewise.
61841         * modules/wchar (Makefile.am): Likewise.
61842         * modules/wctype (Makefile.am): Likewise.
61844 2010-10-04  Bruno Haible  <bruno@clisp.org>
61846         read-file tests: Avoid a test failure on NonStop Kernel.
61847         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
61848         a regular file.
61849         Reported by Joachim Schmitz <schmitz@hp.com>.
61851 2010-10-03  Bruno Haible  <bruno@clisp.org>
61853         gnulib-tool: Fixes for --create-testdir with --libtool.
61854         * gnulib-tool (func_get_automake_snippet): Don't augment
61855         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
61856         an executable.
61857         (func_create_testdir): Handle module 'alloca' like func_import.
61858         Reported by Bruce Korb <bruce.korb@gmail.com>.
61860 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61862         Avoid some lines longer than 80 characters.
61863         * lib/stdint.in.h: Break long comment lines.
61864         * lib/math.in.h: Likewise.
61865         (_GL_NUM_UINT_WORDS): New macro, for readability.
61866         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
61867         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
61868         * lib/stdlib.in.h: Likewise.
61869         * lib/spawn.in.h: Likewise.
61870         * lib/sys_socket.in.h: Update an URL.
61871         * lib/sys_stat.in.h: Break long line.
61873 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
61875         Improve pmccabe2html.
61876         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
61877         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
61878         when the sources change. Remove the line in the HTML about "Used
61879         ranges" (which implied that there might be other unused ranges),
61880         rename "Resume" to "Summary" (easier to understand for more users).
61881         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
61882         styles, and some unnecessary blank lines.
61884 2010-10-03  Bruno Haible  <bruno@clisp.org>
61885             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
61887         acl: Add support for ACLs on NonStop Kernel.
61888         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
61889         Check whether the function aclsort() exists.
61890         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
61891         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
61892         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61893         (acl_nontrivial [HAVE_ACLSORT]: New function.
61894         (file_has_acl): Implement for NonStop Kernel.
61895         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61896         (qset_acl): Implement for NonStop Kernel.
61897         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61898         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61899         (main): Implement for NonStop Kernel.
61900         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61901         Kernel. Handle this flavor.
61902         * tests/test-set-mode-acl.sh: Likewise.
61903         * tests/test-copy-acl.sh: Likewise.
61904         * tests/test-copy-file.sh: Likewise.
61906 2010-10-03  Bruno Haible  <bruno@clisp.org>
61908         Info about ACLs on NonStop Kernel.
61909         * doc/acl-resources.txt: Add info about NonStop Kernel.
61910         References by Joachim Schmitz <schmitz@hp.com>.
61912 2010-10-02  Bruno Haible  <bruno@clisp.org>
61914         Define missing EDQUOT on NonStop Kernel.
61915         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61916         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61917         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61918         missing.
61919         * doc/posix-headers/errno.texi: Mention the NSK bug.
61920         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61921         Reported by Joachim Schmitz <schmitz@hp.com>.
61923 2010-10-02  Bruno Haible  <bruno@clisp.org>
61925         Update doc for POSIX:2008.
61926         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61927         Update URL of POSIX specification.
61929 2010-10-02  Bruno Haible  <bruno@clisp.org>
61931         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61932         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61933         from gnulib, not from Automake.
61935 2010-10-02  Bruno Haible  <bruno@clisp.org>
61937         New module 'system-posix'.
61938         * modules/system-posix: New file.
61939         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61940         module is present.
61941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61942         GNULIB_SYSTEM_POSIX.
61943         * modules/stdlib (Depends-on): Remove sys_wait.
61944         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61945         * doc/posix-functions/system.texi: Mention the new module.
61946         * doc/posix-headers/stdlib.texi: Likewise.
61947         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61948         define test_sys_wait_macros to a no-op.
61949         Reported by Sam Steingold <sds@gnu.org>.
61951 2010-09-30  Bruno Haible  <bruno@clisp.org>
61953         More renaming from 'getdate' to 'get_date'.
61954         * doc/get_date.texi: Renamed from doc/getdate.texi.
61955         * modules/get_date (Files): Update.
61956         * MODULES.html.sh (Date and time <time.h>): Update.
61957         * DEPENDENCIES: Update.
61958         * gnulib-tool: Update comment.
61959         * m4/bison.m4 (gl_BISON): Likewise.
61960         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61962 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61964         bootstrap: support ACLOCAL_FLAGS during aclocal
61965         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61966         can add additional -I dir for third-party .m4 files.
61968 2010-09-30  Eric Blake  <eblake@redhat.com>
61970         bootstrap: use glibtoolize on MacOS
61971         * build-aux/bootstrap (check_versions): Convert libtool into
61972         libtoolize.
61973         (tool search): Move libtool check earlier, and look for
61974         glibtoolize for MacOS.
61975         (gnulib_tool_options): Auto-add --libtool when appropriate.
61976         Reported by Justin Clift.
61978         poll: fix typo that broke test on MacOS
61979         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61980         Reported by Justin Clift.
61982         getdate: rename to get_date
61983         Note: getdate.h is not renamed, to minimize client impact.
61984         * modules/getdate: Mark obsolete.  Move old contents...
61985         * modules/get_date: ...to new module name.
61986         * modules/getdate-tests: Move...
61987         * modules/get_date-tests: ...here.
61988         * m4/getdate.m4: Move...
61989         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61990         * lib/getdate.y: Move...
61991         * lib/get_date.y: ...here.
61992         * tests/test-getdate.c: Move...
61993         * tests/test-get_date.c: ...here.
61994         * doc/posix-functions/getdate.texi (getdate): Update name.
61995         * NEWS: Mention the change.
61997 2010-09-29  Bruno Haible  <bruno@clisp.org>
61999         Separate the module 'waitpid' from the module 'sys_wait'.
62000         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
62001         present.
62002         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
62003         gl_MODULE_INDICATOR_FOR_TESTS.
62004         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
62005         * modules/sys_wait (Depends-on): Remove waitpid.
62006         (Makefile.am): Substitute GNULIB_WAITPID.
62007         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
62008         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
62009         signature only if the 'waitpid' module is present.
62010         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
62011         * NEWS: Mention the change.
62012         * modules/grantpt (Depends-on): Add waitpid.
62013         * modules/wait-process (Depends-on): Likewise.
62015 2010-09-29  Bruno Haible  <bruno@clisp.org>
62017         More tests for module 'sys_wait'.
62018         * modules/sys_wait-c++-tests: New file.
62019         * tests/test-sys_wait-c++.cc: New file.
62020         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
62021         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
62023 2010-09-29  Bruno Haible  <bruno@clisp.org>
62025         New module 'waitpid'.
62026         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
62027         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
62028         Don't include <process.h>.
62029         (waitpid): Declare only, using modern idiom.
62030         * m4/waitpid.m4: New file.
62031         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
62032         * modules/waitpid: New file.
62033         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
62034         (Makefile.am): Update.
62035         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
62037 2010-09-28  Bruno Haible  <bruno@clisp.org>
62039         poll: Assume ANSI C.
62040         * lib/poll.c (poll): Use an ANSI C declaration.
62042 2010-09-28  Bruno Haible  <bruno@clisp.org>
62044         poll-h: Create poll.h on all platforms.
62045         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
62046         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
62047         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
62048         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
62049         (gl_REPLACE_POLL_H): Don't set POLL_H.
62050         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
62051         * modules/poll-h (Depends-on): Add include_next.
62052         (Makefile.am): Create poll.h unconditionally. Substitute also
62053         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
62055 2010-09-28  Bruno Haible  <bruno@clisp.org>
62057         Tests for module 'poll-h'.
62058         * modules/poll-h-c++-tests: New file.
62059         * tests/test-poll-h-c++.cc: New file.
62061         Tests for module 'poll-h'.
62062         * modules/poll-h-tests: New file.
62063         * tests/test-poll-h.c: New file.
62065 2010-09-28  Bruno Haible  <bruno@clisp.org>
62067         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
62068         * modules/poll-h (Depends-on): Add 'extensions'.
62070 2010-09-28  Bruno Haible  <bruno@clisp.org>
62072         New module 'poll-h'.
62073         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
62074         (poll): Use modern idiom.
62075         * modules/poll-h: New file.
62076         * modules/poll (Files): Remove lib/poll.in.h.
62077         (Depends-on): Add poll-h.
62078         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
62079         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
62080         * m4/poll_h.m4: New file.
62081         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
62082         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
62083         and invoke gl_REPLACE_POLL_H.
62084         * lib/poll.c: Use common idiom.
62085         * tests/test-poll.c: Likewise.
62086         * doc/posix-headers/poll.texi: Mention the poll-h module.
62087         Suggested by Eric Blake.
62089 2010-09-26  Bruno Haible  <bruno@clisp.org>
62091         sys_wait: Implement WSTOPSIG.
62092         * lib/sys_wait.in.h (WSTOPSIG): New macro.
62093         Reported by Simon Josefsson.
62095 2010-09-26  Simon Josefsson  <simon@josefsson.org>
62097         stdlib, sys_wait: Avoid compilation error on mingw.
62098         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
62100 2010-09-26  Bruno Haible  <bruno@clisp.org>
62102         stdlib tests: Avoid code duplication.
62103         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
62104         * modules/sys_wait-tests (Files): Likewise.
62105         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
62106         * tests/test-stdlib.c: Include test-sys_wait.h.
62107         (main): Invoke test_sys_wait_macros.
62108         * tests/test-sys_wait.c: Include test-sys_wait.h.
62109         (main): Invoke test_sys_wait_macros.
62111 2010-09-25  Simon Josefsson  <simon@josefsson.org>
62113         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
62114         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
62115         sure Windows sockets are working before calling getaddrinfo.
62116         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
62117         * doc/gnulib.texi (Windows sockets): Fix typo.
62119 2010-09-25  Bruno Haible  <bruno@clisp.org>
62121         Tests for module 'regex-quote'.
62122         * modules/regex-quote-tests: New file.
62123         * tests/test-regex-quote.c: New file.
62125         New module 'regex-quote'.
62126         * lib/regex-quote.h: New file.
62127         * lib/regex-quote.c: New file.
62128         * modules/regex-quote: New file.
62129         Suggested by Reuben Thomas <rrt@sc3d.org>.
62131 2010-09-24  Bruno Haible  <bruno@clisp.org>
62133         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
62134         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
62136 2010-09-23  Bruno Haible  <bruno@clisp.org>
62138         setenv: Relax license.
62139         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
62140         Blake.
62141         Requested by Eric Blake.
62143 2010-09-22  Bruno Haible  <bruno@clisp.org>
62145         termios: Relax license.
62146         * modules/termios (License): Change to LGPLv2+.
62147         Requested by Eric Blake.
62149 2010-09-22  Bruno Haible  <bruno@clisp.org>
62151         threadlib: Allow the package to change the default to 'no'.
62152         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
62153         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
62154         Reported by Paul Eggert.
62156 2010-09-22  Pádraig Brady  <P@draigbrady.com>
62157             Bruno Haible  <bruno@clisp.org>
62159         Fix endless loop in mbmemcasecoll.
62160         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
62161         byte.
62162         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
62164 2010-09-22  Bruno Haible  <bruno@clisp.org>
62166         Tests for module 'memcoll'.
62167         * modules/memcoll-tests: New file.
62168         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
62170         memcoll, xmemcoll: Clarify size vs. length.
62171         * modules/memcoll.c (memcoll0): Clarify specification.
62172         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
62173         passed to collate_error.
62175 2010-09-22  Bruno Haible  <bruno@clisp.org>
62177         Tests for module 'memcasecmp'.
62178         * modules/memcasecmp-tests: New file.
62179         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
62181 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
62183         * lib/pthread.in.h: Add split double-inclusion guard, and include
62184         system <pthread.h> if there is one.  Use @@-style as in other
62185         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
62186         pthread.h doesn't.
62187         (pthread_mutexattr_destroy, pthread_mutexattr_init):
62188         (pthread_mutexattr_settype, pthread_mutex_trylock):
62189         New static inline functions, if there's no system <pthread.h>.
62190         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
62191         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
62192         Approximate with mutexes if the system lacks spinlocks, as in
62193         MacOS.
62194         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
62195         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
62196         @@-style.  Check for spinlocks separately.
62197         (gl_PTHREAD_DEFAULTS): New macro.
62198         * modules/pthread: Redo to use a more typical style for in.h files.
62200 2010-09-21  Eric Blake  <eblake@redhat.com>
62202         net_if: enhance tests
62203         * tests/test-net_if.c (main): Move signature checks earlier.
62204         Print failures to stderr.
62205         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
62206         Document the bug that we do not yet fix.
62208 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
62210         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
62211         about gnulib, not GSS.
62213 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
62215         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
62216         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
62217         for Emacs.
62218         * build-aux/pmccabe2html: Make Makefile.am example code more
62219         cut-and-paste friendly.
62221 2010-09-21  Simon Josefsson  <simon@josefsson.org>
62223         * tests/test-net_if.c: New file.
62224         * modules/net_if-tests: New file.
62226 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62228         pthread: add pthread_spin_destroy
62229         * lib/pthread.in.h (pthread_spin_destroy): New function.
62231 2010-09-19  Bruno Haible  <bruno@clisp.org>
62233         gnulib-tool: Fix --help output.
62234         * gnulib-tool (func_usage): Fix help message.
62235         Reported by Reuben Thomas <rrt@sc3d.org>.
62237 2010-09-18  Jim Meyering  <meyering@redhat.com>
62239         maint.mk: avoid unexpanded \n in two diagnostics
62240         * top/maint.mk (sc_prohibit_always_true_header_tests):
62241         Don't use a literal \n in a halt=... assignment.  It would not be
62242         expanded, and the two \n bytes would appear in the diagnostic output
62243         rather than the desired newline.  Use halt=$$(printf ... instead.
62244         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
62246 2010-09-18  Bruno Haible  <bruno@clisp.org>
62248         netinet_in: Doc tweak.
62249         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
62250         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62252 2010-09-18  Jim Meyering  <meyering@redhat.com>
62254         init.sh: correct an outdated comment
62255         * tests/init.sh (create_exe_shims_):  s/function/alias/
62257         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
62258         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
62259         a file named "*.exe" is removed between the glob expansion and the
62260         processing of that oddly named file.
62262 2010-09-17  Eric Blake  <eblake@redhat.com>
62264         mirbsd: add some more support
62265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
62266         in BSD family.
62267         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
62268         devices as OpenBSD.
62269         * m4/host-os.m4 (mirbsd): Add MirBSD.
62271         tests: fix unportable assumption on sys/wait.h
62272         * tests/test-sys_wait.c (main): Relax test.
62273         * tests/test-stdlib.c (main): Likewise.
62275         init.sh: accommodate directory with no .exes
62276         * tests/init.sh: Accomodate directory containing only scripts.
62278         tests: avoid compiler warning
62279         * tests/test-stdlib.c (main): Use the variable.
62281         fdutimens, fdutimensat: update signature, again
62282         * lib/utimens.h (gl_futimens): Delete, and move signature...
62283         (fdutimens): ...here.
62284         (fdutimensat): Rearrange signature.
62285         (lutimensat): Rename variable for clarity.
62286         * lib/fdutimensat.c (fdutimensat): Update signature.
62287         * lib/utimens.c (fdutimens): Likewise.
62288         (gl_futimens): Delete.
62289         (utimens, lutimens): Update callers.
62290         * lib/futimens.c (futimens): Likewise.
62291         * tests/test-fdutimensat.c: Likewise.
62292         * tests/test-utimens.c: Likewise.
62293         * tests/test-futimens.h: Update comment.
62294         * NEWS: Mention this.
62295         Suggested by Paul Eggert.
62297 2010-09-17  Bruno Haible  <bruno@clisp.org>
62299         Take over the maintenance of some older macros from Autoconf.
62300         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
62301         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
62302         GNU Autoconf.
62303         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
62304         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
62306 2010-09-17  Eric Blake  <eblake@redhat.com>
62308         fdutimensat: drop atflag validation
62309         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
62310         with valid fd, to close a race scenario where futimens is
62311         unsupported and FILE was replaced by a symlink.
62312         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
62313         accordingly.
62314         Suggested by Paul Eggert.
62316 2010-09-16  Bruno Haible  <bruno@clisp.org>
62318         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
62319         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
62321 2010-09-16  Bruno Haible  <bruno@clisp.org>
62323         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
62324         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
62325         login_tty exists.
62326         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62328 2010-09-16  Bruno Haible  <bruno@clisp.org>
62330         login_tty: Make the replacement code work on BSD systems.
62331         * lib/login_tty.c: Include <sys/ioctl.h>.
62332         (login_tty): Use ioctl TIOCSCTTY when available.
62333         * modules/login_tty (Depends-on): Add sys_ioctl.
62334         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62336 2010-09-16  Bruno Haible  <bruno@clisp.org>
62338         login_tty: Stricter unit test.
62339         * modules/login_tty-tests (Depends-on): Add tcgetsid.
62340         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
62341         and tcgetsid() after login_tty.
62342         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62344 2010-09-16  Bruno Haible  <bruno@clisp.org>
62346         New module 'tcgetsid'.
62347         * lib/tcgetsid.c: New file.
62348         * m4/tcgetsid.m4: New file.
62349         * modules/tcgetsid: New file.
62350         * modules/termios (Depends-on): Add c++defs, warn-on-use.
62351         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
62352         GNULIB_TCGETSID, HAVE_TCGETSID.
62353         * lib/termios.in.h: Include <sys/types.h>.
62354         (tcgetsid): New declaration.
62355         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
62356         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
62357         * doc/posix-functions/tcgetsid.texi: Mention the new module.
62358         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
62360 2010-09-16  Bruno Haible  <bruno@clisp.org>
62362         Tests for module 'termios'.
62363         * modules/termios-c++-tests: New file.
62364         * modules/termios-tests: New file.
62365         * tests/test-termios-c++.cc: New file.
62366         * tests/test-termios.c: New file.
62368         New module 'termios'.
62369         * modules/termios: New file.
62370         * lib/termios.in.h: New file.
62371         * m4/termios_h.m4: New file.
62372         * doc/posix-headers/termios.texi: Mention the new module.
62374 2010-09-16  Eric Blake  <eblake@redhat.com>
62376         fdutimensat: add an atflag parameter
62377         * lib/fdutimensat.c (fdutimensat): Add new parameter.
62378         * lib/utimens.h (fdutimensat): Update prototype.
62379         * tests/test-fdutimensat.c: Adjust test to match.
62380         * NEWS: Document the change.
62381         Suggested by Paul Eggert.
62383 2010-09-16  Bruno Haible  <bruno@clisp.org>
62385         Fix typos in comments.
62386         * lib/striconveh.h: Fix typo in comment.
62387         * lib/login_tty.c (login_tty): Likewise.
62389 2010-09-15  Bruno Haible  <bruno@clisp.org>
62391         stdlib: clarify MirBSD WEXITSTATUS bug
62392         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
62393         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62395 2010-09-15  Eric Blake  <eblake@redhat.com>
62397         stdlib: work around MirBSD WEXITSTATUS bug
62398         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
62399         * modules/stdlib (Depends-on): Add sys_wait.
62400         * tests/test-sys_wait.c (main): Enhance test.
62401         * tests/test-stdlib.c (main): Likewise.
62402         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
62404         docs: mention MacOS issue with WEXITSTATUS(constant)
62405         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
62406         issue.
62407         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
62409         strnlen: add tests
62410         * modules/strnlen-tests: New file.
62411         * tests/test-strnlen.c: Likewise.
62413 2010-09-14  Bruno Haible  <bruno@clisp.org>
62415         unistr/base: Avoid link errors when module 'libunistring' is also used.
62416         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
62417         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
62418         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
62419         Declare also when HAVE_LIBUNISTRING is set.
62420         Reported by Pádraig Brady <P@draigbrady.com>.
62422 2010-09-14  Eric Blake  <eblake@redhat.com>
62424         test-rawmemchr: make more robust
62425         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
62426         (Depends-on, configure.ac): Add needed prerequisites to use it.
62427         * modules/memchr-tests (Files, Depends-on, configure.ac):
62428         Likewise, to avoid implicit reliance on memchr module prereqs.
62429         * tests/test-memchr.c (main): Ensure proper masking.
62430         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
62431         reads.
62433         memchr: detect glibc Alpha bug
62434         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
62435         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
62436         Alpha.
62437         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
62438         * tests/test-memchr.c (main): Enhance test.
62439         Reported by Nelson H. F. Beebe.
62441 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62443         fts, getcwd, glob: audit for dirfd returning -1
62444         * lib/fts.c (opendir): Remove #define; no longer used.
62445         (opendirat): New arg PDIR_FD.  All callers changed.
62446         (fts_build, _opendir2): Use new opendirat to avoid the need for
62447         dirfd, or for checking whether dirfd returns a negative value.
62448         Don't use opendir; always use openat followed by fdopendir.
62449         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
62450         it.
62451         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
62452         returns -1 here.
62453         * modules/fts (Depends-on): Remove dirfd.
62454         * modules/getcwd (Depends-on): Likewise.
62456 2010-09-13  Eric Blake  <eblake@redhat.com>
62458         float: fix broken MirBSD header
62459         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
62460         * doc/posix-headers/float.texi (float.h): Document it.
62462 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62464         fts: use O_NOFOLLOW to avoid race condition when opening a directory
62465         * lib/fts.c (opendirat): New arg extra_flags.
62466         (__opendir2): Use it to avoid following symlinks when opening
62467         a directory, if symlinks are not supposed to be followed.  See
62468         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
62470         fdopendir: preserve argument fd before returning
62471         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
62472         (fdopendir_with_dup, fd_clone_opendir): New static functions.
62473         (fdopendir): Use them, arranging for FD to be open to the same
62474         directory that it was when it started.  (It might be temporarily
62475         closed while fdopendir is running, so this not thread- or
62476         signal-safe.)  Be careful to do the right thing even when file
62477         descriptors are scarce and dup fails with errno == EMFILE.  See
62478         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
62480 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
62482         regex: Pass the system regex if its only problem is 32-bit regoff_t.
62483         * NEWS: Document change.
62484         * m4/regex.m4: Disable test for regoff_t size.
62486 2010-09-13  Jim Meyering  <meyering@redhat.com>
62488         fts: don't operate on an invalid file descriptor after failed dup
62489         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
62490         negative file descriptor.
62492 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62494         savedir: add streamsavedir, deprecate fdsavedir
62495         * NEWS: Mention deprecation of fdsavedir.
62496         * lib/savedir.c (streamsavedir): New extern function, whose name
62497         ends in "savedir" to be consistent with the others.  This differs
62498         from savedirstream in that it doesn't close its argument.  The
62499         next version of GNU tar will use this instead of fdsavedir, to
62500         avoid some race conditions and conserve file descriptors.
62501         (savedirstream): Reimplement as a wrapper around streamsavedir.
62502         (fdsavedir): Add a comment deprecating this function.  As far as
62503         I know, only GNU tar used it, and GNU tar doesn't need it any more.
62504         * lib/savedir.h (streamsavedir): New decl.
62505         (fdsavedir): Add a comment deprecating this.
62507 2010-09-10  Bruno Haible  <bruno@clisp.org>
62509         langinfo: Fix last commit.
62510         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
62511         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
62512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62514 2010-09-10  Bruno Haible  <bruno@clisp.org>
62516         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
62517         * lib/progreloc.c (O_EXEC): Define fallback.
62519 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
62521         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
62522         * NEWS: Document recent changes to fcntl-h.
62523         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
62524         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
62525         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
62526         Similarly for O_SEARCH; this last was already true, but not documented.
62527         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
62528         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
62529         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
62530         Likewise.
62531         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
62532         is zero, not whether it is defined.
62533         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
62534         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
62535         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
62537 2010-09-10  Bruno Haible  <bruno@clisp.org>
62539         langinfo, nl_langinfo: Fix for IRIX 5.3.
62540         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
62541         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
62542         HAVE_LANGINFO_YESEXPR.
62543         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
62544         HAVE_LANGINFO_YESEXPR.
62545         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
62546         HAVE_LANGINFO_T_FMT_AMPM is 0.
62547         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
62548         HAVE_LANGINFO_YESEXPR is 0.
62549         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
62550         NOEXPR.
62551         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
62552         * doc/posix-functions/nl_langinfo.texi: Likewise.
62553         Reported by Eric Blake.
62555 2010-09-10  Bruno Haible  <bruno@clisp.org>
62557         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
62558         * doc/glibc-functions/login_tty.texi: Mention the include file problem
62559         on FreeBSD 8.0 and OpenBSD 4.6.
62560         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
62561         * m4/pty_h.m4 (gl_PTY_H): Likewise.
62562         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
62563         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
62564         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
62565         ac_includes_default.
62566         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62568 2010-09-09  Eric Blake  <eblake@redhat.com>
62570         strsignal: work around NetBSD bug
62571         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
62572         * lib/string.in.h (includes): Likewise.
62573         * doc/posix-functions/strsignal.texi (strsignal): Document the
62574         bug.
62575         Reported by Nelson H. F. Beebe.
62577         gnulib-tool: work with NetBSD /bin/sh
62578         * gnulib-tool (func_cache_var, func_cache_lookup_module)
62579         (func_get_description, func_get_comment, func_get_status)
62580         (func_get_notice, func_get_applicability, func_get_filelist)
62581         (func_get_dependencies, func_get_autoconf_early_snippet)
62582         (func_get_autoconf_snippet, func_get_automake_snippet)
62583         (func_get_include_directive, func_get_link_directive)
62584         (func_get_license, func_get_maintainer, func_import): Avoid
62585         shell syntax errors from parsing syntax extensions.
62587 2010-09-09  Bruno Haible  <bruno@clisp.org>
62589         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62590         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
62591         a reliable way to determine whether the 'alias' command works.
62593 2010-09-08  Jim Meyering  <meyering@redhat.com>
62595         init.sh: penalize a set-x-impaired shell; don't disqualify it
62596         * tests/init.sh: Too many shells corrupt application stderr when
62597         you set -x, so we can't afford to disqualify them, since at least
62598         on Irix-6.5, that would disqualify all bourne shells.
62599         Instead, use a two-pass approach.
62600         On the first pass, try to find a shell that meets the stricter
62601         condition that set -x does not corrupt stderr.
62602         If no shell meets the stricter condition, retest each candidate
62603         shell, but without that extra condition.  Finally, when
62604         VERBOSE=yes is requested and set -x might cause trouble, simply
62605         issue a warning and refrain from enabling debug output.
62607 2010-09-08  Eric Blake  <eblake@redhat.com>
62609         unsetenv: fix OpenBSD bug
62610         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
62611         * doc/posix-functions/unsetenv.texi (unsetenv): Update
62612         documentation.
62613         Reported by Jim Meyering.
62615         strtod: work around IRIX 6.5 bug
62616         * lib/strtod.c (strtod): Reparse number on shorter string if
62617         exponent parse was invalid.
62618         * tests/test-strtod.c (main): Add check for "0x1p 2".
62619         Reported by Tom G. Christensen.
62621         getopt: optimize previous patch
62622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
62623         empty variable.  Speed up awk script.
62624         Reported by Paolo Bonzini.
62626 2010-09-08  Jim Meyering  <meyering@redhat.com>
62628         test.sh: disqualify shells for which set -x corrupts stderr
62629         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
62630         and OpenBSD 4.7.  They make it so with "set -x", environment settings
62631         appear in stderr output.  For example, this command:
62632             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
62633         prints "P=1" on those two systems:
62635 2010-09-08  Bruno Haible  <bruno@clisp.org>
62637         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62638         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
62639         commands, because some shells ignore redirections when there is an
62640         error in the command lookup.
62641         Reported by Eric Blake.
62643 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
62645         * lib/regex.h: Fix a mention of `regex_compile' (should be
62646         `re_compile_pattern').
62647         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
62648         (re_set_registers): Correct name of parameter in comment.
62650         * doc/regex.texi: Add documentation for missing syntax flags.
62651         Remove commented-out documentation of defunct syntax option
62652         RE_NO_EMPTY_ALTS.
62653         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
62654         Add documentation of re_set_registers.
62655         Document trick to re-use a pattern buffer by setting fastmap manually.
62656         Update documentation of struct re_pattern_buffer per public members.
62657         Uncomment documentation of equivalence class operators and
62658         collating symbol operators, since they are now implemented,
62659         Explain leftmost-longest matching in relation to alternatives.
62660         Tidy documentation of substring matching.
62661         Remove POSIX documentation, which is done better in
62662         glibc, and refer the reader there. Keep BSD API documentation, as
62663         that is not readily available elsewhere.
62665 2010-09-07  Eric Blake  <eblake@redhat.com>
62667         getopt: handle POSIXLY_CORRECT set but not exported
62668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
62669         export state of POSIXLY_CORRECT, due to bash set -o posix.
62670         Reported by Dustin J. Mitchell.
62672 2010-09-05  Bruno Haible  <bruno@clisp.org>
62674         gnulib-tool: Highlight the changed options.
62675         * gnulib-tool (func_usage): Display the --import, --add-import,
62676         --remove-import explanations in bold font.
62678 2010-09-06  Karl Berry  <karl@gnu.org>
62680         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
62682 2010-09-05  Bruno Haible  <bruno@clisp.org>
62684         uniwidth/width: Update comment.
62685         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
62686         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
62688 2010-09-05  Bruno Haible  <bruno@clisp.org>
62690         isinf, isnan: Relax license.
62691         * modules/isinf (License): Change from GPL to LGPL, with consent from
62692         Ben Pfaff.
62693         * modules/isnan (License): Likewise.
62694         Requested by Ludovic Courtès.
62696 2010-09-04  Bruno Haible  <bruno@clisp.org>
62698         gnulib-tool: Help migration from --import to --add-import or --update.
62699         * gnulib-tool: Emit a verbose error message when --import is used
62700         without any module name.
62702 2010-09-04  Bruno Haible  <bruno@clisp.org>
62704         Update doc about gnulib-tool.
62705         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
62706         'gnulib-tool --update' in more detail.
62707         Reported by Eric Blake.
62709 2010-09-04  Bruno Haible  <bruno@clisp.org>
62711         gnulib-tool: Change --import. New options --add/remove-import.
62712         * gnulib-tool: New options --add-import, --remove-import.
62713         (func_usage): Document them.
62714         (have_associative): Define always.
62715         (func_import): In import mode, don't merge the specified settings with
62716         the cached settings. Implement remove-import mode.
62717         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
62718         Explain when to use them versus --import.
62719         (Simple update): Use --add-import instead of --import.
62720         * NEWS: Mention the change.
62722 2010-09-04  Bruno Haible  <bruno@clisp.org>
62724         * doc/gnulib-tool.texi (Initial import): Update paragraph about
62725         separate gnulib.mk.
62727 2010-09-04  Bruno Haible  <bruno@clisp.org>
62729         gnulib-tool: Don't talk about CVS any more.
62730         * gnulib-tool (func_usage, func_import): Write "version control"
62731         instead of CVS.
62733 2010-09-04  Jim Meyering  <meyering@redhat.com>
62735         maint.mk: avoid obscure sc_copyright_check failure in coreutils
62736         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
62737         false positives (whose names may be ill-chosen) when searching
62738         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
62739         would cause a false-positive.
62741         avoid coreutils "make distcheck" failure
62742         Coreutils tests with an absolute build directory name that contains
62743         a space.  Not quoting this directory name caused a failure.
62744         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
62745         * tests/test-vc-list-files-cvs.sh: Likewise.
62747 2010-09-04  Bruno Haible  <bruno@clisp.org>
62749         gnulib-tool: Avoid error when run in a package without Makefile.am.
62750         * gnulib-tool: When collecting the m4dirs in a package that does not
62751         have a Makefile.am, eliminate those directories that contain no
62752         gnulib-cache.m4. Fix expression that counts these directories.
62754 2010-09-04  Bruno Haible  <bruno@clisp.org>
62756         update-copyright test: Improve output when perl is missing or too old.
62757         * tests/test-update-copyright.sh: Move test of Perl version down after
62758         the test whether Perl exists. Provide an explanation relating Perl's
62759         error message to Automake's SKIP: message.
62761 2010-09-04  Bruno Haible  <bruno@clisp.org>
62763         Don't augment PATH in TESTS_ENVIRONMENT.
62764         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
62765         set abs_aux_dir instead of augmenting PATH.
62766         * modules/vc-list-files-tests (Makefile.am): Likewise.
62767         * tests/test-update-copyright.sh: Augment PATH here.
62768         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
62769         path_prepend_.
62770         * tests/test-vc-list-files-git.sh: Likewise.
62772 2010-09-04  Jim Meyering  <meyering@redhat.com>
62774         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
62775         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
62777 2010-09-04  Bruno Haible  <bruno@clisp.org>
62779         strdup: Fix compilation error in C++ mode.
62780         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
62781         the macro.
62783 2010-09-04  Bruno Haible  <bruno@clisp.org>
62785         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
62786         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
62787         macro into a function.
62788         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
62790 2010-09-04  Bruno Haible  <bruno@clisp.org>
62792         Set PATH_SEPARATOR the same way autoconf does.
62793         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
62794         the value of PATH_SEPARATOR the same way autoconf-generated configure
62795         scripts do.
62796         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
62797         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62799 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62801         Set PATH_SEPARATOR the same way autoconf does.
62802         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
62803         the same way autoconf-generated configure scripts do.
62804         * posix-modules: Likewise.
62806 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62808         hash: fix safe_hasher const typo
62809         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
62810         const; otherwise, there is a type error later.
62812 2010-09-02  Jim Meyering  <meyering@redhat.com>
62814         test-update-copyright.sh: require perl 5.8.0
62815         * tests/test-update-copyright.sh: Require 5.8.0,
62816         which Tom G. Christensen has confirmed is adequate,
62817         while 5.6.1 is not.
62819 2010-09-02  Eric Blake  <eblake@redhat.com>
62821         tests: init.sh improvements for re-exec'ing with zsh
62822         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
62823         -vx through shell re-exec.
62824         Reported by Tom G. Christensen.
62826         wctype: fix typo in previous commit
62827         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
62828         Reported by Ludovic Courtès.
62830 2010-09-02  Jim Meyering  <meyering@redhat.com>
62832         test-update-copyright.sh: skip test if Perl is too old
62833         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
62834         Reported by Tom G. Christensen.
62836 2010-09-02  Bruno Haible  <bruno@clisp.org>
62838         wctype: Avoid compilation error on IRIX 6.5.30.
62839         * lib/wctype.in.h (iswblank): Declare with a replacement if
62840         REPLACE_ISWBLANK is set.
62841         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
62842         declared. Set REPLACE_ISWBLANK.
62843         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
62844         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
62845         * doc/posix-headers/wctype.texi: Likewise.
62846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62848 2010-09-01  Bruno Haible  <bruno@clisp.org>
62850         New module 'socketlib'.
62851         * modules/socketlib: New file.
62852         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
62853         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
62854         * modules/sockets (Depends-on): Add socketlib.
62855         Suggested by Sam Steingold <sds@gnu.org>.
62857 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62859         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
62861         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
62862         when one needs search access to a directory but not read access.
62863         On systems where it is available, it works in some cases where
62864         O_RDONLY does not, namely on directories that are searchable but
62865         not readable, and which need only to be searchable.  If O_SEARCH
62866         is not available, fall back to the traditional method of using
62867         O_RDONLY.
62869         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
62870         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
62871         when opening a directory that needs only to be searchable.
62872         * lib/chdir-safer.c (chdir_no_follow): Likewise.
62873         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
62874         * lib/openat-proc.c (openat_proc_name): Likewise.
62875         * lib/openat.c (openat_needs_fchdir): Likewise.
62876         * lib/save-cwd.c (save_cwd): Likewise.
62877         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
62879 2010-08-28  Bruno Haible  <bruno@clisp.org>
62881         New module 'host-cpu-c-abi'.
62882         * modules/host-cpu-c-abi: New file.
62883         * m4/host-cpu-c-abi.m4: New file, based on part of
62884         clisp/src/m4/general.m4.
62885         Requested by Sam Steingold <sds@gnu.org>.
62887 2010-08-31  Eric Blake  <eblake@redhat.com>
62888         and Jim Meyering  <meyering@redhat.com>
62890         hash: factor, and guard against misbehaving hasher function
62891         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
62892         of table->hasher's return value.  Also protect against a hash value
62893         so large that adding it to table->bucket results in a NULL pointer.
62894         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62895         Use it in place of open-coded check-and-abort.
62897 2010-08-30  Bruno Haible  <bruno@clisp.org>
62899         hash: silence spurious clang warning
62900         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62901         Reported by Eric Blake.
62903 2010-08-30  Eric Blake  <eblake@redhat.com>
62905         strstr, memmem, strcasestr: avoid leaked shell message
62906         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62907         FreeBSD.
62908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62911         tests: silence clang warning
62912         * tests/test-malloca.c (do_allocation): Avoid dead store.
62914 2010-08-29  Bruno Haible  <bruno@clisp.org>
62916         gettext: Fix recent mistake.
62917         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62919 2010-08-29  Bruno Haible  <bruno@clisp.org>
62921         selinux-h: Offer a --without-selinux option.
62922         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62923         --without-selinux was specified, skip all tests and define
62924         HAVE_SELINUX_SELINUX_H to 0.
62925         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62926         set LIB_SELINUX to empty.
62927         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62928         gl_LIBSELINUX. If --without-selinux was specified, replace
62929         selinux/context.h.
62930         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62932 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62933             Bruno Haible  <bruno@clisp.org>
62935         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62936         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62937         of HAVE_REALLOC.
62938         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62939         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62940         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62941         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62943 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62944             Bruno Haible  <bruno@clisp.org>
62946         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62947         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62948         HAVE_CALLOC.
62949         * lib/xmalloc.c: Update accordingly.
62950         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62951         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62952         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62954 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62955             Bruno Haible  <bruno@clisp.org>
62957         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62958         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62959         HAVE_MALLOC.
62960         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62961         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62962         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62964 2010-08-29  Bruno Haible  <bruno@clisp.org>
62966         Update modules list.
62967         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62968         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62969         (String handling <string.h>): Add astrxfrm.
62970         (File system functions): Add readlinkat.
62972 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62974         Tests for module 'realloc-gnu'.
62975         * modules/realloc-gnu-tests: New file.
62976         * tests/test-realloc-gnu.c: New file.
62978         Tests for module 'calloc-gnu'.
62979         * modules/calloc-gnu-tests: New file.
62980         * tests/test-calloc-gnu.c: New file.
62982         Tests for module 'malloc-gnu'.
62983         * modules/malloc-gnu-tests: New file.
62984         * tests/test-malloc-gnu.c: New file.
62986 2010-08-28  Bruno Haible  <bruno@clisp.org>
62988         Rename module 'realloc' -> 'realloc-gnu'.
62989         * modules/realloc-gnu: New file, copied from modules/realloc.
62990         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62991         obsolete.
62992         * modules/mgetgroups (Depends-on): Update.
62993         * doc/posix-functions/realloc.texi: Update.
62994         * NEWS: Mention the change.
62996         Rename module 'calloc' -> 'calloc-gnu'.
62997         * modules/calloc-gnu: New file, copied from modules/calloc.
62998         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62999         obsolete.
63000         * doc/posix-functions/calloc.texi: Update.
63001         * NEWS: Mention the change.
63003         Rename module 'malloc' -> 'malloc-gnu'.
63004         * modules/malloc-gnu: New file, copied from modules/malloc.
63005         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
63006         obsolete.
63007         * modules/argp (Depends-on): Update.
63008         * modules/regex (Depends-on): Update.
63009         * doc/posix-functions/malloc.texi: Update.
63010         * NEWS: Mention the change.
63012 2010-08-28  Eric Blake  <eblake@redhat.com>
63014         pread, pwrite: add missing dependency
63015         * modules/pread (Depends-on): Add extensions.
63016         * modules/pwrite (Depends-on): Likewise.
63018 2010-08-28  Bruno Haible  <bruno@clisp.org>
63020         unistr/u*-strchr: Fix tests dependencies.
63021         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
63022         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
63023         Reported by Ian Beckwith <ianb@erislabs.net>.
63025 2010-08-28  Bruno Haible  <bruno@clisp.org>
63027         read-file: Don't occupy too much unused memory.
63028         * lib/read-file.c (fread_file): Shrink the buffer at the end.
63030 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
63031             Eric Blake  <eblake@redhat.com>
63032             Bruno Haible  <bruno@clisp.org>
63034         read-file: Avoid memory reallocations with regular files.
63035         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
63036         (fread_file): With regular files, use the remaining length as the
63037         initial buffer size.  Check against overflow.
63038         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
63039         sys_stat.
63041 2010-08-28  Bruno Haible  <bruno@clisp.org>
63043         ftello: Relax license.
63044         * modules/ftello (License): Relax to LGPLv2+.
63045         Reported by Eric Blake.
63047 2010-08-28  Bruno Haible  <bruno@clisp.org>
63049         Avoid relocwrapper link errors due to gnulib replacement functions.
63050         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
63051         function.
63052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63054 2010-08-28  Bruno Haible  <bruno@clisp.org>
63056         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
63057         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
63058         defined.
63059         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
63060         Suggested by Eric Blake.
63062 2010-08-28  Bruno Haible  <bruno@clisp.org>
63064         sys_socket, netdb: Ensure socklen_t gets defined.
63065         * modules/sys_socket (Depends-on): Add socklen.
63066         * modules/netdb (Depends-on): Likewise.
63067         * modules/getaddrinfo (Depends-on): Remove socklen.
63068         * modules/getsockopt (Depends-on): Likewise.
63069         * modules/setsockopt (Depends-on): Likewise.
63070         * tests/test-sys_socket.c: Check that socklen_t is defined.
63071         * tests/test-netdb.c: Likewise.
63072         * m4/socklen.m4: Update comments.
63073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63075 2010-08-27  Eric Blake  <eblake@redhat.com>
63077         login_tty: add missing dependency
63078         * modules/login_tty (Depends-on): Add pty.
63080 2010-08-26  Eric Blake  <eblake@redhat.com>
63082         lib-symbol-versions: fix m4 quoting
63083         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
63084         format for AC_LINK_IFELSE.
63086         glob: fix compile test
63087         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
63089         btowc: fix missing file
63090         * modules/btowc (Files): Also ship locale-fr.m4.
63092         lseek: fix link test
63093         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
63094         AC_LINK_IFELSE.
63096         include_next: silence autoconf 2.68 warning
63097         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
63098         AC_COMPILE_IFELSE as special.
63099         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
63100         autoconf < 2.68.
63102         acl: fix compilation test
63103         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
63104         AC_COMPILE_IFELSE.
63106 2010-08-26  Bruno Haible  <bruno@clisp.org>
63108         Modernize AC_TRY_RUN invocations.
63109         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
63110         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63111         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
63112         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
63113         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
63114         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
63115         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63116         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63117         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
63118         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63119         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63120         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63121         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63122         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63124         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
63125         gl_MBRLEN_NUL_RETVAL): Likewise.
63126         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
63127         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
63128         Likewise.
63129         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63130         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63131         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63132         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63133         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
63134         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
63135         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
63136         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
63137         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
63138         Likewise.
63139         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
63140         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
63141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63142         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
63143         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
63144         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63145         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63146         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
63147         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63150 2010-08-26  Bruno Haible  <bruno@clisp.org>
63152         Modernize AC_TRY_LINK invocations.
63153         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
63154         AC_TRY_LINK.
63155         * m4/argp.m4 (gl_ARGP): Likewise.
63156         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
63157         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
63158         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63159         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63160         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63161         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
63162         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
63163         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
63164         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63165         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
63166         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63167         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
63168         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
63169         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
63170         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63171         * m4/hostent.m4 (gl_HOSTENT): Likewise.
63172         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63173         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
63174         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
63175         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
63176         Likewise.
63177         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
63178         Likewise.
63179         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
63180         Likewise.
63181         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
63182         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
63183         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
63184         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
63185         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
63186         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63187         * m4/servent.m4 (gl_SERVENT): Likewise.
63188         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
63189         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
63190         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
63191         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
63192         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
63193         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
63194         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
63195         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
63196         * modules/tsearch-tests (configure.ac): Likewise.
63198 2010-08-26  Bruno Haible  <bruno@clisp.org>
63200         Modernize AC_TRY_COMPILE invocations.
63201         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
63202         AC_TRY_COMPILE.
63203         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
63204         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
63205         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
63206         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63207         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
63208         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63209         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63210         * m4/lock.m4 (gl_LOCK): Likewise.
63211         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
63212         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63213         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
63214         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
63215         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
63216         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
63217         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
63218         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
63219         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
63220         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
63221         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
63222         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63223         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
63224         extraneous semicolon.
63226 2010-08-26  Jim Meyering  <meyering@redhat.com>
63228         stat-time: relax license LGPL
63229         * modules/stat-time (License): Change from GPL to LGPL,
63230         with consent from all contributors, for use in libguile.
63231         Requested by Ludovic Courtès.
63233 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
63235         poll: return immediately on POLLHUP.
63236         * lib/poll.c (poll): Always set timeout before wait_timeout is
63237         computed.
63239 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63241         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
63242         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
63243         rmdir ("dir/.//"), unlinkat.
63245 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63247         stdbool: avoid spurious failure with modern xlc
63248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
63250 2010-08-24  Bruno Haible  <bruno@clisp.org>
63252         getloadavg: simplify code
63253         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
63254         gl_have_func. Update comments.
63256 2010-08-24  Eric Blake  <eblake@redhat.com>
63258         getloadavg: don't define SVR4 on cygwin
63259         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
63260         only define SVR4 when -lkvm is required.
63261         Reported by Yaakov Selkowitz.
63263 2010-08-24  Bruno Haible  <bruno@clisp.org>
63265         priv-set: fix comment
63266         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
63268 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63270         priv-set: fix comments
63271         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
63272         to match code, as suggested by David Bartley in:
63273         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
63275 2010-08-23  Eric Blake  <eblake@redhat.com>
63277         stdbool: avoid rejecting clang
63278         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
63279         * tests/test-stdbool.c: Enable more tests if using the system
63280         <stdbool.h> instead of the gnulib replacement.
63281         (main): Move xlc bug test to a runtime test for all compilers.
63282         Reported by Anders Kaseorg.
63284         argz: fix shell quoting issue
63285         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
63286         Reported by Charles Wilson.
63288 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
63289             Erik Faye-Lund <kusmabite@gmail.com>
63291         poll, select: handle ERROR_BROKEN_PIPE.
63292         * lib/poll.c (win32_compute_revents): Return POLLHUP when
63293         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
63294         * lib/select.c (win32_compute_revents): Do not mark a pipe
63295         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
63297 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
63299         fts: allow compilation with C++
63300         * lib/fts_.h: Specify extern "C" linkage with C++.
63302 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63304         Fix gnulib-tool sed script de-commentation for AIX sed.
63305         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
63306         sed.
63308 2010-08-17  Eric Blake  <eblake@redhat.com>
63310         test-stddef: test for (some) offsetof bugs
63311         * tests/test-stddef.c: Enhance test to ensure correct type of
63312         offsetof.
63313         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
63314         that we are not fixing at this time.
63316 2010-08-15  Bruno Haible  <bruno@clisp.org>
63318         stpncpy: Allow stpncpy to be defined as a macro.
63319         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
63320         if it's already correctly declared.
63321         * lib/string.in.h (stpncpy): Undefine before redefining.
63322         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
63324 2010-08-14  Bruno Haible  <bruno@clisp.org>
63326         Rename module 'memxfrm' to 'amemxfrm'.
63327         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
63328         (amemxfrm): Renamed from memxfrm.
63329         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
63330         (amemxfrm): Renamed from memxfrm.
63331         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
63332         * NEWS: Mention the change.
63333         * MODULES.html.sh (String handling <string.h>): Update.
63334         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
63335         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
63336         * lib/unicase/u16-casexfrm.c: Likewise.
63337         * lib/unicase/u32-casexfrm.c: Likewise.
63338         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
63339         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
63340         * lib/uninorm/u16-normxfrm.c: Likewise.
63341         * lib/uninorm/u32-normxfrm.c: Likewise.
63342         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
63343         memxfrm.
63344         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
63345         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
63346         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
63347         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
63348         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
63349         Suggested by Paul Eggert.
63351 2010-08-14  Bruno Haible  <bruno@clisp.org>
63353         Tests for module 'astrxfrm'.
63354         * modules/astrxfrm-tests: New file.
63355         * tests/test-astrxfrm.c: New file.
63357         New module 'astrxfrm'.
63358         * lib/astrxfrm.h: New file.
63359         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
63360         * modules/astrxfrm: New file.
63362 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
63364         regex: Tweak doc.
63365         * doc/regex.texi (Overview): Don't mention regex.c.
63366         (GNU Regular Expression Compiling): Likewise.
63367         (Match-end-of-line Operator): Mention 'not_eol'.
63369 2010-08-14  Brian Gough  <bjg@gnu.org>
63370             Bruno Haible  <bruno@clisp.org>
63372         git-merge-changelog: add doc relating to use with bzr and hg.
63373         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
63375 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
63377         pthread: fix pthread.h creation for srcdir != builddir
63378         * modules/pthread (Makefile.am): Fix the rule to work also in a
63379         non-srcdir build.
63381 2010-08-13  Karl Berry  <karl@gnu.org>
63383         * doc/regex.texi (Predefined Syntaxes): @smallexample.
63384         * doc/posix-*/*: force line break before @url of POSIX
63385         specifications.
63386         Suggested by Werner Lemberg.
63388 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63390         strtod: fix const diagnostic
63391         * lib/strtod.c (strtod): Don't assign const char * to char *,
63392         as this elicits a warning from GCC when warnings are enabled.
63394 2010-08-10  Pádraig Brady  <P@draigbrady.com>
63395         and Eric Blake  <eblake@redhat.com>
63397         copy-acl: ignore ENOTSUP on HP-UX
63398         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
63399         so that it is available for HP-UX.
63400         * lib/copy-acl.c (qcopy_acl): Use it.
63401         Reported by Patrick M. Callahan.
63403 2010-08-10  Eric Blake  <eblake@redhat.com>
63405         open, chown: relax license
63406         * modules/open (License): Change to LGPLv2+, with consent by all
63407         authors, for use in augeas.
63408         * modules/chown (License): Likewise.
63409         * modules/lchown (Likewise): Likewise.
63410         Requested by Adam Stokes.
63412 2010-08-09  Karl Berry  <karl@gnu.org>
63414         * build-aux/ar-lib: new file, import from Automake.
63415         * config/srclist.txt: autocheck for updates.
63417 2010-08-09  Eric Blake  <eblake@redhat.com>
63419         readlinkat: adjust client modules
63420         * modules/areadlinkat (Depends-on): Use readlinkat, not
63421         symlinkat.
63422         * modules/areadlinkat-with-size (Depends-on): Likewise.
63424         mknod: be more vocal about danger of running tests as root
63425         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
63426         root, since that is just asking for problems.
63427         Suggested by Bruno Haible, based on a report by Rainer Tammer.
63429         readlinkat: split into its own module
63430         * modules/symlinkat: Split readlinkat...
63431         * modules/readlinkat: ...into separate module.
63432         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
63433         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
63434         * lib/symlinkat.c (readlinkat): Move...
63435         * lib/readlinkat.c: ...into new file.
63436         * modules/symlinkat-tests: Split readlinkat test...
63437         * modules/readlinkat-tests: ...into separate module.
63438         * tests/test-symlinkat.c: Split...
63439         * tests/test-readlinkat.c: ...into new file.
63440         * NEWS: Document the split.
63441         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63442         * lib/unistd.in.h (readlinkat): Likewise.
63443         Suggested by Bruno Haible.
63445 2010-08-08  Bruno Haible  <bruno@clisp.org>
63447         memxfrm: Speed up.
63448         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
63449         that usually only one call to strxfrm is necessary for each string
63450         part.
63451         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63453 2010-08-07  Karl Berry  <karl@gnu.org>
63455         * doc/posix-headers/limits.texi,
63456         * doc/posix-functions/malloc.texi,
63457         * doc/posix-functions/strsignal.texi: missing @item.
63458         * doc/ld-version-script.texi: spurious leading i.
63459         * doc/regex.texi (Interval Operators): no commas inside @var.
63461 2010-08-01  Bruno Haible  <bruno@clisp.org>
63463         Integrate the regex documentation.
63464         * doc/gnulib.texi: Define 'cn' index.
63465         (Regular expressions): New a chapter that includes regex.texi and
63466         regexprops-generic.texi.
63467         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
63468         syntax.
63470         Whitespace cleanup.
63471         * doc/regex.texi: Remove trailing spaces.
63473         Add regex documentation.
63474         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
63475         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
63476         Written by Kathy A. Hargreaves and Karl Berry.
63478 2010-08-01  Bruno Haible  <bruno@clisp.org>
63480         link: Update documentation.
63481         * doc/posix-functions/link.texi: Update regarding Solaris.
63483 2010-07-31  Bruno Haible  <bruno@clisp.org>
63485         Update modules list.
63486         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
63487         (String handling <string.h>): Add memcmp2, memxfrm.
63488         (Container data structures): Add xlist, xsublist, xoset.
63489         (Core language properties): Add alignof, unused-parameter.
63490         (Process control, Numeric conversion functions <stdlib.h>): Renamed
63491         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
63492         (Unibyte characters <ctype.h>): New section.
63493         (String handling <string.h>): New section.
63494         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
63495         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
63496         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
63497         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
63498         tan, tanh, tanl, y0, y1, yn.
63499         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
63500         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
63501         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
63502         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
63503         unlockpt, vdprintf, vdprintf-posix.
63504         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
63505         (File system functions): Add concat-filename, sys_file, sys_ioctl,
63506         xconcat-filename.
63507         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
63508         getdtablesize, pipe2, pipe2-safer.
63509         (Security): New section.
63510         (Networking functions): Add accept4.
63511         (Signal handling): Add sigpipe.
63512         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
63513         mbmemcasecoll.
63514         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
63515         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
63516         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
63517         pipe-filter-ii.
63518         (Misc): Add argp-version-etc, login_tty, parse-duration.
63520 2010-07-31  Bruno Haible  <bruno@clisp.org>
63522         Improve doc in MODULES.html.
63523         * modules/linkat (Description): Add the word "function".
63524         * modules/mkfifo (Description): Likewise.
63525         * modules/mknod (Description): Likewise.
63526         * modules/remove (Description): Likewise.
63527         * modules/renameat (Description): Likewise.
63528         * modules/stat (Description): Likewise.
63529         * modules/symlink (Description): Likewise.
63530         * modules/unlink (Description): Likewise.
63532 2010-07-31  Bruno Haible  <bruno@clisp.org>
63534         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
63535         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
63536         option --enable/disable-c++ instead of --enable/disable-cxx.
63537         * NEWS: Mention the change.
63539 2010-07-31  Bruno Haible  <bruno@clisp.org>
63541         readlink, areadlink: Relax test a bit.
63542         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
63543         alternative to ENOTDIR.
63544         * tests/test-areadlink.h (test_areadlink): Likewise.
63545         Reported by Rainer Tammer.
63547 2010-07-31  Bruno Haible  <bruno@clisp.org>
63549         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
63550         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
63551         character, perform the search using U_STRCHR.
63552         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
63553         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
63554         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
63555         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
63556         Suggested by Paolo Bonzini.
63558 2010-07-31  Bruno Haible  <bruno@clisp.org>
63560         unistr/u*-strstr: Fix dependencies.
63561         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
63562         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
63563         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
63565 2010-07-31  Bruno Haible  <bruno@clisp.org>
63567         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
63568         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
63569         the beginning of the loop.
63570         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
63571         cases in 'switch' statement.
63573         unistr/u8-strchr: Fix several bugs.
63574         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
63575         the string. When not found, return NULL, not a pointer near the end.
63577         More tests for unistr/u8-strchr.
63578         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
63579         that the function does not read past the first occurrence of the byte
63580         being searched.
63581         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
63582         * tests/unistr/test-u16-strchr.c (main): New function.
63583         * tests/unistr/test-u32-strchr.c (main): New function.
63585 2010-07-31  Bruno Haible  <bruno@clisp.org>
63587         posix-modules: Ignore backup files of documentation files.
63588         * posix-modules: grep only through files named *.texi.
63590 2010-07-31  Bruno Haible  <bruno@clisp.org>
63592         symlinkat: Fix documentation.
63593         * doc/posix-functions/readlinkat.texi: Fix module name.
63595 2010-07-31  Bruno Haible  <bruno@clisp.org>
63597         fchownat: Replace also when chown has the trailing slash bug.
63598         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
63599         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
63600         introduced on 2010-04-10.
63601         Reported by Rainer Tammer.
63603 2010-07-31  Bruno Haible  <bruno@clisp.org>
63605         linkat: Work around AIX 7.1 bug.
63606         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
63607         whether linkat handles trailing slash correctly. If not, replace linkat
63608         and define LINKAT_TRAILING_SLASH_BUG.
63609         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
63610         check whether (fd1,file1) points to a directory if file1 or file2 ends
63611         in a slash. Code taken from lib/link.c.
63612         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
63613         Reported by Rainer Tammer.
63615 2010-07-31  Bruno Haible  <bruno@clisp.org>
63617         Correctly determine whether pow is available in libc on AIX 7 with xlc.
63618         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
63619         This disables an xlc optimization that was causing wrong test results.
63620         Reported by Rainer Tammer.
63622 2010-07-31  Bruno Haible  <bruno@clisp.org>
63624         iconv: Work around AIX 6.1..7.1 bug.
63625         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
63626         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
63627         cross-compiling, guess no on all versions of AIX.
63628         Reported by Rainer Tammer.
63630 2010-07-31  Bruno Haible  <bruno@clisp.org>
63632         readlink: Relax test a bit.
63633         * tests/test-readlink.h (test_readlink): Allow different errno value
63634         when readlink is called with a file name that ends in / and refers to
63635         a file.
63636         Suggested by Eric Blake.
63637         Reported by Rainer Tammer.
63639 2010-07-31  Bruno Haible  <bruno@clisp.org>
63641         copysign: Does not require -lm on glibc systems.
63642         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
63643         gl_COMMON_DOUBLE_MATHFUNC.
63644         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
63646 2010-07-31  Bruno Haible  <bruno@clisp.org>
63648         duplocale: Work around AIX 7.1 bug.
63649         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
63650         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
63651         * lib/duplocale.c (rpl_duplocale): Update comment.
63652         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
63653         Reported by Rainer Tammer.
63655 2010-07-30  Bruno Haible  <bruno@clisp.org>
63657         dirfd: Avoid link error on AIX 7.1.
63658         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
63659         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
63660         exist, set REPLACE_DIRFD.
63661         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
63662         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
63663         * doc/posix-functions/dirfd.texi: Update.
63664         Reported by Rainer Tammer.
63666 2010-07-30  Eric Blake  <eblake@redhat.com>
63668         strtod: next round of AIX fixes
63669         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
63670         exponent.
63671         * tests/test-strtod.c (main): Enhance tests.
63672         * doc/posix-functions/strtod.texi (strtod): Document next bug.
63673         Reported by Rainer Tammer.
63675         futimens: fix configure check
63676         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
63677         Reported by Bruno Haible.
63679 2010-07-30  Bruno Haible  <bruno@clisp.org>
63681         getline: Update regarding AIX.
63682         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
63683         Reported by Rainer Tammer.
63685 2010-07-30  Bruno Haible  <bruno@clisp.org>
63687         wcwidth: Drop replacement on AIX 7.
63688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
63689         AIX 7.
63690         Reported by Rainer Tammer.
63692 2010-07-30  Bruno Haible  <bruno@clisp.org>
63694         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
63695         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
63696         a 'char *'.
63697         Reported by Rainer Tammer.
63699 2010-07-30  Bruno Haible  <bruno@clisp.org>
63701         unlink: Update regarding AIX.
63702         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
63703         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
63704         Reported by Rainer Tammer.
63706 2010-07-30  Bruno Haible  <bruno@clisp.org>
63708         symlink: Update regarding AIX.
63709         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
63710         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
63711         Reported by Rainer Tammer.
63713 2010-07-30  Bruno Haible  <bruno@clisp.org>
63715         strndup: Update regarding AIX.
63716         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
63717         AIX 7.
63718         Reported by Rainer Tammer.
63720 2010-07-30  Bruno Haible  <bruno@clisp.org>
63722         stat: Update regarding AIX.
63723         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
63724         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
63725         Reported by Rainer Tammer.
63727 2010-07-30  Bruno Haible  <bruno@clisp.org>
63729         truncl: Fix autoconf test.
63730         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
63731         whether truncl works.
63732         Reported by Rainer Tammer.
63734 2010-07-30  Bruno Haible  <bruno@clisp.org>
63736         round: Update regarding AIX.
63737         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
63738         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
63739         Reported by Rainer Tammer.
63741 2010-07-30  Bruno Haible  <bruno@clisp.org>
63743         rename: Update regarding AIX.
63744         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
63745         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
63746         Reported by Rainer Tammer.
63748 2010-07-30  Bruno Haible  <bruno@clisp.org>
63750         printf.m4: Update regarding AIX.
63751         * m4/printf.m4: Update comments regarding AIX.
63752         Reported by Rainer Tammer.
63754 2010-07-30  Bruno Haible  <bruno@clisp.org>
63756         iconv: Update regarding AIX.
63757         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
63758         AIX 7.
63759         Reported by Rainer Tammer.
63761 2010-07-30  Bruno Haible  <bruno@clisp.org>
63763         getopt: Update regarding AIX.
63764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
63765         no on AIX.
63766         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
63767         Reported by Rainer Tammer.
63769 2010-07-30  Bruno Haible  <bruno@clisp.org>
63771         ldexpl; Update regarding AIX.
63772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
63773         on AIX 7.
63774         Reported by Rainer Tammer.
63776 2010-07-30  Bruno Haible  <bruno@clisp.org>
63778         frexpl: Update regarding AIX.
63779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
63780         on AIX 7.
63781         Reported by Rainer Tammer.
63783 2010-07-30  Bruno Haible  <bruno@clisp.org>
63785         open, fopen: Update regarding AIX.
63786         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
63787         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
63788         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
63789         * doc/posix-functions/fopen.texi: Likewise.
63790         Reported by Rainer Tammer.
63792 2010-07-30  Bruno Haible  <bruno@clisp.org>
63794         chown: Update doc regarding AIX.
63795         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
63796         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
63797         Reported by Rainer Tammer.
63799 2010-07-30  Eric Blake  <eblake@redhat.com>
63801         strtod: fix bug in replacement function on AIX
63802         * lib/strtod.c (strtod): Special case broken "0x" parse in
63803         underlying strtod.
63804         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
63805         * doc/posix-functions/strtod.texi (strtod): Likewise.
63806         Reported by Rainer Tammer.
63808 2010-07-30  Bruno Haible  <bruno@clisp.org>
63810         mbrlen: Fix cross-compilation guess for AIX.
63811         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
63812         guess. Leftover from 2008-12-22.
63814 2010-07-30  Bruno Haible  <bruno@clisp.org>
63816         mbrtowc: Fix cross-compilation guess for AIX.
63817         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
63818         guess. Leftover from 2008-12-21.
63820 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
63822         init.sh: work around trap limitation of some shells
63823         * tests/init.sh (setup_): Move exit trap outside of shell function.
63825 2010-07-29  Eric Blake  <eblake@redhat.com>
63827         strtod: aid debugging
63828         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
63829         understanding why strtod is rejected.
63831 2010-07-28  Bruno Haible  <bruno@clisp.org>
63833         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
63834         * lib/unistr/u8-chr.c: Include <string.h>.
63835         * tests/unistr/test-u8-chr.c: Likewise.
63836         * tests/unistr/test-u16-chr.c: Likewise.
63837         * tests/unistr/test-u32-chr.c: Likewise.
63838         * tests/unistr/test-u8-strchr.c: Likewise.
63839         * tests/unistr/test-u16-strchr.c: Likewise.
63840         * tests/unistr/test-u32-strchr.c: Likewise.
63841         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
63842         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
63843         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
63844         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
63846 2010-07-28  Bruno Haible  <bruno@clisp.org>
63848         Use spaces for indentation, not tabs.
63849         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
63851 2010-07-27  Bruno Haible  <bruno@clisp.org>
63853         mbspcasecmp: Fix function specification.
63854         * lib/string.in.h (mbspcasecmp): Fix specification comment.
63855         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
63856         Reported by Eric Blake <eblake@redhat.com>.
63858 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
63860         timespec: use cast and not conditional, as truncation isn't possible
63861         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
63862         instead of a conditional.  Comment about the situation in more detail.
63863         This undoes most of the 2009-10-29 patch.
63865 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
63867         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
63868         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
63869         * lib/unistr/u8-strchr.c: Likewise.
63870         * modules/unistr/u8-chr: Depend on memchr.
63872         unistr/u*-strchr: add tests
63873         * modules/unistr/u8-strchr-tests: New file.
63874         * modules/unistr/u16-strchr-tests: New file.
63875         * modules/unistr/u32-strchr-tests: New file.
63876         * tests/unistr/test-strchr.h: New file.
63877         * tests/unistr/test-u8-strchr.c: New file.
63878         * tests/unistr/test-u16-strchr.c: New file.
63879         * tests/unistr/test-u32-strchr.c: New file.
63881         unistr/u*-chr: test multibyte sequences more
63882         * tests/unistr/test-chr.h: Do complete testing of the characters in the
63883         test vector.
63884         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
63885         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
63886         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
63888         unistr/u*-chr: test multibyte sequences
63889         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
63891         unistr/u*-chr: prepare for multibyte tests
63892         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
63893         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
63894         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63895         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63896         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63897         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63899 2010-07-18  Bruno Haible  <bruno@clisp.org>
63901         unistr/u8-strchr: Optimize non-ASCII argument case.
63902         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63903         because the first byte often matches anyway.
63904         Reported by Pádraig Brady <P@draigbrady.com>.
63906 2010-07-15  Karl Berry  <karl@gnu.org>
63908         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63910 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63912         getcwd: on Solaris, work better if ancestors are inaccessible
63913         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63914         buffer and size, try again with a large buffer.  This works better
63915         on Solaris, since its getcwd succeeds even if the path to the root
63916         is inaccessible, and this is helpful in common cases such as .zfs
63917         hidden directories.  Problem reported by J Chapman Flack in
63918         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63919         Use system getcwd if it's declared, not merely if it's partly
63920         working; use the partly-working test only to avoid needless effort
63921         if the system getcwd fails.
63922         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63923         comment that was already obsolete and is now even more obsolete.
63924         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63925         now might call strdup.
63927 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63929         pthread: Add enough so that coreutils/src/sort.c compiles.
63930         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63931         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63932         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63933         Include <sys/types.h>, in case it defines pthread_t.
63934         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63935         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63936         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63937         (pthread_rwlockattr_t, pthread_spinlock_t):
63938         New typedefs, if HAVE_PTHREAD_T is not defined.
63939         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63940         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63941         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63942         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63943         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63944         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63945         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63946         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63947         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63948         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63949         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63950         New macros.
63951         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63952         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63953         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63954         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63955         (pthread_spin_unlock): New dummy functions.
63956         (pthread_create): Return EAGAIN; don't set errno.
63957         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63958         require AC_C_INLINE.
63959         * modules/pthread (Depends-on): Add sched, time.
63960         (pthread.h): Use AM_V_GEN.
63962 2010-07-13  Bruno Haible  <bruno@clisp.org>
63964         striconveh: Don't malloc memory if the result buffer is sufficient.
63965         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63966         buffer if its size is sufficient.
63967         Reported by Ludovic Courtès <ludo@gnu.org>.
63969 2010-07-13  Bruno Haible  <bruno@clisp.org>
63971         strtod: Add safety check.
63972         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63974 2010-07-12  Bruno Haible  <bruno@clisp.org>
63976         Unify tests that set gl_cv_func_ldexpl_no_libm.
63977         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63978         gl_FUNC_LDEXPL.
63979         (gl_FUNC_LDEXPL): Invoke it.
63980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63982 2010-07-12  Bruno Haible  <bruno@clisp.org>
63984         Unify tests that set gl_cv_func_ldexp_no_libm.
63985         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63986         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63987         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63988         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63989         * modules/strtod (Files): Add m4/ldexp.m4.
63991 2010-07-12  Bruno Haible  <bruno@clisp.org>
63993         Unify tests that set gl_cv_func_frexpl_no_libm.
63994         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63995         gl_FUNC_FREXPL_NO_LIBM.
63996         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63999 2010-07-12  Bruno Haible  <bruno@clisp.org>
64001         Unify tests that set gl_cv_func_frexp_no_libm.
64002         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
64003         gl_FUNC_FREXP_NO_LIBM.
64004         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
64005         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64007 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
64009         memcoll: clarify sizes versus lengths, document better, and tweak perf
64010         * lib/memcoll.c (strcoll_loop, memcoll0):
64011         Improve quality of descriptive comments.  Name variables
64012         consistently as to whether they are lengths (which do not include
64013         terminating null) versus sizes (which do).
64014         * lib/xmemcoll.c (xmemcoll0): Likewise.
64015         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
64016         returned when s1size == 0; this is easier to compile and saves
64017         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
64019 2010-07-12  Bruno Haible  <bruno@clisp.org>
64021         Tests for module '_Exit'.
64022         * modules/_Exit-tests: New file.
64023         * tests/test-_Exit.sh: New file.
64024         * tests/test-_Exit.c: New file.
64026         New module '_Exit'.
64027         * lib/stdlib.in.h (__attribute__): New macro.
64028         (_Exit): New declaration.
64029         * lib/_Exit.c: New file.
64030         * m4/_Exit.m4: New file.
64031         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
64032         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
64033         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
64034         * modules/_Exit: New file.
64035         * tests/test-stdlib-c++.cc (_Exit): Check signature.
64036         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
64038 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
64040         strtod: make it more-accurate typically, and don't require libm
64041         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
64042         Include limits.h.  Don't include string.h.
64043         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
64044         (locale_isspace): New function, so that no casts are needed to
64045         check whether *s is a space.
64046         (ldexp): Provide an unused dummy if not available.
64047         (scale_radix_exp, parse_number, underlying_strtod): New functions.
64048         (strtod): Use them.  This implementation prefers to use the
64049         underlying strtod if available, falling back on our own code
64050         only to fix known bugs.  This is more likely to produce an
64051         accurate result.  Also, it avoids the use of libm functions.
64052         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
64053         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
64054         was absent, but it caused a test failure with coreutils.
64055         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
64056         with libm.
64057         * modules/strtod (Makefile.am, Link): libm is no longer needed.
64058         * modules/strtod-tests (Makefile.am): Likewise.
64060 2010-07-11  Pádraig Brady  <P@draigBrady.com>
64061             Bruno Haible  <bruno@clisp.org>
64063         unistr/u8-strchr: Optimize ASCII argument case.
64064         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
64066 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64068         (x)memcoll: minor tweaks
64069         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
64070         is after the type that it qualifies.
64071         (memcoll0): Likewise.
64072         * lib/memcoll.h (memcoll0): Likewise.
64073         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
64074         * lib/xmemcoll.h (xmemcoll0): Likewise.
64075         * lib/memcoll.c (memcoll0): Correct the comment.  This function
64076         differs from memcoll in that the NUL byte is part of the argument.
64077         Omit the abort-checks, as performance is a real issue here.  Plus,
64078         the checks were wrong anyway (an off-by-one error).  Omit local
64079         variable 'diff', as it's a bit clearer that way.
64080         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
64081         no longer needed.
64083 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
64085         (x)memcoll: speedup when input is known to be NUL delimited
64086         * lib/memcoll.c: Include stdlib.
64087         (memcoll0): New function.
64088         (strcoll_loop): New function, refactored for use in both memcoll
64089         and memcoll0.
64090         * lib/memcoll.h (memcoll0): Add prototype.
64091         * lib/xmemcoll.c (xmemcoll0): New function.
64092         (collate_error): New function, refactored for use in both xmemcoll
64093         and xmemcoll0.
64094         * lib/xmemcoll.h (xmemcoll0): Add prototype.
64095         * m4/memcoll.m4: add inline invocation.
64097 2010-07-06  Pádraig Brady  <P@draigBrady.com>
64099         * build-aux/bootstrap: Remove any local translations
64100         from the translation project synchronization directory,
64101         so that local only translations are not distributed.
64103 2010-07-04  Bruno Haible  <bruno@clisp.org>
64105         fsusage: Clarify which code applies to which platforms.
64106         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
64107         platform.
64108         * lib/fsusage.c (get_fs_usage): Likewise.
64110 2010-07-04  Bruno Haible  <bruno@clisp.org>
64112         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
64113         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
64114         Reported by Martin Lambers <marlam@marlam.de>.
64116 2010-07-04  Jim Meyering  <meyering@redhat.com>
64118         hash: once again explicitly disallow insertion of NULL
64119         * lib/hash.c (hash_insert0): Reinstate just-removed test:
64120         inserting a NULL pointer cannot work with these functions.
64121         Add a comment with details.
64122         This reverts part of the 2010-07-01 commit, 5bef1a35
64123         "hash: extend module to deal with non-pointer keys".
64125 2010-07-01  Bruno Haible  <bruno@clisp.org>
64127         stdbool: Update doc.
64128         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
64129         Info from Christian Weisgerber <naddy@mips.inka.de>.
64131 2010-07-01  Jim Meyering  <meyering@redhat.com>
64133         hash: extend module to deal with non-pointer keys
64134         * lib/hash.c (hash_insert0): New interface, much like hash_insert
64135         but that allows insertion of non-pointer entries.
64136         Do not disallow an ENTRY value of NULL.
64137         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
64138         * lib/hash.h (hash_insert0): Declare.
64140 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64142         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
64143         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
64144         not present (i.e. with autoconf 2.59 and when using gettextize, not
64145         gnulib), require AC_GNU_SOURCE instead.
64147 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
64149         idpriv-drop: Fix tests.
64150         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
64151         not to the test-idpriv-droptemp program.
64153 2010-06-29  Bruno Haible  <bruno@clisp.org>
64155         string: Fix syntax error with g++ 2.96.
64156         * lib/string.in.h (__pure__): Remove definition.
64157         (_GL_ATTRIBUTE_PURE): New macro.
64158         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
64159         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
64160         Reported by Christian Weisgerber <naddy@mips.inka.de>.
64162 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
64164         unitypes: Fix bug introduced on 2010-05-18.
64165         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
64167 2010-06-22  Eric Blake  <eblake@redhat.com>
64169         memmem: slight optimization
64170         * lib/str-two-way.h (critical_factorization): Update comments.
64171         Reduce work during factorization phase.
64172         Reported by Carlos Bueno <carlos@bueno.org>.
64174 2010-06-21  Bruno Haible  <bruno@clisp.org>
64176         Fix HAVE_CALLOC_POSIX misnomer.
64177         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
64178         !HAVE_CALLOC_POSIX.
64179         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
64180         HAVE_CALLOC_POSIX.
64181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
64182         instead of HAVE_CALLOC_POSIX.
64183         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
64184         HAVE_CALLOC_POSIX.
64186         Use modern idiom for calloc() replacement.
64187         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
64188         AC_FUNC_CALLOC.
64189         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
64190         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
64191         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
64192         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
64193         (gl_REPLACE_CALLOC): New macro.
64195 2010-06-21  Bruno Haible  <bruno@clisp.org>
64197         Fix HAVE_REALLOC_POSIX misnomer.
64198         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
64199         !HAVE_REALLOC_POSIX.
64200         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
64201         HAVE_REALLOC_POSIX.
64202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
64203         instead of HAVE_REALLOC_POSIX.
64204         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
64205         HAVE_REALLOC_POSIX.
64207         Use modern idiom for realloc() replacement.
64208         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
64209         AC_FUNC_REALLOC.
64210         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
64211         Autoconf's AC_FUNC_REALLOC.
64212         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
64213         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
64214         (gl_REPLACE_REALLOC): New macro.
64215         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
64217 2010-06-21  Bruno Haible  <bruno@clisp.org>
64219         Fix HAVE_MALLOC_POSIX misnomer.
64220         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
64221         !HAVE_MALLOC_POSIX.
64222         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
64223         HAVE_MALLOC_POSIX.
64224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
64225         instead of HAVE_MALLOC_POSIX.
64226         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
64227         HAVE_MALLOC_POSIX.
64229         Use modern idiom for malloc() replacement.
64230         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
64231         AC_FUNC_MALLOC.
64232         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
64233         Autoconf's AC_FUNC_MALLOC.
64234         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
64235         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
64236         (gl_REPLACE_MALLOC): New macro.
64237         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
64239 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
64241         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
64242         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
64243         This macro takes 3 arguments, not 4.
64245 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
64247         ipv6: fix detection under mingw
64248         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
64249         in6_addr.
64251 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
64253         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
64254         that strtod() works when cross-compiling to a glibc version known
64255         to work.
64257 2010-06-15  Bruno Haible  <bruno@clisp.org>
64259         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
64261 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
64263         select: Correct timeout.
64264         * lib/select.c (rpl_select): Compute wait_timeout correctly.
64266 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64268         git-version-gen: init shell var to avoid env var influence
64269         * build-aux/git-version-gen (v): Init shell var to empty.
64271 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
64273         priv-set: Don't assume that priv.h exists merely because getppriv does.
64274         See Jan Andersen's bug report about AIX 5L in
64275         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
64276         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
64277         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
64278         * lib/priv-set.h: Likewise.
64279         * tests/test-priv-set.c: Likewise.
64281 2010-06-13  Bruno Haible  <bruno@clisp.org>
64283         relocatable: Make it easier to test whether to install wrappers.
64284         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
64285         RELOCATABLE_VIA_WRAPPER.
64287 2010-06-13  Bruno Haible  <bruno@clisp.org>
64289         gnulib-tool: Display specified modules and dependencies differently.
64290         * gnulib-tool (func_show_module_list): New function.
64291         (func_import, func_create_testdir): Invoke it.
64292         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
64294 2010-06-13  Bruno Haible  <bruno@clisp.org>
64296         gnulib-tool: Align code of func_import and func_create_testdir.
64297         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
64298         specified_modules.
64300 2010-06-12  Jim Meyering  <meyering@redhat.com>
64302         test-inttostr: avoid spurious failure on Solaris 9
64303         * tests/test-inttostr.c (main): Skip the test when snprintf fails
64304         to accept "%ju".  Reported by Bruno Haible.
64306 2010-06-11  Jim Meyering  <meyering@redhat.com>
64308         test-sys_socket: mark variables as used more readably
64309         * tests/test-sys_socket.c (main): Mark otherwise unused variables
64310         as "used" explicitly via (void) statement casts.  This is more
64311         readable than using them in an artificial return expression.
64312         Suggestion from Bruno Haible.
64314 2010-06-11  Bruno Haible  <bruno@clisp.org>
64316         Avoid some more warnings from "gcc -Wwrite-strings".
64317         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
64318         to 'const char *'.
64319         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
64320         * tests/test-c-strcasestr.c (main): Likewise.
64321         * tests/test-mbscasestr1.c (main): Likewise.
64322         * tests/test-mbscasestr2.c (main): Likewise.
64323         * tests/test-memmem.c (main): Likewise.
64324         * tests/test-strstr.c (main): Likewise.
64325         * tests/test-strcasestr.c (main): Likewise.
64327 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64329         init.sh: change framework_failure_ to fail with status 99, not 1
64330         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
64331         automake's parallel-tests rule that this is an unexpected failure,
64332         even if the test is listed in XFAIL_TESTS.
64334 2010-06-11  Jim Meyering  <meyering@redhat.com>
64336         test-inttostr: avoid warnings about 4-6KB literal strings
64337         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
64338         Include "macros.h", for its definition of ASSERT.
64339         (CK): s/assert/ASSERT/
64340         * modules/inttostr-tests (Files): Add macros.h.
64342         init.sh: don't use $ME_ or skip_ before they are defined
64343         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
64344         their first uses.  Also hoist their companions: warn_, fail_,
64345         framework_failure_, $stderr_fileno.  Prompted by a patch from
64346         Stefano Lattarini.
64348         test-sys_socket: avoid set-but-not-used warnings from gcc
64349         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
64350         avoid warning about set-but-not-used variables.
64352         test-xvasprintf: avoid 'const' discard warnings
64353         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
64354         "const" when assigning from literal strings.
64355         (test_xasprintf): Add "void" in function argument list to placate
64356         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
64358         tests: avoid compilation warnings in argmatch and exclude tests...
64359         in packages that define ARGMATCH_DIE_DECL, like coreutils.
64360         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
64361         Since it always exits, declare with the "noreturn" attribute.
64362         * tests/test-argmatch.c: Likewise.
64364         tests: avoid 'const' discard warnings in mbsstr tests
64365         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
64366         * tests/test-mbsstr2.c (main): Likewise.
64368         test-verify: avoid warning from gcc's -Wmissing-declarations
64369         * tests/test-verify.c (function): Declare to be static.
64371         test-inttostr.c: include <string.h> for use of strcmp
64372         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
64374         test-linkat: avoid failed assertion on "other" architectures
64375         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
64376         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
64377         sparc: https://bugs.launchpad.net/bugs/591968
64379 2010-06-11  Jim Meyering  <meyering@redhat.com>
64381         printf.m4: avoid autoconf's "Expanded Before Required" warning
64382         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
64383         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
64384         autoconf warning.
64386 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
64388         Replacement header templates are now named with ".in", not "_".
64389         * doc/gnulib-intro.texi: Correct.
64391 2010-06-10  Jim Meyering  <meyering@redhat.com>
64393         inttostr-tests: depend on snprintf, not snprintf-posix
64394         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
64395         snprintf-posix, to avoid this aclocal failure:
64396           missing file gnulib-tests/vasnprintf.c
64397           configure.ac:45: error: expected source file, required through \
64398           AC_LIBSOURCES, not found
64400 2010-06-10  Jim Meyering  <meyering@redhat.com>
64402         inttostr: add a new function, inttostr, and tests
64403         The namesake function was not available.  The existence of the
64404         template file, inttostr.c makes its addition nontrivial.
64405         * lib/anytostr.c: Rename from inttostr.c.
64406         (anytostr): Rename from inttostr.
64407         * lib/inttostr.c: New file.
64408         * modules/inttostr (Files): Add anytostr.c.
64409         (Makefile.am): Set lib_SOURCES instead of ...
64410         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
64411         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
64412         * lib/offtostr.c: Likewise.
64413         * lib/uinttostr.c: Likewise.
64414         * lib/umaxtostr.c: Likewise.
64415         * modules/inttostr-tests: New file.
64416         * tests/test-inttostr.c: New file.  Test these functions.
64418 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
64419             Bruno Haible  <bruno@clisp.org>
64421         Add "Extending Gnulib" chapter to manual.
64422         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
64423         chapter.
64424         (Extending Gnulib): New chapter.
64425         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
64426         chapter.
64428 2010-06-09  Bruno Haible  <bruno@clisp.org>
64430         Avoid relocwrapper link errors due to gnulib replacement functions.
64431         * lib/areadlink.c: Use the system's malloc, realloc functions.
64432         (areadlink): Set errno to ENOMEM explicitly.
64433         * modules/areadlink (Depends-on): Remove malloc-posix.
64434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64436 2010-06-09  Bruno Haible  <bruno@clisp.org>
64438         Avoid relocwrapper link errors due to gnulib replacement functions.
64439         * lib/canonicalize-lgpl.c: Use the system's malloc function.
64440         * lib/malloca.c: Likewise.
64441         * lib/relocatable.c: Likewise.
64442         * lib/progreloc.c: Use the system's malloc, sprintf functions.
64443         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
64444         * lib/setenv.c: Use the system's malloc, realloc functions.
64445         * lib/strerror.c: Use the system's sprintf function.
64446         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64448 2010-06-04  Bruno Haible  <bruno@clisp.org>
64450         Prefer documented low-level autoconf macro names.
64451         * m4/lib-link.m4: Use m4_translit instead of translit.
64452         * m4/environ.m4: Likewise.
64453         * m4/mathfunc.m4: Likewise.
64454         * m4/onceonly.m4: Likewise.
64455         * m4/stdint.m4: Likewise.
64456         Suggested by Eric Blake.
64458 2010-06-04  Martin Lambers  <marlam@marlam.de>
64459             Bruno Haible  <bruno@clisp.org>
64461         havelib: Allow library names with '+' characters.
64462         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64463         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
64465 2010-06-09  Bruno Haible  <bruno@clisp.org>
64467         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
64468         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
64469         realloc failed.
64471 2010-06-08  Peter Simons  <simons@cryp.to>
64473         maint.mk: make the news-check rule more configurable
64474         * top/maint.mk (news-check-lines-spec): New variable.
64475         (news-check): Use "sed -n 1,10p" in place of "head".
64477 2010-06-07  Jim Meyering  <meyering@redhat.com>
64479         do-release-commit-and-tag: fix typo in --help
64480         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
64482         regex: avoid new dead-code warning with gcc-4.6.0
64483         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
64484         if-block containing a while-loop.  It's been unused for at least
64485         5 years.
64487 2010-06-05  Bruno Haible  <bruno@clisp.org>
64489         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
64490         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
64492 2010-06-04  Bruno Haible  <bruno@clisp.org>
64494         Update to GNU gettext 0.18.1.
64495         * modules/gettext (configure.ac): Require gettext infrastructure from
64496         version 0.18.1.
64498 2010-06-03  Bruno Haible  <bruno@clisp.org>
64500         Don't use AC_LIBOBJ with file names in subdirectories.
64501         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
64502         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
64503         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
64504         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
64505         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
64506         gl_LIBUNISTRING_LIBSOURCE.
64507         (Makefile.am): Augment lib_SOURCES here, conditionally.
64508         * NEWS: Drop requirement for Automake option 'subdir-objects'.
64510 2010-06-03  Bruno Haible  <bruno@clisp.org>
64512         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
64513         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
64514         expansion does not end with a newline.
64515         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
64516         unnecessary newline.
64518 2010-06-03  Bruno Haible  <bruno@clisp.org>
64520         Reduce dependencies.
64521         * tests/test-quotearg.h: New file, extracted from
64522         tests/test-quotearg.c.
64523         * tests/test-quotearg-simple.c: New file, extracted from
64524         tests/test-quotearg.c.
64525         * tests/test-quotearg.c: Don't include <ctype.h>.
64526         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
64527         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
64528         use_quote_double_quotes, use_quotearg_colon): Moved to
64529         tests/test-quotearg.h.
64530         (results_g, flag_results, custom_quotes, custom_results): Moved
64531         to tests/test-quotearg-simple.c.
64532         (main): Moved the part that does not depend on gettext to
64533         tests/test-quotearg-simple.c. Return 77 if the test cannot be
64534         performed.
64535         * modules/quotearg-simple: New file.
64536         * modules/quotearg-simple-tests: New file.
64537         * modules/quotearg (Depends-on): Add quotearg-simple.
64538         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
64539         (Files): Add tests/test-quotearg.h.
64540         Reported by Paolo Bonzini.
64542 2010-06-03  Bruno Haible  <bruno@clisp.org>
64544         Reduce dependencies.
64545         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
64547 2010-06-03  Bruno Haible  <bruno@clisp.org>
64549         time: Undefine more broken macros.
64550         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
64551         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
64552         Reported by Eric Blake.
64554 2010-06-03  Bruno Haible  <bruno@clisp.org>
64556         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
64557         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
64558         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
64559         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
64560         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
64561         Reported by Ludovic Courtès <ludo@gnu.org>.
64563 2010-06-02  Eric Blake  <eblake@redhat.com>
64565         time: work with mingw + pthreads-win32 library
64566         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
64567         if timespec is defined only in pthread.h.
64568         * modules/time (Makefile.am): Substitute it.
64569         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
64570         <pthread.h>, when needed.
64571         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
64572         from the library.
64574 2010-05-31  Bruno Haible  <bruno@clisp.org>
64576         Avoid expanding two macros in the wrong order.
64577         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
64578         gl_LIBUNISTRING if it is defined.
64579         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
64580         autoconf >= 2.64.
64581         Reported by Ludovic Courtès <ludo@gnu.org>.
64583 2010-05-27  Jim Meyering  <meyering@redhat.com>
64585         maint.mk: also prohibit "#undef" of always-defined symbols
64586         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
64587         Allow more than one space before the symbol name.
64588         (sc_prohibit_always-defined_macros): Use grep's -E, now that
64589         the regexp uses alternation.
64591 2010-05-26  Eric Blake  <eblake@redhat.com>
64593         maint.mk: avoid echo -e
64594         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
64595         Convert all uses of echo -* to printf.
64596         Reported by Matthias Bolte.
64598 2010-05-25  Bruno Haible  <bruno@clisp.org>
64600         Update to GNU gettext 0.18, part 2.
64601         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
64602         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
64604 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64606         Add missing include in test-pwrite.c.
64607         * tests/test-pwrite.c: Include string.h, for strcmp.
64609 2010-05-24  Bruno Haible  <bruno@clisp.org>
64611         * NEWS: Mention requirement for Automake option 'subdir-objects'.
64613 2010-05-24  Bruno Haible  <bruno@clisp.org>
64615         Don't use conversion with transliteration in u{8,16,32}_strcoll.
64616         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
64617         iconveh_error argument.
64618         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
64619         U_STRCONV_TO_LOCALE.
64620         * lib/unistr/u16-strcoll.c: Likewise.
64621         * lib/unistr/u32-strcoll.c: Likewise.
64622         * modules/unistr/u8-strcoll (Depends-on): Add
64623         uniconv/u8-strconv-to-enc, localcharset. Remove
64624         uniconv/u8-strconv-to-locale.
64625         (configure.ac): Bump version number.
64626         * modules/unistr/u16-strcoll (Depends-on): Add
64627         uniconv/u16-strconv-to-enc, localcharset. Remove
64628         uniconv/u16-strconv-to-locale.
64629         (configure.ac): Bump version number.
64630         * modules/unistr/u32-strcoll (Depends-on): Add
64631         uniconv/u32-strconv-to-enc, localcharset. Remove
64632         uniconv/u32-strconv-to-locale.
64633         (configure.ac): Bump version number.
64635 2010-05-24  Bruno Haible  <bruno@clisp.org>
64637         Avoid a test failure on NetBSD 5.0.
64638         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
64639         an iconv() bug.
64641 2010-05-24  Bruno Haible  <bruno@clisp.org>
64643         Adjust #include directive style.
64644         * modules/regex (Includes): Recommend to write <regex.h>.
64646 2010-05-24  Bruno Haible  <bruno@clisp.org>
64648         regex: Don't require alloca.
64649         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
64650         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
64651         only inside if (0).
64653 2010-05-23  Jim Meyering  <meyering@redhat.com>
64655         test-renameat.c: include <sys/stat.h>
64656         * tests/test-renameat.c: Include <sys/stat.h>; required for
64657         definition of S_IS* macros.
64659 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
64661         Update maintainer documentation for 'relocatable-prog' module.
64662         * doc/relocatable-maint.texi: Update.
64663         Comments by Bruno Haible.
64665 2010-05-23  Bruno Haible  <bruno@clisp.org>
64667         git-merge-changelog: Enable --split-merged-entry by default.
64668         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
64669         (usage): Don't mention this option any more.
64670         Reported by Ralf Wildenhues.
64672 2010-05-23  Jim Meyering  <meyering@redhat.com>
64674         test-pwrite: do not leave behind a test file named "out"
64675         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
64676         The trivial-looking use of init.sh is really necessary.
64677         It ensures that the temporary file, "out", is created in
64678         a temporary directory, and removed upon termination.
64679         * tests/test-pwrite.sh: Re-add file.
64680         * modules/pwrite-tests: Reference it.
64682 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64684         Fix output redirection buglet in init.sh.
64685         * tests/init.sh: Fix redirection of stderr.
64687 2010-05-20  Simon Josefsson  <simon@josefsson.org>
64689         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
64691 2010-05-17  Simon Josefsson  <simon@josefsson.org>
64693         * modules/valgrind-tests: New file.
64694         * m4/valgrind-tests.m4: New file.
64695         * doc/valgrind-tests.texi: New file.
64696         * doc/gnulib.texi (Running self-tests under valgrind): New
64697         section.
64699 2010-05-19  Bruno Haible  <bruno@clisp.org>
64701         Clean up dead code in recent commit.
64702         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
64703         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
64704         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
64705         Suggested by Paolo Bonzini.
64707 2010-05-19  Bruno Haible  <bruno@clisp.org>
64709         Avoid valgrind error reports from libunistring.
64710         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
64711         * modules/libunistring (Files): Add it.
64712         * modules/libunistring-optional (Files): Likewise.
64714 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
64715             Bruno Haible  <bruno@clisp.org>
64717         New module 'libunistring-optional'.
64718         * modules/libunistring-optional: New file.
64719         * m4/libunistring-base.m4: New file.
64720         * m4/libunistring-optional.m4: New file.
64721         * lib/unicase.in.h: Renamed from lib/unicase.h.
64722         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
64723         * lib/unictype.in.h: Renamed from lib/unictype.h.
64724         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
64725         * lib/uniname.in.h: Renamed from lib/uniname.h.
64726         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
64727         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
64728         * lib/unistr.in.h: Renamed from lib/unistr.h.
64729         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
64730         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
64731         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
64732         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
64733         gl_LIBUNISTRING. If the library was found, determine the installed
64734         version and set LIBUNISTRING_VERSION.
64735         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
64736         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
64737         handle a configuration option --with-included-libunistring.
64738         * modules/libunistring (Files): Add m4/absolute-header.m4.
64739         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
64740         Add m4/libunistring-base.m4.
64741         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64742         (Makefile.am): Build unicase.h from unicase.in.h.
64743         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
64744         Add m4/libunistring-base.m4.
64745         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64746         (Makefile.am): Build uniconv.h from uniconv.in.h.
64747         * modules/unictype/base (Files): Use unictype.in.h instead of
64748         unictype.h. Add m4/libunistring-base.m4.
64749         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64750         (Makefile.am): Build unictype.h from unictype.in.h.
64751         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
64752         Add m4/libunistring-base.m4.
64753         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64754         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
64755         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
64756         Add m4/libunistring-base.m4.
64757         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64758         (Makefile.am): Build uniname.h from uniname.in.h.
64759         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
64760         Add m4/libunistring-base.m4.
64761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64762         (Makefile.am): Build uninorm.h from uninorm.in.h.
64763         * modules/unistdio/base (Files): Use unistdio.in.h instead of
64764         unistdio.h. Add m4/libunistring-base.m4.
64765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64766         (Makefile.am): Build unistdio.h from unistdio.in.h.
64767         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
64768         Add m4/libunistring-base.m4.
64769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64770         (Makefile.am): Build unistr.h from unistr.in.h.
64771         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
64772         Add m4/libunistring-base.m4.
64773         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64774         (Makefile.am): Build unitypes.h from unitypes.in.h.
64775         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
64776         Add m4/libunistring-base.m4.
64777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64778         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
64779         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
64780         uniwidth.h. Add m4/libunistring-base.m4.
64781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64782         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
64783         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
64784         instead of augmenting lib_SOURCES.
64785         * modules/unicase/empty-suffix-context: Likewise.
64786         * modules/unicase/locale-language: Likewise.
64787         * modules/unicase/tolower: Likewise.
64788         * modules/unicase/totitle: Likewise.
64789         * modules/unicase/toupper: Likewise.
64790         * modules/unicase/u8-casecmp: Likewise.
64791         * modules/unicase/u8-casecoll: Likewise.
64792         * modules/unicase/u8-casefold: Likewise.
64793         * modules/unicase/u8-casexfrm: Likewise.
64794         * modules/unicase/u8-ct-casefold: Likewise.
64795         * modules/unicase/u8-ct-tolower: Likewise.
64796         * modules/unicase/u8-ct-totitle: Likewise.
64797         * modules/unicase/u8-ct-toupper: Likewise.
64798         * modules/unicase/u8-is-cased: Likewise.
64799         * modules/unicase/u8-is-casefolded: Likewise.
64800         * modules/unicase/u8-is-lowercase: Likewise.
64801         * modules/unicase/u8-is-titlecase: Likewise.
64802         * modules/unicase/u8-is-uppercase: Likewise.
64803         * modules/unicase/u8-prefix-context: Likewise.
64804         * modules/unicase/u8-suffix-context: Likewise.
64805         * modules/unicase/u8-tolower: Likewise.
64806         * modules/unicase/u8-totitle: Likewise.
64807         * modules/unicase/u8-toupper: Likewise.
64808         * modules/unicase/u16-casecmp: Likewise.
64809         * modules/unicase/u16-casecoll: Likewise.
64810         * modules/unicase/u16-casefold: Likewise.
64811         * modules/unicase/u16-casexfrm: Likewise.
64812         * modules/unicase/u16-ct-casefold: Likewise.
64813         * modules/unicase/u16-ct-tolower: Likewise.
64814         * modules/unicase/u16-ct-totitle: Likewise.
64815         * modules/unicase/u16-ct-toupper: Likewise.
64816         * modules/unicase/u16-is-cased: Likewise.
64817         * modules/unicase/u16-is-casefolded: Likewise.
64818         * modules/unicase/u16-is-lowercase: Likewise.
64819         * modules/unicase/u16-is-titlecase: Likewise.
64820         * modules/unicase/u16-is-uppercase: Likewise.
64821         * modules/unicase/u16-prefix-context: Likewise.
64822         * modules/unicase/u16-suffix-context: Likewise.
64823         * modules/unicase/u16-tolower: Likewise.
64824         * modules/unicase/u16-totitle: Likewise.
64825         * modules/unicase/u16-toupper: Likewise.
64826         * modules/unicase/u32-casecmp: Likewise.
64827         * modules/unicase/u32-casecoll: Likewise.
64828         * modules/unicase/u32-casefold: Likewise.
64829         * modules/unicase/u32-casexfrm: Likewise.
64830         * modules/unicase/u32-ct-casefold: Likewise.
64831         * modules/unicase/u32-ct-tolower: Likewise.
64832         * modules/unicase/u32-ct-totitle: Likewise.
64833         * modules/unicase/u32-ct-toupper: Likewise.
64834         * modules/unicase/u32-is-cased: Likewise.
64835         * modules/unicase/u32-is-casefolded: Likewise.
64836         * modules/unicase/u32-is-lowercase: Likewise.
64837         * modules/unicase/u32-is-titlecase: Likewise.
64838         * modules/unicase/u32-is-uppercase: Likewise.
64839         * modules/unicase/u32-prefix-context: Likewise.
64840         * modules/unicase/u32-suffix-context: Likewise.
64841         * modules/unicase/u32-tolower: Likewise.
64842         * modules/unicase/u32-totitle: Likewise.
64843         * modules/unicase/u32-toupper: Likewise.
64844         * modules/unicase/ulc-casecmp: Likewise.
64845         * modules/unicase/ulc-casecoll: Likewise.
64846         * modules/unicase/ulc-casexfrm: Likewise.
64847         * modules/uniconv/u8-conv-from-enc: Likewise.
64848         * modules/uniconv/u8-conv-to-enc: Likewise.
64849         * modules/uniconv/u8-strconv-from-enc: Likewise.
64850         * modules/uniconv/u8-strconv-from-locale: Likewise.
64851         * modules/uniconv/u8-strconv-to-enc: Likewise.
64852         * modules/uniconv/u8-strconv-to-locale: Likewise.
64853         * modules/uniconv/u16-conv-from-enc: Likewise.
64854         * modules/uniconv/u16-conv-to-enc: Likewise.
64855         * modules/uniconv/u16-strconv-from-enc: Likewise.
64856         * modules/uniconv/u16-strconv-from-locale: Likewise.
64857         * modules/uniconv/u16-strconv-to-enc: Likewise.
64858         * modules/uniconv/u16-strconv-to-locale: Likewise.
64859         * modules/uniconv/u32-conv-from-enc: Likewise.
64860         * modules/uniconv/u32-conv-to-enc: Likewise.
64861         * modules/uniconv/u32-strconv-from-enc: Likewise.
64862         * modules/uniconv/u32-strconv-from-locale: Likewise.
64863         * modules/uniconv/u32-strconv-to-enc: Likewise.
64864         * modules/uniconv/u32-strconv-to-locale: Likewise.
64865         * modules/unictype/bidicategory-byname: Likewise.
64866         * modules/unictype/bidicategory-name: Likewise.
64867         * modules/unictype/bidicategory-of: Likewise.
64868         * modules/unictype/bidicategory-test: Likewise.
64869         * modules/unictype/block-list: Likewise.
64870         * modules/unictype/block-test: Likewise.
64871         * modules/unictype/category-C: Likewise.
64872         * modules/unictype/category-Cc: Likewise.
64873         * modules/unictype/category-Cf: Likewise.
64874         * modules/unictype/category-Cn: Likewise.
64875         * modules/unictype/category-Co: Likewise.
64876         * modules/unictype/category-Cs: Likewise.
64877         * modules/unictype/category-L: Likewise.
64878         * modules/unictype/category-Ll: Likewise.
64879         * modules/unictype/category-Lm: Likewise.
64880         * modules/unictype/category-Lo: Likewise.
64881         * modules/unictype/category-Lt: Likewise.
64882         * modules/unictype/category-Lu: Likewise.
64883         * modules/unictype/category-M: Likewise.
64884         * modules/unictype/category-Mc: Likewise.
64885         * modules/unictype/category-Me: Likewise.
64886         * modules/unictype/category-Mn: Likewise.
64887         * modules/unictype/category-N: Likewise.
64888         * modules/unictype/category-Nd: Likewise.
64889         * modules/unictype/category-Nl: Likewise.
64890         * modules/unictype/category-No: Likewise.
64891         * modules/unictype/category-P: Likewise.
64892         * modules/unictype/category-Pc: Likewise.
64893         * modules/unictype/category-Pd: Likewise.
64894         * modules/unictype/category-Pe: Likewise.
64895         * modules/unictype/category-Pf: Likewise.
64896         * modules/unictype/category-Pi: Likewise.
64897         * modules/unictype/category-Po: Likewise.
64898         * modules/unictype/category-Ps: Likewise.
64899         * modules/unictype/category-S: Likewise.
64900         * modules/unictype/category-Sc: Likewise.
64901         * modules/unictype/category-Sk: Likewise.
64902         * modules/unictype/category-Sm: Likewise.
64903         * modules/unictype/category-So: Likewise.
64904         * modules/unictype/category-Z: Likewise.
64905         * modules/unictype/category-Zl: Likewise.
64906         * modules/unictype/category-Zp: Likewise.
64907         * modules/unictype/category-Zs: Likewise.
64908         * modules/unictype/category-and: Likewise.
64909         * modules/unictype/category-and-not: Likewise.
64910         * modules/unictype/category-byname: Likewise.
64911         * modules/unictype/category-name: Likewise.
64912         * modules/unictype/category-none: Likewise.
64913         * modules/unictype/category-of: Likewise.
64914         * modules/unictype/category-or: Likewise.
64915         * modules/unictype/category-test: Likewise.
64916         * modules/unictype/combining-class: Likewise.
64917         * modules/unictype/ctype-alnum: Likewise.
64918         * modules/unictype/ctype-alpha: Likewise.
64919         * modules/unictype/ctype-blank: Likewise.
64920         * modules/unictype/ctype-cntrl: Likewise.
64921         * modules/unictype/ctype-digit: Likewise.
64922         * modules/unictype/ctype-graph: Likewise.
64923         * modules/unictype/ctype-lower: Likewise.
64924         * modules/unictype/ctype-print: Likewise.
64925         * modules/unictype/ctype-punct: Likewise.
64926         * modules/unictype/ctype-space: Likewise.
64927         * modules/unictype/ctype-upper: Likewise.
64928         * modules/unictype/ctype-xdigit: Likewise.
64929         * modules/unictype/decimal-digit: Likewise.
64930         * modules/unictype/digit: Likewise.
64931         * modules/unictype/mirror: Likewise.
64932         * modules/unictype/numeric: Likewise.
64933         * modules/unictype/property-alphabetic: Likewise.
64934         * modules/unictype/property-ascii-hex-digit: Likewise.
64935         * modules/unictype/property-bidi-arabic-digit: Likewise.
64936         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64937         * modules/unictype/property-bidi-block-separator: Likewise.
64938         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64939         * modules/unictype/property-bidi-common-separator: Likewise.
64940         * modules/unictype/property-bidi-control: Likewise.
64941         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64942         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64943         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64944         * modules/unictype/property-bidi-european-digit: Likewise.
64945         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64946         * modules/unictype/property-bidi-left-to-right: Likewise.
64947         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64948         * modules/unictype/property-bidi-other-neutral: Likewise.
64949         * modules/unictype/property-bidi-pdf: Likewise.
64950         * modules/unictype/property-bidi-segment-separator: Likewise.
64951         * modules/unictype/property-bidi-whitespace: Likewise.
64952         * modules/unictype/property-byname: Likewise.
64953         * modules/unictype/property-combining: Likewise.
64954         * modules/unictype/property-composite: Likewise.
64955         * modules/unictype/property-currency-symbol: Likewise.
64956         * modules/unictype/property-dash: Likewise.
64957         * modules/unictype/property-decimal-digit: Likewise.
64958         * modules/unictype/property-default-ignorable-code-point: Likewise.
64959         * modules/unictype/property-deprecated: Likewise.
64960         * modules/unictype/property-diacritic: Likewise.
64961         * modules/unictype/property-extender: Likewise.
64962         * modules/unictype/property-format-control: Likewise.
64963         * modules/unictype/property-grapheme-base: Likewise.
64964         * modules/unictype/property-grapheme-extend: Likewise.
64965         * modules/unictype/property-grapheme-link: Likewise.
64966         * modules/unictype/property-hex-digit: Likewise.
64967         * modules/unictype/property-hyphen: Likewise.
64968         * modules/unictype/property-id-continue: Likewise.
64969         * modules/unictype/property-id-start: Likewise.
64970         * modules/unictype/property-ideographic: Likewise.
64971         * modules/unictype/property-ids-binary-operator: Likewise.
64972         * modules/unictype/property-ids-trinary-operator: Likewise.
64973         * modules/unictype/property-ignorable-control: Likewise.
64974         * modules/unictype/property-iso-control: Likewise.
64975         * modules/unictype/property-join-control: Likewise.
64976         * modules/unictype/property-left-of-pair: Likewise.
64977         * modules/unictype/property-line-separator: Likewise.
64978         * modules/unictype/property-logical-order-exception: Likewise.
64979         * modules/unictype/property-lowercase: Likewise.
64980         * modules/unictype/property-math: Likewise.
64981         * modules/unictype/property-non-break: Likewise.
64982         * modules/unictype/property-not-a-character: Likewise.
64983         * modules/unictype/property-numeric: Likewise.
64984         * modules/unictype/property-other-alphabetic: Likewise.
64985         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64986         * modules/unictype/property-other-grapheme-extend: Likewise.
64987         * modules/unictype/property-other-id-continue: Likewise.
64988         * modules/unictype/property-other-id-start: Likewise.
64989         * modules/unictype/property-other-lowercase: Likewise.
64990         * modules/unictype/property-other-math: Likewise.
64991         * modules/unictype/property-other-uppercase: Likewise.
64992         * modules/unictype/property-paired-punctuation: Likewise.
64993         * modules/unictype/property-paragraph-separator: Likewise.
64994         * modules/unictype/property-pattern-syntax: Likewise.
64995         * modules/unictype/property-pattern-white-space: Likewise.
64996         * modules/unictype/property-private-use: Likewise.
64997         * modules/unictype/property-punctuation: Likewise.
64998         * modules/unictype/property-quotation-mark: Likewise.
64999         * modules/unictype/property-radical: Likewise.
65000         * modules/unictype/property-sentence-terminal: Likewise.
65001         * modules/unictype/property-soft-dotted: Likewise.
65002         * modules/unictype/property-space: Likewise.
65003         * modules/unictype/property-terminal-punctuation: Likewise.
65004         * modules/unictype/property-test: Likewise.
65005         * modules/unictype/property-titlecase: Likewise.
65006         * modules/unictype/property-unassigned-code-value: Likewise.
65007         * modules/unictype/property-unified-ideograph: Likewise.
65008         * modules/unictype/property-uppercase: Likewise.
65009         * modules/unictype/property-variation-selector: Likewise.
65010         * modules/unictype/property-white-space: Likewise.
65011         * modules/unictype/property-xid-continue: Likewise.
65012         * modules/unictype/property-xid-start: Likewise.
65013         * modules/unictype/property-zero-width: Likewise.
65014         * modules/unictype/scripts: Likewise.
65015         * modules/unictype/syntax-c-ident: Likewise.
65016         * modules/unictype/syntax-c-whitespace: Likewise.
65017         * modules/unictype/syntax-java-ident: Likewise.
65018         * modules/unictype/syntax-java-whitespace: Likewise.
65019         * modules/unilbrk/u8-possible-linebreaks: Likewise.
65020         * modules/unilbrk/u8-width-linebreaks: Likewise.
65021         * modules/unilbrk/u16-possible-linebreaks: Likewise.
65022         * modules/unilbrk/u16-width-linebreaks: Likewise.
65023         * modules/unilbrk/u32-possible-linebreaks: Likewise.
65024         * modules/unilbrk/u32-width-linebreaks: Likewise.
65025         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
65026         * modules/unilbrk/ulc-width-linebreaks: Likewise.
65027         * modules/uniname/uniname: Likewise.
65028         * modules/uninorm/canonical-decomposition: Likewise.
65029         * modules/uninorm/composition: Likewise.
65030         * modules/uninorm/decomposing-form: Likewise.
65031         * modules/uninorm/decomposition: Likewise.
65032         * modules/uninorm/filter: Likewise.
65033         * modules/uninorm/nfc: Likewise.
65034         * modules/uninorm/nfd: Likewise.
65035         * modules/uninorm/nfkc: Likewise.
65036         * modules/uninorm/nfkd: Likewise.
65037         * modules/uninorm/u8-normalize: Likewise.
65038         * modules/uninorm/u8-normcmp: Likewise.
65039         * modules/uninorm/u8-normcoll: Likewise.
65040         * modules/uninorm/u8-normxfrm: Likewise.
65041         * modules/uninorm/u16-normalize: Likewise.
65042         * modules/uninorm/u16-normcmp: Likewise.
65043         * modules/uninorm/u16-normcoll: Likewise.
65044         * modules/uninorm/u16-normxfrm: Likewise.
65045         * modules/uninorm/u32-normalize: Likewise.
65046         * modules/uninorm/u32-normcmp: Likewise.
65047         * modules/uninorm/u32-normcoll: Likewise.
65048         * modules/uninorm/u32-normxfrm: Likewise.
65049         * modules/unistdio/u8-asnprintf: Likewise.
65050         * modules/unistdio/u8-asprintf: Likewise.
65051         * modules/unistdio/u8-snprintf: Likewise.
65052         * modules/unistdio/u8-sprintf: Likewise.
65053         * modules/unistdio/u8-u8-asnprintf: Likewise.
65054         * modules/unistdio/u8-u8-asprintf: Likewise.
65055         * modules/unistdio/u8-u8-snprintf: Likewise.
65056         * modules/unistdio/u8-u8-sprintf: Likewise.
65057         * modules/unistdio/u8-u8-vasnprintf: Likewise.
65058         * modules/unistdio/u8-u8-vasprintf: Likewise.
65059         * modules/unistdio/u8-u8-vsnprintf: Likewise.
65060         * modules/unistdio/u8-u8-vsprintf: Likewise.
65061         * modules/unistdio/u8-vasnprintf: Likewise.
65062         * modules/unistdio/u8-vasprintf: Likewise.
65063         * modules/unistdio/u8-vsnprintf: Likewise.
65064         * modules/unistdio/u8-vsprintf: Likewise.
65065         * modules/unistdio/u16-asnprintf: Likewise.
65066         * modules/unistdio/u16-asprintf: Likewise.
65067         * modules/unistdio/u16-snprintf: Likewise.
65068         * modules/unistdio/u16-sprintf: Likewise.
65069         * modules/unistdio/u16-u16-asnprintf: Likewise.
65070         * modules/unistdio/u16-u16-asprintf: Likewise.
65071         * modules/unistdio/u16-u16-snprintf: Likewise.
65072         * modules/unistdio/u16-u16-sprintf: Likewise.
65073         * modules/unistdio/u16-u16-vasnprintf: Likewise.
65074         * modules/unistdio/u16-u16-vasprintf: Likewise.
65075         * modules/unistdio/u16-u16-vsnprintf: Likewise.
65076         * modules/unistdio/u16-u16-vsprintf: Likewise.
65077         * modules/unistdio/u16-vasnprintf: Likewise.
65078         * modules/unistdio/u16-vasprintf: Likewise.
65079         * modules/unistdio/u16-vsnprintf: Likewise.
65080         * modules/unistdio/u16-vsprintf: Likewise.
65081         * modules/unistdio/u32-asnprintf: Likewise.
65082         * modules/unistdio/u32-asprintf: Likewise.
65083         * modules/unistdio/u32-snprintf: Likewise.
65084         * modules/unistdio/u32-sprintf: Likewise.
65085         * modules/unistdio/u32-u32-asnprintf: Likewise.
65086         * modules/unistdio/u32-u32-asprintf: Likewise.
65087         * modules/unistdio/u32-u32-snprintf: Likewise.
65088         * modules/unistdio/u32-u32-sprintf: Likewise.
65089         * modules/unistdio/u32-u32-vasnprintf: Likewise.
65090         * modules/unistdio/u32-u32-vasprintf: Likewise.
65091         * modules/unistdio/u32-u32-vsnprintf: Likewise.
65092         * modules/unistdio/u32-u32-vsprintf: Likewise.
65093         * modules/unistdio/u32-vasnprintf: Likewise.
65094         * modules/unistdio/u32-vasprintf: Likewise.
65095         * modules/unistdio/u32-vsnprintf: Likewise.
65096         * modules/unistdio/u32-vsprintf: Likewise.
65097         * modules/unistdio/ulc-asnprintf: Likewise.
65098         * modules/unistdio/ulc-asprintf: Likewise.
65099         * modules/unistdio/ulc-fprintf: Likewise.
65100         * modules/unistdio/ulc-snprintf: Likewise.
65101         * modules/unistdio/ulc-sprintf: Likewise.
65102         * modules/unistdio/ulc-vasnprintf: Likewise.
65103         * modules/unistdio/ulc-vasprintf: Likewise.
65104         * modules/unistdio/ulc-vfprintf: Likewise.
65105         * modules/unistdio/ulc-vsnprintf: Likewise.
65106         * modules/unistdio/ulc-vsprintf: Likewise.
65107         * modules/unistr/u8-check: Likewise.
65108         * modules/unistr/u8-chr: Likewise.
65109         * modules/unistr/u8-cmp: Likewise.
65110         * modules/unistr/u8-cmp2: Likewise.
65111         * modules/unistr/u8-cpy: Likewise.
65112         * modules/unistr/u8-cpy-alloc: Likewise.
65113         * modules/unistr/u8-endswith: Likewise.
65114         * modules/unistr/u8-mblen: Likewise.
65115         * modules/unistr/u8-mbsnlen: Likewise.
65116         * modules/unistr/u8-mbtouc: Likewise.
65117         * modules/unistr/u8-mbtouc-unsafe: Likewise.
65118         * modules/unistr/u8-mbtoucr: Likewise.
65119         * modules/unistr/u8-move: Likewise.
65120         * modules/unistr/u8-next: Likewise.
65121         * modules/unistr/u8-prev: Likewise.
65122         * modules/unistr/u8-set: Likewise.
65123         * modules/unistr/u8-startswith: Likewise.
65124         * modules/unistr/u8-stpcpy: Likewise.
65125         * modules/unistr/u8-stpncpy: Likewise.
65126         * modules/unistr/u8-strcat: Likewise.
65127         * modules/unistr/u8-strchr: Likewise.
65128         * modules/unistr/u8-strcmp: Likewise.
65129         * modules/unistr/u8-strcoll: Likewise.
65130         * modules/unistr/u8-strcpy: Likewise.
65131         * modules/unistr/u8-strcspn: Likewise.
65132         * modules/unistr/u8-strdup: Likewise.
65133         * modules/unistr/u8-strlen: Likewise.
65134         * modules/unistr/u8-strmblen: Likewise.
65135         * modules/unistr/u8-strmbtouc: Likewise.
65136         * modules/unistr/u8-strncat: Likewise.
65137         * modules/unistr/u8-strncmp: Likewise.
65138         * modules/unistr/u8-strncpy: Likewise.
65139         * modules/unistr/u8-strnlen: Likewise.
65140         * modules/unistr/u8-strpbrk: Likewise.
65141         * modules/unistr/u8-strrchr: Likewise.
65142         * modules/unistr/u8-strspn: Likewise.
65143         * modules/unistr/u8-strstr: Likewise.
65144         * modules/unistr/u8-strtok: Likewise.
65145         * modules/unistr/u8-to-u16: Likewise.
65146         * modules/unistr/u8-to-u32: Likewise.
65147         * modules/unistr/u8-uctomb: Likewise.
65148         * modules/unistr/u16-check: Likewise.
65149         * modules/unistr/u16-chr: Likewise.
65150         * modules/unistr/u16-cmp: Likewise.
65151         * modules/unistr/u16-cmp2: Likewise.
65152         * modules/unistr/u16-cpy: Likewise.
65153         * modules/unistr/u16-cpy-alloc: Likewise.
65154         * modules/unistr/u16-endswith: Likewise.
65155         * modules/unistr/u16-mblen: Likewise.
65156         * modules/unistr/u16-mbsnlen: Likewise.
65157         * modules/unistr/u16-mbtouc: Likewise.
65158         * modules/unistr/u16-mbtouc-unsafe: Likewise.
65159         * modules/unistr/u16-mbtoucr: Likewise.
65160         * modules/unistr/u16-move: Likewise.
65161         * modules/unistr/u16-next: Likewise.
65162         * modules/unistr/u16-prev: Likewise.
65163         * modules/unistr/u16-set: Likewise.
65164         * modules/unistr/u16-startswith: Likewise.
65165         * modules/unistr/u16-stpcpy: Likewise.
65166         * modules/unistr/u16-stpncpy: Likewise.
65167         * modules/unistr/u16-strcat: Likewise.
65168         * modules/unistr/u16-strchr: Likewise.
65169         * modules/unistr/u16-strcmp: Likewise.
65170         * modules/unistr/u16-strcoll: Likewise.
65171         * modules/unistr/u16-strcpy: Likewise.
65172         * modules/unistr/u16-strcspn: Likewise.
65173         * modules/unistr/u16-strdup: Likewise.
65174         * modules/unistr/u16-strlen: Likewise.
65175         * modules/unistr/u16-strmblen: Likewise.
65176         * modules/unistr/u16-strmbtouc: Likewise.
65177         * modules/unistr/u16-strncat: Likewise.
65178         * modules/unistr/u16-strncmp: Likewise.
65179         * modules/unistr/u16-strncpy: Likewise.
65180         * modules/unistr/u16-strnlen: Likewise.
65181         * modules/unistr/u16-strpbrk: Likewise.
65182         * modules/unistr/u16-strrchr: Likewise.
65183         * modules/unistr/u16-strspn: Likewise.
65184         * modules/unistr/u16-strstr: Likewise.
65185         * modules/unistr/u16-strtok: Likewise.
65186         * modules/unistr/u16-to-u32: Likewise.
65187         * modules/unistr/u16-to-u8: Likewise.
65188         * modules/unistr/u16-uctomb: Likewise.
65189         * modules/unistr/u32-check: Likewise.
65190         * modules/unistr/u32-chr: Likewise.
65191         * modules/unistr/u32-cmp: Likewise.
65192         * modules/unistr/u32-cmp2: Likewise.
65193         * modules/unistr/u32-cpy: Likewise.
65194         * modules/unistr/u32-cpy-alloc: Likewise.
65195         * modules/unistr/u32-endswith: Likewise.
65196         * modules/unistr/u32-mblen: Likewise.
65197         * modules/unistr/u32-mbsnlen: Likewise.
65198         * modules/unistr/u32-mbtouc: Likewise.
65199         * modules/unistr/u32-mbtouc-unsafe: Likewise.
65200         * modules/unistr/u32-mbtoucr: Likewise.
65201         * modules/unistr/u32-move: Likewise.
65202         * modules/unistr/u32-next: Likewise.
65203         * modules/unistr/u32-prev: Likewise.
65204         * modules/unistr/u32-set: Likewise.
65205         * modules/unistr/u32-startswith: Likewise.
65206         * modules/unistr/u32-stpcpy: Likewise.
65207         * modules/unistr/u32-stpncpy: Likewise.
65208         * modules/unistr/u32-strcat: Likewise.
65209         * modules/unistr/u32-strchr: Likewise.
65210         * modules/unistr/u32-strcmp: Likewise.
65211         * modules/unistr/u32-strcoll: Likewise.
65212         * modules/unistr/u32-strcpy: Likewise.
65213         * modules/unistr/u32-strcspn: Likewise.
65214         * modules/unistr/u32-strdup: Likewise.
65215         * modules/unistr/u32-strlen: Likewise.
65216         * modules/unistr/u32-strmblen: Likewise.
65217         * modules/unistr/u32-strmbtouc: Likewise.
65218         * modules/unistr/u32-strncat: Likewise.
65219         * modules/unistr/u32-strncmp: Likewise.
65220         * modules/unistr/u32-strncpy: Likewise.
65221         * modules/unistr/u32-strnlen: Likewise.
65222         * modules/unistr/u32-strpbrk: Likewise.
65223         * modules/unistr/u32-strrchr: Likewise.
65224         * modules/unistr/u32-strspn: Likewise.
65225         * modules/unistr/u32-strstr: Likewise.
65226         * modules/unistr/u32-strtok: Likewise.
65227         * modules/unistr/u32-to-u16: Likewise.
65228         * modules/unistr/u32-to-u8: Likewise.
65229         * modules/unistr/u32-uctomb: Likewise.
65230         * modules/uniwbrk/u8-wordbreaks: Likewise.
65231         * modules/uniwbrk/u16-wordbreaks: Likewise.
65232         * modules/uniwbrk/u32-wordbreaks: Likewise.
65233         * modules/uniwbrk/ulc-wordbreaks: Likewise.
65234         * modules/uniwbrk/wordbreak-property: Likewise.
65235         * modules/uniwidth/u8-strwidth: Likewise.
65236         * modules/uniwidth/u8-width: Likewise.
65237         * modules/uniwidth/u16-strwidth: Likewise.
65238         * modules/uniwidth/u16-width: Likewise.
65239         * modules/uniwidth/u32-strwidth: Likewise.
65240         * modules/uniwidth/u32-width: Likewise.
65241         * modules/uniwidth/width: Likewise.
65242         * modules/unicase/cased-tests (Makefile.am): Link all test programs
65243         with $(LIBUNISTRING).
65244         * modules/unicase/ignorable-tests: Likewise.
65245         * modules/unicase/locale-language-tests: Likewise.
65246         * modules/unicase/tolower-tests: Likewise.
65247         * modules/unicase/totitle-tests: Likewise.
65248         * modules/unicase/toupper-tests: Likewise.
65249         * modules/unicase/u8-casecmp-tests: Likewise.
65250         * modules/unicase/u8-casecoll-tests: Likewise.
65251         * modules/unicase/u8-casefold-tests: Likewise.
65252         * modules/unicase/u8-is-cased-tests: Likewise.
65253         * modules/unicase/u8-is-casefolded-tests: Likewise.
65254         * modules/unicase/u8-is-lowercase-tests: Likewise.
65255         * modules/unicase/u8-is-titlecase-tests: Likewise.
65256         * modules/unicase/u8-is-uppercase-tests: Likewise.
65257         * modules/unicase/u8-tolower-tests: Likewise.
65258         * modules/unicase/u8-totitle-tests: Likewise.
65259         * modules/unicase/u8-toupper-tests: Likewise.
65260         * modules/unicase/u16-casecmp-tests: Likewise.
65261         * modules/unicase/u16-casecoll-tests: Likewise.
65262         * modules/unicase/u16-casefold-tests: Likewise.
65263         * modules/unicase/u16-is-cased-tests: Likewise.
65264         * modules/unicase/u16-is-casefolded-tests: Likewise.
65265         * modules/unicase/u16-is-lowercase-tests: Likewise.
65266         * modules/unicase/u16-is-titlecase-tests: Likewise.
65267         * modules/unicase/u16-is-uppercase-tests: Likewise.
65268         * modules/unicase/u16-tolower-tests: Likewise.
65269         * modules/unicase/u16-totitle-tests: Likewise.
65270         * modules/unicase/u16-toupper-tests: Likewise.
65271         * modules/unicase/u32-casecmp-tests: Likewise.
65272         * modules/unicase/u32-casecoll-tests: Likewise.
65273         * modules/unicase/u32-casefold-tests: Likewise.
65274         * modules/unicase/u32-is-cased-tests: Likewise.
65275         * modules/unicase/u32-is-casefolded-tests: Likewise.
65276         * modules/unicase/u32-is-lowercase-tests: Likewise.
65277         * modules/unicase/u32-is-titlecase-tests: Likewise.
65278         * modules/unicase/u32-is-uppercase-tests: Likewise.
65279         * modules/unicase/u32-tolower-tests: Likewise.
65280         * modules/unicase/u32-totitle-tests: Likewise.
65281         * modules/unicase/u32-toupper-tests: Likewise.
65282         * modules/unicase/ulc-casecmp-tests: Likewise.
65283         * modules/unicase/ulc-casecoll-tests: Likewise.
65284         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
65285         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
65286         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
65287         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
65288         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
65289         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
65290         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
65291         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
65292         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
65293         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
65294         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
65295         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
65296         * modules/unictype/bidicategory-byname-tests: Likewise.
65297         * modules/unictype/bidicategory-name-tests: Likewise.
65298         * modules/unictype/bidicategory-of-tests: Likewise.
65299         * modules/unictype/bidicategory-test-tests: Likewise.
65300         * modules/unictype/block-list-tests: Likewise.
65301         * modules/unictype/block-of-tests: Likewise.
65302         * modules/unictype/block-test-tests: Likewise.
65303         * modules/unictype/category-C-tests: Likewise.
65304         * modules/unictype/category-Cc-tests: Likewise.
65305         * modules/unictype/category-Cf-tests: Likewise.
65306         * modules/unictype/category-Cn-tests: Likewise.
65307         * modules/unictype/category-Co-tests: Likewise.
65308         * modules/unictype/category-Cs-tests: Likewise.
65309         * modules/unictype/category-L-tests: Likewise.
65310         * modules/unictype/category-Ll-tests: Likewise.
65311         * modules/unictype/category-Lm-tests: Likewise.
65312         * modules/unictype/category-Lo-tests: Likewise.
65313         * modules/unictype/category-Lt-tests: Likewise.
65314         * modules/unictype/category-Lu-tests: Likewise.
65315         * modules/unictype/category-M-tests: Likewise.
65316         * modules/unictype/category-Mc-tests: Likewise.
65317         * modules/unictype/category-Me-tests: Likewise.
65318         * modules/unictype/category-Mn-tests: Likewise.
65319         * modules/unictype/category-N-tests: Likewise.
65320         * modules/unictype/category-Nd-tests: Likewise.
65321         * modules/unictype/category-Nl-tests: Likewise.
65322         * modules/unictype/category-No-tests: Likewise.
65323         * modules/unictype/category-P-tests: Likewise.
65324         * modules/unictype/category-Pc-tests: Likewise.
65325         * modules/unictype/category-Pd-tests: Likewise.
65326         * modules/unictype/category-Pe-tests: Likewise.
65327         * modules/unictype/category-Pf-tests: Likewise.
65328         * modules/unictype/category-Pi-tests: Likewise.
65329         * modules/unictype/category-Po-tests: Likewise.
65330         * modules/unictype/category-Ps-tests: Likewise.
65331         * modules/unictype/category-S-tests: Likewise.
65332         * modules/unictype/category-Sc-tests: Likewise.
65333         * modules/unictype/category-Sk-tests: Likewise.
65334         * modules/unictype/category-Sm-tests: Likewise.
65335         * modules/unictype/category-So-tests: Likewise.
65336         * modules/unictype/category-Z-tests: Likewise.
65337         * modules/unictype/category-Zl-tests: Likewise.
65338         * modules/unictype/category-Zp-tests: Likewise.
65339         * modules/unictype/category-Zs-tests: Likewise.
65340         * modules/unictype/category-and-not-tests: Likewise.
65341         * modules/unictype/category-and-tests: Likewise.
65342         * modules/unictype/category-byname-tests: Likewise.
65343         * modules/unictype/category-name-tests: Likewise.
65344         * modules/unictype/category-none-tests: Likewise.
65345         * modules/unictype/category-of-tests: Likewise.
65346         * modules/unictype/category-or-tests: Likewise.
65347         * modules/unictype/category-test-withtable-tests: Likewise.
65348         * modules/unictype/combining-class-tests: Likewise.
65349         * modules/unictype/ctype-alnum-tests: Likewise.
65350         * modules/unictype/ctype-alpha-tests: Likewise.
65351         * modules/unictype/ctype-blank-tests: Likewise.
65352         * modules/unictype/ctype-cntrl-tests: Likewise.
65353         * modules/unictype/ctype-digit-tests: Likewise.
65354         * modules/unictype/ctype-graph-tests: Likewise.
65355         * modules/unictype/ctype-lower-tests: Likewise.
65356         * modules/unictype/ctype-print-tests: Likewise.
65357         * modules/unictype/ctype-punct-tests: Likewise.
65358         * modules/unictype/ctype-space-tests: Likewise.
65359         * modules/unictype/ctype-upper-tests: Likewise.
65360         * modules/unictype/ctype-xdigit-tests: Likewise.
65361         * modules/unictype/decimal-digit-tests: Likewise.
65362         * modules/unictype/digit-tests: Likewise.
65363         * modules/unictype/mirror-tests: Likewise.
65364         * modules/unictype/numeric-tests: Likewise.
65365         * modules/unictype/property-alphabetic-tests: Likewise.
65366         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
65367         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
65368         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
65369         * modules/unictype/property-bidi-block-separator-tests: Likewise.
65370         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
65371         * modules/unictype/property-bidi-common-separator-tests: Likewise.
65372         * modules/unictype/property-bidi-control-tests: Likewise.
65373         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
65374         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
65375         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
65376         * modules/unictype/property-bidi-european-digit-tests: Likewise.
65377         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
65378         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
65379         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
65380         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
65381         * modules/unictype/property-bidi-pdf-tests: Likewise.
65382         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
65383         * modules/unictype/property-bidi-whitespace-tests: Likewise.
65384         * modules/unictype/property-byname-tests: Likewise.
65385         * modules/unictype/property-combining-tests: Likewise.
65386         * modules/unictype/property-composite-tests: Likewise.
65387         * modules/unictype/property-currency-symbol-tests: Likewise.
65388         * modules/unictype/property-dash-tests: Likewise.
65389         * modules/unictype/property-decimal-digit-tests: Likewise.
65390         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
65391         * modules/unictype/property-deprecated-tests: Likewise.
65392         * modules/unictype/property-diacritic-tests: Likewise.
65393         * modules/unictype/property-extender-tests: Likewise.
65394         * modules/unictype/property-format-control-tests: Likewise.
65395         * modules/unictype/property-grapheme-base-tests: Likewise.
65396         * modules/unictype/property-grapheme-extend-tests: Likewise.
65397         * modules/unictype/property-grapheme-link-tests: Likewise.
65398         * modules/unictype/property-hex-digit-tests: Likewise.
65399         * modules/unictype/property-hyphen-tests: Likewise.
65400         * modules/unictype/property-id-continue-tests: Likewise.
65401         * modules/unictype/property-id-start-tests: Likewise.
65402         * modules/unictype/property-ideographic-tests: Likewise.
65403         * modules/unictype/property-ids-binary-operator-tests: Likewise.
65404         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
65405         * modules/unictype/property-ignorable-control-tests: Likewise.
65406         * modules/unictype/property-iso-control-tests: Likewise.
65407         * modules/unictype/property-join-control-tests: Likewise.
65408         * modules/unictype/property-left-of-pair-tests: Likewise.
65409         * modules/unictype/property-line-separator-tests: Likewise.
65410         * modules/unictype/property-logical-order-exception-tests: Likewise.
65411         * modules/unictype/property-lowercase-tests: Likewise.
65412         * modules/unictype/property-math-tests: Likewise.
65413         * modules/unictype/property-non-break-tests: Likewise.
65414         * modules/unictype/property-not-a-character-tests: Likewise.
65415         * modules/unictype/property-numeric-tests: Likewise.
65416         * modules/unictype/property-other-alphabetic-tests: Likewise.
65417         * modules/unictype/property-other-default-ignorable-code-point-tests:
65418         Likewise.
65419         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
65420         * modules/unictype/property-other-id-continue-tests: Likewise.
65421         * modules/unictype/property-other-id-start-tests: Likewise.
65422         * modules/unictype/property-other-lowercase-tests: Likewise.
65423         * modules/unictype/property-other-math-tests: Likewise.
65424         * modules/unictype/property-other-uppercase-tests: Likewise.
65425         * modules/unictype/property-paired-punctuation-tests: Likewise.
65426         * modules/unictype/property-paragraph-separator-tests: Likewise.
65427         * modules/unictype/property-pattern-syntax-tests: Likewise.
65428         * modules/unictype/property-pattern-white-space-tests: Likewise.
65429         * modules/unictype/property-private-use-tests: Likewise.
65430         * modules/unictype/property-punctuation-tests: Likewise.
65431         * modules/unictype/property-quotation-mark-tests: Likewise.
65432         * modules/unictype/property-radical-tests: Likewise.
65433         * modules/unictype/property-sentence-terminal-tests: Likewise.
65434         * modules/unictype/property-soft-dotted-tests: Likewise.
65435         * modules/unictype/property-space-tests: Likewise.
65436         * modules/unictype/property-terminal-punctuation-tests: Likewise.
65437         * modules/unictype/property-test-tests: Likewise.
65438         * modules/unictype/property-titlecase-tests: Likewise.
65439         * modules/unictype/property-unassigned-code-value-tests: Likewise.
65440         * modules/unictype/property-unified-ideograph-tests: Likewise.
65441         * modules/unictype/property-uppercase-tests: Likewise.
65442         * modules/unictype/property-variation-selector-tests: Likewise.
65443         * modules/unictype/property-white-space-tests: Likewise.
65444         * modules/unictype/property-xid-continue-tests: Likewise.
65445         * modules/unictype/property-xid-start-tests: Likewise.
65446         * modules/unictype/property-zero-width-tests: Likewise.
65447         * modules/unictype/scripts-tests: Likewise.
65448         * modules/unictype/syntax-c-ident-tests: Likewise.
65449         * modules/unictype/syntax-c-whitespace-tests: Likewise.
65450         * modules/unictype/syntax-java-ident-tests: Likewise.
65451         * modules/unictype/syntax-java-whitespace-tests: Likewise.
65452         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
65453         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
65454         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
65455         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
65456         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
65457         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
65458         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
65459         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
65460         * modules/uniname/uniname-tests: Likewise.
65461         * modules/uninorm/canonical-decomposition-tests: Likewise.
65462         * modules/uninorm/compat-decomposition-tests: Likewise.
65463         * modules/uninorm/composition-tests: Likewise.
65464         * modules/uninorm/decomposing-form-tests: Likewise.
65465         * modules/uninorm/decomposition-tests: Likewise.
65466         * modules/uninorm/filter-tests: Likewise.
65467         * modules/uninorm/nfc-tests: Likewise.
65468         * modules/uninorm/nfd-tests: Likewise.
65469         * modules/uninorm/nfkc-tests: Likewise.
65470         * modules/uninorm/nfkd-tests: Likewise.
65471         * modules/uninorm/u8-normcmp-tests: Likewise.
65472         * modules/uninorm/u8-normcoll-tests: Likewise.
65473         * modules/uninorm/u16-normcmp-tests: Likewise.
65474         * modules/uninorm/u16-normcoll-tests: Likewise.
65475         * modules/uninorm/u32-normcmp-tests: Likewise.
65476         * modules/uninorm/u32-normcoll-tests: Likewise.
65477         * modules/unistdio/u8-asnprintf-tests: Likewise.
65478         * modules/unistdio/u8-vasnprintf-tests: Likewise.
65479         * modules/unistdio/u8-vasprintf-tests: Likewise.
65480         * modules/unistdio/u8-vsnprintf-tests: Likewise.
65481         * modules/unistdio/u8-vsprintf-tests: Likewise.
65482         * modules/unistdio/u16-asnprintf-tests: Likewise.
65483         * modules/unistdio/u16-vasnprintf-tests: Likewise.
65484         * modules/unistdio/u16-vasprintf-tests: Likewise.
65485         * modules/unistdio/u16-vsnprintf-tests: Likewise.
65486         * modules/unistdio/u16-vsprintf-tests: Likewise.
65487         * modules/unistdio/u32-asnprintf-tests: Likewise.
65488         * modules/unistdio/u32-vasnprintf-tests: Likewise.
65489         * modules/unistdio/u32-vasprintf-tests: Likewise.
65490         * modules/unistdio/u32-vsnprintf-tests: Likewise.
65491         * modules/unistdio/u32-vsprintf-tests: Likewise.
65492         * modules/unistdio/ulc-asnprintf-tests: Likewise.
65493         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
65494         * modules/unistdio/ulc-vasprintf-tests: Likewise.
65495         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
65496         * modules/unistdio/ulc-vsprintf-tests: Likewise.
65497         * modules/unistr/u8-check-tests: Likewise.
65498         * modules/unistr/u8-chr-tests: Likewise.
65499         * modules/unistr/u8-cmp-tests: Likewise.
65500         * modules/unistr/u8-cmp2-tests: Likewise.
65501         * modules/unistr/u8-cpy-alloc-tests: Likewise.
65502         * modules/unistr/u8-cpy-tests: Likewise.
65503         * modules/unistr/u8-mblen-tests: Likewise.
65504         * modules/unistr/u8-mbsnlen-tests: Likewise.
65505         * modules/unistr/u8-mbtouc-tests: Likewise.
65506         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
65507         * modules/unistr/u8-mbtoucr-tests: Likewise.
65508         * modules/unistr/u8-move-tests: Likewise.
65509         * modules/unistr/u8-next-tests: Likewise.
65510         * modules/unistr/u8-prev-tests: Likewise.
65511         * modules/unistr/u8-set-tests: Likewise.
65512         * modules/unistr/u8-stpcpy-tests: Likewise.
65513         * modules/unistr/u8-stpncpy-tests: Likewise.
65514         * modules/unistr/u8-strcat-tests: Likewise.
65515         * modules/unistr/u8-strcmp-tests: Likewise.
65516         * modules/unistr/u8-strcoll-tests: Likewise.
65517         * modules/unistr/u8-strcpy-tests: Likewise.
65518         * modules/unistr/u8-strdup-tests: Likewise.
65519         * modules/unistr/u8-strlen-tests: Likewise.
65520         * modules/unistr/u8-strmblen-tests: Likewise.
65521         * modules/unistr/u8-strmbtouc-tests: Likewise.
65522         * modules/unistr/u8-strncat-tests: Likewise.
65523         * modules/unistr/u8-strncmp-tests: Likewise.
65524         * modules/unistr/u8-strncpy-tests: Likewise.
65525         * modules/unistr/u8-strnlen-tests: Likewise.
65526         * modules/unistr/u8-to-u16-tests: Likewise.
65527         * modules/unistr/u8-to-u32-tests: Likewise.
65528         * modules/unistr/u8-uctomb-tests: Likewise.
65529         * modules/unistr/u16-check-tests: Likewise.
65530         * modules/unistr/u16-chr-tests: Likewise.
65531         * modules/unistr/u16-cmp-tests: Likewise.
65532         * modules/unistr/u16-cmp2-tests: Likewise.
65533         * modules/unistr/u16-cpy-alloc-tests: Likewise.
65534         * modules/unistr/u16-cpy-tests: Likewise.
65535         * modules/unistr/u16-mblen-tests: Likewise.
65536         * modules/unistr/u16-mbsnlen-tests: Likewise.
65537         * modules/unistr/u16-mbtouc-tests: Likewise.
65538         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
65539         * modules/unistr/u16-mbtoucr-tests: Likewise.
65540         * modules/unistr/u16-move-tests: Likewise.
65541         * modules/unistr/u16-next-tests: Likewise.
65542         * modules/unistr/u16-prev-tests: Likewise.
65543         * modules/unistr/u16-set-tests: Likewise.
65544         * modules/unistr/u16-stpcpy-tests: Likewise.
65545         * modules/unistr/u16-stpncpy-tests: Likewise.
65546         * modules/unistr/u16-strcat-tests: Likewise.
65547         * modules/unistr/u16-strcmp-tests: Likewise.
65548         * modules/unistr/u16-strcoll-tests: Likewise.
65549         * modules/unistr/u16-strcpy-tests: Likewise.
65550         * modules/unistr/u16-strdup-tests: Likewise.
65551         * modules/unistr/u16-strlen-tests: Likewise.
65552         * modules/unistr/u16-strmblen-tests: Likewise.
65553         * modules/unistr/u16-strmbtouc-tests: Likewise.
65554         * modules/unistr/u16-strncat-tests: Likewise.
65555         * modules/unistr/u16-strncmp-tests: Likewise.
65556         * modules/unistr/u16-strncpy-tests: Likewise.
65557         * modules/unistr/u16-strnlen-tests: Likewise.
65558         * modules/unistr/u16-to-u32-tests: Likewise.
65559         * modules/unistr/u16-to-u8-tests: Likewise.
65560         * modules/unistr/u16-uctomb-tests: Likewise.
65561         * modules/unistr/u32-check-tests: Likewise.
65562         * modules/unistr/u32-chr-tests: Likewise.
65563         * modules/unistr/u32-cmp-tests: Likewise.
65564         * modules/unistr/u32-cmp2-tests: Likewise.
65565         * modules/unistr/u32-cpy-alloc-tests: Likewise.
65566         * modules/unistr/u32-cpy-tests: Likewise.
65567         * modules/unistr/u32-mblen-tests: Likewise.
65568         * modules/unistr/u32-mbsnlen-tests: Likewise.
65569         * modules/unistr/u32-mbtouc-tests: Likewise.
65570         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
65571         * modules/unistr/u32-mbtoucr-tests: Likewise.
65572         * modules/unistr/u32-move-tests: Likewise.
65573         * modules/unistr/u32-next-tests: Likewise.
65574         * modules/unistr/u32-prev-tests: Likewise.
65575         * modules/unistr/u32-set-tests: Likewise.
65576         * modules/unistr/u32-stpcpy-tests: Likewise.
65577         * modules/unistr/u32-stpncpy-tests: Likewise.
65578         * modules/unistr/u32-strcat-tests: Likewise.
65579         * modules/unistr/u32-strcmp-tests: Likewise.
65580         * modules/unistr/u32-strcoll-tests: Likewise.
65581         * modules/unistr/u32-strcpy-tests: Likewise.
65582         * modules/unistr/u32-strdup-tests: Likewise.
65583         * modules/unistr/u32-strlen-tests: Likewise.
65584         * modules/unistr/u32-strmblen-tests: Likewise.
65585         * modules/unistr/u32-strmbtouc-tests: Likewise.
65586         * modules/unistr/u32-strncat-tests: Likewise.
65587         * modules/unistr/u32-strncmp-tests: Likewise.
65588         * modules/unistr/u32-strncpy-tests: Likewise.
65589         * modules/unistr/u32-strnlen-tests: Likewise.
65590         * modules/unistr/u32-to-u16-tests: Likewise.
65591         * modules/unistr/u32-to-u8-tests: Likewise.
65592         * modules/unistr/u32-uctomb-tests: Likewise.
65593         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
65594         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
65595         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
65596         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
65597         * modules/uniwidth/u8-strwidth-tests: Likewise.
65598         * modules/uniwidth/u8-width-tests: Likewise.
65599         * modules/uniwidth/u16-strwidth-tests: Likewise.
65600         * modules/uniwidth/u16-width-tests: Likewise.
65601         * modules/uniwidth/u32-strwidth-tests: Likewise.
65602         * modules/uniwidth/u32-width-tests: Likewise.
65603         * modules/uniwidth/width-tests: Likewise.
65605 2010-05-18  Richard Jones  <rjones@redhat.com>
65607         doc: users.txt: list hivex
65608         * users.txt: Add hivex.
65610 2010-05-18  Richard Jones  <rjones@redhat.com>
65612         doc: users.txt: list febootstrap
65613         * users.txt: Add febootstrap.
65615 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
65617         bootstrap: fix an error when gnulib is not used as a git submodule
65618         * build-aux/bootstrap (gnulib_path): If its length is zero then
65619         assign "gnulib" to it.
65620         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
65622 2010-05-16  Bruno Haible  <bruno@clisp.org>
65624         Avoid autoconf warnings about AM_ICONV.
65625         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
65626         2.64.
65628 2010-05-16  Bruno Haible  <bruno@clisp.org>
65630         absolute-header: Make the macro usable in more situations.
65631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
65632         from gl_ABSOLUTE_HEADER.
65633         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
65635 2010-05-16  James Youngman  <jay@gnu.org>
65637         doc: update users.txt
65638         * users.txt: Add CSSC.
65640 2010-05-16  Jim Meyering  <meyering@redhat.com>
65642         init.sh: fix an error in the previous change; add more comments
65643         * tests/init.sh: Compare exit code in loop against 9, not 2.
65644         Patch by Bruno Haible.
65645         Make the two tests more similar by adding an empty "then" clause.
65646         Add comments.
65648         init.sh: avoid unnecessary shell re-exec
65649         * tests/init.sh: Improve the re-exec-required check to first test the
65650         current shell.  If it passes the test, do not search for a shell that
65651         does pass, and do not re-exec.  This test is particularly contorted to
65652         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
65653         of $(...) evokes a syntax error and causes immediate shell exit with
65654         status 2.  Bruno Haible reported that the re-exec made it impossible
65655         to single-step through any init.sh-using script.
65657 2010-05-16  Bruno Haible  <bruno@clisp.org>
65659         Fix collision between gnulib's and libintl's printf replacements.
65660         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
65661         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
65662         (printf): When using GNU C, map the __printf__ function to rpl_printf
65663         via __asm__. When not using GNU C, define rpl_printf instead of
65664         __printf__.
65665         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
65666         commit.
65667         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
65668         commit.
65669         * m4/asm-underscore.m4: New file.
65670         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
65671         * modules/stdio (Files): Add m4/asm-underscore.m4.
65672         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
65673         Reported by Ben Pfaff.
65675 2010-05-16  Bruno Haible  <bruno@clisp.org>
65677         verify: Avoid skipping the test on openSUSE 11.0.
65678         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
65680 2010-05-13  Bruno Haible  <bruno@clisp.org>
65682         Avoid useless warnings from G++.
65683         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
65684         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
65685         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65687 2010-05-11  Jim Meyering  <meyering@redhat.com>
65689         maint.mk: tweak preceding change
65690         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
65691         regexps tighter by anchoring at EOL, and make the new group "shy"
65692         for slightly decreased overhead.
65694 2010-05-11  Eric Blake  <eblake@redhat.com>
65696         maint.mk: gnulib doesn't guarantee NSIG
65697         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
65699 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65701         test-pwrite.c: Remove unused variable declaration.
65702         * tests/test-pwrite.c (main): Remove read_buf declaration.
65704         Remove useless test-pwrite.sh file.
65705         * tests/test-pwrite.sh: Delete file.
65706         * modules/pwrite-tests: Remove references.
65707         Reported by Bruno Haible.
65709 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65711         init.sh: fix a typo
65712         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
65714 2010-05-10  Jim Meyering  <meyering@redhat.com>
65716         maint.mk: avoid using a temporary file in the always-defined-macros check
65717         * top/maint.mk (.re-defmac): Remove rule.
65718         (gl_trap_): Remove definition.
65719         (sc_prohibit_always-defined_macros): Rewrite not to create and
65720         depend on a temporary file.  Instead, depend on GNU grep's ability
65721         to read a list of regular expressions from stdin when given "-f -".
65723 2010-05-09  Bruno Haible  <bruno@clisp.org>
65725         Update to GNU gettext 0.18, part 1.
65726         * m4/gettext.m4: Update to GNU gettext 0.18.
65727         * m4/intl.m4: Likewise.
65728         * m4/po.m4: Likewise.
65729         * modules/gettext (Files): Add m4/fcntl-o.m4.
65730         (configure.ac): Require gettext infrastructure from version 0.18.
65732 2010-05-09  Jim Meyering  <meyering@redhat.com>
65734         init.sh: enable MALLOC_PERTURB_
65735         * tests/init.sh: Enable glibc's malloc-perturbing option.
65737         maint.mk: improve sc_cross_check_PATH_usage_in_tests
65738         With my recent change in init.sh from the two-line form:
65739             -#   : ${srcdir=.}
65740             -#   . "$srcdir/init.sh"; path_prepend_ .
65741             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
65742         I noticed that using the one-line form would cause this test
65743         to fail with a false-positive, or to stop working altogether,
65744         depending on whether help-version changed or all the tests did.
65745         * top/maint.mk (_hv_regex): Remove this definition.
65746         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
65747         (_hv_regex_strong): Use a stronger regex to check for conformance.
65748         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
65749         Give a separate diagnostic for lack of conforming use.
65751         maint.mk: prohibit definition of symbols defined by gnulib
65752         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
65753         definition of symbols defined by gnulib.
65755 2010-05-09  Bruno Haible  <bruno@clisp.org>
65757         acl: Avoid test failure on Cygwin-hosted mingw.
65758         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
65760 2010-05-09  Bruno Haible  <bruno@clisp.org>
65762         error: Use system's fcntl function.
65763         * lib/error.c (fcntl): Undefine.
65765 2010-05-09  Jim Meyering  <meyering@redhat.com>
65767         verify: adjust formatting to be more consistent
65768         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
65769         argument-list '('s, and after one comma.
65771 2010-05-09  Bruno Haible  <bruno@clisp.org>
65773         error: More reliable output on mingw.
65774         * lib/error.c: Include <windows.h>.
65775         (is_open): New function.
65776         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
65777         defined.
65779 2010-05-09  Bruno Haible  <bruno@clisp.org>
65781         vasnprintf: Fix syntax errors in libintl build on mingw.
65782         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
65783         pad_ourselves and prec_ourselves after use.
65785 2010-05-08  Bruno Haible  <bruno@clisp.org>
65787         * lib/config.charset: Update comments for Cygwin 1.7.
65788         * lib/localcharset.c: Likewise.
65790 2010-05-07  Jim Meyering  <meyering@redhat.com>
65792         init.sh: improve comments
65793         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
65794         . "${srcdir=.}/init.sh"; path_prepend_ .
65795         Add a note about path_prepend_ and the alternative of using
65796         TESTS_ENVIRONMENT.
65798 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
65800         exclude: Unescape hashed patterns in wildcard mode.
65801         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
65802         to the hash list.
65803         * tests/test-exclude8.sh: New test case.
65804         * modules/exclude-tests: Add new test.
65806 2010-05-05  Eric Blake  <eblake@redhat.com>
65808         verify: automate tests
65809         * modules/verify-tests: New module.
65810         * tests/test-verify.sh: New file.
65811         * tests/test-verify.c: Guard each negative test with a unique id.
65812         Also avoid warning about unused left hand of comma expressions.
65814 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65816         Further improvements to verify.h, suggested by Eric Blake.
65817         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
65818         the GL_* versions, to avoid collision with OpenGL.
65819         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
65820         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
65821         than testing merely whether it's defined.
65823         Modify verify.h to pacify gcc -Wredundant_decls.
65824         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
65825         These use the prefix "GL_" since they're likely to be useful elsewhere.
65826         We may need to break them out into a different .h file.
65827         (__COUNTER__): Define to 0 if the compiler doesn't support it.
65828         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
65829         of verify_function__.
65831 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65833         Tests for module pwrite.
65834         * modules/pwrite-tests: New file.
65835         * tests/test-pwrite.sh: New file.
65836         * tests/test-pwrite.c: New file.
65838         New module pwrite.
65839         * lib/unistd.in.h (pwrite): New declaration.
65840         * lib/pwrite.c: New file, from glibc with modifications.
65841         * m4/pwrite.m4: New file.
65842         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
65843         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
65844         REPLACE_PWRITE.
65845         * modules/pwrite: New file.
65846         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
65847         REPLACE_PWRITE.
65848         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
65849         * doc/posix-functions/pwrite.texi: Mention the new module.
65851 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65853         pread: Update documentation.
65854         * doc/posix-functions/pread.texi: Mention the 'pread' module.
65856 2010-05-04  Eric Blake  <eblake@redhat.com>
65858         docs: update cygwin progress
65859         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
65860         this bug.
65861         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
65862         Added in cygwin 1.7.2.
65863         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
65864         Likewise.
65865         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
65866         Likewise.
65867         * doc/glibc-functions/dup3.texi (dup3): Likewise.
65868         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
65869         * doc/glibc-functions/accept4.texi (accept4): Likewise.
65870         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
65871         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
65872         Mention nproc module.
65873         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
65874         bug in cygwin 1.7.5 addition.
65875         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
65876         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
65877         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
65878         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
65879         1.7.5.
65880         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
65881         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
65882         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
65883         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
65884         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
65885         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
65886         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
65887         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
65888         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
65889         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
65890         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
65891         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
65892         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
65893         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
65894         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65895         Likewise.
65896         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65897         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65898         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65899         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65900         Likewise.
65901         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65902         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65903         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65904         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65905         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65906         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65907         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65908         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65909         Likewise.
65910         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65911         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65912         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65913         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65914         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65915         Likewise.
65916         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65917         Likewise.
65918         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65919         Likewise.
65920         * doc/glibc-functions/xdrrec_endofrecord.texi
65921         (xdrrec_endofrecord): Likewise.
65922         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65923         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65924         Likewise.
65925         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65926         Likewise.
65928 2010-05-04  Jim Meyering  <meyering@redhat.com>
65930         gendocs.sh: make its "-s FILE" option more useful
65931         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65932         $PACKAGE to reflect the probably-different basename of "FILE".
65934 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65936         bootstrap: don't ignore download_po_files failure
65937         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65938         failure.
65940 2010-05-03  Jim Meyering  <meyering@redhat.com>
65942         maint.mk: allow to pass options to gendocs.sh
65943         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65944         (gendocs_options_): New overridable variable.
65946         gnu-web-doc-update: don't ignore configure or build failure
65947         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65949         announce-gen: backslash-escape '@'s in --help output
65950         * build-aux/announce-gen: Fix syntax errors.
65952         maint.mk, announce-gen: allow project-specific announcement mail headers
65953         * top/maint.mk (translation_project_): Define default.
65954         (announcement_Cc_, announcement_mail_headers_): Likewise.
65955         (announcement): Invoke announce-gen with new --mail-headers option.
65956         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65958         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65959         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65960         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65961         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65962         line in the "err2" output file when running "make check" in verbose
65963         mode (i.e., with set -x enabled).
65965 2010-05-03  Bruno Haible  <bruno@clisp.org>
65967         wctob: Fix for weird platforms.
65968         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65969         argument value.
65971 2010-05-03  Jim Meyering  <meyering@redhat.com>
65973         maint.mk: prohibit unwarranted use of <strings.h>
65974         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65975         strings.h in a file that does not also use strcasecmp, strncasecmp,
65976         ffs or ffsll.
65978         maint.mk: remove obsolete comments
65979         * top/maint.mk: Remove stale, commented-out rules.
65981 2010-05-02  Bruno Haible  <bruno@clisp.org>
65983         wcwidth: Declare also when it's aliased.
65984         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65985         macro.
65987 2010-05-02  Bruno Haible  <bruno@clisp.org>
65989         Fix regression from 2010-04-25.
65990         * gnulib-tool (func_modules_transitive_closure): Check the status of
65991         all modules, not only of the tests that are of the form foo-tests where
65992         foo is a module.
65994 2010-05-02  Bruno Haible  <bruno@clisp.org>
65996         wctob: Work around nasty Cygwin 1.7.2 bug.
65997         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65998         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
66000 2010-05-01  Bruno Haible  <bruno@clisp.org>
66002         fpurge: Sharper test.
66003         * tests/test-fpurge.c (main): Add one more ftell check.
66004         * modules/fpurge-tests (Depends-on): Add ftell.
66005         Suggested by Eric Blake.
66007 2010-05-01  Bruno Haible  <bruno@clisp.org>
66009         ftello: Another test.
66010         * tests/test-ftello3.c: New file.
66011         * modules/ftello-tests (Files): Add it.
66012         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
66013         MOSTLYCLEANFILES.
66015         ftell: Another test.
66016         * tests/test-ftell3.c: New file.
66017         * modules/ftell-tests (Files): Add it.
66018         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
66019         MOSTLYCLEANFILES.
66021 2010-05-01  Bruno Haible  <bruno@clisp.org>
66023         ftell, ftello: Work around Solaris bug.
66024         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
66025         * lib/ftello.c: Include stdio-impl.h.
66026         (ftello): On Solaris, when _IOWRT is set, compute the result without
66027         looking at _IOREAD.
66028         * modules/ftello (Files): Add lib/stdio-impl.h.
66029         * doc/posix-functions/ftell.texi: Mention Solaris bug.
66030         * doc/posix-functions/ftello.texi: Likewise.
66031         Reported by Eric Blake.
66033 2010-05-01  Bruno Haible  <bruno@clisp.org>
66035         freading: Adapt to special meaning of _IOREAD flag on Solaris.
66036         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
66037         the _IOWRT flag is also set.
66039 2010-05-01  Bruno Haible  <bruno@clisp.org>
66041         Fix doc about a HP-UX stdio bug.
66042         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
66043         * doc/posix-functions/ftello.texi: Likewise.
66045 2010-05-01  Bruno Haible  <bruno@clisp.org>
66047         lseek test: Fix failure on Solaris.
66048         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
66049         output.
66051 2010-04-30  Jim Meyering  <meyering@redhat.com>
66053         bootstrap: don't ignore failure to generate po*/Makevars
66054         * build-aux/bootstrap (with_gettext): Don't ignore failure
66055         to create po/Makevars or runtime-po/Makevars.
66057 2010-04-29  Eric Blake  <eblake@redhat.com>
66059         headers: relax license to LGPLv2+
66060         * modules/fcntl-h (License): Relax license.
66061         * modules/getopt-posix (License): Likewise.
66062         * modules/locale (License): Likewise.
66063         * modules/math (License): Likewise.
66064         * modules/pty (License): Likewise.
66065         * modules/sched (License): Likewise.
66066         * modules/search (License): Likewise.
66067         * modules/spawn (License): Likewise.
66068         * modules/stdarg (License): Likewise.
66069         * modules/sysexits (License): Likewise.
66071 2010-04-29  Jim Meyering  <meyering@redhat.com>
66073         inttypes: relax license to LGPLv2+
66074         * modules/inttypes (License): Relax license.
66076 2010-04-29  Simon Josefsson  <simon@josefsson.org>
66078         * top/maint.mk (indent): Run twice to produce idempotent results.
66080 2010-04-28  Bruno Haible  <bruno@clisp.org>
66082         getdate: Generate getdate.c in the source directory.
66083         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
66084         MOSTLYCLEANFILES.
66085         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
66087 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
66089         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
66090         is not declared as a const *; avoid warnings in that case.
66092 2010-04-28  Eric Blake  <eblake@redhat.com>
66094         canonicalize-lgpl: avoid compiler warning
66095         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
66096         declaration' / 'extraneous semicolon' warning with some compilers.
66097         Reported by Andreas Gruenbacher.
66099 2010-04-28  Jim Meyering  <meyering@redhat.com>
66101         init.sh: ensure a more reliable exit status when exiting via trap
66102         * tests/init.sh (setup_): Don't rely on $? in signal handler.
66103         Inspired by patches from Dmitry V. Levin.
66104         Also trap on signal 3 (SIGQUIT).
66106 2010-04-27  Bruno Haible  <bruno@clisp.org>
66108         Update doc about utimes().
66109         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
66110         'utimens' module.
66111         Reported by Andreas Gruenbacher <agruen@suse.de>.
66113 2010-04-27  Eric Blake  <eblake@redhat.com>
66115         full-read, full-write: relax license
66116         * modules/full-read (License): Drop to LGPLv2+.
66117         * modules/full-write (License): Likewise.
66118         * modules/safe-read (License): Likewise.
66119         * modules/safe-write (License): Likewise.
66121         pthread: mention library for linking
66122         * modules/pthread (Link): Mention $(LIB_PTHREAD).
66124 2010-04-27  Jim Meyering  <meyering@redhat.com>
66126         maint.mk: fix a bug introduced in last change
66127         * top/maint.mk (gl_assured_headers_): Now that all names are on
66128         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
66129         is not anchored to end of word, it should be adequate.
66131         maint.mk: avoid side-effect in latest syntax-check
66132         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
66133         to run commands via $(shell...), and hence to incur cost only when
66134         the new rule is actually run.
66136         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
66137         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
66138         and use that to create a regexp used to detect all #if HAVE_..._H uses.
66139         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
66140         (gl_assured_headers_, az_, AZ_): Define.
66141         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
66143 2010-04-26  Jim Meyering  <jim@meyering.net>
66144             Bruno Haible  <bruno@clisp.org>
66146         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
66147         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
66148         Prompted by an exchange with Gilles Espinasse.
66150 2010-04-26  Jim Meyering  <meyering@redhat.com>
66152         git-version-gen: aesthetic tweak
66153         * build-aux/git-version-gen: Use "$nl" rather than a literal,
66154         so that the command remains on a single line.
66156 2010-04-26  Eric Blake  <eblake@redhat.com>
66158         git-version-gen: allow use on EBCDIC hosts
66159         * build-aux/git-version-gen (dirty): Use literal rather than tying
66160         ourselves to ascii.
66161         Reported by Steve Goetze.
66163 2010-04-25  Bruno Haible  <bruno@clisp.org>
66165         netdb: Add support for GNULIB_POSIXCHECK.
66166         * lib/netdb.in.h: Include warn-on-use.h.
66167         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
66168         functions are used when GNULIB_POSIXCHECK is defined and the
66169         getaddrinfo module is not in use.
66170         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
66171         freeaddrinfo, gai_strerror, getnameinfo are declared.
66172         * modules/netdb (Depends-on): Add warn-on-use.
66173         (Makefile.am): Include warn-on-use.h in netdb.h.
66175 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
66177         build: avoid "make check" failure without .git/ directory
66178         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
66179         there is no .git/ directory.
66181 2010-04-25  Bruno Haible  <bruno@clisp.org>
66183         ptsname: Fix misuse of ttyname_r.
66184         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
66185         of errno.
66187 2010-04-25  Bruno Haible  <bruno@clisp.org>
66189         ttyname_r: Make it work on Solaris 10.
66190         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
66191         if the system function has the POSIX declaration. Test whether the
66192         function fails if the buffer is less than 128 bytes large.
66193         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
66194         system's ttyname_r function. Provide a reasonably large buffer.
66195         * modules/ttyname_r (Depends-on): Add extensions.
66196         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
66198 2010-04-25  Bruno Haible  <bruno@clisp.org>
66200         Use the 'extensions' module for some more functions on Solaris.
66201         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
66202         module.
66203         * doc/posix-functions/ctime_r.texi: Likewise.
66204         * doc/posix-functions/getgrgid_r.texi: Likewise.
66205         * doc/posix-functions/getgrnam_r.texi: Likewise.
66206         * doc/posix-functions/getpwnam_r.texi: Likewise.
66207         * doc/posix-functions/getpwuid_r.texi: Likewise.
66208         * doc/posix-functions/readdir_r.texi: Likewise.
66209         * doc/posix-functions/sigwait.texi: Likewise.
66210         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
66211         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
66213 2010-04-25  Bruno Haible  <bruno@clisp.org>
66215         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
66216         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
66217         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
66218         * lib/ttyname_r.c: Include <limits.h>.
66219         (ttyname_r): Define using the system's ttyname_r function, if it exists
66220         and not on Solaris.
66221         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
66222         set.
66223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
66224         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
66225         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
66226         Reported by Simon Josefsson.
66228 2010-04-25  Bruno Haible  <bruno@clisp.org>
66230         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
66231         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
66232         * doc/posix-functions/ctime_r.texi: Likewise.
66233         * doc/posix-functions/getgrgid_r.texi: Likewise.
66234         * doc/posix-functions/getgrnam_r.texi: Likewise.
66235         * doc/posix-functions/getlogin_r.texi: Likewise.
66236         * doc/posix-functions/getpwnam_r.texi: Likewise.
66237         * doc/posix-functions/getpwuid_r.texi: Likewise.
66238         * doc/posix-functions/readdir_r.texi: Likewise.
66239         * doc/posix-functions/sigwait.texi: Likewise.
66240         * doc/posix-functions/ttyname_r.texi: Likewise.
66241         Reported by Simon Josefsson.
66243 2010-04-25  Bruno Haible  <bruno@clisp.org>
66245         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
66246         * gnulib-tool (func_usage): Document that --with-*-tests options apply
66247         also to --create-testdir.
66248         (func_acceptable): Don't consider the status of *-tests modules here.
66249         (func_modules_transitive_closure): Consider it here, before including a
66250         test module.
66251         (func_import, func_create_testdir): Set inc_all_direct_tests,
66252         inc_all_indirect_tests.
66253         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
66254         --create-testdir and --create-megatestdir.
66256 2010-04-25  Bruno Haible  <bruno@clisp.org>
66258         gnulib-tool: Add --without-*-tests options.
66259         * gnulib-tool (func_usage): Document the --without-*-tests options.
66260         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
66261         excl_unportable_tests): New variables.
66262         Fail if they are specified with --import or --update.
66263         (func_acceptable): Respect the excl_*_tests variables.
66264         (func_import): Set the excl_*_tests variables to empty.
66266 2010-04-25  Simon Josefsson  <simon@josefsson.org>
66267             Bruno Haible  <bruno@clisp.org>
66269         Work around a MacOS X 10.4 bug with openpty.
66270         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
66271         * tests/test-openpty.c (main): Close the master side explicitly.
66273 2010-04-25  Bruno Haible  <bruno@clisp.org>
66275         strnlen: Fix a C++ test error on MacOS X and Solaris.
66276         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
66277         the function is not declared.
66278         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
66279         Simon Josefsson.
66281 2010-04-24  Bruno Haible  <bruno@clisp.org>
66283         Avoid a gcc warning.
66284         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
66285         of correct type for %08lx directive.
66286         Reported by Eric Blake.
66288 2010-04-24  Bruno Haible  <bruno@clisp.org>
66290         vasnprintf: Correct errno value in case of out-of-memory.
66291         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
66292         or sprintf. Use the errno value from SNPRINTF or sprintf.
66293         Reported by Ian Beckwith <ianb@erislabs.net>.
66295 2010-04-24  Bruno Haible  <bruno@clisp.org>
66297         ansi-c++-opt: Find correct compiler when cross-compiling.
66298         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
66299         AC_CHECK_PROGS.
66300         Reported by Simon Josefsson.
66302 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
66304         vc-list-files: Add support for subversion
66305         * build-aux/vc-list-files: Use "svn list" to generate the list of
66306         files controlled by subversion.
66308 2010-04-23  Jim Meyering  <meyering@redhat.com>
66310         vc-list-files tests: convert to use init.sh
66311         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
66312         path_prepend_.
66313         Use Exit, not exit.
66314         Use skip_ rather than open coding it.
66315         Remove trap set-up and compare definitions.
66316         * tests/test-vc-list-files-git.sh: Likewise.
66317         * modules/vc-list-files-tests (Files): Add tests/init.sh.
66319 2010-04-22  Simon Josefsson  <simon@josefsson.org>
66321         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
66322         backup files.
66324 2010-04-21  Simon Josefsson  <simon@josefsson.org>
66326         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
66328 2010-04-20  Eric Blake  <eblake@redhat.com>
66330         tests: be robust to ignored SIGPIPE
66331         * tests/test-select-in.sh: Consume all output.
66332         * tests/test-lseek.sh: Check correct exit status, while avoiding
66333         EPIPE.
66335 2010-04-20  Simon Josefsson  <simon@josefsson.org>
66336             Bruno Haible  <bruno@clisp.org>
66338         visibility: Don't use -fvisibility if it leads to a warning.
66339         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
66340         yes, don't pretend that visibility works if it leads to a warning.
66341         Reported by Mike Gran <spk121@yahoo.com>.
66343 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
66345         * build-aux/bootstrap: Use "git -h" for testing for supported options
66346         instead of "git --help".  The short-form option only shows a summary,
66347         and doesn't layout the full man page.  Grep for the full option name
66348         in the summary, too.
66350 2010-04-19  Bruno Haible  <bruno@clisp.org>
66352         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
66353         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
66354         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
66355         mention of RELOCATABLE_STRIP.
66356         Reported by Sylvain Beucler <beuc@beuc.net>.
66358 2010-04-19  Bruno Haible  <bruno@clisp.org>
66360         * lib/diffseq.h: Fix typo in comment.
66361         Reported by Eric Blake.
66363 2010-04-19  Bruno Haible  <bruno@clisp.org>
66365         ioctl: Move autoconf macro to a .m4 file.
66366         * m4/ioctl.m4: New file, extracted from modules/ioctl.
66367         * modules/ioctl (Files): Add it.
66368         (configure.ac): Simply invoke gl_FUNC_IOCTL.
66369         Reported by Ian Beckwith <ianb@erislabs.net>.
66371 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
66372             Bruno Haible  <bruno@clisp.org>
66374         diffseq: Accommodate use-case with abstract arrays.
66375         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
66376         is not defined.
66377         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
66378         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
66380 2010-04-18  Bruno Haible  <bruno@clisp.org>
66382         * doc/posix-headers/stdbool.texi: More precise wording.
66384 2010-04-17  Jim Meyering  <meyering@redhat.com>
66386         maint.mk: use gnu-style indentation in an embedded perl script
66387         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
66388         Rename variable: s/two/last_two_bytes/
66390 2010-04-16  Eric Blake  <eblake@redhat.com>
66392         test-stdbool: skip test that fails with Solaris CC
66393         * tests/test-stdbool.c (f): Skip test that causes compilation
66394         error under buggy C++ compiler.
66395         * lib/stdbool.in.h: Document the limitation.
66396         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
66398         setenv: allow compilation with C++
66399         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
66400         register keyword.
66402         stdint: allow test to pass with C++
66403         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
66405         getopt: allow compilation with C++
66406         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
66407         struct.
66408         * lib/getopt.c (_getopt_internal_r): Use correct type.
66409         Reported by Dagobert Michelson, via Joel E. Denny.
66411 2010-04-16  Bruno Haible  <bruno@clisp.org>
66413         Override netdb.h always.
66414         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
66415         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
66416         Reported by Ludovic Courtès <ludo@gnu.org>.
66418 2010-04-15  Bruno Haible  <bruno@clisp.org>
66420         openpty: Fix mistake from 2010-03-21.
66421         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
66422         Reported by Simon Josefsson.
66424 2010-04-15  Eric Blake  <eblake@redhat.com>
66426         test-forkpty: fix expected signature
66427         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
66428         Reported by Simon Josefsson.
66430 2010-04-15  Jim Meyering  <meyering@redhat.com>
66432         maint.mk: texinfo_suffix_re_: correct the default regexp
66433         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
66435         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
66436         make it configurable via texinfo_suffix_re_.
66438 2010-04-14  Eric Blake  <eblake@redhat.com>
66440         strtok_r: relax license to LGPLv2+
66441         * modules/strtok_r (License): Relax license.
66442         Reported by Matthias Bolte.
66444 2010-04-14  Simon Josefsson  <simon@josefsson.org>
66446         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
66447         version 1.4.4 by default instead of requiring the libgcrypt
66448         version used during build.  This makes it possible to use the
66449         application with older but still binary compatible libgcrypt
66450         versions.
66452 2010-04-13  Eric Blake  <eblake@redhat.com>
66454         getopt-gnu: match recent glibc fixes and posix ruling
66455         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
66456         '+' handling, when requesting extensions.
66457         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
66458         'W;' handling.
66459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
66460         * doc/posix-functions/getopt.texi (getopt): Document this.
66461         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
66462         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66463         Likewise.
66465         getopt: merge bug fixes from glibc
66466         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
66467         diagnostics.  Honor '+:' correctly.  Reject ';'.
66469         getopt-posix: detect MacOS bug
66470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
66471         optind when missing a required argument.
66472         * doc/posix-functions/getopt.texi (getopt): Document the bug.
66473         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
66474         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66475         Likewise.
66477         getopt-posix: avoid spurious failure on Solaris
66478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
66479         an indicator that setting optind=1 is sufficient for reset.
66481         getopt-posix: avoid spurious failure on FreeBSD
66482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
66483         in POSIX mode, since the m4 test uses it.
66485         gnulib-tool: silence warning on BSD sh
66486         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
66488 2010-04-13  Jim Meyering  <meyering@redhat.com>
66490         doc: users.txt: GNU patch now uses gnulib
66491         * users.txt: Add patch.
66493 2010-04-12  Jim Meyering  <meyering@redhat.com>
66495         maint.mk: generate more concise timing data for syntax-check rules
66496         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
66497         " done" from each line that reports a syntax-check test duration.
66499 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
66501         git-version-gen: use "git update-index..." rather than "git status"
66502         * build-aux/git-version-gen: Use git update-index --refresh, not
66503         "git status".  With some versions of git, "git status" would fail
66504         to update the index and result in an unwarranted "-dirty" suffix.
66506 2010-04-11  Jim Meyering  <meyering@redhat.com>
66508         openat: correct formatting (no semantic change)
66509         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
66510         Suggested by Bruno Haible.
66512 2010-04-11  Bruno Haible  <bruno@clisp.org>
66514         Stricter declaration checking in testdirs.
66515         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66516         If for_tests is true, augment AM_CPPFLAGS to define
66517         GNULIB_STRICT_CHECKING.
66518         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
66519         GNULIB_STRICT_CHECKING is defined, verify that the function is
66520         declared.
66522 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
66523             Bruno Haible  <bruno@clisp.org>
66525         libunistring: Improve configure output.
66526         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
66527         Don't say "consider installing GNU libunistring" when checking again
66528         with libiconv.
66530 2010-04-11  Bruno Haible  <bruno@clisp.org>
66532         libunistring: Correct value of $LTLIBUNISTRING.
66533         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
66534         correct the value of $LTLIBUNISTRING.
66536 2010-04-11  Bruno Haible  <bruno@clisp.org>
66538         havelib: Add static libraries to LIBS in the right order.
66539         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
66540         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
66542 2010-04-11  Bruno Haible  <bruno@clisp.org>
66544         libunistring: Detect libunistring also when it depends on libiconv.
66545         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
66546         the second AC_LIB_HAVE_LINKFLAGS invocation.
66548 2010-04-11  James Youngman  <jay@gnu.org>
66550         close-stream: declare local scalars to be "const"
66551         * lib/close-stream.c (close_stream): Make boolean variables const
66552         to document the fact that we set but do not change them.
66554 2010-04-11  Bruno Haible  <bruno@clisp.org>
66556         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
66558 2010-04-11  Jim Meyering  <meyering@redhat.com>
66560         maint.mk: don't include dist-check.mk
66561         * top/maint.mk: Remove bogus include directive.
66563         maint.mk: improve empty-line-at-EOF check
66564         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
66565         solution, rather than tail+Perl-based one.  The latter would read
66566         a few kilobytes from the end of each file, and did not handle empty
66567         files properly.
66569         maint.mk: print the elapsed time for each syntax-check rule
66570         * top/maint.mk (sc_m_rules_): Save start time in a file.
66571         (sc_z_rules_): New rules: remove temp file and print elapsed time.
66572         (local-check): Interpose the .z rules
66574 2010-04-11  Jim Meyering  <meyering@redhat.com>
66576         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
66577         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
66578         empty file with one that ends in an empty line.
66580 2010-04-10  Bruno Haible  <bruno@clisp.org>
66582         mkdir: Make it work on mingw64.
66583         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
66584         * lib/mkdir.c: Update comment.
66585         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
66587 2010-04-10  Bruno Haible  <bruno@clisp.org>
66589         Don't override improved macro from newer autoconf.
66590         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
66591         autoconf >= 2.62.
66592         Reported by Joel E. Denny <jdenny@clemson.edu>.
66594 2010-04-10  Jim Meyering  <meyering@redhat.com>
66596         maint.mk: new syntax-check rule: prohibit empty lines at end of file
66597         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
66599         maint.mk: correct a diagnostic
66600         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
66601         in diagnostic; now use $prohibit.
66603 2010-04-10  Bruno Haible  <address@hidden>
66605         fchownat: Fix a C++ test error on Solaris 8.
66606         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
66607         the function does not exist.
66609 2010-04-10  Bruno Haible  <bruno@clisp.org>
66611         vasnprintf: Add more tests.
66612         * tests/test-vasnprintf-posix.c: Include <errno.h>.
66613         (test_function): Test converting an invalid wide string.
66615         vasnprintf: Correct handling of unconvertible wide string arguments.
66616         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
66617         VASNPRINTF.
66618         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
66619         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
66620         smaller than the expected maximum need for the directive. Set errno to
66621         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
66622         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
66623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
66624         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
66625         * modules/vasnprintf (Files): Add m4/printf.m4.
66626         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66628 2010-04-10  Bruno Haible  <bruno@clisp.org>
66630         vasnprintf: Fix crash in %ls directive.
66631         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
66632         string is passed as argument to %ls, with no precision and no width.
66633         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66635 2010-04-10  Bruno Haible  <bruno@clisp.org>
66637         vasnprintf: Fix multiple test failures on mingw.
66638         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
66639         _snprintf, or snwprintf, not _snwprintf.
66641 2010-04-10  Bruno Haible  <bruno@clisp.org>
66643         write: Fix a C++ test error on mingw.
66644         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
66646 2010-04-10  Bruno Haible  <bruno@clisp.org>
66648         vasnprintf test: Reduce code duplication.
66649         * tests/test-vasnprintf.c (test_function): New function, extracted from
66650         test_vasnprintf.
66651         (test_vasnprintf, test_asnprintf): Invoke it.
66653 2010-04-10  Bruno Haible  <bruno@clisp.org>
66655         strnlen: Fix warning in C++ mode on MacOS X.
66656         * lib/string.in.h (strnlen): Use the modern idiom.
66657         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
66658         defining strnlen as a macro already in <config.h>.
66659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66660         REPLACE_STRNLEN.
66661         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
66662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66664 2010-04-08  James Youngman  <jay@gnu.org>
66666         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
66667         the example.
66669 2010-04-09  Jim Meyering  <meyering@redhat.com>
66671         maint.mk: print better diagnostic when there is no $(_hv_file)
66672         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
66673         announce that when $(_hv_file) (aka help-version) does not exist.
66675         init.sh: run tr in the "C" locale to avoid multibyte interpretation
66676         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
66677         not try to interpret its random input bytes.  Jarno Rajahalme reported
66678         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
66679         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
66680         (mktempd_): Likewise, just in case.
66682         ftruncate: add two years to projected module removal date: 2012
66683         * m4/ftruncate.m4: Adjust comments.
66685         ftruncate: mark module as obsolete; even MinGW provides it, now
66686         * modules/ftruncate (Status): Obsolete.
66687         (Notice): Say that.
66688         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
66689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
66691 2010-04-08  Bruno Haible  <bruno@clisp.org>
66693         Fix side effects from tests-related modules.
66694         * modules/dprintf-posix (Comment): New section.
66695         * modules/fprintf-posix (Comment): Likewise.
66696         * modules/obstack-printf-posix (Comment): Likewise.
66697         * modules/printf-posix (Comment): Likewise.
66698         * modules/snprintf-posix (Comment): Likewise.
66699         * modules/sprintf-posix (Comment): Likewise.
66700         * modules/vasnprintf-posix (Comment): Likewise.
66701         * modules/vasprintf-posix (Comment): Likewise.
66702         * modules/vdprintf-posix (Comment): Likewise.
66703         * modules/vfprintf-posix (Comment): Likewise.
66704         * modules/vprintf-posix (Comment): Likewise.
66705         * modules/vsnprintf-posix (Comment): Likewise.
66706         * modules/vsprintf-posix (Comment): Likewise.
66707         * modules/xprintf-posix (Comment): Likewise.
66708         * modules/xvasprintf-posix (Comment): Likewise.
66709         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
66710         * modules/floorf-tests (Depends-on): Likewise.
66711         * modules/round-tests (Depends-on): Likewise.
66712         * modules/roundf-tests (Depends-on): Likewise.
66713         * modules/trunc-tests (Depends-on): Likewise.
66714         * modules/truncf-tests (Depends-on): Likewise.
66715         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
66716         'fprintf-posix' module is not present.
66717         * tests/test-floorf2.c (check): Likewise.
66718         * tests/test-trunc2.c (check): Likewise.
66719         * tests/test-truncf2.c (check): Likewise.
66720         * tests/test-round2.c (equal): Likewise.
66721         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66723 2010-04-07  Karl Berry  <karl@gnu.org>
66725         * config/srclist.txt,
66726         * config/srclistvars.sh,
66727         * config/srclist-update: doc fixes.
66729 2010-04-07  Jim Meyering  <meyering@redhat.com>
66731         maint.mk: add a PATH crosschecking syntax-check rule
66732         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
66733         Useful if you use a test like the one in help-version (coreutils,
66734         diffutils, grep, gzip) that ensures $(VERSION) matches what is
66735         printed by prog --version.
66737 2010-04-06  Bruno Haible  <bruno@clisp.org>
66739         Fix link error on mingw.
66740         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
66741         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
66743 2010-04-06  Bruno Haible  <bruno@clisp.org>
66745         Assume rmdir exists.
66746         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
66748 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
66750         doc: update users.txt
66751         * users.txt: Add gcal.
66753 2010-04-06  Jim Meyering  <meyering@redhat.com>
66755         init.sh: simply unset TMPDIR rather than risking env -i
66756         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
66757         although it probably works fine on all Unix-based systems, some
66758         systems (Cygwin?) cannot tolerate a totally cleared environment.
66759         Suggestion from Eric Blake.
66761 2010-04-06  Jim Meyering  <meyering@redhat.com>
66763         init.sh: portability fix: use env's POSIX-specified -i option not -u
66764         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
66765         than unportable env -u.  Solaris 5.11's env lacks support for -u.
66767 2010-04-05  Bruno Haible  <bruno@clisp.org>
66769         btowc: Work around Cygwin 1.7.2 bug.
66770         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
66771         does not map NUL to 0.
66772         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
66774 2010-04-05  Bruno Haible  <bruno@clisp.org>
66776         Make the multithread modules work on Cygwin 1.7.2.
66777         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
66778         imported symbols can be declared weak, so that it returns "no" on
66779         Cygwin 1.7.2.
66781 2010-04-05  Bruno Haible  <bruno@clisp.org>
66783         Use the module 'strncat'.
66784         * modules/unistr/u8-strncat (Depends-on): Add strncat.
66786         Tests for module 'strncat'.
66787         * modules/strncat-tests: New file.
66788         * tests/test-strncat.c: New file.
66790         New module 'strncat'.
66791         * lib/string.in.h (strncat): New declaration.
66792         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
66793         * m4/strncat.m4: New file, based on m4/memchr.m4.
66794         * modules/strncat: New file.
66795         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
66796         is declared.
66797         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
66798         REPLACE_STRNCAT.
66799         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
66800         REPLACE_STRNCAT.
66801         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
66802         module.
66803         * tests/test-string-c++.cc: Check signature of strncat.
66805 2010-04-05  Jim Meyering  <meyering@redhat.com>
66807         xstrtoumax-tests: convert to use init.sh
66808         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
66809         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66810         Use Exit, not exit.
66811         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66813         xstrtoimax-tests: convert to use init.sh
66814         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
66815         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66816         Use Exit, not exit.
66817         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66819 2010-04-05  Bruno Haible  <bruno@clisp.org>
66821         sys_socket: Avoid #define replacements in C++ mode.
66822         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
66823         warning to the function if possible, rather than #defining the symbol
66824         to a dysfunctional alias.
66826 2010-04-05  Bruno Haible  <bruno@clisp.org>
66828         fseeko: Fix C++ test error on mingw.
66829         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
66830         gl_FUNC_FSEEKO.
66831         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
66832         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
66833         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
66834         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
66836 2010-04-05  Bruno Haible  <bruno@clisp.org>
66838         duplocale: Improve test output.
66839         * tests/test-duplocale.c (main): Print reason for skipped test.
66841 2010-04-05  Bruno Haible  <bruno@clisp.org>
66843         Assume rmdir exists.
66844         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
66845         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
66847 2010-04-05  Bruno Haible  <bruno@clisp.org>
66849         Fix link error on Solaris 8 with cc.
66850         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
66852 2010-04-05  Bruno Haible  <bruno@clisp.org>
66854         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66855         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
66857 2010-04-05  Bruno Haible  <bruno@clisp.org>
66859         vasprintf: Update documentation.
66860         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
66862 2010-04-05  Bruno Haible  <bruno@clisp.org>
66864         ptsname: Improve test.
66865         * tests/test-ptsname.c (main): Also try the various master names of BSD
66866         systems.
66868 2010-04-05  Bruno Haible  <bruno@clisp.org>
66870         memchr: Avoid a possible C++ test error.
66871         * lib/string.in.h (memchr): Provide declaration if function is missing.
66872         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
66873         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
66874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
66875         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
66877 2010-04-05  Bruno Haible  <bruno@clisp.org>
66879         strtok_r: Improve idiom.
66880         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
66881         AC_LIBOBJ is used.
66883 2010-04-05  Bruno Haible  <bruno@clisp.org>
66885         strdup: Improve idiom.
66886         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
66887         AC_LIBOBJ is used.
66888         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
66889         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
66890         when AC_LIBOBJ is used.
66892 2010-04-05  Bruno Haible  <bruno@clisp.org>
66894         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66895         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66896         don't set REPLACE_MBSINIT to 1.
66897         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66898         don't set REPLACE_MBRTOWC to 1.
66899         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66900         exist, don't set REPLACE_MBSRTOWCS to 1.
66901         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66902         exist, don't set REPLACE_MBSNRTOWCS to 1.
66903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66904         don't set REPLACE_WCRTOMB to 1.
66905         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66906         exist, don't set REPLACE_WCSRTOMBS to 1.
66907         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66908         exist, don't set REPLACE_WCSNRTOMBS to 1.
66910 2010-04-05  Bruno Haible  <bruno@clisp.org>
66912         ldexpl: Improve idiom.
66913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66914         make sure to set HAVE_DECL_LDEXPL to 0.
66916 2010-04-05  Jim Meyering  <meyering@redhat.com>
66918         xstrtol-tests: convert to use init.sh
66919         * modules/xstrtol-tests (Files): Add tests/init.sh.
66920         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66921         Use Exit, not exit.
66922         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66924         atexit-tests: convert to use init.sh
66925         * modules/atexit-tests (Files): Add tests/init.sh.
66926         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66927         Use Exit, not exit.
66928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66930         init.sh: fix typo
66931         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66933         init.sh: make it easier for a test script to write to the tty, ...
66934         when using automake's parallel-tests mode.
66935         * tests/init.sh (stderr_fileno_): Define overridable variable.
66936         (warn_): New function, to use it.
66937         (fail_, skip_, framework_failure_): Use warn_.
66939 2010-04-04  Bruno Haible  <bruno@clisp.org>
66941         btowc: Avoid warning.
66942         * lib/btowc.c: Include <stdlib.h>.
66943         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66945 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66946             Bruno Haible  <bruno@clisp.org>
66948         wchar: Port to NetBSD 1.5.
66949         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66950         * lib/wctype.in.h (WEOF): Likewise.
66952 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66953             Bruno Haible  <bruno@clisp.org>
66955         Port extended stdio to NetBSD 1.5.
66956         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66957         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66958         older.
66960 2010-04-04  Bruno Haible  <bruno@clisp.org>
66962         string: Remove unused substitution.
66963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66964         HAVE_DECL_STRERROR.
66965         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66967 2010-04-04  Bruno Haible  <bruno@clisp.org>
66969         strtod: Avoid a possible C++ test error.
66970         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66971         set REPLACE_STRTOD.
66973 2010-04-04  Bruno Haible  <bruno@clisp.org>
66975         strerror: Update documentation.
66976         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66978 2010-04-04  Bruno Haible  <bruno@clisp.org>
66980         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66981         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66982         _GL_CXXALIAS_SYS_CAST.
66984 2010-04-04  Bruno Haible  <bruno@clisp.org>
66986         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66987         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66988         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66989         REPLACE_FREXPL to 1.
66990         * doc/posix-functions/frexpl.texi: Update documentation.
66992 2010-04-04  Bruno Haible  <bruno@clisp.org>
66994         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66995         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66997 2010-04-04  Bruno Haible  <bruno@clisp.org>
66999         Implement nanosleep for native Windows.
67000         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
67002 2010-04-04  Bruno Haible  <bruno@clisp.org>
67004         math: Fix some C++ test errors on Solaris 8.
67005         * lib/math.in.h (truncf, trunc): Use simpler idiom.
67007 2010-04-04  Bruno Haible  <bruno@clisp.org>
67009         math: Fix some C++ test errors on Cygwin.
67010         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
67011         truncl): Provide declaration if the system does not have it.
67012         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
67013         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
67014         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
67015         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
67016         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
67017         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
67018         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
67019         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
67020         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
67021         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
67022         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
67023         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
67024         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
67025         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
67026         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
67027         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
67028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
67029         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
67030         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
67031         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
67032         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
67033         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
67035 2010-04-04  Bruno Haible  <bruno@clisp.org>
67037         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
67038         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
67039         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
67040         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
67041         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
67042         * m4/isinf.m4 (gl_ISINF): Likewise.
67043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
67045 2010-04-04  Bruno Haible  <bruno@clisp.org>
67047         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
67048         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
67050 2010-04-04  Bruno Haible  <bruno@clisp.org>
67052         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
67053         * modules/tmpfile (configure.ac): Update.
67055         tmpfile: Fix C++ test error on mingw.
67056         * lib/stdio.in.h (tmpfile): New declaration.
67057         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
67058         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
67059         * modules/tmpfile (Depends-on): Add stdio.
67060         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67061         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
67062         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
67063         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
67064         REPLACE_TMPFILE.
67065         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
67067 2010-04-04  Bruno Haible  <bruno@clisp.org>
67069         ioctl: Fix C++ test error on mingw.
67070         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
67071         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
67072         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
67074 2010-04-03  Bruno Haible  <bruno@clisp.org>
67076         wcwidth: Fix C++ test error on mingw.
67077         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
67078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
67079         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
67081 2010-04-03  Bruno Haible  <bruno@clisp.org>
67083         nanosleep: Fix C++ test error on mingw.
67084         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
67085         * lib/time.in.h (nanosleep): Use modern idiom.
67086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
67087         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
67088         REPLACE_NANOSLEEP to 1.
67089         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
67090         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
67092 2010-04-03  Bruno Haible  <bruno@clisp.org>
67094         strptime: Fix C++ test error on mingw.
67095         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
67096         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
67097         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
67098         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
67099         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
67100         not REPLACE_STRPTIME.
67101         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
67102         REPLACE_STRPTIME.
67104 2010-04-03  Bruno Haible  <bruno@clisp.org>
67106         timegm: Fix C++ test error on mingw.
67107         * lib/time.in.h (timegm): Use modern idiom.
67108         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
67109         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
67110         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
67111         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
67113 2010-04-03  Bruno Haible  <bruno@clisp.org>
67115         timegm: Assume declaration if function exists.
67116         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
67117         if it exists. Don't clobber ac_cv_func_timegm.
67119 2010-04-03  Bruno Haible  <bruno@clisp.org>
67121         time_r: Fix C++ test error on mingw.
67122         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
67123         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
67124         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
67125         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
67126         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
67128 2010-04-03  Bruno Haible  <bruno@clisp.org>
67130         time_r: Minor updates.
67131         * modules/time_r (Description): Mention the provided functions.
67132         * lib/time_r.c: Don't include <string.h>.
67133         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
67134         * doc/posix-functions/localtime_r.texi: Likewise.
67136 2010-04-03  Bruno Haible  <bruno@clisp.org>
67138         time: Fix regression introduced on 2010-03-08.
67139         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
67140         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
67142 2010-04-03  Jim Meyering  <meyering@redhat.com>
67144         maint.mk: don't silently disable project-specific syntax-check rules
67145         * top/maint.mk (_prohibit_regexp): Define, to help people realize
67146         that they need to convert their project-specific syntax-check rules
67147         to use the new _sc_search_regexp.
67149 2010-04-03  Bruno Haible  <bruno@clisp.org>
67151         fchdir: Fix regression introduced on 2010-03-08.
67152         * lib/unistd.in.h (fchdir): Fix declaration.
67153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
67154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
67155         REPLACE_FCHDIR.
67156         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
67157         REPLACE_FCHDIR.
67159 2010-04-03  Bruno Haible  <bruno@clisp.org>
67161         getpagesize: Fix C++ test error on mingw.
67162         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
67163         system does not declare the function.
67164         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
67165         declared.
67166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67167         HAVE_DECL_GETPAGESIZE.
67168         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
67170 2010-04-03  Bruno Haible  <bruno@clisp.org>
67172         stdio: Make C++ tests work on mingw.
67173         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
67174         does not declare the function.
67176 2010-04-03  Bruno Haible  <bruno@clisp.org>
67178         ftello: Fix C++ test error on mingw.
67179         * lib/stdio.in.h (ftello): Use modern idiom.
67180         * lib/ftello.c (ftello): Renamed from rpl_ftello.
67181         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
67182         is missing and that it needs to be replaced.
67183         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
67184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
67185         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
67187 2010-04-03  Bruno Haible  <bruno@clisp.org>
67189         fseeko: Fix C++ test error on mingw.
67190         * lib/stdio.in.h (fseeko): Use modern idiom.
67191         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
67192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
67193         is missing and that it needs to be replaced.
67194         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
67195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
67196         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
67198 2010-04-03  Bruno Haible  <bruno@clisp.org>
67200         mkstemp: Fix C++ test error on mingw.
67201         * lib/stdlib.in.h (mkstemp): Use modern idiom.
67202         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
67203         function is missing and that it needs to be replaced.
67204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
67205         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
67207 2010-04-03  Bruno Haible  <bruno@clisp.org>
67209         stpncpy: Fix C++ test error on mingw.
67210         * lib/string.in.h (stpncpy): Use modern idiom.
67211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
67212         function is missing and that it needs to be replaced.
67213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67214         REPLACE_STPNCPY.
67215         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
67217 2010-04-03  Bruno Haible  <bruno@clisp.org>
67219         sys_stat: Fix C++ test error on mingw.
67220         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
67221         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
67223 2010-04-03  Bruno Haible  <bruno@clisp.org>
67225         pty: Update doc.
67226         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
67228 2010-04-03  Bruno Haible  <bruno@clisp.org>
67230         unistd: Fix C++ test error on mingw.
67231         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
67233 2010-04-03  Bruno Haible  <bruno@clisp.org>
67235         Update doc regarding mingw.
67236         * doc/glibc-functions/openpty.texi: Update regarding mingw.
67237         * doc/glibc-functions/login_tty.texi: Likewise.
67238         * doc/glibc-functions/forkpty.texi: Likewise.
67240 2010-04-03  Bruno Haible  <bruno@clisp.org>
67242         stdlib: Avoid compilation failure of c-strtold on mingw.
67243         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
67245 2010-04-03  Bruno Haible  <bruno@clisp.org>
67247         locale: Make C++ tests work on Cygwin and mingw.
67248         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
67249         cannot provide the function.
67250         Reported by Simon Josefsson.
67252 2010-04-03  Bruno Haible  <bruno@clisp.org>
67254         localename: Port to MacOS X 10.6.
67255         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
67256         memory layout of the locales in MacOS X 10.6 as well.
67257         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
67259 2010-04-02  Bruno Haible  <bruno@clisp.org>
67261         gnulib-tool: Ensure that long-running tests are executed last.
67262         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
67263         running tests after the one for the other tests.
67265 2010-04-02  Bruno Haible  <bruno@clisp.org>
67267         gnulib-tool: Ensure the tests in the main directory are executed first.
67268         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
67269         start with the current directory.
67271 2010-04-02  Bruno Haible  <bruno@clisp.org>
67273         Tests for module 'havelib', moved here from GNU gettext.
67274         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
67275         modifications.
67276         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
67277         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
67278         with modifications.
67279         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
67280         modifications.
67281         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
67282         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
67283         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
67284         with modifications.
67285         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
67286         with modifications.
67287         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
67288         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
67289         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
67290         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
67291         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
67292         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
67293         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
67294         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
67295         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
67296         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
67297         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
67298         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
67299         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
67300         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
67301         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
67302         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
67303         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
67304         with modifications.
67305         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
67306         with modifications.
67307         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
67308         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
67309         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
67310         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
67311         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
67312         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
67313         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
67314         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
67315         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
67316         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
67317         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
67318         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
67319         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
67320         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
67321         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
67322         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
67323         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
67324         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
67325         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
67326         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
67327         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
67328         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
67329         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
67330         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
67331         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
67332         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
67333         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
67334         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
67335         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
67336         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
67337         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
67338         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
67339         * tests/havelib/rpathx/rpathx.c: New file, from
67340         gettext/autoconf-lib-link.
67341         * tests/havelib/rpathx/Makefile.am: New file, from
67342         gettext/autoconf-lib-link.
67343         * tests/havelib/rpathx/configure.ac: New file, from
67344         gettext/autoconf-lib-link with modifications.
67345         * tests/havelib/rpathy/rpathy.c: New file, from
67346         gettext/autoconf-lib-link.
67347         * tests/havelib/rpathy/Makefile.am: New file, from
67348         gettext/autoconf-lib-link.
67349         * tests/havelib/rpathy/configure.ac: New file, from
67350         gettext/autoconf-lib-link with modifications.
67351         * tests/havelib/rpathz/rpathz.c: New file, from
67352         gettext/autoconf-lib-link.
67353         * tests/havelib/rpathz/Makefile.am: New file, from
67354         gettext/autoconf-lib-link.
67355         * tests/havelib/rpathz/configure.ac: New file, from
67356         gettext/autoconf-lib-link with modifications.
67357         * tests/havelib/rpathlx/usex.c: New file, from
67358         gettext/autoconf-lib-link.
67359         * tests/havelib/rpathlx/Makefile.am: New file, from
67360         gettext/autoconf-lib-link.
67361         * tests/havelib/rpathlx/configure.ac: New file, from
67362         gettext/autoconf-lib-link with modifications.
67363         * tests/havelib/rpathly/usey.c: New file, from
67364         gettext/autoconf-lib-link.
67365         * tests/havelib/rpathly/Makefile.am: New file, from
67366         gettext/autoconf-lib-link.
67367         * tests/havelib/rpathly/configure.ac: New file, from
67368         gettext/autoconf-lib-link with modifications.
67369         * tests/havelib/rpathlz/usez.c: New file, from
67370         gettext/autoconf-lib-link.
67371         * tests/havelib/rpathlz/Makefile.am: New file, from
67372         gettext/autoconf-lib-link.
67373         * tests/havelib/rpathlz/configure.ac: New file, from
67374         gettext/autoconf-lib-link with modifications.
67375         * tests/havelib/rpathlyx/usey.c: New file, from
67376         gettext/autoconf-lib-link.
67377         * tests/havelib/rpathlyx/Makefile.am: New file, from
67378         gettext/autoconf-lib-link.
67379         * tests/havelib/rpathlyx/configure.ac: New file, from
67380         gettext/autoconf-lib-link with modifications.
67381         * tests/havelib/rpathlzyx/usez.c: New file, from
67382         gettext/autoconf-lib-link.
67383         * tests/havelib/rpathlzyx/Makefile.am: New file, from
67384         gettext/autoconf-lib-link.
67385         * tests/havelib/rpathlzyx/configure.ac: New file, from
67386         gettext/autoconf-lib-link with modifications.
67387         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
67388         with modifications.
67390 2010-04-02  Bruno Haible  <bruno@clisp.org>
67392         gnulib-tool: Create distributed built sources also for the tests.
67393         * gnulib-tool (func_create_testdir): Also generate distributed built
67394         sources in the tests directory.
67396 2010-04-02  Bruno Haible  <bruno@clisp.org>
67398         gnulib-tool: Obey user's environment variables.
67399         * gnulib-tool (func_create_testdir): When creating built sources,
67400         respect the environment variables for autoconf, automake, etc. given by
67401         the user.
67403 2010-04-02  Bruno Haible  <bruno@clisp.org>
67405         gnulib-tool: Provide the value of --m4-base to modules.
67406         * gnulib-tool (func_import, func_create_testdir): Emit a definition
67407         of gl_m4_base.
67409 2010-04-02  Eric Blake  <eblake@redhat.com>
67411         maint.mk: fix some fallout
67412         * NEWS: Document the incompatible change, and its effect on cfg.mk.
67413         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
67415 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
67417         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
67418         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
67419         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
67420         (sc_cast_of_x_alloc_return_value): Likewise.
67421         (sc_cast_of_alloca_return_value): Likewise.
67422         (sc_space_tab): Likewise.
67423         (sc_prohibit_atoi_atof): Likewise.
67424         (sc_prohibit_magic_number_exit): Likewise.
67425         (sc_error_exit_success): Likewise.
67426         (sc_file_system): Likewise.
67427         (sc_prohibit_have_config_h): Likewise.
67428         (sc_require_config_h): Likewise.
67429         (sc_prohibit_HAVE_MBRTOWC): Likewise.
67430         (sc_obsolete_symbols): Likewise.
67431         (sc_changelog): Likewise.
67432         (sc_program_name): Likewise.
67433         (sc_the_the): Likewise.
67434         (sc_trailing_blank): Likewise.
67435         (sc_two_space_separator_in_usage): Likewise.
67436         (sc_useless_cpp_parens): Likewise.
67437         (sc_GPL_version): Likewise.
67438         (sc_GFDL_version): Likewise.
67439         (sc_texinfo_acronym): Likewise.
67440         (sc_prohibit_cvs_keyword): Likewise.
67441         (sc_prohibit_stat_st_blocks): Likewise.
67442         (sc_prohibit_S_IS_definition): Likewise.
67443         (sc_redundant_const): Likewise.
67444         (sc_makefile_TAB_only_indentation): Likewise.
67445         (sc_m4_quote_check): Likewise.
67446         (sc_makefile_path_separator_check): Likewise.
67447         (sc_copyright_check): Likewise.
67448         (sc_Wundef_boolean): Likewise.
67449         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
67451         maint.mk: match 0 or more whitespace-before-function-call '('
67452         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
67453         that have zero or two-and-more spaces between the function name
67454         and the open parenthesis.
67455         (sc_error_message_warn_fatal): Likewise.
67456         (sc_error_message_uppercase): Likewise.
67457         (sc_error_message_period): Likewise.
67459 2010-03-31  Eric Blake  <eblake@redhat.com>
67461         maint.mk: check for [ as well as test
67462         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
67463         Based on a libvirt report by Matthias Bolte.
67465         gnumakefile: don't squelch _version output
67466         * top/GNUmakefile (_version): Create one-shot dependency rather
67467         than using $(shell) when version must be regenerated.
67468         (_autoreconf): Run verbosely, by default.
67470         sys_time: avoid compiler warnings
67471         * lib/sys_time.in.h (includes): Ensure gcc pragma is
67472         unconditional, fixing regression from 2010-03-29.
67473         Reported by Simon Josefsson.
67475 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
67477         maint.mk: s/_header_without_use/_sc_header_without_use/
67478         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
67479         (sc_prohibit_assert_without_use): Use the new name.
67480         (sc_prohibit_close_stream_without_use): Likewise.
67481         (sc_prohibit_getopt_without_use): Likewise.
67482         (sc_prohibit_quotearg_without_use): Likewise.
67483         (sc_prohibit_quote_without_use): Likewise.
67484         (sc_prohibit_long_options_without_use): Likewise.
67485         (sc_prohibit_inttostr_without_use): Likewise.
67486         (sc_prohibit_ignore_value_without_use): Likewise.
67487         (sc_prohibit_error_without_use): Likewise.
67488         (sc_prohibit_xalloc_without_use): Likewise.
67489         (sc_prohibit_hash_without_use): Likewise.
67490         (sc_prohibit_hash_pjw_without_use): Likewise.
67491         (sc_prohibit_safe_read_without_use): Likewise.
67492         (sc_prohibit_argmatch_without_use): Likewise.
67493         (sc_prohibit_canonicalize_without_use): Likewise.
67494         (sc_prohibit_root_dev_ino_without_use): Likewise.
67495         (sc_prohibit_openat_without_use): Likewise.
67496         (sc_prohibit_c_ctype_without_use): Likewise.
67497         (sc_prohibit_signal_without_use): Likewise.
67498         (sc_prohibit_intprops_without_use): Likewise.
67500 2010-03-30  Eric Blake  <eblake@redhat.com>
67502         maint: improve module indicators
67503         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
67504         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
67505         columns, and avoid extra macro expansion.
67507         fdopendir: work around FreeBSD bug
67508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
67509         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
67510         * modules/dirent (Makefile.am): Substitute it.
67511         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
67512         declaration.
67513         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
67514         fix.
67515         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67517 2010-03-29  Bruno Haible  <bruno@clisp.org>
67519         Emit #pragma system_header after the inclusion guard, not before.
67520         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
67521         guard that spans the entire file, not before. This enables an
67522         optimization in GCC's preprocessor.
67523         * lib/ctype.in.h: Likewise.
67524         * lib/dirent.in.h: Likewise.
67525         * lib/errno.in.h: Likewise.
67526         * lib/float.in.h: Likewise.
67527         * lib/getopt.in.h: Likewise.
67528         * lib/iconv.in.h: Likewise.
67529         * lib/langinfo.in.h: Likewise.
67530         * lib/locale.in.h: Likewise.
67531         * lib/math.in.h: Likewise.
67532         * lib/netdb.in.h: Likewise.
67533         * lib/netinet_in.in.h: Likewise.
67534         * lib/pty.in.h: Likewise.
67535         * lib/sched.in.h: Likewise.
67536         * lib/se-selinux.in.h: Likewise.
67537         * lib/search.in.h: Likewise.
67538         * lib/spawn.in.h: Likewise.
67539         * lib/stdarg.in.h: Likewise.
67540         * lib/stdint.in.h: Likewise.
67541         * lib/string.in.h: Likewise.
67542         * lib/strings.in.h: Likewise.
67543         * lib/sys_file.in.h: Likewise.
67544         * lib/sys_ioctl.in.h: Likewise.
67545         * lib/sys_time.in.h: Likewise.
67546         * lib/sys_times.in.h: Likewise.
67547         * lib/sys_utsname.in.h: Likewise.
67548         * lib/sys_wait.in.h: Likewise.
67549         * lib/sysexits.in.h: Likewise.
67550         * lib/wctype.in.h: Likewise.
67552 2010-03-28  James Youngman  <jay@gnu.org>
67554         save-cwd: don't leak a file descriptor when the caller execs.
67555         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
67556         saved file descriptor.
67557         * modules/save-cwd (Depends-on): Depend on cloexec.
67559 2010-03-29  Bruno Haible  <bruno@clisp.org>
67561         Remove vestiges of fts-lgpl module.
67562         * lib/fts_.h: Assume GNULIB_FTS is 1.
67563         * lib/fts.c: Likewise.
67564         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67566 2010-03-28  Bruno Haible  <bruno@clisp.org>
67568         Fix definition of tests witness macro.
67569         * gnulib-tool (func_import): Fix definition of witness macro.
67571 2010-03-28  Bruno Haible  <bruno@clisp.org>
67573         Fix ioctl's protoype on glibc systems.
67574         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
67575         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
67576         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
67577         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
67578         signature. If not, arrange to replace the ioctl function.
67579         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
67580         REPLACE_IOCTL.
67581         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
67582         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
67583         Reported by Ludovic Courtès <ludo@gnu.org>.
67585 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
67587         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
67588         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
67589         made it so grep -r --include=GLOB* ... did not work.
67591 2010-03-26  Jim Meyering  <meyering@redhat.com>
67592             Eric Blake  <eblake@redhat.com>
67594         maint.mk: prohibit use of test's -o and -a operators
67595         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
67597 2010-03-28  Bruno Haible  <bruno@clisp.org>
67599         Remove unused GNULIB_XYZ macro definitions.
67600         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
67601         invocation.
67603 2010-03-28  Bruno Haible  <bruno@clisp.org>
67605         Mark privileged tests modules.
67606         * modules/idpriv-drop-tests (Status): New section.
67607         * modules/idpriv-droptemp-tests (Status): New section.
67609 2010-03-28  Bruno Haible  <bruno@clisp.org>
67611         Split C++ tests into separate tests modules.
67612         * modules/dirent-c++-tests: New file, extracted from
67613         modules/dirent-tests.
67614         * modules/dirent-tests: Depend on it.
67615         * modules/fcntl-h-c++-tests: New file, extracted from
67616         modules/fcntl-h-tests.
67617         * modules/fcntl-h-tests: Depend on it.
67618         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
67619         * modules/glob-tests: Depend on it.
67620         * modules/iconv-h-c++-tests: New file, extracted from
67621         modules/iconv-h-tests.
67622         * modules/iconv-h-tests: Depend on it.
67623         * modules/langinfo-c++-tests: New file, extracted from
67624         modules/langinfo-tests.
67625         * modules/langinfo-tests: Depend on it.
67626         * modules/locale-c++-tests: New file, extracted from
67627         modules/locale-tests.
67628         * modules/locale-tests: Depend on it.
67629         * modules/math-c++-tests: New file, extracted from modules/math-tests.
67630         * modules/math-tests: Depend on it.
67631         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
67632         * modules/pty-tests: Depend on it.
67633         * modules/search-c++-tests: New file, extracted from
67634         modules/search-tests.
67635         * modules/search-tests: Depend on it.
67636         * modules/signal-c++-tests: New file, extracted from
67637         modules/signal-tests.
67638         * modules/signal-tests: Depend on it.
67639         * modules/spawn-c++-tests: New file, extracted from
67640         modules/spawn-tests.
67641         * modules/spawn-tests: Depend on it.
67642         * modules/stdio-c++-tests: New file, extracted from
67643         modules/stdio-tests.
67644         * modules/stdio-tests: Depend on it.
67645         * modules/stdlib-c++-tests: New file, extracted from
67646         modules/stdlib-tests.
67647         * modules/stdlib-tests: Depend on it.
67648         * modules/string-c++-tests: New file, extracted from
67649         modules/string-tests.
67650         * modules/string-tests: Depend on it.
67651         * modules/sys_ioctl-c++-tests: New file, extracted from
67652         modules/sys_ioctl-tests.
67653         * modules/sys_ioctl-tests: Depend on it.
67654         * modules/sys_select-c++-tests: New file, extracted from
67655         modules/sys_select-tests.
67656         * modules/sys_select-tests: Depend on it.
67657         * modules/sys_socket-c++-tests: New file, extracted from
67658         modules/sys_socket-tests.
67659         * modules/sys_socket-tests: Depend on it.
67660         * modules/sys_stat-c++-tests: New file, extracted from
67661         modules/sys_stat-tests.
67662         * modules/sys_stat-tests: Depend on it.
67663         * modules/sys_time-c++-tests: New file, extracted from
67664         modules/sys_time-tests.
67665         * modules/sys_time-tests: Depend on it.
67666         * modules/time-c++-tests: New file, extracted from modules/time-tests.
67667         * modules/time-tests: Depend on it.
67668         * modules/unistd-c++-tests: New file, extracted from
67669         modules/unistd-tests.
67670         * modules/unistd-tests: Depend on it.
67671         * modules/wchar-c++-tests: New file, extracted from
67672         modules/wchar-tests.
67673         * modules/wchar-tests: Depend on it.
67674         * modules/wctype-c++-tests: New file, extracted from
67675         modules/wctype-tests.
67676         * modules/wctype-tests: Depend on it.
67677         Reported by Simon Josefsson.
67679 2010-03-28  Bruno Haible  <bruno@clisp.org>
67681         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
67682         * gnulib-tool (func_exists_module): New function, extracted from
67683         func_verify_module.
67684         (func_verify_module): Use it.
67685         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
67686         'foo' only if 'foo' exists.
67687         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
67688         module.
67690 2010-03-28  Bruno Haible  <bruno@clisp.org>
67692         gnulib-tool: Add support for special categories of tests.
67693         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
67694         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
67695         (func_usage): Document them.
67696         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
67697         inc_unportable_tests, inc_all_tests): New variables.
67698         (func_acceptable): Consider these variables.
67699         (func_modules_transitive_closure): Make it work when the 'Status' field
67700         consists of multiple words.
67701         (func_import): Store and restore the values of inc_cxx_tests,
67702         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
67703         inc_all_tests in gnulib-comp.m4.
67704         (func_create_testdir): Set inc_all_tests to true.
67705         * doc/gnulib.texi (Extra tests modules): New section.
67706         Suggested by Jim Meyering.
67708 2010-03-28  Bruno Haible  <bruno@clisp.org>
67710         ansi-c++-opt: Allow turning off the C++ build by default.
67711         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
67712         gl_CXX_CHOICE_DEFAULT_NO is defined.
67713         Requested by Eric Blake.
67715 2010-03-28  Bruno Haible  <bruno@clisp.org>
67717         unistd: Avoid #define replacements in C++ mode.
67718         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
67719         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
67720         setsockopt, shutdown, select): In C++, attach a warning to the function
67721         if possible, rather than #defining the symbol to a dysfunctional alias.
67722         Reported by John W. Eaton <jwe@gnu.org>.
67724 2010-03-28  Bruno Haible  <bruno@clisp.org>
67726         Fix link errors on mingw.
67727         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
67728         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
67729         $(LIBSOCKET).
67730         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
67731         $(LIBSOCKET).
67733 2010-03-28  Bruno Haible  <bruno@clisp.org>
67734             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67736         lib-ignore: Determine different options for different compilers.
67737         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
67738         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
67739         Add comments.
67740         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
67741         * NEWS: Mention the change.
67743 2010-03-27  Bruno Haible  <bruno@clisp.org>
67745         Remove unused GNULIB_XYZ macro definitions.
67746         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67747         * modules/fseek (configure.ac): Likewise.
67748         * modules/ioctl (configure.ac): Likewise.
67749         * modules/open (configure.ac): Likewise.
67750         * modules/stdlib-safer (configure.ac): Likewise.
67752 2010-03-27  Bruno Haible  <bruno@clisp.org>
67754         Add a remark about certain modules.
67755         * modules/malloc (Comment): New section.
67756         * modules/realloc (Comment): Likewise.
67757         * modules/sigpipe (Comment): Likewise.
67759 2010-03-27  Bruno Haible  <bruno@clisp.org>
67761         Resolve conflict between the two kinds of module indicators.
67762         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
67763         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
67764         * modules/canonicalize (configure.ac): Invoke
67765         gl_MODULE_INDICATOR_FOR_TESTS.
67766         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
67767         GNULIB_XYZ.
67768         * tests/test-dirent-c++.cc: Likewise.
67769         * tests/test-dirent-safer.c: Likewise.
67770         * tests/test-dup2.c: Likewise.
67771         * tests/test-fchdir.c: Likewise.
67772         * tests/test-fcntl-h-c++.cc: Likewise.
67773         * tests/test-getopt.c: Likewise.
67774         * tests/test-getopt.h: Likewise.
67775         * tests/test-langinfo-c++.cc: Likewise.
67776         * tests/test-locale-c++.cc: Likewise.
67777         * tests/test-math-c++.cc: Likewise.
67778         * tests/test-pty-c++.cc: Likewise.
67779         * tests/test-search-c++.cc: Likewise.
67780         * tests/test-signal-c++.cc: Likewise.
67781         * tests/test-spawn-c++.cc: Likewise.
67782         * tests/test-stdio-c++.cc: Likewise.
67783         * tests/test-stdlib-c++.cc: Likewise.
67784         * tests/test-string-c++.cc: Likewise.
67785         * tests/test-sys_ioctl-c++.cc: Likewise.
67786         * tests/test-sys_select-c++.cc: Likewise.
67787         * tests/test-sys_socket-c++.cc: Likewise.
67788         * tests/test-sys_stat-c++.cc: Likewise.
67789         * tests/test-sys_time-c++.cc: Likewise.
67790         * tests/test-time-c++.cc: Likewise.
67791         * tests/test-unistd-c++.cc: Likewise.
67792         * tests/test-wchar-c++.cc: Likewise.
67793         * tests/uninorm/test-u8-nfc.c: Likewise.
67794         * tests/uninorm/test-u8-nfd.c: Likewise.
67795         * tests/uninorm/test-u8-nfkc.c: Likewise.
67796         * tests/uninorm/test-u8-nfkd.c: Likewise.
67797         * tests/uninorm/test-u16-nfc.c: Likewise.
67798         * tests/uninorm/test-u16-nfd.c: Likewise.
67799         * tests/uninorm/test-u16-nfkc.c: Likewise.
67800         * tests/uninorm/test-u16-nfkd.c: Likewise.
67801         * tests/uninorm/test-u32-nfc.c: Likewise.
67802         * tests/uninorm/test-u32-nfc-big.c: Likewise.
67803         * tests/uninorm/test-u32-nfd.c: Likewise.
67804         * tests/uninorm/test-u32-nfd-big.c: Likewise.
67805         * tests/uninorm/test-u32-nfkc.c: Likewise.
67806         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
67807         * tests/uninorm/test-u32-nfkd.c: Likewise.
67808         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
67809         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67811 2010-03-27  Bruno Haible  <bruno@clisp.org>
67813         Distinguish two kinds of module indicators.
67814         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
67815         gl_MODULE_INDICATOR.
67816         (gl_MODULE_INDICATOR): New macro.
67817         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67818         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
67819         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67820         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67821         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67822         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67823         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67824         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67825         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67826         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67827         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67828         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67830         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67831         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67832         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67833         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67834         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67835         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67836         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67837         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67838         * modules/cloexec (configure.ac): Likewise.
67839         * modules/getopt-gnu (configure.ac): Likewise.
67840         * modules/uninorm/u8-normalize (configure.ac): Likewise.
67841         * modules/uninorm/u16-normalize (configure.ac): Likewise.
67842         * modules/uninorm/u32-normalize (configure.ac): Likewise.
67843         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
67845 2010-03-27  Bruno Haible  <bruno@clisp.org>
67847         New module description field 'Comment'.
67848         * gnulib-tool: New option --extract-comment.
67849         (func_usage): Document it.
67850         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
67851         (func_get_comment): New function.
67852         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
67854 2010-03-27  Bruno Haible  <bruno@clisp.org>
67856         Addendum to 2010-02-07 commit.
67857         * gnulib-tool (func_usage): Document --extract-applicability option.
67859 2010-03-27  Bruno Haible  <bruno@clisp.org>
67861         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
67862         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
67863         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
67864         rather than link errors.
67866 2010-03-27  Bruno Haible  <bruno@clisp.org>
67868         Avoid side effects from tests-related modules on the compilation of lib.
67869         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
67870         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
67871         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
67872         parameter. Emit into AM_CPPFLAGS a definition of the designated C
67873         macro.
67874         (func_import): Define a witness macro. Assign it a value that depends
67875         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
67876         tests-related modules.
67877         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
67878         Reported by Jim Meyering.
67880 2010-03-27  Bruno Haible  <bruno@clisp.org>
67882         Factorize common .m4 code.
67883         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
67884         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
67885         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
67886         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
67887         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67888         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
67889         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
67890         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67891         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67892         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67893         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
67894         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67895         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67896         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67897         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67898         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67899         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67900         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67902         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67903         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67904         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67905         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67906         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67907         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67908         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67909         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67910         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67911         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67912         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67913         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67914         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67916 2010-03-27  Bruno Haible  <bruno@clisp.org>
67918         Fix a compilation error on Cygwin with g++ >= 4.3.
67919         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67920         if it is undefined or if we alias it to chmod.
67921         (lstat): Don't warn about the use of this function if it is undefined
67922         or if we alias it to stat.
67923         Reported by Simon Josefsson.
67925 2010-03-27  Bruno Haible  <bruno@clisp.org>
67927         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67928         * modules/getlogin (configure.ac): Update.
67930         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67931         * modules/getlogin_r (configure.ac): Update.
67933         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67935         * modules/inet_ntop (configure.ac): Update.
67937         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67938         * modules/inet_pton (configure.ac): Update.
67940         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67941         * modules/mbslen (configure.ac): Update.
67943         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67944         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67945         * modules/forkpty (configure.ac): Update.
67946         * modules/openpty (configure.ac): Update.
67948 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67950         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67951         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67953 2010-03-25  Eric Blake  <eblake@redhat.com>
67955         maint: use pragma consistently across replacement headers
67956         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67957         * lib/dirent.in.h (system_header): Likewise.
67958         * lib/errno.in.h (system_header): Likewise.
67959         * lib/float.in.h (system_header): Likewise.
67960         * lib/getopt.in.h (system_header): Likewise.
67961         * lib/iconv.in.h (system_header): Likewise.
67962         * lib/inttypes.in.h (system_header): Likewise.
67963         * lib/langinfo.in.h (system_header): Likewise.
67964         * lib/locale.in.h (system_header): Likewise.
67965         * lib/math.in.h (system_header): Likewise.
67966         * lib/netdb.in.h (system_header): Likewise.
67967         * lib/netinet_in.in.h (system_header): Likewise.
67968         * lib/pty.in.h (system_header): Likewise.
67969         * lib/sched.in.h (system_header): Likewise.
67970         * lib/se-selinux.in.h (system_header): Likewise.
67971         * lib/search.in.h (system_header): Likewise.
67972         * lib/spawn.in.h (system_header): Likewise.
67973         * lib/stdarg.in.h (system_header): Likewise.
67974         * lib/stdint.in.h (system_header): Likewise.
67975         * lib/string.in.h (system_header): Likewise.
67976         * lib/strings.in.h (system_header): Likewise.
67977         * lib/sys_file.in.h (system_header): Likewise.
67978         * lib/sys_ioctl.in.h (system_header): Likewise.
67979         * lib/sys_socket.in.h (system_header): Likewise.
67980         * lib/sys_times.in.h (system_header): Likewise.
67981         * lib/sys_utsname.in.h (system_header): Likewise.
67982         * lib/sys_wait.in.h (system_header): Likewise.
67983         * lib/sysexits.in.h (system_header): Likewise.
67984         * lib/unistd.in.h (system_header): Likewise.
67985         * lib/wctype.in.h (system_header): Likewise.
67987         arpa/inet: fix mingw compilation warning
67988         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67989         Reported by Matthew Bolte.
67991 2010-03-25  Bruno Haible  <bruno@clisp.org>
67993         Avoid collision between gnulib wrapper and libintl wrapper.
67994         * lib/printf.c (printf): Don't define if a printf wrapper is already
67995         defined in intl/printf.c.
67996         Reported by Michel Boaventura <michel@michelboaventura.com>.
67998 2010-03-25  Bruno Haible  <bruno@clisp.org>
68000         Use ANSI C.
68001         * lib/readutmp.h (getutent): Provide ANSI C prototype.
68003 2010-03-25  Bruno Haible  <bruno@clisp.org>
68005         Minor formatting changes.
68006         * lib/acosl.c: Insert space before function argument list.
68007         * lib/argz.c: Likewise.
68008         * lib/asinl.c: Likewise.
68009         * lib/expl.c: Likewise.
68010         * lib/gen-uni-tables.c: Likewise.
68011         * lib/gettext.h: Likewise.
68012         * lib/glthread/lock.h: Likewise.
68013         * lib/tanl.c: Likewise.
68014         * lib/uniname/uniname.c: Likewise.
68015         * tests/test-idpriv-drop.c: Likewise.
68016         * tests/test-idpriv-droptemp.c: Likewise.
68017         * tests/test-lock.c: Likewise.
68018         * tests/test-tls.c: Likewise.
68019         * lib/argp-help.c: Insert space before function-like macro argument
68020         list.
68021         * lib/memcmp.c: Likewise.
68022         * tests/test-base64.c: Likewise.
68023         * lib/localename.c: Insert space before sizeof's argument list.
68024         * lib/safe-alloc.h: Likewise.
68025         * lib/file-set.h: Insert space before macro argument list.
68026         * tests/test-argp.c: Likewise.
68027         * lib/argp-namefrob.h: Insert space before function parameter list.
68028         * lib/getaddrinfo.c: Likewise.
68029         * lib/netdb.in.h: Likewise.
68030         * lib/parse-duration.h: Likewise.
68031         * lib/parse-duration.c: Likewise.
68032         * lib/poll.c: Likewise.
68033         * lib/select.c: Likewise.
68034         * lib/trim.h: Likewise.
68035         * tests/test-usleep.c: Likewise.
68036         * lib/ldexpl.c: Insert space before function parameter list and before
68037         function argument list.
68038         * lib/logl.c: Likewise.
68039         * lib/sqrtl.c: Likewise.
68040         * lib/trim.c: Likewise.
68041         * lib/cosl.c: Use GNU style indentation. Insert space before function
68042         argument list.
68043         * lib/sinl.c: Likewise.
68044         * lib/tsearch.c: Insert space after 'for'.
68045         Reported by Jim Meyering.
68047 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
68049         * maint.mk (sc_Wundef_boolean): Check for the presence of the
68050         config header before grepping, as it's not present before
68051         autoreconf/configure are run.  Reported by Simon Josefsson.
68053 2010-03-23  Bruno Haible  <bruno@clisp.org>
68055         pt_chown: Make it work with automake < 1.11.
68056         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
68057         Reported by Simon Josefsson.
68059 2010-03-23  Bruno Haible  <bruno@clisp.org>
68061         pt_chown: Don't depend on GPLed modules.
68062         * lib/pt_chown.c: Don't include idpriv.h.
68063         (main): Don't drop privileges.
68064         * modules/pt_chown (Depends-on): Remove idpriv-drop.
68065         Reported by Simon Josefsson.
68067 2010-03-24  Simon Josefsson  <simon@josefsson.org>
68069         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
68070         suggestions from karl@freefriends.org (Karl Berry).
68072 2010-03-22  Eric Blake  <eblake@redhat.com>
68074         gethostname: further tweaks
68075         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
68076         are overriding gethostname.
68077         Suggested by Bruno Haible.
68079 2010-03-21  Bruno Haible  <bruno@clisp.org>
68081         Fix comments.
68082         * lib/forkpty.c (rpl_forkpty): Fix comment.
68083         * lib/openpty.c (rpl_openpty): Likewise.
68084         Reported by Eric Blake.
68086 2010-03-22  Eric Blake  <eblake@redhat.com>
68088         gethostname: fix build on mingw
68089         * lib/unistd.in.h (includes): Work around fact that mingw
68090         <winsock2.h> re-includes <unistd.h>, by avoiding any
68091         redeclarations if we are being included by <winsock2.h>.
68092         Reported by Matthias Bolte.
68094 2010-03-21  Bruno Haible  <bruno@clisp.org>
68096         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
68097         * lib/forkpty.c (forkpty): New replacement function, from glibc with
68098         modifications.
68099         * lib/pty.in.h (forkpty): Update declaration. Add comments.
68100         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
68101         provide the replacement.
68102         * modules/forkpty (Depends-on): Add openpty, login_tty.
68103         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
68104         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
68105         * doc/glibc-functions/forkpty.texi: More supported platforms.
68106         * config/srclist.txt: Add forkpty.c (commented).
68108 2010-03-21  Bruno Haible  <bruno@clisp.org>
68110         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
68111         (Makefile.am): Verify that PTY_LIB is defined.
68113         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
68115 2010-03-21  Bruno Haible  <bruno@clisp.org>
68117         Tests for module 'login_tty'.
68118         * modules/login_tty-tests: New file.
68119         * tests/test-login_tty.c: New file.
68121         New module 'login_tty'.
68122         * lib/login_tty.c: New file.
68123         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
68124         * modules/login_tty: New file.
68125         * doc/glibc-functions/login_tty.texi: Mention the new module.
68127 2010-03-21  Bruno Haible  <bruno@clisp.org>
68129         login_tty: Documentation.
68130         * doc/glibc-functions/login_tty.texi: New file.
68131         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
68133 2010-03-21  Bruno Haible  <bruno@clisp.org>
68135         pty: Consistent macro naming.
68136         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
68137         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
68138         * modules/pty (configure.ac): Update.
68140 2010-03-21  Bruno Haible  <bruno@clisp.org>
68142         Tests for openpty: Make stricter.
68143         * tests/test-openpty.c (main): Add test of canonical processing and
68144         erase.
68145         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
68147         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
68148         * lib/openpty.c (openpty): New replacement function.
68149         * lib/pty.in.h: Include <termios.h>.
68150         (openpty): Update declaration. Add comments.
68151         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
68152         is not declared, arrange to provide the replacement. Check for _getpty
68153         and posix_openpt.
68154         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
68155         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
68156         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
68157         * modules/pty-tests (test_pty_c___LDADD): New variable.
68158         * doc/glibc-functions/openpty.texi: More supported platforms.
68160 2010-03-21  Bruno Haible  <bruno@clisp.org>
68162         setenv: Tweaks.
68163         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
68164         the test program.
68165         * doc/posix-functions/setenv.texi: Update platforms list.
68167 2010-03-21  Bruno Haible  <bruno@clisp.org>
68169         New module 'unlockpt'.
68170         * lib/unlockpt.c: New file, from glibc with modifications.
68171         * m4/unlockpt.m4: New file.
68172         * modules/unlockpt: New file.
68173         * lib/stdlib.in.h (unlockpt): New declaration.
68174         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
68175         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
68176         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
68177         HAVE_UNLOCKPT.
68178         * doc/posix-functions/unlockpt.texi: Mention the new module.
68179         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
68180         * config/srclist.txt: Add unlockpt.c (commented).
68182 2010-03-21  Jim Meyering  <meyering@redhat.com>
68184         maint.mk: prohibit inclusion of "intprops.h" without use
68185         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
68187 2010-03-21  Bruno Haible  <bruno@clisp.org>
68189         New module 'grantpt'.
68190         * lib/grantpt.c: New file, from glibc with modifications.
68191         * m4/grantpt.m4: New file.
68192         * modules/grantpt: New file.
68193         * lib/stdlib.in.h (grantpt): New declaration.
68194         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
68195         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
68196         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
68197         HAVE_GRANTPT.
68198         * doc/posix-functions/grantpt.texi: Mention the new module.
68199         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
68200         * config/srclist.txt: Add grantpt.c (commented).
68202 2010-03-21  Bruno Haible  <bruno@clisp.org>
68204         New module 'pt_chown'.
68205         * lib/pt_chown.c: New file, from glibc with modifications.
68206         * lib/pty-private.h: New file, from glibc with modifications.
68207         * modules/pt_chown: New file.
68208         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
68210 2010-03-21  Bruno Haible  <bruno@clisp.org>
68212         Tests for module 'ptsname'.
68213         * modules/ptsname-tests: New file.
68214         * tests/test-ptsname.c: New file.
68216         New module 'ptsname'.
68217         * lib/ptsname.c: New file, from glibc with modifications.
68218         * m4/ptsname.m4: New file.
68219         * modules/ptsname: New file.
68220         * lib/stdlib.in.h (ptsname): New declaration.
68221         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
68222         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
68223         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
68224         HAVE_PTSNAME.
68225         * doc/posix-functions/ptsname.texi: Mention the new module.
68226         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
68227         * config/srclist.txt: Add ptsname.c (commented).
68229 2010-03-21  Bruno Haible  <bruno@clisp.org>
68231         Tests for module 'ttyname_r'.
68232         * modules/ttyname_r-tests: New file.
68233         * tests/test-ttyname_r.c: New file.
68235         New module 'ttyname_r'.
68236         * lib/ttyname_r.c: New file.
68237         * m4/ttyname_r.m4: New file.
68238         * modules/ttyname_r: New file.
68239         * lib/unistd.in.h (ttyname_r): New declaration.
68240         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
68241         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
68242         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
68243         HAVE_TTYNAME_R.
68244         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
68245         * doc/posix-functions/ttyname_r.texi: Mention the new module.
68247 2010-03-20  Bruno Haible  <bruno@clisp.org>
68249         signal: Undefine macro definitions in C++ mode.
68250         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
68251         sigfillset): Undefine macro definitions from the system header in C++
68252         mode.
68253         Reported by John W. Eaton <jwe@gnu.org>.
68255 2010-03-20  Bruno Haible  <bruno@clisp.org>
68257         Ensure no #include statements inside extern "C" { ... }.
68258         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
68259         contain #include statements.
68260         * lib/time.in.h: Likewise.
68262 2010-03-20  Bruno Haible  <bruno@clisp.org>
68264         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
68265         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
68266         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
68267         Reported by John W. Eaton <jwe@gnu.org>.
68269 2010-03-20  Bruno Haible  <bruno@clisp.org>
68271         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
68272         Reported by Jim Meyering.
68274 2010-03-20  Bruno Haible  <bruno@clisp.org>
68276         pipe: Set errno upon failure.
68277         * lib/pipe.h: Specify that when -1 is returned, errno is set.
68278         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
68279         errno value in error message.
68281 2010-03-20  Bruno Haible  <bruno@clisp.org>
68282             Jim Meyering  <meyering@redhat.com>
68284         lchown: Avoid "unused variable" warning.
68285         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
68287 2010-03-20  Bruno Haible  <bruno@clisp.org>
68289         Work around unlink() bug on MacOS X 10.5.6.
68290         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
68291         attempting to unlink a parent directory.
68292         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
68293         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
68294         activate for the replacement function.
68295         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
68297 2010-03-20  Bruno Haible  <bruno@clisp.org>
68299         Fix link errors on Solaris 8.
68300         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
68301         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
68303 2010-03-19  Jim Meyering  <meyering@redhat.com>
68305         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
68306         The _LIBC implementation of build_range_exp correctly honors the
68307         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
68308         However, the non-_LIBC implementation would ignore that syntax-bit
68309         flag and return REG_ERANGE unconditionally.
68310         This change makes it honor that flag.
68311         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
68312         Make two pointer parameters "const".
68313         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
68314         (parse_bracket_exp): Update caller.
68316         regex.m4: correct the reversed range endpoint ([b-a]) test
68317         * m4/regex.m4: When requiring that [b-a] evoke failure,
68318         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
68319         test pass once again for x86-based systems.
68321 2010-03-19  Bruno Haible  <bruno@clisp.org>
68323         scandir: Fix link error on Solaris 8.
68324         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
68325         macros.
68327 2010-03-19  Bruno Haible  <bruno@clisp.org>
68329         getusershell: Fix documentation.
68330         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
68331         module.
68332         * doc/glibc-functions/setusershell.texi: Likewise.
68334         getusershell: Provide declaration, missing on Solaris 9.
68335         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
68336         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
68337         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
68338         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
68339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68340         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
68341         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
68342         HAVE_GETUSERSHELL.
68343         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
68345 2010-03-19  Bruno Haible  <bruno@clisp.org>
68347         wctype: Provide iswblank function.
68348         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
68349         exists and is fine.
68350         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
68351         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
68352         * tests/test-wctype.c (main): Re-enable the iswblank tests.
68353         * doc/posix-functions/iswblank.texi: Update.
68355 2010-03-19  Bruno Haible  <bruno@clisp.org>
68357         Tests of module 'pty' in C++ mode.
68358         * modules/pty-tests: New file.
68359         * tests/test-pty-c++.cc: New file.
68360         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68362 2010-03-19  Eric Blake  <eblake@redhat.com>
68364         logb: fix documentation
68365         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
68366         1.5 declaration bug.
68368         forkpty, openpty: prefer glibc's const-safe prototype
68369         * lib/forkpty.c (rpl_forkpty): New file.
68370         * lib/openpty.c (rpl_openpty): Likewise.
68371         * modules/forkpty (Files): Distribute it.
68372         * modules/openpty (Files): Likewise.
68373         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
68374         check...
68375         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
68376         replacement for non-const BSD signature.
68377         * modules/pty (Makefile.am): Substitute witnesses.
68378         * lib/pty.in.h (forkpty, openpty): Declare replacements.
68379         * tests/test-forkpty.c: Update signature check.
68380         * tests/test-openpty.c: Likewise.
68381         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
68382         * doc/glibc-functions/openpty.texi (openpty): Likewise.
68384         forkpty, openpty: split functions into new modules
68385         * modules/pty (Makefile.am): Substitute new witnesses.
68386         (Libraries): Move library detection...
68387         * modules/forkpty: ...into new module.
68388         * modules/openpty: Another new module.
68389         * modules/pty-tests: Rename and split...
68390         * modules/forkpty-tests: ...to this...
68391         * modules/openpty-tests: ...and this.
68392         * tests/test-pty.c: Rename and split...
68393         * tests/test-forkpty.c: ...to this...
68394         * tests/test-openpty.c: ...and this.
68395         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
68396         (gl_PTY): Split library searching...
68397         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
68398         (gl_FORKPTY, gl_OPENPTY): New macros.
68399         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
68400         * NEWS: Mention the split.
68401         * MODULES.html.sh (Misc): Document the modules.
68402         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
68403         * doc/glibc-functions/openpty.texi (openpty): Likewise.
68405         pty: improve replacement header
68406         * lib/pty.in.h: New file.
68407         * modules/pty (Files): Ship it.
68408         (Makefile.am): Always build replacement.
68409         * m4/pty.m4: Rename...
68410         * m4/pty_h.m4: ...to this.
68411         (gl_PTY): Modernize setting of witness macros; update check of
68412         forkpty to take proper advantage of cache.
68413         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
68415         getopt: avoid compiler warning
68416         * lib/getopt.c (attribute_hidden): Remove unused macro.
68418 2010-03-18  Bruno Haible  <bruno@clisp.org>
68420         Fix link errors on Solaris 8.
68421         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
68422         * modules/search-tests (test_search_c___LDADD): Likewise.
68423         * modules/signal-tests (test_signal_c___LDADD): Likewise.
68424         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
68425         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
68426         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
68427         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
68428         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
68429         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
68431 2010-03-18  Bruno Haible  <bruno@clisp.org>
68433         Fix bug introduced on 2010-03-14.
68434         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
68435         (gl_SPAWN_H): Require it.
68436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
68437         Reported by Simon Josefsson.
68439 2010-03-18  Bruno Haible  <bruno@clisp.org>
68441         Fix typo introduced on 2009-12-31.
68442         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
68443         posix_spawn_file_actions_adddup2.
68445 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
68446         and Eric Blake  <eblake@redhat.com>
68448         test-vc-list-files-git: make more robust
68449         * tests/test-vc-list-files-git.sh: Unset problematic environment
68450         variables.  Chain commands together.
68452 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
68454         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
68455         `AC_CHECK_DECL' invocation.
68457 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
68459         * lib/inttostr.c (inttostr): Make sure the invocation of verify
68460         appears before executable statements. Suggested by Petr Sumbera
68461         <Petr.Sumbera@Sun.COM>.
68463 2010-03-14  Bruno Haible  <bruno@clisp.org>
68465         * tests/test-flock.c (test_exclusive): Comment out a test that causes
68466         portability problems. Instead use a simpler test.
68467         (main): Check that invalid arguments are rejected only on Linux.
68469 2010-03-14  Bruno Haible  <bruno@clisp.org>
68471         Fix bug introduced on 2009-12-31.
68472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
68473         gl_PREREQ_SYS_H_WINSOCK2 always.
68474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
68475         SYS_SOCKET_H variable.
68476         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
68477         Update comments.
68478         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
68479         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68482         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
68484 2010-03-14  Bruno Haible  <bruno@clisp.org>
68486         Fix values returned by sinl, cosl.
68487         * lib/trigl.h: Add specification comments.
68488         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
68489         that combines the values from the precomputed table with the values of
68490         the Chebyshev polynomials.
68492 2010-03-14  Bruno Haible  <bruno@clisp.org>
68494         Fix compilation error when modules 'posix_spawn[p]' are not used.
68495         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
68496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
68498 2010-03-14  Bruno Haible  <bruno@clisp.org>
68500         Fix compilation error on mingw when module 'time_r' is not used.
68501         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
68502         is 1.
68503         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
68504         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68505         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
68506         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
68508 2010-03-14  Bruno Haible  <bruno@clisp.org>
68510         Fix compilation error with Sun C.
68511         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
68512         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
68513         instead of GCC specific ULONG_LONG_MAX.
68514         * lib/xstrtoll.c: Likewise.
68515         * lib/xstrtoull.c: Likewise.
68517 2010-03-13  Bruno Haible  <bruno@clisp.org>
68519         Allow the user to disable C++ code and tests.
68520         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
68521         (gl_PROG_ANSI_CXX): Require it.
68523 2010-03-13  Bruno Haible  <bruno@clisp.org>
68525         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
68526         cases.
68528 2010-03-13  Bruno Haible  <bruno@clisp.org>
68530         Test that gnulib does not break the standard C++ headers.
68531         * tests/test-locale-c++2.cc: New file.
68532         * modules/locale-tests (Files): Add it.
68533         (Makefile.am): Compile it for test-locale-c++.
68534         * tests/test-math-c++2.cc: New file.
68535         * modules/math-tests (Files): Add it.
68536         (Makefile.am): Compile it for test-math-c++.
68537         * tests/test-signal-c++2.cc: New file.
68538         * modules/signal-tests (Files): Add it.
68539         (Makefile.am): Compile it for test-signal-c++.
68540         * tests/test-stdio-c++2.cc: New file.
68541         * modules/stdio-tests (Files): Add it.
68542         (Makefile.am): Compile it for test-stdio-c++.
68543         * tests/test-stdlib-c++2.cc: New file.
68544         * modules/stdlib-tests (Files): Add it.
68545         (Makefile.am): Compile it for test-stdlib-c++.
68546         * tests/test-string-c++2.cc: New file.
68547         * modules/string-tests (Files): Add it.
68548         (Makefile.am): Compile it for test-string-c++.
68549         * tests/test-time-c++2.cc: New file.
68550         * modules/time-tests (Files): Add it.
68551         (Makefile.am): Compile it for test-time-c++.
68552         Reported by John W. Eaton <jwe@gnu.org>.
68554 2010-03-13  Bruno Haible  <bruno@clisp.org>
68556         * gnulib-tool (func_usage): Clarify which options are available for
68557         --create-testdir and --create-megatestdir.
68559 2010-03-13  Bruno Haible  <bruno@clisp.org>
68561         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
68562         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
68563         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
68564         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
68565         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
68566         when appropriate.
68567         Reported by Jim Meyering.
68569 2010-03-12  Simon Josefsson  <simon@josefsson.org>
68571         * gnulib-tool (func_import): Explain origin of code.
68573 2010-03-12  Bruno Haible  <bruno@clisp.org>
68575         Fix problem with automake's definition of CXXLINK.
68576         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
68577         Reported by Simon Josefsson and Ludovic Courtès.
68579 2010-03-12  Bruno Haible  <bruno@clisp.org>
68581         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
68582         stable releases.
68584 2010-03-11  Bruno Haible  <bruno@clisp.org>
68586         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
68587         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
68588         whether the system provides one variant or multiple variants of the
68589         function.
68590         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
68591         C++ compilers.
68592         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
68593         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
68594         Reported by Jim Meyering.
68596 2010-03-09  Simon Josefsson  <simon@josefsson.org>
68598         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
68600 2010-03-08  Bruno Haible  <bruno@clisp.org>
68602         gnulib-tool: Add support for --libtool in --create-testdir.
68603         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
68604         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
68606 2010-03-08  Eric Blake  <eblake@redhat.com>
68608         gnulib-tool.texi: mention possibility of git submodule
68609         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
68610         submodules.
68611         * doc/.gitignore: Ignore another generated file.
68613 2010-03-08  Karl Berry  <karl@gnu.org>
68615         * doc/gnulib-tool.texi (VCS Issues): Mention third option
68616         of committing gnulib files while skipping others.
68618 2010-03-07  Bruno Haible  <bruno@clisp.org>
68620         Tests of module 'wctype' in C++ mode.
68621         * tests/test-wctype-c++.cc: New file.
68622         * modules/wctype-tests (Files): Add it and tests/signature.h.
68623         (Depends-on): Add ansi-c++-opt.
68624         (Makefile.am): Arrange to compile and run test-wctype-c++.
68626         Tests of module 'wchar' in C++ mode.
68627         * tests/test-wchar-c++.cc: New file.
68628         * modules/wchar-tests (Files): Add it and tests/signature.h.
68629         (Depends-on): Add ansi-c++-opt.
68630         (Makefile.am): Arrange to compile and run test-wchar-c++.
68631         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
68632         gl_MODULE_INDICATOR.
68634         Tests of module 'unistd' in C++ mode.
68635         * tests/test-unistd-c++.cc: New file.
68636         * modules/unistd-tests (Files): Add it and tests/signature.h.
68637         (Depends-on): Add ansi-c++-opt.
68638         (Makefile.am): Arrange to compile and run test-unistd-c++.
68639         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
68640         gl_MODULE_INDICATOR.
68642         Tests of module 'time' in C++ mode.
68643         * tests/test-time-c++.cc: New file.
68644         * modules/time-tests (Files): Add it and tests/signature.h.
68645         (Depends-on): Add ansi-c++-opt.
68646         (Makefile.am): Arrange to compile and run test-time-c++.
68647         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68649         Tests of module 'sys_time' in C++ mode.
68650         * tests/test-sys_time-c++.cc: New file.
68651         * modules/sys_time-tests (Files): Add it and tests/signature.h.
68652         (Depends-on): Add ansi-c++-opt.
68653         (Makefile.am): Arrange to compile and run test-sys_time-c++.
68654         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
68655         gl_MODULE_INDICATOR.
68657         Tests of module 'sys_stat' in C++ mode.
68658         * tests/test-sys_stat-c++.cc: New file.
68659         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
68660         (Depends-on): Add ansi-c++-opt.
68661         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
68662         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
68663         gl_MODULE_INDICATOR.
68665         Tests of module 'sys_socket' in C++ mode.
68666         * tests/test-sys_socket-c++.cc: New file.
68667         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
68668         (Depends-on): Add ansi-c++-opt.
68669         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
68670         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
68671         gl_MODULE_INDICATOR.
68673         Tests of module 'sys_select' in C++ mode.
68674         * tests/test-sys_select-c++.cc: New file.
68675         * modules/sys_select-tests (Files): Add it and tests/signature.h.
68676         (Depends-on): Add ansi-c++-opt.
68677         (Makefile.am): Arrange to compile and run test-sys_select-c++.
68678         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
68679         gl_MODULE_INDICATOR.
68681         Tests of module 'sys_ioctl' in C++ mode.
68682         * tests/test-sys_ioctl-c++.cc: New file.
68683         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
68684         (Depends-on): Add ansi-c++-opt.
68685         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
68686         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
68687         gl_MODULE_INDICATOR.
68689         Tests of module 'string' in C++ mode.
68690         * tests/test-string-c++.cc: New file.
68691         * modules/string-tests (Files): Add it and tests/signature.h.
68692         (Depends-on): Add ansi-c++-opt.
68693         (Makefile.am): Arrange to compile and run test-string-c++.
68694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
68695         gl_MODULE_INDICATOR.
68697         Tests of module 'stdlib' in C++ mode.
68698         * tests/test-stdlib-c++.cc: New file.
68699         * modules/stdlib-tests (Files): Add it and tests/signature.h.
68700         (Depends-on): Add ansi-c++-opt.
68701         (Makefile.am): Arrange to compile and run test-stdlib-c++.
68702         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
68703         gl_MODULE_INDICATOR.
68705         Tests of module 'stdio' in C++ mode.
68706         * tests/test-stdio-c++.cc: New file.
68707         * modules/stdio-tests (Files): Add it and tests/signature.h.
68708         (Depends-on): Add ansi-c++-opt.
68709         (Makefile.am): Arrange to compile and run test-stdio-c++.
68710         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
68711         gl_MODULE_INDICATOR.
68713         Tests of module 'spawn' in C++ mode.
68714         * tests/test-spawn-c++.cc: New file.
68715         * modules/spawn-tests (Files): Add it and tests/signature.h.
68716         (Depends-on): Add ansi-c++-opt.
68717         (Makefile.am): Arrange to compile and run test-spawn-c++.
68718         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
68719         gl_MODULE_INDICATOR.
68721         Tests of module 'signal' in C++ mode.
68722         * tests/test-signal-c++.cc: New file.
68723         * modules/signal-tests (Files): Add it and tests/signature.h.
68724         (Depends-on): Add ansi-c++-opt.
68725         (Makefile.am): Arrange to compile and run test-signal-c++.
68726         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
68727         gl_MODULE_INDICATOR.
68729         Tests of module 'search' in C++ mode.
68730         * tests/test-search-c++.cc: New file.
68731         * modules/search-tests (Files): Add it and tests/signature.h.
68732         (Depends-on): Add ansi-c++-opt.
68733         (Makefile.am): Arrange to compile and run test-search-c++.
68734         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
68735         gl_MODULE_INDICATOR.
68737         Tests of module 'math' in C++ mode.
68738         * tests/test-math-c++.cc: New file.
68739         * modules/math-tests (Files): Add it and tests/signature.h.
68740         (Depends-on): Add ansi-c++-opt.
68741         (Makefile.am): Arrange to compile and run test-math-c++.
68742         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68744         Tests of module 'locale' in C++ mode.
68745         * tests/test-locale-c++.cc: New file.
68746         * modules/locale-tests (Files): Add it and tests/signature.h.
68747         (Depends-on): Add ansi-c++-opt.
68748         (Makefile.am): Arrange to compile and run test-locale-c++.
68749         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
68750         gl_MODULE_INDICATOR.
68752         Tests of module 'langinfo' in C++ mode.
68753         * tests/test-langinfo-c++.cc: New file.
68754         * modules/langinfo-tests (Files): Add it and tests/signature.h.
68755         (Depends-on): Add ansi-c++-opt.
68756         (Makefile.am): Arrange to compile and run test-langinfo-c++.
68757         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
68758         gl_MODULE_INDICATOR.
68760         Tests of module 'iconv-h' in C++ mode.
68761         * tests/test-iconv-h-c++.cc: New file.
68762         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
68763         (Depends-on): Add ansi-c++-opt.
68764         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
68766         Tests of module 'glob' in C++ mode.
68767         * tests/test-glob-c++.cc: New file.
68768         * modules/glob-tests (Files): Add it.
68769         (Depends-on): Add ansi-c++-opt.
68770         (Makefile.am): Arrange to compile and run test-glob-c++.
68772         Tests of module 'fcntl-h' in C++ mode.
68773         * tests/test-fcntl-h-c++.cc: New file.
68774         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
68775         (Depends-on): Add ansi-c++-opt.
68776         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
68777         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
68778         gl_MODULE_INDICATOR.
68780         Tests of module 'dirent' in C++ mode.
68781         * tests/test-dirent-c++.cc: New file.
68782         * modules/dirent-tests (Files): Add it and tests/signature.h.
68783         (Depends-on): Add ansi-c++-opt.
68784         (Makefile.am): Arrange to compile and run test-dirent-c++.
68785         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
68786         gl_MODULE_INDICATOR.
68788         New module 'ansi-c++-opt'.
68789         * modules/ansi-c++-opt: New file.
68790         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
68792         Document C++ namespace mode.
68793         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
68795         wctype: Avoid #define replacements in C++ mode.
68796         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
68797         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
68798         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
68799         In C++, define a namespaced alias symbol.
68800         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
68801         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
68802         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
68803         rule.
68805         wchar: Avoid #define replacements in C++ mode.
68806         * lib/wchar.in.h: Include c++defs.h.
68807         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
68808         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
68809         symbol.
68810         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
68811         * modules/wchar (Depends-on): Add c++defs.
68812         (Makefile.am): Update wchar.h rule.
68814         unistd: Avoid #define replacements in C++ mode.
68815         * lib/unistd.in.h: Include c++defs.h.
68816         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
68817         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
68818         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
68819         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
68820         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
68821         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
68822         symbol.
68823         (environ): Update.
68824         * modules/unistd (Depends-on): Add c++defs.
68825         (Makefile.am): Update unistd.h rule.
68827         time: Avoid #define replacements in C++ mode.
68828         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
68829         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
68830         define a namespaced alias symbol.
68831         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
68832         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
68833         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
68834         * modules/time (Depends-on): Add c++defs, warn-on-use.
68835         (Makefile.am): Update time.h rule.
68836         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68837         * modules/nanosleep (configure.ac): Likewise.
68838         * modules/strptime (configure.ac): Likewise.
68839         * modules/timegm (configure.ac): Likewise.
68841         sys_time: Avoid #define replacements in C++ mode.
68842         * lib/sys_time.in.h: Include c++defs.h.
68843         (gettimeofday): In C++, define a namespaced alias symbol.
68844         * modules/sys_time (Depends-on): Add c++defs.
68845         (Makefile.am): Update sys/time.h rule.
68847         sys_stat: Avoid #define replacements in C++ mode.
68848         * lib/sys_stat.in.h: Include c++defs.h.
68849         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
68850         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
68851         namespaced alias symbol.
68852         In C++, define a namespaced alias symbol.
68853         * modules/sys_stat (Depends-on): Add c++defs.
68854         (Makefile.am): Update sys/stat.h rule.
68856         sys_socket: Avoid #define replacements in C++ mode.
68857         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
68858         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
68859         definitions also when the system has a <sys/socket.h>.
68860         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68861         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
68862         In C++, define a namespaced alias symbol.
68863         * modules/sys_socket (Depends-on): Add c++defs.
68864         (Makefile.am): Update sys/socket.h rule.
68866         sys_select: Avoid #define replacements in C++ mode.
68867         * lib/sys_select.in.h: Include c++defs.h. Enable the function
68868         definitions also when the system has a <sys/select.h>.
68869         (select): In C++, define a namespaced alias symbol.
68870         * modules/sys_select (Depends-on): Add c++defs.
68871         (Makefile.am): Update sys/select.h rule.
68873         sys_ioctl: Avoid #define replacements in C++ mode.
68874         * lib/sys_ioctl.in.h: Include c++defs.h.
68875         (ioctl): In C++, define a namespaced alias symbol.
68876         * modules/sys_ioctl (Depends-on): Add c++defs.
68877         (Makefile.am): Update sys/ioctl.h rule.
68879         string: Avoid #define replacements in C++ mode.
68880         * lib/string.in.h: Include c++defs.h.
68881         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
68882         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68883         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68884         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
68885         strsignal, strverscmp): In C++, define a namespaced alias symbol.
68886         * modules/string (Depends-on): Add c++defs.
68887         (Makefile.am): Update string.h rule.
68889         stdlib: Avoid #define replacements in C++ mode.
68890         * lib/stdlib.in.h: Include c++defs.h.
68891         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
68892         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
68893         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
68894         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68895         symbol.
68896         * modules/stdlib (Depends-on): Add c++defs.
68897         (Makefile.am): Update stdlib.h rule.
68899         stdio: Avoid #define replacements in C++ mode.
68900         * lib/stdio.in.h: Include c++defs.h.
68901         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68902         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68903         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68904         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68905         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68906         namespaced alias symbol.
68907         * modules/stdio (Depends-on): Add c++defs.
68908         (Makefile.am): Update stdio.h rule.
68910         spawn: Avoid #define replacements in C++ mode.
68911         * lib/spawn.in.h: Include c++defs.h.
68912         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68913         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68914         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68915         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68916         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68917         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68918         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68919         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68920         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68921         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68922         In C++, define a namespaced alias symbol.
68923         * modules/spawn (Depends-on): Add c++defs.
68924         (Makefile.am): Update spawn.h rule.
68926         signal: Avoid #define replacements in C++ mode.
68927         * lib/signal.in.h: Include c++defs.h.
68928         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68929         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68930         namespaced alias symbol.
68931         * modules/signal (Depends-on): Add c++defs.
68932         (Makefile.am): Update signal.h rule.
68934         search: Avoid #define replacements in C++ mode.
68935         * lib/search.in.h: Include c++defs.h.
68936         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68937         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68938         symbol.
68939         * modules/search (Depends-on): Add c++defs.
68940         (Makefile.am): Update search.h rule.
68942         math: Avoid #define replacements in C++ mode.
68943         * lib/math.in.h: Include c++defs.h.
68944         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68945         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68946         trunc, truncl): In C++, define a namespaced alias symbol.
68947         * modules/math (Depends-on): Add c++defs.
68948         (Makefile.am): Update math.h rule.
68950         locale: Avoid #define replacements in C++ mode.
68951         * lib/locale.in.h: Include c++defs.h.
68952         (duplocale): In C++, define a namespaced alias symbol.
68953         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68954         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68955         * modules/locale (Depends-on): Add c++defs.
68956         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68958         langinfo: Avoid #define replacements in C++ mode.
68959         * lib/langinfo.in.h: Include c++defs.h.
68960         (nl_langinfo): In C++, define a namespaced alias symbol.
68961         * modules/langinfo (Depends-on): Add c++defs.
68962         (Makefile.am): Update langinfo.h rule.
68964         iconv-h: Avoid #define replacements in C++ mode.
68965         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68966         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68967         symbol.
68968         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68969         whenever iconv is present.
68970         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68971         (Makefile.am): Update iconv.h rule.
68973         glob: Avoid #define replacements in C++ mode.
68974         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68975         (_gl_glob_errfunc_fn): New type.
68976         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68977         symbol.
68978         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68979         (Makefile.am): Update glob.h rule.
68981         fcntl-h: Avoid #define replacements in C++ mode.
68982         * lib/fcntl.in.h: Include c++defs.h.
68983         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68984         * modules/fcntl-h (Depends-on): Add c++defs.
68985         (Makefile.am): Update fcntl.h rule.
68987         dirent: Avoid #define replacements in C++ mode.
68988         * lib/dirent.in.h: Include c++defs.h.
68989         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68990         namespaced alias symbol.
68991         (dirfd): Update declaration.
68992         * modules/dirent (Depends-on): Add c++defs.
68993         (Makefile.am): Update dirent.h rule.
68995         ctype: Make it usable in C++ code.
68996         * lib/ctype.in.h: Include c++defs.h.
68997         (isblank): Declare as extern "C".
68998         * modules/ctype (Depends-on): Add c++defs.
68999         (Makefile.am): Update ctype.h rule.
69001         New module 'c++defs'.
69002         * modules/c++defs: New file.
69003         * build-aux/c++defs.h: New file.
69004         Reported by John W. Eaton <jwe@gnu.org>.
69006 2010-03-07  Bruno Haible  <bruno@clisp.org>
69008         logb: Provide missing declaration for Cygwin.
69009         * lib/math.in.h (logb): New declaration.
69010         * m4/logb.m4: New file.
69011         * modules/logb (Files): Add m4/logb.m4.
69012         (Depends-on): Add math.
69013         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
69014         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
69015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
69016         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
69017         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
69019 2010-03-07  Bruno Haible  <bruno@clisp.org>
69021         Fix test-cond link error.
69022         * tests/test-cond.c: Include <stdio.h>.
69024 2010-03-07  Bruno Haible  <bruno@clisp.org>
69026         Fix test-dirent-safer link error.
69027         * modules/dirent-safer-tests (Makefile.am): Define
69028         test_dirent_safer_LDADD.
69030 2010-03-07  Bruno Haible  <bruno@clisp.org>
69032         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
69033         among default module list.
69035 2010-03-07  Bruno Haible  <bruno@clisp.org>
69037         Fix link error on platforms with GNU libiconv.
69038         * modules/unistr/u8-strcoll-tests (Makefile): Define
69039         test_u8_strcoll_LDADD.
69040         * modules/unistr/u16-strcoll-tests (Makefile): Define
69041         test_u16_strcoll_LDADD.
69042         * modules/unistr/u32-strcoll-tests (Makefile): Define
69043         test_u32_strcoll_LDADD.
69045 2010-03-07  Bruno Haible  <bruno@clisp.org>
69047         Use POSIX declarations for socket functions.
69048         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
69049         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
69050         rpl_sendto): Change declaration to match POSIX.
69051         * lib/connect.c (rpl_connect): Likewise.
69052         * lib/accept.c (rpl_accept): Likewise.
69053         * lib/bind.c (rpl_bind): Likewise.
69054         * lib/getpeername.c (rpl_getpeername): Likewise.
69055         * lib/getsockname.c (rpl_getsockname): Likewise.
69056         * lib/recv.c (rpl_recv): Likewise.
69057         * lib/send.c (rpl_send): Likewise.
69058         * lib/recvfrom.c (rpl_recvfrom): Likewise.
69059         * lib/sendto.c (rpl_sendto): Likewise.
69061 2010-03-06  Bruno Haible  <bruno@clisp.org>
69063         Clarify access, euidaccess, faccessat.
69064         * doc/posix-functions/faccessat.texi: Mention security problem under
69065         "Other problems", not "Portability problems".
69066         * doc/posix-functions/access.texi: Likewise. Mention a related security
69067         problem.
69068         * doc/glibc-functions/euidaccess.texi: Mention security problems.
69069         * lib/euidaccess.c: Add comments about platforms.
69070         * lib/unistd.in.h (access, euidaccess): Add warnings.
69072 2010-03-07  Bruno Haible  <bruno@clisp.org>
69074         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
69075         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
69076         (POSIX_SPAWN_SETSCHEDULER): Likewise.
69077         (POSIX_SPAWN_USEVFORK): Define in a way that works when
69078         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
69079         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
69080         declare when POSIX_SPAWN_SETSCHEDULER is zero.
69081         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
69082         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
69083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
69084         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
69085         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
69086         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
69087         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
69088         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
69089         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
69090         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
69091         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
69092         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
69093         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
69094         Likewise.
69095         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
69096         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
69097         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
69098         Likewise.
69099         * tests/test-spawn.c (main): Make it work when
69100         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
69102 2010-03-07  Bruno Haible  <bruno@clisp.org>
69104         Fix incorrect Makefile.am generation in German locale.
69105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69106         Execute sed command with character range in C locale.
69108 2010-03-06  Bruno Haible  <bruno@clisp.org>
69110         Tests for module 'iconv-h'.
69111         * modules/iconv-h-tests: New file.
69112         * tests/test-iconv-h.c: New file.
69114         New module 'iconv-h'.
69115         * modules/iconv-h: New file.
69116         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
69117         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
69118         (configure.ac): Remove gl_ICONV_H.
69119         (Makefile.am): Remove rule for iconv.h.
69121 2010-03-06  Bruno Haible  <bruno@clisp.org>
69123         More consistent naming of *.m4 files.
69124         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
69125         * modules/wctype (Files): Update.
69127         More consistent naming of *.m4 files.
69128         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
69129         * modules/wchar (Files): Update.
69131 2010-03-06  Jim Meyering  <meyering@redhat.com>
69133         euidaccess: relax license to LGPLv2+
69134         * modules/euidaccess (License): Relax to LGPLv2+.
69136 2010-03-06  Bruno Haible  <bruno@clisp.org>
69138         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
69139         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
69140         (Makefile.am): Augment lib_SOURCES instead.
69142 2010-03-04  Jim Meyering  <meyering@redhat.com>
69144         utime: remove obsolete module
69145         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
69146         unnecessary for years, and has been marked as obsolete for 10 months.
69147         * modules/utime: Remove file.
69148         * lib/utime.c: Remove file.
69149         * m4/utime.m4: Remove file.
69150         * m4/utimes-null.m4: Remove file.
69151         * doc/posix-functions/utime.texi (utime): Remove reference to
69152         the module.  Move the sole "fixed by gnulib" item into the
69153         "problems not fixed by Gnulib" list.
69154         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
69156 2010-03-05  Simon Josefsson  <simon@josefsson.org>
69158         * modules/exit (License): Relax license to LGPLv2+.
69159         (Status): Mark as obsolete.
69160         * NEWS: Mention deprecated 'exit' module.
69161         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
69162         of now obsolete 'exit'.
69164 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69166         fts-lgpl: remove unused module
69167         * modules/fts-lgpl: Remove.
69168         * MODULES.html.sh (func_all_modules): Adjust.
69169         * check-module (find_included_lib_files): Adjust.
69170         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
69172 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
69174         copy-acl: enhance Solaris ACL error handling
69175         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
69176         * lib/set-mode-acl.c (qset_acl): Likewise.
69178 2010-03-02  Bruno Haible  <bruno@clisp.org>
69180         spawn: Don't override the system defined values on FreeBSD 8.
69181         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
69182         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
69183         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
69184         if HAVE_POSIX_SPAWN is 1.
69185         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
69187 2010-03-01  Bruno Haible  <bruno@clisp.org>
69189         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
69190         regarding Automake.
69192 2010-02-25  Bruno Haible  <bruno@clisp.org>
69194         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
69195         * gnulib-tool: Define 'echo' as a function only before the ksh alias
69196         setting, not afterwards.
69197         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
69199 2010-02-24  Eric Blake  <eblake@redhat.com>
69201         bootstrap, git-version-gen: use timestamp
69202         * build-aux/git-version-gen (scriptversion): Force UTC.
69203         * build-aux/bootstrap (scriptversion): New variable.
69205         bootstrap: allow older git
69206         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
69207         older than 1.6.4.  Requested by the libvirt project.
69209 2010-02-23  Eric Blake  <eblake@redhat.com>
69211         warn-on-use: work with old autoconf
69212         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
69213         AS_VAR semantics of autoconf 2.60.
69214         Reported by Bruno Haible.
69216         bootstrap: improve some comments
69217         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
69218         clarification comments.
69220         gettimeofday: provide correct function
69221         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
69222         when replacement is declared, otherwise provide gettimeofday.
69223         Reported by Michael Goffioul.
69225 2010-02-23  Jim Meyering  <meyering@redhat.com>
69227         lib-ignore: relax license to "unlimited", not LGPLv2+
69228         * modules/lib-ignore (License): Relax to "unlimited".
69230 2010-02-23  Jim Meyering  <meyering@redhat.com>
69232         lib-ignore: relax license to LGPLv2+
69233         * modules/lib-ignore (License): Relax to LGPLv2+.
69235 2010-02-22  Eric Blake  <eblake@redhat.com>
69237         lseek: avoid bash 3.2 broken pipe bug
69238         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
69239         warning from bash 3.2.
69240         Reported by Ben Pfaff, with analysis from Bruno Haible.
69242         bootstrap: support non-FSF copyright holder
69243         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
69244         bootstrap.conf override of COPYRIGHT_HOLDER.
69245         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
69247         bootstrap: interoperate with gettext 0.14.1
69248         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
69250         bootstrap: allow for alternate submodule location
69251         * build-aux/bootstrap (gnulib_path): New variable; use instead of
69252         hardcoding submodule location.
69253         (gnulib_mk): Allow direct use of Makefile.am.
69255         bootstrap: use GNULIB_SRCDIR to reduce disk usage
69256         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
69257         rather than reconfiguring where the submodule points.
69259         gettimeofday: restore support for platforms that lack function
69260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
69261         replacement if function is missing.
69262         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
69263         * modules/sys_time (Makefile.am): Substitute it.
69264         * lib/sys_time.in.h (gettimeofday): Check it.
69265         Reported by Michael Goffioul.
69267 2010-02-21  Bruno Haible  <bruno@clisp.org>
69269         * lib/stdio.in.h (obstack_printf): Fix typo.
69271 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
69273         vc-list-files: use bzr ls's -R option
69274         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
69275         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
69277 2010-02-21  Jim Meyering  <meyering@redhat.com>
69279         init.sh: fix EXEEXT shims to work also for names like test-prog
69280         * tests/init.sh: Re-exec a better shell, when needed.
69281         If the current shell lacks support for posix $(...), an init.sh-using
69282         test will now try to find a shell that supports that.  If EXEEXT is
69283         nonempty, we also require support for hyphen-in-alias-name and shell
69284         substitutions like ${var#glob}.  Failure to find such a shell results
69285         in a skipped test.
69287 2010-02-21  Bruno Haible  <bruno@clisp.org>
69289         Really work around "broken pipe" error message from bash 3.2.
69290         * gnulib-tool (func_reset_sigpipe): Remove function.
69291         (echo): In bash 3.2, define to a function that uses printf.
69292         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
69294 2010-02-20  Bruno Haible  <bruno@clisp.org>
69296         Restore support for automake 1.9.6 with autoconf 2.61.
69297         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
69298         Reported by James Youngman <jay@gnu.org>.
69300 2010-02-20  Bruno Haible  <bruno@clisp.org>
69302         Improve *printf warning condition.
69303         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
69304         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
69305         and the function is overridden due to SIGPIPE emulation.
69307 2010-02-20  Bruno Haible  <bruno@clisp.org>
69309         * lib/stdio.in.h: Tweak comments.
69311 2010-02-19  Bruno Haible  <bruno@clisp.org>
69313         Make it easier to find modules. New gnulib-tool option '--find'.
69314         * gnulib-tool: New option --find.
69315         (func_usage): Document it.
69316         (func_sanitize_modulelist): New function, extracted from
69317         func_all_modules.
69318         (func_all_modules): Invoke it.
69319         * doc/gnulib-tool.texi (Which modules?): New node.
69321 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
69323         * lib/sys_select.in.h: Provide select replacement even if
69324         sys/select.h exists on a system, for Interix.
69326 2010-02-18  Jim Meyering  <meyering@redhat.com>
69328         init.sh: don't use $(...) just yet
69329         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
69330         to accommodate e.g., Solaris' /bin/sh.
69332 2010-02-17  Bruno Haible  <bruno@clisp.org>
69334         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
69335         Reported by Ludovic Courtès <ludo@gnu.org>.
69337 2010-02-16  Simon Josefsson  <simon@josefsson.org>
69339         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
69340         linking with -lintl.
69342 2010-02-17  Simon Josefsson  <simon@josefsson.org>
69344         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
69345         if not provided by the system's netdb.h.  Reported by
69346         ludo@gnu.org (Ludovic Courtès).
69348 2010-02-15  Jim Meyering  <meyering@redhat.com>
69350         init.sh: improve portability and efficiency
69351         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
69352         "dummy" in a for loop.
69353         Use '!', not '^' to select the complement of a character set used
69354         in a "case" statement.
69355         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
69356         Suggestions from Eric Blake.
69358         init.sh: automatically accommodate programs with the .exe suffix
69359         Automatically arrange for an invocation of "prog" to execute the
69360         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
69361         may use the simpler "prog", yet still work when built on a system
69362         that requires specifying the added suffix.
69363         Do this by constructing a function named "prog" that invokes
69364         "prog.exe" for each .exe file in selected directories.
69365         * tests/init.sh (find_exe_basenames_): New function.
69366         (create_exe_shim_functions_): New function.
69367         (path_prepend_): Use it.
69369         maint.mk: mark syntax-check sc_*.m rules as .PHONY
69370         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
69371         "make -t syntax-check" doesn't create a ton of sc_*.m files.
69373 2010-02-14  Jim Meyering  <meyering@redhat.com>
69375         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
69376         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
69377         (sc_prohibit_hash_pjw_without_use): New rule.
69379         maint.mk: allow the default upload destination dir to be overridden
69380         * top/maint.mk (upload_dest_dir_): Define with a default that
69381         preserves the status quo.
69382         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
69383         Reported by Peter Simons.
69385         maint.mk: prohibit inclusion of "hash.h" without_use
69386         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
69388 2010-02-10  Jim Meyering  <meyering@redhat.com>
69390         maint.mk: prohibit inclusion of "ignore-value.h" without_use
69391         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
69393 2010-02-09  Eric Blake  <ebb9@byu.net>
69394         and Bruno Haible  <bruno@clisp.org>
69396         obstack-printf-posix: ensure declaration
69397         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
69398         extracted from gl_FUNC_OBSTACK_PRINTF.
69399         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
69400         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
69401         Likewise.
69402         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
69403         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
69404         0.
69406 2010-02-08  Bruno Haible  <bruno@clisp.org>
69408         gnulib-tool: Fix typo in 2010-02-07 commit.
69409         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
69410         Reported by Eric Blake.
69412 2010-02-07  Bruno Haible  <bruno@clisp.org>
69414         gnulib-tool: Fix up caching patches.
69415         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
69416         option --no-cache. Use associative arrays when supported by the shell.
69417         (sed_comments): New variable.
69418         (modcache): Renamed from do_cache.
69419         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
69420         abbreviate unnecessarily.
69421         (have_associative): New variable.
69422         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
69423         way also for ksh and zsh.
69424         (func_init_sed_convert_to_cache_statements): New function, extracted
69425         from func_cache_lookup_module. Add support for associative arrays.
69426         Don't set the c_MODULE_cached variable here. Ignore all lines before
69427         the first field header. Remove only the final newline, not all trailing
69428         newlines. Support empty fields correctly. Limit the use of 'eval' to
69429         assignments.
69430         (func_get_description, func_get_status, func_get_notice,
69431         func_get_applicability, func_get_filelist, func_get_dependencies,
69432         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
69433         func_get_automake_snippet, func_get_include_directive,
69434         func_get_link_directive, func_get_license, func_get_maintainer):
69435         Update documentation. List the unoptimized code first. Add support for
69436         associative arrays. Limit the use of 'eval' to assignments.
69437         (func_get_applicability): Undo stylistic pessimisations.
69438         (func_get_automake_snippet, func_get_include_directive): Reduce code
69439         duplication.
69440         (func_modules_transitive_closure, func_modules_add_dummy,
69441         func_modules_notice, func_modules_to_filelist, func_add_file,
69442         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
69443         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
69444         func_create_testdir, func_create_megatestdir): Update documentation.
69446 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69448         * gnulib-tool (func_cache_lookup_module): Store the module name
69449         belonging to the cache variable; error out if two different
69450         module names map to the same cache variable name.
69452 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69454         gnulib-tool: Make caching optional.
69455         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
69456         Update matching short versions of --no-changelog.
69457         (func_usage): Update.
69458         (sed_extract_cache_prog): Renamed from ...
69459         (sed_extract_prog): ... this; revert to old extraction script.
69460         (func_get_description, func_get_status)
69461         (func_get_notice, func_get_applicability, func_get_filelist)
69462         (func_get_dependencies, func_get_autoconf_early_snippet)
69463         (func_get_autoconf_snippet, func_get_automake_snippet)
69464         (func_get_include_directive, func_get_link_directive)
69465         (func_get_license, func_get_maintainer): If $do_cache is false,
69466         use old, non-caching extraction scripts.
69467         Suggestion by Bruno Haible.
69469 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69471         gnulib-tool: cache module metainformation.
69472         * gnulib-tool (sed_extract_prog): Match newline before each
69473         header, and rewrite header to a shell variable suffix.
69474         (func_cache_var, func_cache_lookup_module): New functions,
69475         to turn a module name into a cache variable prefix, and to
69476         look up and cache module metainformation.
69477         (func_get_description, func_get_status)
69478         (func_get_notice, func_get_applicability, func_get_filelist)
69479         (func_get_dependencies, func_get_autoconf_early_snippet)
69480         (func_get_autoconf_snippet, func_get_automake_snippet)
69481         (func_get_include_directive, func_get_link_directive)
69482         (func_get_license, func_get_maintainer): Use
69483         func_cache_lookup_module.
69485 2010-02-07  Bruno Haible  <bruno@clisp.org>
69487         fnctl: Fix missing dependency.
69488         * modules/fcntl (Depends-on): Add getdtablesize.
69489         Reported by John W. Eaton <jwe@gnu.org>.
69491 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69493         Argp: fix recognition of short alias options.
69495         * lib/argp-parse.c (convert_options): Fix improper use of
69496         `|' between character values.
69497         * tests/test-argp.c (group1_option): New alias option
69498         --read (-r).
69499         (group1_parser): Special handling for 'r'.
69500         (test15): New test case.
69501         (test_fun): Add test15.
69502         * tests/test-argp-2.sh: Update expected --help and --usage
69503         outputs.
69505 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69507         * tests/test-argp.c: Fix indentation.
69509 2010-02-04  Eric Blake  <ebb9@byu.net>
69511         gettimeofday: expose type of second argument
69512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
69513         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
69514         * tests/test-gettimeofday.c: Use it to silence warning.
69515         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
69516         the issue.
69518 2010-02-03  Jim Meyering  <meyering@redhat.com>
69520         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
69521         * lib/regcomp.c (TYPE_SIGNED): Define.
69522         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
69524         regcomp.c: avoid a new -Wshadow warning
69525         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
69527 2010-02-01  Jim Meyering  <meyering@redhat.com>
69529         removing useless parentheses in cpp #define directives
69530         For motivation, see commit c0221df4, "define STREQ(a,b)
69531         consistently, removing useless parentheses"
69532         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
69533         * lib/mountlist.c (MNT_IGNORE): Likewise.
69534         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
69536 2010-02-01  Eric Blake  <ebb9@byu.net>
69538         sys_time: use link-warning
69539         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
69540         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
69541         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
69542         * modules/sys_time (Depends-on): Add warn-on-use.
69543         (Makefile.am): Always build replacement.
69544         (configure.ac): Update substitutions.
69545         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
69546         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
69547         bother with SYS_TIME_H.
69548         * modules/gettimeofday (configure.ac): Declare indicator.
69549         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
69550         in use.
69552         closein-tests: silence compiler warning
69553         * tests/test-closein.c (main): Ignore fread result.
69554         * modules/closein-tests (Depends-on): Add ignore-value.
69556         tests: silence warning about system return
69557         * tests/test-areadlink-with-size.c (main): Ignore system result.
69558         * tests/test-areadlink.c (main): Likewise.
69559         * tests/test-areadlinkat-with-size.c (main): Likewise.
69560         * tests/test-areadlinkat.c (main): Likewise.
69561         * tests/test-canonicalize-lgpl.c (main): Likewise.
69562         * tests/test-canonicalize.c (main): Likewise.
69563         * tests/test-chown.c (main): Likewise.
69564         * tests/test-fchownat.c (main): Likewise.
69565         * tests/test-fdutimensat.c (main): Likewise.
69566         * tests/test-fstatat.c (main): Likewise.
69567         * tests/test-futimens.c (main): Likewise.
69568         * tests/test-lchown.c (main): Likewise.
69569         * tests/test-link.c (main): Likewise.
69570         * tests/test-linkat.c (main): Likewise.
69571         * tests/test-lstat.c (main): Likewise.
69572         * tests/test-mkdir.c (main): Likewise.
69573         * tests/test-mkdirat.c (main): Likewise.
69574         * tests/test-mkfifo.c (main): Likewise.
69575         * tests/test-mkfifoat.c (main): Likewise.
69576         * tests/test-mknod.c (main): Likewise.
69577         * tests/test-readlink.c (main): Likewise.
69578         * tests/test-remove.c (main): Likewise.
69579         * tests/test-rename.c (main): Likewise.
69580         * tests/test-renameat.c (main): Likewise.
69581         * tests/test-rmdir.c (main): Likewise.
69582         * tests/test-symlink.c (main): Likewise.
69583         * tests/test-symlinkat.c (main): Likewise.
69584         * tests/test-unlink.c (main): Likewise.
69585         * tests/test-unlinkat.c (main): Likewise.
69586         * tests/test-utimens.c (main): Likewise.
69587         * tests/test-utimensat.c (main): Likewise.
69588         * modules/areadlink-tests (Depends-on): Add ignore-value.
69589         * modules/areadlink-with-size-tests (Depends-on): Likewise.
69590         * modules/areadlinkat-tests (Depends-on): Likewise.
69591         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
69592         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69593         * modules/canonicalize-tests (Depends-on): Likewise.
69594         * modules/chown-tests (Depends-on): Likewise.
69595         * modules/fdutimensat-tests (Depends-on): Likewise.
69596         * modules/futimens-tests (Depends-on): Likewise.
69597         * modules/lchown-tests (Depends-on): Likewise.
69598         * modules/link-tests (Depends-on): Likewise.
69599         * modules/linkat-tests (Depends-on): Likewise.
69600         * modules/lstat-tests (Depends-on): Likewise.
69601         * modules/mkdir-tests (Depends-on): Likewise.
69602         * modules/mkfifo-tests (Depends-on): Likewise.
69603         * modules/mkfifoat-tests (Depends-on): Likewise.
69604         * modules/mknod-tests (Depends-on): Likewise.
69605         * modules/openat-tests (Depends-on): Likewise.
69606         * modules/readlink-tests (Depends-on): Likewise.
69607         * modules/remove-tests (Depends-on): Likewise.
69608         * modules/rename-tests (Depends-on): Likewise.
69609         * modules/renameat-tests (Depends-on): Likewise.
69610         * modules/rmdir-tests (Depends-on): Likewise.
69611         * modules/symlink-tests (Depends-on): Likewise.
69612         * modules/symlinkat-tests (Depends-on): Likewise.
69613         * modules/unlink-tests (Depends-on): Likewise.
69614         * modules/utimens-tests (Depends-on): Likewise.
69615         * modules/utimensat-tests (Depends-on): Likewise.
69617 2010-01-31  Bruno Haible  <bruno@clisp.org>
69619         Perform the same test for many <math.h> functions.
69620         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
69621         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
69622         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
69623         of gl_MATHFUNC.
69624         * modules/acos (configure.ac): Likewise.
69625         * modules/asin (configure.ac): Likewise.
69626         * modules/atan (configure.ac): Likewise.
69627         * modules/atan2 (configure.ac): Likewise.
69628         * modules/cbrt (configure.ac): Likewise.
69629         * modules/copysign (configure.ac): Likewise.
69630         * modules/cos (configure.ac): Likewise.
69631         * modules/cosh (configure.ac): Likewise.
69632         * modules/erf (configure.ac): Likewise.
69633         * modules/erfc (configure.ac): Likewise.
69634         * modules/exp (configure.ac): Likewise.
69635         * modules/fmod (configure.ac): Likewise.
69636         * modules/hypot (configure.ac): Likewise.
69637         * modules/j0 (configure.ac): Likewise.
69638         * modules/j1 (configure.ac): Likewise.
69639         * modules/jn (configure.ac): Likewise.
69640         * modules/lgamma (configure.ac): Likewise.
69641         * modules/log (configure.ac): Likewise.
69642         * modules/log10 (configure.ac): Likewise.
69643         * modules/log1p (configure.ac): Likewise.
69644         * modules/pow (configure.ac): Likewise.
69645         * modules/remainder (configure.ac): Likewise.
69646         * modules/sin (configure.ac): Likewise.
69647         * modules/sinh (configure.ac): Likewise.
69648         * modules/tan (configure.ac): Likewise.
69649         * modules/tanh (configure.ac): Likewise.
69650         * modules/y0 (configure.ac): Likewise.
69651         * modules/y1 (configure.ac): Likewise.
69652         * modules/yn (configure.ac): Likewise.
69653         Suggested by Paolo Bonzini.
69655 2010-01-31  Bruno Haible  <bruno@clisp.org>
69657         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
69659 2010-01-31  Bruno Haible  <bruno@clisp.org>
69661         Work around getdelim() bug on FreeBSD 8.0.
69662         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
69663         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
69664         not work.
69665         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
69666         is 1.
69667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
69668         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
69669         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
69670         a non-zero size.
69671         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
69673 2010-01-31  Bruno Haible  <bruno@clisp.org>
69675         Work around getline() bug on FreeBSD 8.0.
69676         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
69677         and a non-zero size.
69678         * tests/test-getline.c (main): Likewise.
69679         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
69680         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
69682 2010-01-28  Eric Blake  <ebb9@byu.net>
69684         regex: fix build failure
69685         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
69686         platforms.
69688 2010-01-28  Jim Meyering  <meyering@redhat.com>
69690         regex: do not ignore memory allocation failure
69691         * lib/regex_internal.c (create_cd_newstate): Detect
69692         re_node_set_init_copy failure.   Extracted from glibc commit
69693         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69695         regex: sync more white-space changes from libc
69696         * lib/regex_internal.c: White-space only changes.
69697         * lib/regexec.c: Likewise.
69699         regex: add many uses of __attribute_warn_unused_result__
69700         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
69701         * lib/regexec.c: Likewise.
69702         Extracted from a messy glibc commit.
69704         regcomp.c: spelling and merge-artifact from glibc
69705         * lib/regcomp.c: Merge remainder of glibc's
69706         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69708         regcomp.c: sync white-space changes from glibc
69709         * lib/regcomp.c: Merge to accommodate white space
69710         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69712         regcomp.c: do not ignore internal return values
69713         * lib/regcomp.c: Do not ignore internal return values.
69714         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
69715         but without its white-space changes and spelling fixes.
69717         regex_internal.h: define __attribute_warn_unused_result__
69718         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
69720         maint: add a syntax-check rule to check for vulnerable Makefile.in
69721         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
69723 2010-01-27  Jim Meyering  <meyering@redhat.com>
69725         ncftpput-ftp: clean up spaces
69726         * build-aux/ncftpput-ftp: Make Copyright line consistent.
69727         Remove trailing blanks.
69729 2010-01-27  Simon Josefsson  <simon@josefsson.org>
69731         * build-aux/git-version-gen: Fix copyright statement.
69732         * build-aux/gnupload: Likewise.
69733         * tests/test-arcfour.c: Likewise.
69734         * tests/test-arctwo.c: Likewise.
69735         * tests/test-count-one-bits.c: Likewise.
69736         * tests/test-crc.c: Likewise.
69737         * tests/test-des.c: Likewise.
69738         * tests/test-gc-arcfour.c: Likewise.
69739         * tests/test-gc-arctwo.c: Likewise.
69740         * tests/test-gc-des.c: Likewise.
69741         * tests/test-gc-hmac-md5.c: Likewise.
69742         * tests/test-gc-hmac-sha1.c: Likewise.
69743         * tests/test-gc-md2.c: Likewise.
69744         * tests/test-gc-md4.c: Likewise.
69745         * tests/test-gc-md5.c: Likewise.
69746         * tests/test-gc-pbkdf2-sha1.c: Likewise.
69747         * tests/test-gc-rijndael.c: Likewise.
69748         * tests/test-gc-sha1.c: Likewise.
69749         * tests/test-gc.c: Likewise.
69750         * tests/test-gethostname.c: Likewise.
69751         * tests/test-gettimeofday.c: Likewise.
69752         * tests/test-hash.c: Likewise.
69753         * tests/test-hmac-md5.c: Likewise.
69754         * tests/test-hmac-sha1.c: Likewise.
69755         * tests/test-md2.c: Likewise.
69756         * tests/test-md4.c: Likewise.
69757         * tests/test-md5.c: Likewise.
69758         * tests/test-memchr.c: Likewise.
69759         * tests/test-memchr2.c: Likewise.
69760         * tests/test-memcmp.c: Likewise.
69761         * tests/test-memmem.c: Likewise.
69762         * tests/test-memrchr.c: Likewise.
69763         * tests/test-rawmemchr.c: Likewise.
69764         * tests/test-read-file.c: Likewise.
69765         * tests/test-rijndael.c: Likewise.
69766         * tests/test-sockets.c: Likewise.
69767         * tests/test-strchrnul.c: Likewise.
69768         * tests/test-strstr.c: Likewise.
69769         * tests/test-strtod.c: Likewise.
69770         * build-aux/ncftpput-ftp: Likewise.
69772 2010-01-26  Eric Blake  <ebb9@byu.net>
69774         ignore-value: update recommended header name
69775         * modules/ignore-value (Include): Only use <> for headers that
69776         exist in glibc.
69778 2010-01-26  Jim Meyering  <meyering@redhat.com>
69780         test-userspec.c: avoid compiler warnings
69781         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
69782         and "initialization discards qualifiers..." warnings.
69783         Put the first "uid" in its own scope, and make char* members "const".
69785 2010-01-25  Bruno Haible  <bruno@clisp.org>
69787         gnulib-tool: Make warning diagnostics consistent.
69788         * gnulib-tool (func_warning): New function.
69789         Use it everywhere where gnulib-tool produces output to stderr and it is
69790         not a fatal error.
69792 2010-01-25  Bruno Haible  <bruno@clisp.org>
69794         Fix test dependencies.
69795         * modules/xstrtol-tests (Depends-on): Add inttypes.
69796         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
69798 2010-01-25  Pádraig Brady  <P@draigBrady.com>
69800         syntax-check: detect incorrect boolean macro values in config.h
69801         * modules/maintainer-makefile (configure.ac): Parameterize the location
69802         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
69803         The logic is from Eric Blake and the location indicated by Jim Meyering.
69804         Note the more natural CONFIG_HEADER name is prohibited by automake
69805         for backwards compatibility reasons.
69806         * top/maint.mk (sc_Wundef_boolean): New rule.
69808 2010-01-25  Jim Meyering  <meyering@redhat.com>
69810         bootstrap: detect MacOS 10.6's shasum, too
69811         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
69812         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
69814 2010-01-23  Jim Meyering  <meyering@redhat.com>
69816         xstrtoll: new module
69817         * modules/xstrtoll: New file.
69818         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
69819         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
69820         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
69821         ./configure fails if you use this module and lack "long long".
69822         * modules/xstrtoll-tests: New module.
69823         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
69824         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
69825         new init.sh-based test framework.
69827 2010-01-24  Bruno Haible  <bruno@clisp.org>
69829         Tests for module 'yn'.
69830         * modules/yn-tests: New file.
69831         * tests/test-yn.c: New file.
69833         Tests for module 'y1'.
69834         * modules/y1-tests: New file.
69835         * tests/test-y1.c: New file.
69837         Tests for module 'y0'.
69838         * modules/y0-tests: New file.
69839         * tests/test-y0.c: New file.
69841         Tests for module 'tanh'.
69842         * modules/tanh-tests: New file.
69843         * tests/test-tanh.c: New file.
69845         Tests for module 'tan'.
69846         * modules/tan-tests: New file.
69847         * tests/test-tan.c: New file.
69849         Tests for module 'sqrt'.
69850         * modules/sqrt-tests: New file.
69851         * tests/test-sqrt.c: New file.
69853         Tests for module 'sinh'.
69854         * modules/sinh-tests: New file.
69855         * tests/test-sinh.c: New file.
69857         Tests for module 'sin'.
69858         * modules/sin-tests: New file.
69859         * tests/test-sin.c: New file.
69861         Tests for module 'rint'.
69862         * modules/rint-tests: New file.
69863         * tests/test-rint.c: New file.
69865         Tests for module 'remainder'.
69866         * modules/remainder-tests: New file.
69867         * tests/test-remainder.c: New file.
69869         Tests for module 'pow'.
69870         * modules/pow-tests: New file.
69871         * tests/test-pow.c: New file.
69873         Tests for module 'nextafter'.
69874         * modules/nextafter-tests: New file.
69875         * tests/test-nextafter.c: New file.
69877         Tests for module 'modf'.
69878         * modules/modf-tests: New file.
69879         * tests/test-modf.c: New file.
69881         Tests for module 'logb'.
69882         * modules/logb-tests: New file.
69883         * tests/test-logb.c: New file.
69885         Tests for module 'log1p'.
69886         * modules/log1p-tests: New file.
69887         * tests/test-log1p.c: New file.
69889         Tests for module 'log10'.
69890         * modules/log10-tests: New file.
69891         * tests/test-log10.c: New file.
69893         Tests for module 'log'.
69894         * modules/log-tests: New file.
69895         * tests/test-log.c: New file.
69897         Tests for module 'lgamma'.
69898         * modules/lgamma-tests: New file.
69899         * tests/test-lgamma.c: New file.
69901         Tests for module 'ldexp'.
69902         * modules/ldexp-tests: New file.
69903         * tests/test-ldexp.c: New file.
69905         Tests for module 'jn'.
69906         * modules/jn-tests: New file.
69907         * tests/test-jn.c: New file.
69909         Tests for module 'j1'.
69910         * modules/j1-tests: New file.
69911         * tests/test-j1.c: New file.
69913         Tests for module 'j0'.
69914         * modules/j0-tests: New file.
69915         * tests/test-j0.c: New file.
69917         Tests for module 'hypot'.
69918         * modules/hypot-tests: New file.
69919         * tests/test-hypot.c: New file.
69921         Tests for module 'fmod'.
69922         * modules/fmod-tests: New file.
69923         * tests/test-fmod.c: New file.
69925         Tests for module 'fabs'.
69926         * modules/fabs-tests: New file.
69927         * tests/test-fabs.c: New file.
69929         Tests for module 'exp'.
69930         * modules/exp-tests: New file.
69931         * tests/test-exp.c: New file.
69933         Tests for module 'erfc'.
69934         * modules/erfc-tests: New file.
69935         * tests/test-erfc.c: New file.
69937         Tests for module 'erf'.
69938         * modules/erf-tests: New file.
69939         * tests/test-erf.c: New file.
69941         Tests for module 'cosh'.
69942         * modules/cosh-tests: New file.
69943         * tests/test-cosh.c: New file.
69945         Tests for module 'cos'.
69946         * modules/cos-tests: New file.
69947         * tests/test-cos.c: New file.
69949         Tests for module 'copysign'.
69950         * modules/copysign-tests: New file.
69951         * tests/test-copysign.c: New file.
69953         Tests for module 'cbrt'.
69954         * modules/cbrt-tests: New file.
69955         * tests/test-cbrt.c: New file.
69957         Tests for module 'atan2'.
69958         * modules/atan2-tests: New file.
69959         * tests/test-atan2.c: New file.
69961         Tests for module 'atan'.
69962         * modules/atan-tests: New file.
69963         * tests/test-atan.c: New file.
69965         Tests for module 'asin'.
69966         * modules/asin-tests: New file.
69967         * tests/test-asin.c: New file.
69969         Tests for module 'acos'.
69970         * modules/acos-tests: New file.
69971         * tests/test-acos.c: New file.
69973 2010-01-24  Bruno Haible  <bruno@clisp.org>
69975         Fix tests for common <math.h> functions.
69976         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69977         code snippet that references the function pointer, rather than merely
69978         calling the function. Substitute the FUNC_LIBM variable.
69979         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69980         * modules/acos (configure.ac): Likewise.
69981         * modules/asin (configure.ac): Likewise.
69982         * modules/atan (configure.ac): Likewise.
69983         * modules/atan2 (configure.ac): Likewise.
69984         * modules/cbrt (configure.ac): Likewise.
69985         * modules/copysign (configure.ac): Likewise.
69986         * modules/cos (configure.ac): Likewise.
69987         * modules/cosh (configure.ac): Likewise.
69988         * modules/erf (configure.ac): Likewise.
69989         * modules/erfc (configure.ac): Likewise.
69990         * modules/exp (configure.ac): Likewise.
69991         * modules/fabs (configure.ac): Likewise.
69992         * modules/fmod (configure.ac): Likewise.
69993         * modules/hypot (configure.ac): Likewise.
69994         * modules/j0 (configure.ac): Likewise.
69995         * modules/j1 (configure.ac): Likewise.
69996         * modules/jn (configure.ac): Likewise.
69997         * modules/ldexp (configure.ac): Likewise.
69998         * modules/lgamma (configure.ac): Likewise.
69999         * modules/log (configure.ac): Likewise.
70000         * modules/log10 (configure.ac): Likewise.
70001         * modules/log1p (configure.ac): Likewise.
70002         * modules/logb (configure.ac): Likewise.
70003         * modules/modf (configure.ac): Likewise.
70004         * modules/nextafter (configure.ac): Likewise.
70005         * modules/pow (configure.ac): Likewise.
70006         * modules/remainder (configure.ac): Likewise.
70007         * modules/rint (configure.ac): Likewise.
70008         * modules/sin (configure.ac): Likewise.
70009         * modules/sinh (configure.ac): Likewise.
70010         * modules/tan (configure.ac): Likewise.
70011         * modules/tanh (configure.ac): Likewise.
70012         * modules/y0 (configure.ac): Likewise.
70013         * modules/y1 (configure.ac): Likewise.
70014         * modules/yn (configure.ac): Likewise.
70016 2010-01-24  Bruno Haible  <bruno@clisp.org>
70018         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
70019         * tests/test-acosl.c (x): New variable.
70020         (main): Store argument in x and fetch it from x.
70021         * tests/test-asinl.c (x): New variable.
70022         (main): Store argument in x and fetch it from x.
70023         * tests/test-atanl.c (x): New variable.
70024         (main): Store argument in x and fetch it from x.
70025         * tests/test-cosl.c (x): New variable.
70026         (main): Store argument in x and fetch it from x.
70027         * tests/test-expl.c (x): New variable.
70028         (main): Store argument in x and fetch it from x.
70029         * tests/test-logl.c (x): New variable.
70030         (main): Store argument in x and fetch it from x.
70031         * tests/test-sinl.c (x): New variable.
70032         (main): Store argument in x and fetch it from x.
70033         * tests/test-sqrtl.c (x): New variable.
70034         (main): Store argument in x and fetch it from x.
70035         * tests/test-tanl.c (x): New variable.
70036         (main): Store argument in x and fetch it from x.
70038 2010-01-24  Bruno Haible  <bruno@clisp.org>
70040         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
70041         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
70042         assignments to the initial TESTS_ENVIRONMENT.
70043         * doc/gnulib.texi (Unit test modules): Document it.
70044         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
70045         TESTS_ENVIRONMENT.
70046         * modules/btowc-tests (Makefile.am): Likewise.
70047         * modules/c-stack-tests (Makefile.am): Likewise.
70048         * modules/c-strcase-tests (Makefile.am): Likewise.
70049         * modules/copy-file-tests (Makefile.am): Likewise.
70050         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
70051         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
70052         * modules/mbrtowc-tests (Makefile.am): Likewise.
70053         * modules/mbscasecmp-tests (Makefile.am): Likewise.
70054         * modules/mbscasestr-tests (Makefile.am): Likewise.
70055         * modules/mbschr-tests (Makefile.am): Likewise.
70056         * modules/mbscspn-tests (Makefile.am): Likewise.
70057         * modules/mbsinit-tests (Makefile.am): Likewise.
70058         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
70059         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
70060         * modules/mbspbrk-tests (Makefile.am): Likewise.
70061         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
70062         * modules/mbsrchr-tests (Makefile.am): Likewise.
70063         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
70064         * modules/mbsspn-tests (Makefile.am): Likewise.
70065         * modules/mbsstr-tests (Makefile.am): Likewise.
70066         * modules/nl_langinfo-tests (Makefile.am): Likewise.
70067         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
70068         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
70069         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
70070         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
70071         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
70072         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
70073         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
70074         * modules/wcrtomb-tests (Makefile.am): Likewise.
70075         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
70076         * modules/wcsrtombs-tests (Makefile.am): Likewise.
70077         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
70078         assignments from TESTS_ENVIRONMENT.
70079         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
70080         augmentation.
70081         * modules/argp-version-etc-tests (Makefile.am): Likewise.
70082         * modules/atexit-tests (Makefile.am): Likewise.
70083         * modules/binary-io-tests (Makefile.am): Likewise.
70084         * modules/closein-tests (Makefile.am): Likewise.
70085         * modules/dprintf-posix-tests (Makefile.am): Likewise.
70086         * modules/exclude-tests (Makefile.am): Likewise.
70087         * modules/fflush-tests (Makefile.am): Likewise.
70088         * modules/fpending-tests (Makefile.am): Likewise.
70089         * modules/fprintf-posix-tests (Makefile.am): Likewise.
70090         * modules/freadahead-tests (Makefile.am): Likewise.
70091         * modules/freadptr-tests (Makefile.am): Likewise.
70092         * modules/freadseek-tests (Makefile.am): Likewise.
70093         * modules/fseek-tests (Makefile.am): Likewise.
70094         * modules/fseeko-tests (Makefile.am): Likewise.
70095         * modules/ftell-tests (Makefile.am): Likewise.
70096         * modules/ftello-tests (Makefile.am): Likewise.
70097         * modules/idpriv-drop-tests (Makefile.am): Likewise.
70098         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
70099         * modules/lseek-tests (Makefile.am): Likewise.
70100         * modules/parse-duration-tests (Makefile.am): Likewise.
70101         * modules/perror-tests (Makefile.am): Likewise.
70102         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
70103         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
70104         * modules/pipe-tests (Makefile.am): Likewise.
70105         * modules/pread-tests (Makefile.am): Likewise.
70106         * modules/printf-posix-tests (Makefile.am): Likewise.
70107         * modules/select-tests (Makefile.am): Likewise.
70108         * modules/sigpipe-tests (Makefile.am): Likewise.
70109         * modules/tsearch-tests (Makefile.am): Likewise.
70110         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
70111         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
70112         * modules/uniname/uniname-tests (Makefile.am): Likewise.
70113         * modules/uniwidth/width-tests (Makefile.am): Likewise.
70114         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
70115         * modules/version-etc-tests (Makefile.am): Likewise.
70116         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
70117         * modules/vprintf-posix-tests (Makefile.am): Likewise.
70118         * modules/xalloc-die-tests (Makefile.am): Likewise.
70119         * modules/xprintf-posix-tests (Makefile.am): Likewise.
70120         * modules/xstrtoimax-tests (Makefile.am): Likewise.
70121         * modules/xstrtol-tests (Makefile.am): Likewise.
70122         * modules/xstrtoumax-tests (Makefile.am): Likewise.
70123         * modules/yesno-tests (Makefile.am): Likewise.
70124         Suggested by Jim Meyering.
70126 2010-01-24  Bruno Haible  <bruno@clisp.org>
70128         More documentation.
70129         * doc/gnulib.texi (Writing modules): New chapter.
70130         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
70131         the new chapter.
70133 2010-01-24  Jim Meyering  <meyering@redhat.com>
70135         maint.mk: do not prepend "./" after filtering
70136         * top/maint.mk (_prepend_srcdir_prefix): New variable
70137         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
70138         "./" when $(srcdir) is ".".
70140         define STREQ(a,b) consistently, removing useless parentheses
70141         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
70142         since the only risk is that "a" or "b" contains an unparenthesized
70143         comma, but if either did that, STREQ would have 3 or more arguments.
70144         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
70145         * lib/fts.c (STREQ): Remove unnecessary parentheses.
70146         * lib/hash-triple.c (STREQ): Likewise.
70147         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
70148         * lib/getugroups.c (STREQ): Likewise.
70150 2010-01-23  Jim Meyering  <meyering@redhat.com>
70152         maint.mk: fix syntax-check in a non-srcdir build directory
70153         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
70154         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
70156 2010-01-22  Jim Meyering  <meyering@redhat.com>
70158         userspec: add unit tests
70159         * tests/test-userspec.c: New file.
70160         * modules/userspec-tests: Likewise.
70162 2010-01-21  Jim Meyering  <meyering@redhat.com>
70164         maint.mk: handle source file names containing "." robustly
70165         * top/maint.mk (_dot_escaped_srcdir): Define.
70166         (VC_LIST): Use it in LHS of sed substitution.
70168 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
70170         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
70171         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
70172         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
70173         from a non-srcdir build.
70175 2010-01-20  Eric Blake  <ebb9@byu.net>
70177         warn-on-use: use instead of link-warning
70178         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
70179         * modules/unistd (Depends-on, Makefile.am): Likewise.
70180         * modules/arpa_inet (Depends-on): Replace link-warning with
70181         warn-on-use.
70182         (Makefile.am): Update rules accordingly.
70183         * modules/ctype (Depends-on, Makefile.am): Likewise.
70184         * modules/dirent (Depends-on, Makefile.am): Likewise.
70185         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
70186         * modules/inttypes (Depends-on, Makefile.am): Likewise.
70187         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70188         * modules/locale (Depends-on, Makefile.am): Likewise.
70189         * modules/math (Depends-on, Makefile.am): Likewise.
70190         * modules/search (Depends-on, Makefile.am): Likewise.
70191         * modules/signal (Depends-on, Makefile.am): Likewise.
70192         * modules/spawn (Depends-on, Makefile.am): Likewise.
70193         * modules/stdlib (Depends-on, Makefile.am): Likewise.
70194         * modules/string (Depends-on, Makefile.am): Likewise.
70195         * modules/strings (Depends-on, Makefile.am): Likewise.
70196         * modules/sys_file (Depends-on, Makefile.am): Likewise.
70197         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
70198         * modules/sys_select (Depends-on, Makefile.am): Likewise.
70199         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
70200         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
70201         * modules/sys_times (Depends-on, Makefile.am): Likewise.
70202         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70203         * modules/wchar (Depends-on, Makefile.am): Likewise.
70204         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
70205         should be poisoned.
70206         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
70207         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
70208         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
70209         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70210         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70211         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
70212         * m4/math_h.m4 (gl_MATH_H): Likewise.
70213         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70214         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
70215         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
70216         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
70217         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
70218         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
70219         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
70220         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
70221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
70222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
70224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
70225         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70226         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70227         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
70228         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
70229         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
70230         GL_LINK_WARNING.
70231         * lib/ctype.in.h: Likewise.
70232         * lib/dirent.in.h: Likewise.
70233         * lib/fcntl.in.h: Likewise.
70234         * lib/inttypes.in.h: Likewise.
70235         * lib/langinfo.in.h: Likewise.
70236         * lib/locale.in.h: Likewise.
70237         * lib/math.in.h: Likewise.
70238         * lib/search.in.h: Likewise.
70239         * lib/signal.in.h: Likewise.
70240         * lib/spawn.in.h: Likewise.
70241         * lib/stdio.in.h: Likewise.
70242         * lib/stdlib.in.h: Likewise.
70243         * lib/string.in.h: Likewise.
70244         * lib/strings.in.h: Likewise.
70245         * lib/sys_file.in.h: Likewise.
70246         * lib/sys_ioctl.in.h: Likewise.
70247         * lib/sys_select.in.h: Likewise.
70248         * lib/sys_socket.in.h: Likewise.
70249         * lib/sys_stat.in.h: Likewise.
70250         * lib/sys_times.in.h: Likewise.
70251         * lib/sys_utsname.in.h: Likewise.
70252         * lib/unistd.in.h: Likewise.
70253         * lib/wchar.in.h: Likewise.
70255 2010-01-20  Bruno Haible  <bruno@clisp.org>
70257         Avoid duplicate -lm.
70258         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
70259         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
70260         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
70261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
70262         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
70263         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
70264         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
70265         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
70266         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
70267         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
70268         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
70269         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
70270         Reported by Paolo Bonzini.
70272 2010-01-19  Bruno Haible  <bruno@clisp.org>
70274         langinfo, nl_langinfo: Relicense under LGPLv2+.
70275         * modules/langinfo (License): Change to LGPLv2+.
70276         * modules/nl_langinfo (License): Likewise.
70277         Patch by David Lutterkort <lutter@redhat.com>.
70279 2010-01-19  Bruno Haible  <bruno@clisp.org>
70281         Avoid compilation error with cc on OSF/1 5.1.
70282         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
70283         statement, not before.
70284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70286 2010-01-18  Bruno Haible  <bruno@clisp.org>
70288         Avoid a link error due to the __printf__ symbol.
70289         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
70290         and 2.6.x.
70291         (__format__, __printf__): Remove definitions.
70292         * lib/argp-fmtstream.h: Likewise.
70293         * lib/argp.h: Likewise.
70294         * lib/error.h: Likewise.
70295         * lib/vasnprintf.h: Likewise.
70296         * lib/xprintf.h: Likewise.
70297         * lib/xvasprintf.h: Likewise.
70298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70300 2010-01-18  Bruno Haible  <bruno@clisp.org>
70302         Tests for module 'tanl'.
70303         * modules/tanl-tests: New file.
70304         * tests/test-tanl.c: New file.
70306         Tests for module 'sqrtl'.
70307         * modules/sqrtl-tests: New file.
70308         * tests/test-sqrtl.c: New file.
70310         Tests for module 'sinl'.
70311         * modules/sinl-tests: New file.
70312         * tests/test-sinl.c: New file.
70314         Tests for module 'logl'.
70315         * modules/logl-tests: New file.
70316         * tests/test-logl.c: New file.
70318         Tests for module 'expl'.
70319         * modules/expl-tests: New file.
70320         * tests/test-expl.c: New file.
70322         Tests for module 'cosl'.
70323         * modules/cosl-tests: New file.
70324         * tests/test-cosl.c: New file.
70326         Tests for module 'atanl'.
70327         * modules/atanl-tests: New file.
70328         * tests/test-atanl.c: New file.
70330         Tests for module 'asinl'.
70331         * modules/asinl-tests: New file.
70332         * tests/test-asinl.c: New file.
70334         Tests for module 'acosl'.
70335         * modules/acosl-tests: New file.
70336         * tests/test-acosl.c: New file.
70338         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
70339         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
70340         tanl): Use the standard gnulib idiom.
70341         * lib/cosl.c: Don't include trigl.c and sincosl.c.
70342         * lib/sinl.c: Likewise.
70343         * lib/tanl.c: Don't include trigl.c.
70344         (kernel_tanl): Make static.
70345         * lib/sincosl.c: Include trigl.h first.
70346         * lib/trigl.c: Likewise.
70347         * m4/acosl.m4: New file.
70348         * m4/asinl.m4: New file.
70349         * m4/atanl.m4: New file.
70350         * m4/cosl.m4: New file.
70351         * m4/expl.m4: New file.
70352         * m4/logl.m4: New file.
70353         * m4/sinl.m4: New file.
70354         * m4/sqrtl.m4: New file.
70355         * m4/tanl.m4: New file.
70356         * m4/mathl.m4: Remove file.
70357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
70358         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
70359         Don't initialize GNULIB_MATHL.
70360         * modules/acosl: New file.
70361         * modules/asinl: New file.
70362         * modules/atanl: New file.
70363         * modules/cosl: New file.
70364         * modules/expl: New file.
70365         * modules/logl: New file.
70366         * modules/sinl: New file.
70367         * modules/sqrtl: New file.
70368         * modules/tanl: New file.
70369         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
70370         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
70371         substitute GNULIB_MATHL.
70372         * modules/mathl: Rewritten.
70373         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
70374         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
70375         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
70376         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
70377         * doc/posix-functions/expl.texi: Mention the 'expl' module.
70378         * doc/posix-functions/logl.texi: Mention the 'logl' module.
70379         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
70380         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
70381         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
70383 2010-01-18  Bruno Haible  <bruno@clisp.org>
70385         sqrt: Make gl_FUNC_SQRT requirable.
70386         * m4/sqrt.m4: New file.
70387         * modules/sqrt (Files): Add it.
70388         (configure.ac): Invoke gl_FUNC_SQRT.
70390 2010-01-18  Bruno Haible  <bruno@clisp.org>
70392         New modules for common <math.h> functions.
70393         * m4/mathfunc.m4: New file.
70394         * modules/acos: New file.
70395         * modules/asin: New file.
70396         * modules/atan: New file.
70397         * modules/atan2: New file.
70398         * modules/cbrt: New file.
70399         * modules/copysign: New file.
70400         * modules/cos: New file.
70401         * modules/cosh: New file.
70402         * modules/erf: New file.
70403         * modules/erfc: New file.
70404         * modules/exp: New file.
70405         * modules/fabs: New file.
70406         * modules/fmod: New file.
70407         * modules/hypot: New file.
70408         * modules/j0: New file.
70409         * modules/j1: New file.
70410         * modules/jn: New file.
70411         * modules/ldexp: New file.
70412         * modules/lgamma: New file.
70413         * modules/log: New file.
70414         * modules/log10: New file.
70415         * modules/log1p: New file.
70416         * modules/logb: New file.
70417         * modules/modf: New file.
70418         * modules/nextafter: New file.
70419         * modules/pow: New file.
70420         * modules/remainder: New file.
70421         * modules/rint: New file.
70422         * modules/sin: New file.
70423         * modules/sinh: New file.
70424         * modules/sqrt: New file.
70425         * modules/tan: New file.
70426         * modules/tanh: New file.
70427         * modules/y0: New file.
70428         * modules/y1: New file.
70429         * modules/yn: New file.
70430         * doc/posix-functions/acos.texi: Mention the 'acos' module.
70431         * doc/posix-functions/asin.texi: Mention the 'asin' module.
70432         * doc/posix-functions/atan.texi: Mention the 'atan' module.
70433         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
70434         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
70435         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
70436         * doc/posix-functions/cos.texi: Mention the 'cos' module.
70437         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
70438         * doc/posix-functions/erf.texi: Mention the 'erf' module.
70439         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
70440         * doc/posix-functions/exp.texi: Mention the 'exp' module.
70441         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
70442         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
70443         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
70444         * doc/posix-functions/j0.texi: Mention the 'j0' module.
70445         * doc/posix-functions/j1.texi: Mention the 'j1' module.
70446         * doc/posix-functions/jn.texi: Mention the 'jn' module.
70447         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
70448         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
70449         * doc/posix-functions/log.texi: Mention the 'log' module.
70450         * doc/posix-functions/log10.texi: Mention the 'log10' module.
70451         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
70452         * doc/posix-functions/logb.texi: Mention the 'logb' module.
70453         * doc/posix-functions/modf.texi: Mention the 'modf' module.
70454         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
70455         * doc/posix-functions/pow.texi: Mention the 'pow' module.
70456         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
70457         * doc/posix-functions/rint.texi: Mention the 'rint' module.
70458         * doc/posix-functions/sin.texi: Mention the 'sin' module.
70459         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
70460         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
70461         * doc/posix-functions/tan.texi: Mention the 'tan' module.
70462         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
70463         * doc/posix-functions/y0.texi: Mention the 'y0' module.
70464         * doc/posix-functions/y1.texi: Mention the 'y1' module.
70465         * doc/posix-functions/yn.texi: Mention the 'yn' module.
70467 2010-01-18  Jim Meyering  <meyering@redhat.com>
70469         ignore-value: relax license to LGPLv2+
70470         * modules/ignore-value (License): Relax to LGPLv2+.
70472         getdate: don't leak when TZ contains two or more '"'s
70473         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
70474         double quote in TZ after the first one.
70476         readtokens: do not leak internal token_lengths buffer
70477         * lib/readtokens.c (readtokens): Free the local, lengths,
70478         when the supplied "token_lengths" parameter is NULL.
70480 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70482         Fix a couple of missing LIBTHREAD link failures on AIX.
70483         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
70484         $(LIBTHREAD).
70485         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
70487         Link test-poll against INET_PTON_LIB.
70488         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
70489         for inet_pton on Solaris 10.
70491 2010-01-17  Bruno Haible  <bruno@clisp.org>
70493         unistdio/*-sprintf: Fix typo in module description.
70494         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
70495         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
70496         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
70497         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
70498         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
70499         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
70500         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
70501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70503 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70505         gnulib-tool: fix filelist for AIX, HP-UX ksh.
70506         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
70507         variables in shell case patterns, for AIX and HP-UX ksh.
70509         Split large sed scripts, for HP-UX sed.
70510         * modules/stdio: Split sed scripts around 50 sed commands,
70511         to avoid HP-UX limit of 99 commands, in the near future.
70512         * modules/string: Likewise.
70513         * modules/unistd: Likewise.
70515         gnulib-tool: avoid writing in the current directory.
70516         * gnulib-tool (func_emit_lib_Makefile_am)
70517         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
70518         not in the current directory, so concurrent gnulib-tool
70519         instances do not interfere.
70521 2010-01-16  Jim Meyering  <meyering@redhat.com>
70523         doc: update users.txt
70524         * users.txt: Add grep.
70525         (diffutils, gzip): Update URLs.
70527 2010-01-12  Bruno Haible  <bruno@clisp.org>
70529         posix_spawn: Avoid test failure on Cygwin.
70530         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
70531         characters.
70532         Reported by Simon Josefsson.
70534 2010-01-12  Bruno Haible  <bruno@clisp.org>
70536         * tests/test-cond.c (main): When skipping the test, show the reason.
70538 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70540         * lib/striconv.c (str_cd_iconv): Avoid if before free.
70542 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70544         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
70545         VC_LIST_ALWAYS_EXCLUDE_REGEX.
70547 2010-01-12  Eric Blake  <ebb9@byu.net>
70549         build: guarantee AS_VAR_IF
70550         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
70551         (gl_AS_VAR_IF): Move...
70552         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
70553         Reported by Simon Josefsson.
70555 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70557         * lib/stdio.in.h: Fix typo.
70559 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70561         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
70562         libgpg-error.
70564 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70566         * tests/test-xalloc-die.sh: Use $EXEEXT.
70568 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70569             Bruno Haible  <bruno@clisp.org>
70571         getlogin, getlogin_r: Avoid test failure.
70572         * tests/test-getlogin.c: Include <stdio.h>.
70573         (main): Skip the test when the function fails because stdin is not a
70574         tty.
70575         * tests/test-getlogin_r.c: Include <stdio.h>.
70576         (main): Skip the test when the function fails because stdin is not a
70577         tty.
70579 2010-01-11  Eric Blake  <ebb9@byu.net>
70581         tests: avoid more large file warnings
70582         * tests/test-fflush.c: Avoid warning about ftell use.
70583         * tests/test-fseek.c: Avoid warning about fseek use.
70585 2010-01-10  Bruno Haible  <bruno@clisp.org>
70587         nproc: Work better on Linux when /proc and /sys are not mounted.
70588         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
70589         as lower bound when, on glibc/Linux systems,
70590         sysconf (_SC_NPROCESSORS_CONF) returns 1.
70591         Suggested by Pádraig Brady <P@draigbrady.com>.
70592         Reported by Dmitry V. Levin <ldv@altlinux.org>.
70594         nproc: Refactor.
70595         * lib/nproc.c (num_processors_via_affinity_mask): New function,
70596         extracted from num_processors.
70597         (num_processors): Call it.
70599 2010-01-11  Jim Meyering  <meyering@redhat.com>
70601         utimecmp: avoid new warning from upcoming gcc-4.5.0
70602         * lib/utimecmp.c (BILLION): Define using #define rather than an
70603         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
70605 2010-01-11  Eric Blake  <ebb9@byu.net>
70607         math: add portability warnings for classification macros
70608         * modules/math (Depends-on): Add warn-on-use.
70609         (Makefile.am): Provide new substitutions.
70610         * m4/math_h.m4 (gl_MATH_H): Require inline.
70611         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
70612         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
70613         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
70614         implement warnings.
70616         unistd: warn on use of environ without module
70617         * modules/unistd (Depends-on): Add warn-on-use.
70618         (Makefile.am): Provide new substitutions.
70619         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
70620         * lib/unistd.in.h (environ): Wrap with a warning helper function.
70622         stdio: warn on suspicious uses
70623         * modules/stdio (Depends-on): Add warn-on-use.
70624         (Makefile.am): Provide new substitutions.
70625         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
70626         fseeko.
70627         * lib/stdio.in.h (gets): Always warn on use.
70628         (fseek, ftell): Adjust when warnings are issued, and honor
70629         _GL_NO_LARGE_FILES as a way to silence the warning.
70630         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
70631         any warning about large file offsets.
70632         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
70633         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
70634         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
70635         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
70636         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
70637         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
70638         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
70639         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
70641         warn-on-use: new module
70642         * modules/warn-on-use: New file.
70643         * build-aux/warn-on-use.h: Likewise.
70644         * m4/warn-on-use.m4: Likewise.
70645         * MODULES.html.sh (Support for building): Mention it.
70647 2010-01-10  Bruno Haible  <bruno@clisp.org>
70649         Tests for module 'unistr/u32-strdup'.
70650         * modules/unistr/u32-strdup-tests: New file.
70651         * tests/unistr/test-u32-strdup.c: New file.
70653         Tests for module 'unistr/u16-strdup'.
70654         * modules/unistr/u16-strdup-tests: New file.
70655         * tests/unistr/test-u16-strdup.c: New file.
70657         Tests for module 'unistr/u8-strdup'.
70658         * modules/unistr/u8-strdup-tests: New file.
70659         * tests/unistr/test-u8-strdup.c: New file.
70660         * tests/unistr/test-strdup.h: New file.
70662         Tests for module 'unistr/u32-strncmp'.
70663         * modules/unistr/u32-strncmp-tests: New file.
70664         * tests/unistr/test-u32-strncmp.c: New file.
70666         Tests for module 'unistr/u16-strncmp'.
70667         * modules/unistr/u16-strncmp-tests: New file.
70668         * tests/unistr/test-u16-strncmp.c: New file.
70670         Tests for module 'unistr/u8-strncmp'.
70671         * modules/unistr/u8-strncmp-tests: New file.
70672         * tests/unistr/test-u8-strncmp.c: New file.
70673         * tests/unistr/test-strncmp.h: New file.
70675         Tests for module 'unistr/u32-strcoll'.
70676         * modules/unistr/u32-strcoll-tests: New file.
70677         * tests/unistr/test-u32-strcoll.c: New file.
70679         Tests for module 'unistr/u16-strcoll'.
70680         * modules/unistr/u16-strcoll-tests: New file.
70681         * tests/unistr/test-u16-strcoll.c: New file.
70683         Tests for module 'unistr/u8-strcoll'.
70684         * modules/unistr/u8-strcoll-tests: New file.
70685         * tests/unistr/test-u8-strcoll.c: New file.
70687         Tests for module 'unistr/u32-strcmp'.
70688         * modules/unistr/u32-strcmp-tests: New file.
70689         * tests/unistr/test-u32-strcmp.c: New file.
70690         * tests/unistr/test-u32-strcmp.h: New file.
70692         Tests for module 'unistr/u16-strcmp'.
70693         * modules/unistr/u16-strcmp-tests: New file.
70694         * tests/unistr/test-u16-strcmp.c: New file.
70695         * tests/unistr/test-u16-strcmp.h: New file.
70697         Tests for module 'unistr/u8-strcmp'.
70698         * modules/unistr/u8-strcmp-tests: New file.
70699         * tests/unistr/test-u8-strcmp.c: New file.
70700         * tests/unistr/test-u8-strcmp.h: New file.
70701         * tests/unistr/test-strcmp.h: New file.
70703         Tests for module 'unistr/u32-strncat'.
70704         * modules/unistr/u32-strncat-tests: New file.
70705         * tests/unistr/test-u32-strncat.c: New file.
70707         Tests for module 'unistr/u16-strncat'.
70708         * modules/unistr/u16-strncat-tests: New file.
70709         * tests/unistr/test-u16-strncat.c: New file.
70711         Tests for module 'unistr/u8-strncat'.
70712         * modules/unistr/u8-strncat-tests: New file.
70713         * tests/unistr/test-u8-strncat.c: New file.
70714         * tests/unistr/test-strncat.h: New file.
70716         Tests for module 'unistr/u32-strcat'.
70717         * modules/unistr/u32-strcat-tests: New file.
70718         * tests/unistr/test-u32-strcat.c: New file.
70720         Tests for module 'unistr/u16-strcat'.
70721         * modules/unistr/u16-strcat-tests: New file.
70722         * tests/unistr/test-u16-strcat.c: New file.
70724         Tests for module 'unistr/u8-strcat'.
70725         * modules/unistr/u8-strcat-tests: New file.
70726         * tests/unistr/test-u8-strcat.c: New file.
70727         * tests/unistr/test-strcat.h: New file.
70729         Tests for module 'unistr/u32-stpncpy'.
70730         * modules/unistr/u32-stpncpy-tests: New file.
70731         * tests/unistr/test-u32-stpncpy.c: New file.
70733         Tests for module 'unistr/u16-stpncpy'.
70734         * modules/unistr/u16-stpncpy-tests: New file.
70735         * tests/unistr/test-u16-stpncpy.c: New file.
70737         Tests for module 'unistr/u8-stpncpy'.
70738         * modules/unistr/u8-stpncpy-tests: New file.
70739         * tests/unistr/test-u8-stpncpy.c: New file.
70740         * tests/unistr/test-stpncpy.h: New file.
70742         Tests for module 'unistr/u32-strncpy'.
70743         * modules/unistr/u32-strncpy-tests: New file.
70744         * tests/unistr/test-u32-strncpy.c: New file.
70746         Tests for module 'unistr/u16-strncpy'.
70747         * modules/unistr/u16-strncpy-tests: New file.
70748         * tests/unistr/test-u16-strncpy.c: New file.
70750         Tests for module 'unistr/u8-strncpy'.
70751         * modules/unistr/u8-strncpy-tests: New file.
70752         * tests/unistr/test-u8-strncpy.c: New file.
70753         * tests/unistr/test-strncpy.h: New file.
70755         Tests for module 'unistr/u32-stpcpy'.
70756         * modules/unistr/u32-stpcpy-tests: New file.
70757         * tests/unistr/test-u32-stpcpy.c: New file.
70759         Tests for module 'unistr/u16-stpcpy'.
70760         * modules/unistr/u16-stpcpy-tests: New file.
70761         * tests/unistr/test-u16-stpcpy.c: New file.
70763         Tests for module 'unistr/u8-stpcpy'.
70764         * modules/unistr/u8-stpcpy-tests: New file.
70765         * tests/unistr/test-u8-stpcpy.c: New file.
70766         * tests/unistr/test-stpcpy.h: New file.
70768         Tests for module 'unistr/u32-strcpy'.
70769         * modules/unistr/u32-strcpy-tests: New file.
70770         * tests/unistr/test-u32-strcpy.c: New file.
70772         Tests for module 'unistr/u16-strcpy'.
70773         * modules/unistr/u16-strcpy-tests: New file.
70774         * tests/unistr/test-u16-strcpy.c: New file.
70776         Tests for module 'unistr/u8-strcpy'.
70777         * modules/unistr/u8-strcpy-tests: New file.
70778         * tests/unistr/test-u8-strcpy.c: New file.
70779         * tests/unistr/test-strcpy.h: New file.
70781         Tests for module 'unistr/u32-strnlen'.
70782         * modules/unistr/u32-strnlen-tests: New file.
70783         * tests/unistr/test-u32-strnlen.c: New file.
70785         Tests for module 'unistr/u16-strnlen'.
70786         * modules/unistr/u16-strnlen-tests: New file.
70787         * tests/unistr/test-u16-strnlen.c: New file.
70789         Tests for module 'unistr/u8-strnlen'.
70790         * modules/unistr/u8-strnlen-tests: New file.
70791         * tests/unistr/test-u8-strnlen.c: New file.
70792         * tests/unistr/test-strnlen.h: New file.
70794         Tests for module 'unistr/u32-strlen'.
70795         * modules/unistr/u32-strlen-tests: New file.
70796         * tests/unistr/test-u32-strlen.c: New file.
70798         Tests for module 'unistr/u16-strlen'.
70799         * modules/unistr/u16-strlen-tests: New file.
70800         * tests/unistr/test-u16-strlen.c: New file.
70802         Tests for module 'unistr/u8-strlen'.
70803         * modules/unistr/u8-strlen-tests: New file.
70804         * tests/unistr/test-u8-strlen.c: New file.
70806         Tests for module 'unistr/u32-prev'.
70807         * modules/unistr/u32-prev-tests: New file.
70808         * tests/unistr/test-u32-prev.c: New file.
70810         Tests for module 'unistr/u16-prev'.
70811         * modules/unistr/u16-prev-tests: New file.
70812         * tests/unistr/test-u16-prev.c: New file.
70814         Tests for module 'unistr/u8-prev'.
70815         * modules/unistr/u8-prev-tests: New file.
70816         * tests/unistr/test-u8-prev.c: New file.
70818         Tests for module 'unistr/u32-next'.
70819         * modules/unistr/u32-next-tests: New file.
70820         * tests/unistr/test-u32-next.c: New file.
70822         Tests for module 'unistr/u16-next'.
70823         * modules/unistr/u16-next-tests: New file.
70824         * tests/unistr/test-u16-next.c: New file.
70826         Tests for module 'unistr/u8-next'.
70827         * modules/unistr/u8-next-tests: New file.
70828         * tests/unistr/test-u8-next.c: New file.
70830         Tests for module 'unistr/u32-strmbtouc'.
70831         * modules/unistr/u32-strmbtouc-tests: New file.
70832         * tests/unistr/test-u32-strmbtouc.c: New file.
70834         Tests for module 'unistr/u16-strmbtouc'.
70835         * modules/unistr/u16-strmbtouc-tests: New file.
70836         * tests/unistr/test-u16-strmbtouc.c: New file.
70838         Tests for module 'unistr/u8-strmbtouc'.
70839         * modules/unistr/u8-strmbtouc-tests: New file.
70840         * tests/unistr/test-u8-strmbtouc.c: New file.
70842         Tests for module 'unistr/u32-strmblen'.
70843         * modules/unistr/u32-strmblen-tests: New file.
70844         * tests/unistr/test-u32-strmblen.c: New file.
70846         Tests for module 'unistr/u16-strmblen'.
70847         * modules/unistr/u16-strmblen-tests: New file.
70848         * tests/unistr/test-u16-strmblen.c: New file.
70850         Tests for module 'unistr/u8-strmblen'.
70851         * modules/unistr/u8-strmblen-tests: New file.
70852         * tests/unistr/test-u8-strmblen.c: New file.
70854         Tests for module 'unistr/u32-cpy-alloc'.
70855         * modules/unistr/u32-cpy-alloc-tests: New file.
70856         * tests/unistr/test-u32-cpy-alloc.c: New file.
70858         Tests for module 'unistr/u16-cpy-alloc'.
70859         * modules/unistr/u16-cpy-alloc-tests: New file.
70860         * tests/unistr/test-u16-cpy-alloc.c: New file.
70862         Tests for module 'unistr/u8-cpy-alloc'.
70863         * modules/unistr/u8-cpy-alloc-tests: New file.
70864         * tests/unistr/test-u8-cpy-alloc.c: New file.
70865         * tests/unistr/test-cpy-alloc.h: New file.
70867         Tests for module 'unistr/u32-mbsnlen'.
70868         * modules/unistr/u32-mbsnlen-tests: New file.
70869         * tests/unistr/test-u32-mbsnlen.c: New file.
70871         Tests for module 'unistr/u16-mbsnlen'.
70872         * modules/unistr/u16-mbsnlen-tests: New file.
70873         * tests/unistr/test-u16-mbsnlen.c: New file.
70875         Tests for module 'unistr/u8-mbsnlen'.
70876         * modules/unistr/u8-mbsnlen-tests: New file.
70877         * tests/unistr/test-u8-mbsnlen.c: New file.
70879         Tests for module 'unistr/u32-chr'.
70880         * modules/unistr/u32-chr-tests: New file.
70881         * tests/unistr/test-u32-chr.c: New file.
70883         Tests for module 'unistr/u16-chr'.
70884         * modules/unistr/u16-chr-tests: New file.
70885         * tests/unistr/test-u16-chr.c: New file.
70887         Tests for module 'unistr/u8-chr'.
70888         * modules/unistr/u8-chr-tests: New file.
70889         * tests/unistr/test-u8-chr.c: New file.
70890         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
70892         Tests for module 'unistr/u32-cmp2'.
70893         * modules/unistr/u32-cmp2-tests: New file.
70894         * tests/unistr/test-u32-cmp2.c: New file.
70896         Tests for module 'unistr/u16-cmp2'.
70897         * modules/unistr/u16-cmp2-tests: New file.
70898         * tests/unistr/test-u16-cmp2.c: New file.
70900         Tests for module 'unistr/u8-cmp2'.
70901         * modules/unistr/u8-cmp2-tests: New file.
70902         * tests/unistr/test-u8-cmp2.c: New file.
70903         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70905         Tests for module 'unistr/u32-cmp'.
70906         * modules/unistr/u32-cmp-tests: New file.
70907         * tests/unistr/test-u32-cmp.c: New file.
70909         Tests for module 'unistr/u16-cmp'.
70910         * modules/unistr/u16-cmp-tests: New file.
70911         * tests/unistr/test-u16-cmp.c: New file.
70913         Tests for module 'unistr/u8-cmp'.
70914         * modules/unistr/u8-cmp-tests: New file.
70915         * tests/unistr/test-u8-cmp.c: New file.
70916         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70918         Tests for module 'unistr/u32-set'.
70919         * modules/unistr/u32-set-tests: New file.
70920         * tests/unistr/test-u32-set.c: New file.
70922         Tests for module 'unistr/u16-set'.
70923         * modules/unistr/u16-set-tests: New file.
70924         * tests/unistr/test-u16-set.c: New file.
70926         Tests for module 'unistr/u8-set'.
70927         * modules/unistr/u8-set-tests: New file.
70928         * tests/unistr/test-u8-set.c: New file.
70929         * tests/unistr/test-set.h: New file.
70931         Tests for module 'unistr/u32-move'.
70932         * modules/unistr/u32-move-tests: New file.
70933         * tests/unistr/test-u32-move.c: New file.
70935         Tests for module 'unistr/u16-move'.
70936         * modules/unistr/u16-move-tests: New file.
70937         * tests/unistr/test-u16-move.c: New file.
70939         Tests for module 'unistr/u8-move'.
70940         * modules/unistr/u8-move-tests: New file.
70941         * tests/unistr/test-u8-move.c: New file.
70942         * tests/unistr/test-move.h: New file.
70944         Tests for module 'unistr/u32-cpy'.
70945         * modules/unistr/u32-cpy-tests: New file.
70946         * tests/unistr/test-u32-cpy.c: New file.
70948         Tests for module 'unistr/u16-cpy'.
70949         * modules/unistr/u16-cpy-tests: New file.
70950         * tests/unistr/test-u16-cpy.c: New file.
70952         Tests for module 'unistr/u8-cpy'.
70953         * modules/unistr/u8-cpy-tests: New file.
70954         * tests/unistr/test-u8-cpy.c: New file.
70955         * tests/unistr/test-cpy.h: New file.
70957 2010-01-09  Bruno Haible  <bruno@clisp.org>
70959         Tests for module 'unistr/u32-uctomb'.
70960         * modules/unistr/u32-uctomb-tests: New file.
70961         * tests/unistr/test-u32-uctomb.c: New file.
70963         Tests for module 'unistr/u16-uctomb'.
70964         * modules/unistr/u16-uctomb-tests: New file.
70965         * tests/unistr/test-u16-uctomb.c: New file.
70967         Tests for module 'unistr/u8-uctomb'.
70968         * modules/unistr/u8-uctomb-tests: New file.
70969         * tests/unistr/test-u8-uctomb.c: New file.
70971         Tests for module 'unistr/u32-mbtoucr'.
70972         * modules/unistr/u32-mbtoucr-tests: New file.
70973         * tests/unistr/test-u32-mbtoucr.c: New file.
70975         Tests for module 'unistr/u16-mbtoucr'.
70976         * modules/unistr/u16-mbtoucr-tests: New file.
70977         * tests/unistr/test-u16-mbtoucr.c: New file.
70979         Tests for module 'unistr/u8-mbtoucr'.
70980         * modules/unistr/u8-mbtoucr-tests: New file.
70981         * tests/unistr/test-u8-mbtoucr.c: New file.
70983         Tests for module 'unistr/u32-mbtouc'.
70984         * modules/unistr/u32-mbtouc-tests: New file.
70985         * tests/unistr/test-u32-mbtouc.c: New file.
70987         Tests for module 'unistr/u16-mbtouc'.
70988         * modules/unistr/u16-mbtouc-tests: New file.
70989         * tests/unistr/test-u16-mbtouc.c: New file.
70991         Tests for module 'unistr/u8-mbtouc'.
70992         * modules/unistr/u8-mbtouc-tests: New file.
70993         * tests/unistr/test-u8-mbtouc.c: New file.
70995         Tests for module 'unistr/u32-mbtouc-unsafe'.
70996         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70997         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70998         * tests/unistr/test-u32-mbtouc.h: New file.
71000         Tests for module 'unistr/u16-mbtouc-unsafe'.
71001         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
71002         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
71003         * tests/unistr/test-u16-mbtouc.h: New file.
71005         Tests for module 'unistr/u8-mbtouc-unsafe'.
71006         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
71007         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
71008         * tests/unistr/test-u8-mbtouc.h: New file.
71010         Tests for module 'unistr/u32-mblen'.
71011         * modules/unistr/u32-mblen-tests: New file.
71012         * tests/unistr/test-u32-mblen.c: New file.
71014         Tests for module 'unistr/u16-mblen'.
71015         * modules/unistr/u16-mblen-tests: New file.
71016         * tests/unistr/test-u16-mblen.c: New file.
71018         Tests for module 'unistr/u8-mblen'.
71019         * modules/unistr/u8-mblen-tests: New file.
71020         * tests/unistr/test-u8-mblen.c: New file.
71022         Tests for module 'unistr/u32-to-u16'.
71023         * modules/unistr/u32-to-u16-tests: New file.
71024         * tests/unistr/test-u32-to-u16.c: New file.
71026         Tests for module 'unistr/u32-to-u8'.
71027         * modules/unistr/u32-to-u8-tests: New file.
71028         * tests/unistr/test-u32-to-u8.c: New file.
71030         Tests for module 'unistr/u16-to-u32'.
71031         * modules/unistr/u16-to-u32-tests: New file.
71032         * tests/unistr/test-u16-to-u32.c: New file.
71034         Tests for module 'unistr/u16-to-u8'.
71035         * modules/unistr/u16-to-u8-tests: New file.
71036         * tests/unistr/test-u16-to-u8.c: New file.
71038         Tests for module 'unistr/u8-to-u32'.
71039         * modules/unistr/u8-to-u32-tests: New file.
71040         * tests/unistr/test-u8-to-u32.c: New file.
71042         Tests for module 'unistr/u8-to-u16'.
71043         * modules/unistr/u8-to-u16-tests: New file.
71044         * tests/unistr/test-u8-to-u16.c: New file.
71046         Tests for module 'unistr/u32-check'.
71047         * modules/unistr/u32-check-tests: New file.
71048         * tests/unistr/test-u32-check.c: New file.
71050         Tests for module 'unistr/u16-check'.
71051         * modules/unistr/u16-check-tests: New file.
71052         * tests/unistr/test-u16-check.c: New file.
71054         Tests for module 'unistr/u8-check'.
71055         * modules/unistr/u8-check-tests: New file.
71056         * tests/unistr/test-u8-check.c: New file.
71058         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
71059         (category_equals): New function.
71060         (main): Add more tests.
71061         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
71063         * tests/unictype/test-bidi_byname.c (main): Add more tests.
71065 2010-01-10  Bruno Haible  <bruno@clisp.org>
71067         unistr/u*-strcoll: Try harder to distinguish different strings.
71068         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
71069         compare s1 and s2 to see if they are different.
71071 2010-01-10  Bruno Haible  <bruno@clisp.org>
71073         unistr/u*-stpncpy: Fix the return value.
71074         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
71075         description of the return value consistent with stpncpy in glibc.
71076         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
71077         written non-NUL unit.
71079 2010-01-10  Bruno Haible  <bruno@clisp.org>
71081         unistr/u*-next: Add missing dependencies.
71082         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
71083         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
71084         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
71086 2010-01-10  Bruno Haible  <bruno@clisp.org>
71088         unistr/u8-mbsnlen: Fix return value for incomplete character.
71089         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
71090         u8_mblen.
71091         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
71092         Remove unistr/u8-mblen.
71093         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
71094         u16_mblen.
71095         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
71096         Remove unistr/u16-mblen.
71098 2010-01-10  Bruno Haible  <bruno@clisp.org>
71100         wchar: Fix compilation error when <wchar.h> is used from coreutils.
71101         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
71102         Reported by Brian Gough <bjg@gnu.org> and
71103         Chris Clayton <chris2553@googlemail.com> via
71104         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
71106 2010-01-09  Bruno Haible  <bruno@clisp.org>
71108         unistr/u16-to-u32: Reject invalid input.
71109         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
71110         u16_mbtouc.
71111         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
71112         Remove unistr/u16-mbtouc.
71114         unistr/u16-to-u8: Reject invalid input.
71115         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
71116         u16_mbtouc.
71117         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
71118         Remove unistr/u16-mbtouc.
71120         unistr/u8-to-u32: Reject invalid input.
71121         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
71122         u8_mbtouc.
71123         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
71124         Remove unistr/u8-mbtouc.
71126         unistr/u8-to-u16: Reject invalid input.
71127         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
71128         u8_mbtouc.
71129         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
71130         Remove unistr/u8-mbtouc.
71132 2010-01-09  Bruno Haible  <bruno@clisp.org>
71134         Tests for module 'getlogin'.
71135         * modules/getlogin-tests: New file.
71136         * tests/test-getlogin.c: New file.
71138         New module 'getlogin'.
71139         * lib/unistd.in.h (getlogin): New declaration.
71140         * lib/getlogin.c: New file.
71141         * m4/getlogin.m4: New file.
71142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
71143         HAVE_GETLOGIN.
71144         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
71145         HAVE_GETLOGIN.
71146         * modules/getlogin: New file.
71147         * doc/posix-functions/getlogin.texi: Mention the new module.
71148         Reported by John W. Eaton <jwe@gnu.org>.
71150 2010-01-09  Bruno Haible  <bruno@clisp.org>
71152         getlogin_r: Support for native Windows.
71153         * lib/getlogin_r.c: Include <windows.h>
71154         (getlogin_r): Implement for native Windows.
71155         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
71156         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
71157         via John W. Eaton <jwe@gnu.org>.
71159 2010-01-09  Bruno Haible  <bruno@clisp.org>
71161         getlogin_r: Small fixes.
71162         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
71163         succeeds.
71164         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
71165         before testing whether getlogin_r is declared. No need to set
71166         HAVE_DECL_GETLOGIN_R to 1.
71167         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
71169 2010-01-09  Bruno Haible  <bruno@clisp.org>
71171         * lib/unistd.in.h (getlogin_r): Add comment.
71173 2010-01-09  Bruno Haible  <bruno@clisp.org>
71175         Tests for module 'getlogin_r'.
71176         * modules/getlogin_r-tests: New file.
71177         * tests/test-getlogin_r.c: New file.
71179 2010-01-09  Jim Meyering  <meyering@redhat.com>
71181         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
71182         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
71183         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
71185 2010-01-08  Simon Josefsson  <simon@josefsson.org>
71187         * lib/dup2.c (rpl_dup2): Improve comment.
71189 2010-01-08  Eric Blake  <ebb9@byu.net>
71191         maint.mk: allow packages to add makefile @@ exceptions
71192         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
71193         (sc_makefile_check): Rename...
71194         (sc_makefile_at_at_check): ...to this, and use hook.
71196         dup2: work around mingw bug
71197         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
71198         Reported by Simon Josefsson.
71200 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
71202         glob: Fix C++ compilation.
71203         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
71204         C++.
71206 2010-01-07  Bruno Haible  <bruno@clisp.org>
71208         Fix indentation of wctype.in.h, broken since 2007-01-06.
71209         * lib/wctype.in.h: Fix indentation of preprocessor directives.
71211 2010-01-07  Bruno Haible  <bruno@clisp.org>
71213         mbslen: Avoid collision with system function.
71214         * lib/string.in.h [MirBSD]: Include <wchar.h>.
71215         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
71216         * m4/mbslen.m4: New file.
71217         * modules/mbslen (Files): Add it.
71218         (configure.ac): Invoke gl_MBSLEN.
71219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
71220         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
71221         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
71222         via Ian Beckwith <ianb@erislabs.net>.
71224 2010-01-07  Bruno Haible  <bruno@clisp.org>
71226         dirent: Document the last fix.
71227         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
71229 2010-01-07  Bruno Haible  <bruno@clisp.org>
71231         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
71232         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
71233         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
71234         va_list are defined.
71235         * doc/posix-headers/stdio.texi: Document the bug of missing types.
71236         Reported by Eric Blake.
71238 2010-01-07  Bruno Haible  <bruno@clisp.org>
71240         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
71241         * modules/xlist (Depends-on): Add 'list',
71242         * modules/xoset (Depends-on): Add 'oset'.
71243         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71245 2010-01-07  Bruno Haible  <bruno@clisp.org>
71247         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
71248         * doc/posix-functions/strncasecmp.texi: Likewise.
71250 2010-01-07  Bruno Haible  <bruno@clisp.org>
71252         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
71254 2010-01-07  John W. Eaton  <jwe@octave.org>
71256         wctype: allow C++ use
71257         * lib/wctype.in.h: Add extern "C" block for C++.
71259 2010-01-06  Eric Blake  <ebb9@byu.net>
71261         maint.mk: detect incorrect GFDL usage
71262         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
71264 2010-01-06  Jim Meyering  <meyering@redhat.com>
71265         and Eric Blake  <ebb9@byu.net>
71267         maint.mk: ignore multi-line copyright in NEWS
71268         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
71270 2010-01-06  Eric Blake  <ebb9@byu.net>
71272         select: add missing dependency
71273         * modules/select-tests (Depends-on): Move sockets dependency...
71274         * modules/select (Depends-on): ...here.
71275         Reported by Ian Beckwith.
71277         doc: regenerate INSTALL
71278         * doc/INSTALL: Reflect recent autoconf update.
71279         * doc/INSTALL.ISO: Likewise.
71280         * doc/INSTALL.UTF-8: Likewise.
71282         pread: fix compilation on glibc
71283         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
71284         Reported by Ralf Wildenhues.
71286         dirent: fix test failure
71287         * lib/dirent.in.h (includes): Guarantee ino_t.
71288         Reported by Ralf Wildenhues.
71290 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
71292         linkat, renameat: avoid bad free
71293         * lib/at-func2.c (at_func2): Fix typo.
71294         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
71296 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71298         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
71299         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
71300         to avoid failure of symlink test later.
71302 2010-01-06  Eric Blake  <ebb9@byu.net>
71304         stdio, unistd: guarantee ssize_t
71305         * lib/unistd.in.h (includes): Ensure that types required by POSIX
71306         2008 are exposed when needed.
71307         * lib/stdio.in.h (includes): Likewise.
71308         Reported by Ralf Wildenhues.
71310 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
71312         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
71313         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
71314         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
71316 2010-01-06  Jim Meyering  <meyering@redhat.com>
71318         readtokens: this module *does* require xalloc.h
71319         It uses only functions that were omitted by the old syntax-check rule.
71320         * lib/readtokens.c: Include "xalloc.h" once again.
71321         * modules/readtokens (Depends-on): Add xalloc.
71322         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
71324 2010-01-05  Eric Blake  <ebb9@byu.net>
71326         maint: support 'make announcement' from a VPATH build
71327         * top/maint.mk (announcement): Look for correct NEWS file.
71329 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
71331         utimens (fdutimens): ignore a negative FD, per contract
71332         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
71333         when we have a valid file descriptor.  Otherwise, using a brand
71334         new glibc (with just-patched futimens that now fails with EBADF)
71335         would cause this function to fail with ENOSYS.
71336         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
71337         See also http://bugzilla.redhat.com/552320.
71339 2010-01-05  Eric Blake  <ebb9@byu.net>
71341         strcase: document what it provides
71342         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
71343         gnulib module.
71344         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
71345         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
71347 2010-01-05  Jim Meyering  <meyering@redhat.com>
71349         maint: remove useless inclusions of "xalloc.h"
71350         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
71351         * lib/readtokens.c: Likewise.
71352         * lib/same.c: Likewise.
71353         * modules/getloadavg (Depends-on): Remove xalloc.
71354         * modules/readtokens: Likewise.
71355         * modules/same: Likewise.
71357         maint.mk: include 4 more function names in alloca.h-checking regexp
71358         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
71359         regexp.  Before, we would give a false-positive (saying alloca.h
71360         is included unnecessarily) when the only uses involved omitted symbols.
71362         xalloc.h: use consistent formatting
71363         * lib/xalloc.h: Move declarations to start in the first column.
71365 2010-01-05  Eric Blake  <ebb9@byu.net>
71367         mkdir: avoid xalloc
71368         * lib/mkdir.c (includes): Drop unused header.
71369         Reported by John W. Eaton.
71371 2010-01-04  Jim Meyering  <meyering@redhat.com>
71373         nl_langinfo: avoid configure-time syntax error
71374         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
71375         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
71376         the empty string.  Don't let that provoke a shell syntax error.
71378         regcomp, regexec, fnmatch: avoid array bounds read error
71379         * lib/regcomp.c (build_equiv_class): From glibc:
71380         Use only the low 24 bits of a findidx return value as an index
71381         into the weights array.  Patch by Ulrich Drepper:
71382         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
71383         * lib/regexec.c (check_node_accept_bytes): Likewise.
71384         * lib/fnmatch_loop.c (FCT): Likewise.
71386         regcomp: skip collseq lookup when there are no rules
71387         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
71388         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
71390         regcomp: recognize ill-formed { } expressions
71391         * lib/regcomp.c (parse_dup_op): From glibc:
71392         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
71394         regcomp: fix typo in comment
71395         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
71396         s/satisfy/satisfies/.
71398         regcomp: sync from glibc: remove dead store
71399         * lib/regcomp.c (duplicate_node_closure): Remove useless
71400         search_duplicated_node call and dead store.
71402         regcomp: sync from glibc; always use nl_langinfo
71403         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
71404         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
71405         * modules/regex (Depends-on): Add nl_langinfo.
71407 2010-01-04  Eric Blake  <ebb9@byu.net>
71409         fdopendir: fix configure test
71410         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
71412 2010-01-01  Bruno Haible  <bruno@clisp.org>
71414         wchar: Remove unused configure check.
71415         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
71417 2010-01-01  Eric Blake  <ebb9@byu.net>
71419         headers: make check of system header explicit
71420         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
71421         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
71422         ourselves.
71423         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71425         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
71426         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
71427         internals.
71428         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
71429         missing.
71430         Suggested by Bruno Haible.
71432 2010-01-01  Jim Meyering  <meyering@redhat.com>
71434         ChangeLog: tweak to eliminate unnecessary copyright line
71435         * ChangeLog: Remove a copyright line that was mistakenly updated
71436         by today's update-copyright run.  Reported by Eric Blake.
71438         test-update-copyright: don't let envvar setting cause test failure
71439         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71441 2010-01-01  Bruno Haible  <bruno@clisp.org>
71443         localename: Avoid gcc warning.
71444         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
71445         function if it is not used.
71447 2010-01-01  Jim Meyering  <meyering@redhat.com>
71449         update nearly all FSF copyright year lists to include 2010
71450         Use the same procedure as for 2009, outlined in
71451         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
71453         version-etc: set COPYRIGHT_YEAR to 2010
71454         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
71456 2009-12-31  Eric Blake  <ebb9@byu.net>
71458         doc: correct availability of cygwin 1.5.x getopt
71459         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
71460         variables.
71461         * doc/posix-functions/opterr.texi (opterr): Likewise.
71462         * doc/posix-functions/optind.texi (optind): Likewise.
71463         * doc/posix-functions/optopt.texi (optopt): Likewise.
71464         * doc/posix-functions/tzname.texi (tzname): Likewise.
71466         openat: update maintainer
71467         * modules/openat (Maintainer): Add myself.
71469         utimens: avoid shadowing warning
71470         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
71471         buffers into one, to avoid shadowing, as well as avoiding a
71472         redundant stat.
71473         Reported by Jim Meyering.
71475         test-dup2: avoid compiler warning
71476         * tests/test-dup2.c (is_inheritable): Only define if used.
71478 2010-01-01  Bruno Haible  <bruno@clisp.org>
71480         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
71481         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
71482         defined, use wctomb instead of wcrtomb.
71484 2010-01-01  Bruno Haible  <bruno@clisp.org>
71486         iconv: Reject native Solaris iconv.
71487         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
71488         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
71490 2009-12-31  Bruno Haible  <bruno@clisp.org>
71492         * tests/test-signal.c (main): Remove test of 'SIG'.
71494 2009-12-31  Bruno Haible  <bruno@clisp.org>
71496         spawn: Fix incomplete fix.
71497         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71498         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71499         warnings for GNULIB_POSIXCHECK again.
71500         Reported by Eric Blake.
71502 2009-12-31  Bruno Haible  <bruno@clisp.org>
71504         Avoid namespace pollution on glibc systems.
71505         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
71506         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
71507         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
71508         glibc systems.
71510 2009-12-31  Bruno Haible  <bruno@clisp.org>
71512         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
71513         (gl_REPLACE_WCHAR_H): Turn into a no-op.
71514         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
71515         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
71516         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
71517         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
71518         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
71520 2009-12-31  Bruno Haible  <bruno@clisp.org>
71522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71523         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
71524         afterwards.
71526 2009-12-31  Bruno Haible  <bruno@clisp.org>
71528         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
71529         SYS_UTSNAME_H.
71531 2009-12-31  Bruno Haible  <bruno@clisp.org>
71533         spawn: Fix misapplied patch.
71534         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71535         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71536         warnings for GNULIB_POSIXCHECK.
71538 2009-12-31  Bruno Haible  <bruno@clisp.org>
71540         times: Update after sys_times changed.
71541         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
71542         * modules/times (Files): Add it.
71543         (configure.ac): Invoke gl_FUNC_TIMES.
71545 2009-12-31  Bruno Haible  <bruno@clisp.org>
71547         Use AC_C_INLINE where necessary.
71548         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
71549         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71551         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
71552         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71553         * m4/mbiter.m4 (gl_MBITER): Likewise.
71554         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71555         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71556         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
71557         * modules/u64 (configure.ac): Likewise.
71559 2009-12-31  Bruno Haible  <bruno@clisp.org>
71561         Use AC_C_INLINE instead of module 'inline' where possible.
71562         * modules/inline (Description): Clarify purpose.
71563         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
71564         * modules/count-one-bits (Depends-on): Remove inline.
71565         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
71566         * modules/openat (Depends-on): Remove inline.
71567         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
71568         instead of depending on module 'inline'.
71569         * modules/filevercmp (Depends-on, configure.ac): Likewise.
71570         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
71571         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
71572         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
71573         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
71574         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
71575         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
71576         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
71577         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
71578         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
71579         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
71580         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
71581         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
71582         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
71583         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
71584         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
71585         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
71586         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
71587         Likewise.
71588         * modules/unictype/property-ascii-hex-digit (Depends-on,
71589         configure.ac): Likewise.
71590         * modules/unictype/property-bidi-arabic-digit (Depends-on,
71591         configure.ac): Likewise.
71592         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
71593         configure.ac): Likewise.
71594         * modules/unictype/property-bidi-block-separator (Depends-on,
71595         configure.ac): Likewise.
71596         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
71597         configure.ac): Likewise.
71598         * modules/unictype/property-bidi-common-separator (Depends-on,
71599         configure.ac): Likewise.
71600         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
71601         Likewise.
71602         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
71603         configure.ac): Likewise.
71604         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
71605         configure.ac): Likewise.
71606         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
71607         configure.ac): Likewise.
71608         * modules/unictype/property-bidi-european-digit (Depends-on,
71609         configure.ac): Likewise.
71610         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
71611         configure.ac): Likewise.
71612         * modules/unictype/property-bidi-left-to-right (Depends-on,
71613         configure.ac): Likewise.
71614         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
71615         configure.ac): Likewise.
71616         * modules/unictype/property-bidi-other-neutral (Depends-on,
71617         configure.ac): Likewise.
71618         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
71619         Likewise.
71620         * modules/unictype/property-bidi-segment-separator (Depends-on,
71621         configure.ac): Likewise.
71622         * modules/unictype/property-bidi-whitespace (Depends-on,
71623         configure.ac): Likewise.
71624         * modules/unictype/property-combining (Depends-on, configure.ac):
71625         Likewise.
71626         * modules/unictype/property-composite (Depends-on, configure.ac):
71627         Likewise.
71628         * modules/unictype/property-currency-symbol (Depends-on,
71629         configure.ac): Likewise.
71630         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
71631         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
71632         Likewise.
71633         * modules/unictype/property-default-ignorable-code-point (Depends-on,
71634         configure.ac): Likewise.
71635         * modules/unictype/property-deprecated (Depends-on, configure.ac):
71636         Likewise.
71637         * modules/unictype/property-diacritic (Depends-on, configure.ac):
71638         Likewise.
71639         * modules/unictype/property-extender (Depends-on, configure.ac):
71640         Likewise.
71641         * modules/unictype/property-format-control (Depends-on, configure.ac):
71642         Likewise.
71643         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
71644         Likewise.
71645         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
71646         Likewise.
71647         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
71648         Likewise.
71649         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
71650         Likewise.
71651         * modules/unictype/property-hyphen (Depends-on, configure.ac):
71652         Likewise.
71653         * modules/unictype/property-id-continue (Depends-on, configure.ac):
71654         Likewise.
71655         * modules/unictype/property-id-start (Depends-on, configure.ac):
71656         Likewise.
71657         * modules/unictype/property-ideographic (Depends-on, configure.ac):
71658         Likewise.
71659         * modules/unictype/property-ids-binary-operator (Depends-on,
71660         configure.ac): Likewise.
71661         * modules/unictype/property-ids-trinary-operator (Depends-on,
71662         configure.ac): Likewise.
71663         * modules/unictype/property-ignorable-control (Depends-on,
71664         configure.ac): Likewise.
71665         * modules/unictype/property-iso-control (Depends-on, configure.ac):
71666         Likewise.
71667         * modules/unictype/property-join-control (Depends-on, configure.ac):
71668         Likewise.
71669         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
71670         Likewise.
71671         * modules/unictype/property-line-separator (Depends-on, configure.ac):
71672         Likewise.
71673         * modules/unictype/property-logical-order-exception (Depends-on,
71674         configure.ac): Likewise.
71675         * modules/unictype/property-lowercase (Depends-on, configure.ac):
71676         Likewise.
71677         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
71678         * modules/unictype/property-non-break (Depends-on, configure.ac):
71679         Likewise.
71680         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
71681         Likewise.
71682         * modules/unictype/property-numeric (Depends-on, configure.ac):
71683         Likewise.
71684         * modules/unictype/property-other-alphabetic (Depends-on,
71685         configure.ac): Likewise.
71686         * modules/unictype/property-other-default-ignorable-code-point
71687         (Depends-on, configure.ac): Likewise.
71688         * modules/unictype/property-other-grapheme-extend (Depends-on,
71689         configure.ac): Likewise.
71690         * modules/unictype/property-other-id-continue (Depends-on,
71691         configure.ac): Likewise.
71692         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
71693         Likewise.
71694         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
71695         Likewise.
71696         * modules/unictype/property-other-math (Depends-on, configure.ac):
71697         Likewise.
71698         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
71699         Likewise.
71700         * modules/unictype/property-paired-punctuation (Depends-on,
71701         configure.ac): Likewise.
71702         * modules/unictype/property-paragraph-separator (Depends-on,
71703         configure.ac): Likewise.
71704         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
71705         Likewise.
71706         * modules/unictype/property-pattern-white-space (Depends-on,
71707         configure.ac): Likewise.
71708         * modules/unictype/property-private-use (Depends-on, configure.ac):
71709         Likewise.
71710         * modules/unictype/property-punctuation (Depends-on, configure.ac):
71711         Likewise.
71712         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
71713         Likewise.
71714         * modules/unictype/property-radical (Depends-on, configure.ac):
71715         Likewise.
71716         * modules/unictype/property-sentence-terminal (Depends-on,
71717         configure.ac): Likewise.
71718         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
71719         Likewise.
71720         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
71721         * modules/unictype/property-terminal-punctuation (Depends-on,
71722         configure.ac): Likewise.
71723         * modules/unictype/property-titlecase (Depends-on, configure.ac):
71724         Likewise.
71725         * modules/unictype/property-unassigned-code-value (Depends-on,
71726         configure.ac): Likewise.
71727         * modules/unictype/property-unified-ideograph (Depends-on,
71728         configure.ac): Likewise.
71729         * modules/unictype/property-uppercase (Depends-on, configure.ac):
71730         Likewise.
71731         * modules/unictype/property-variation-selector (Depends-on,
71732         configure.ac): Likewise.
71733         * modules/unictype/property-white-space (Depends-on, configure.ac):
71734         Likewise.
71735         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
71736         Likewise.
71737         * modules/unictype/property-xid-start (Depends-on, configure.ac):
71738         Likewise.
71739         * modules/unictype/property-zero-width (Depends-on, configure.ac):
71740         Likewise.
71741         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
71742         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
71743         Likewise.
71745 2009-12-31  Bruno Haible  <bruno@clisp.org>
71747         Remove unnecessary AC_C_INLINE invocation.
71748         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
71749         since 2009-08-21.
71751 2009-12-31  Jim Meyering  <meyering@redhat.com>
71753         maint.mk: don't require explicit gpg_key_ID in cfg.mk
71754         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
71755         With this change, we can all remove the gpg_key_ID = ... definition
71756         from our respective cfg.mk files.
71758         maint.mk: create announcement template in ~/, not in /tmp
71759         * top/maint.mk (emit_upload_commands): Adjust.
71760         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
71761         Remove temporary file, .ci-msg.
71763 2009-12-31  Eric Blake  <ebb9@byu.net>
71765         link-warning: always build headers with link warnings
71766         * modules/arpa_inet (Makefile.am): Always build replacement
71767         header.
71768         * modules/ctype (Makefile.am): Likewise.
71769         * modules/dirent (Makefile.am): Likewise.
71770         * modules/inttypes (Makefile.am): Likewise.
71771         * modules/langinfo (Makefile.am): Likewise.
71772         * modules/locale (Makefile.am): Likewise.
71773         * modules/spawn (Makefile.am): Likewise.
71774         * modules/sys_file (Makefile.am): Likewise.
71775         * modules/sys_ioctl (Makefile.am): Likewise.
71776         * modules/sys_select (Makefile.am): Likewise.
71777         * modules/sys_socket (Makefile.am): Likewise.
71778         * modules/sys_times (Makefile.am): Likewise.
71779         * modules/sys_utsname (Makefile.am): Likewise.
71780         * modules/sys_wait (Makefile.am): Likewise.
71781         * modules/wchar (Makefile.am): Likewise.
71782         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
71783         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
71784         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
71785         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
71786         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
71787         Likewise.
71788         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71789         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71790         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
71791         Likewise.
71792         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
71793         Likewise.
71794         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
71795         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
71796         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
71797         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71798         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71799         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71800         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71801         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
71802         (gl_WCHAR_H_DEFAULTS): Likewise.
71804 2009-12-31  Eric Blake  <ebb9@byu.net>
71806         signal, spawn: use link warnings
71807         * lib/signal.in.h (sigset_t): Make unconditional.
71808         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
71809         (sigpending, sigprocmask, sigaction): Add link warnings.
71810         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
71811         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
71812         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
71813         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
71814         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
71815         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
71816         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
71817         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
71818         (posix_spawn_file_actions_destroy)
71819         (posix_spawn_file_actions_addopen)
71820         (posix_spawn_file_actions_addclose)
71821         (posix_spawn_file_actions_adddup2): Likewise.
71822         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
71823         * tests/test-signal.c (main): Enhance test.
71825         spawn: improve wrapper support
71826         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
71827         (gl_SPAWN_H_DEFAULTS): New defaults.
71828         * modules/spawn (Makefile.am): Substitute them.
71829         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
71830         Only declare if missing or broken.
71832         sys_times, sys_utsname: use include_next
71833         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
71834         header.
71835         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
71836         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71837         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71838         * modules/sys_times (Depends-on): Add include_next.
71839         (Makefile.am): Substitute additional values.
71840         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71841         * lib/sys_times.in.h (includes): Include native header, if
71842         available.
71843         * lib/sys_utsname.in.h (includes): Likewise.
71844         * tests/test-sys_times.c (main): Enhance test.
71846         fdutimensat: revert prior patch
71847         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
71848         utimens.h.
71849         Reported by Bruno Haible.
71851 2009-12-30  Eric Blake  <ebb9@byu.net>
71853         sys_wait: drop link-warning dependency
71854         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
71855         link-warning efforts.
71856         * lib/sys_wait.in.h: Likewise.
71858         fdutimensat: remove bogus dependency
71859         * modules/fdutimensat (Depends-on): Drop inline.
71861         unistd: fix typo
71862         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
71864 2009-12-30  Bruno Haible  <bruno@clisp.org>
71866         Fix compilation error with Solaris cc.
71867         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
71868         * lib/unicase/u16-is-invariant.c: Likewise.
71869         * lib/unicase/u32-is-invariant.c: Likewise.
71870         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71872 2009-12-30  Bruno Haible  <bruno@clisp.org>
71874         Fix test crash.
71875         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
71876         locales.
71877         Reported by Simon Josefsson <simon@josefsson.org>.
71879 2009-12-30  Bruno Haible  <bruno@clisp.org>
71881         Fix compilation error on most platforms.
71882         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
71883         Reported by Simon Josefsson <simon@josefsson.org>
71884         and Nelson H. F. Beebe <beebe@math.utah.edu>.
71886 2009-12-30  Eric Blake  <ebb9@byu.net>
71888         futimens, utimensat: work around ntfs-3g bug
71889         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
71890         a ctime bug is present, and expand workaround to cover ntfs-3g.
71891         * lib/utimens.c (fdutimens, lutimens): Likewise.
71892         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
71893         (validate_timespec): Adjust return value.
71894         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71895         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71896         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71898 2009-12-29  Eric Blake  <ebb9@byu.net>
71900         link-warning: make usage consistent
71901         * modules/ctype (Depends-on): Add link-warning.
71902         (Makefile.am): Update rules accordingly.
71903         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71904         * modules/locale (Depends-on, Makefile.am): Likewise.
71905         * modules/sys_file (Makefile.am): Likewise.
71906         * modules/getopt-posix (Makefile.am): Delete unused link warning
71907         efforts.
71908         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71909         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71910         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71911         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71913         stdio: remove unused variables
71914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71915         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71916         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71918         tests: test more substitute headers
71919         * modules/ctype-tests: New file.
71920         * modules/dirent-tests: Likewise.
71921         * modules/spawn-tests: Likewise.
71922         * modules/sys_file-tests: Likewise.
71923         * modules/sys_ioctl-tests: Likewise.
71924         * modules/sys_wait-tests: Likewise.
71925         * tests/test-ctype.c: Likewise.
71926         * tests/test-dirent.c: Likewise.
71927         * tests/test-spawn.c: Likewise.
71928         * tests/test-sys_file.c: Likewise.
71929         * tests/test-sys_ioctl.c: Likewise.
71930         * tests/test-sys_wait.c: Likewise.
71931         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71932         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71933         whether or not flock is in use.
71935         tests: remove License section from module
71936         * modules/arpa_inet-tests: Remove unneeded section.
71937         * modules/byteswap-tests: Likewise.
71938         * modules/ceilf-tests: Likewise.
71939         * modules/ceill-tests: Likewise.
71940         * modules/crypto/des-tests: Likewise.
71941         * modules/crypto/gc-arcfour-tests: Likewise.
71942         * modules/crypto/gc-arctwo-tests: Likewise.
71943         * modules/crypto/gc-des-tests: Likewise.
71944         * modules/crypto/gc-hmac-md5-tests: Likewise.
71945         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71946         * modules/crypto/gc-md2-tests: Likewise.
71947         * modules/crypto/gc-md4-tests: Likewise.
71948         * modules/crypto/gc-md5-tests: Likewise.
71949         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71950         * modules/crypto/gc-rijndael-tests: Likewise.
71951         * modules/crypto/gc-sha1-tests: Likewise.
71952         * modules/crypto/gc-tests: Likewise.
71953         * modules/crypto/md2-tests: Likewise.
71954         * modules/crypto/md4-tests: Likewise.
71955         * modules/fcntl-h-tests: Likewise.
71956         * modules/floorf-tests: Likewise.
71957         * modules/floorl-tests: Likewise.
71958         * modules/frexp-nolibm-tests: Likewise.
71959         * modules/frexp-tests: Likewise.
71960         * modules/frexpl-nolibm-tests: Likewise.
71961         * modules/frexpl-tests: Likewise.
71962         * modules/getaddrinfo-tests: Likewise.
71963         * modules/inttypes-tests: Likewise.
71964         * modules/isfinite-tests: Likewise.
71965         * modules/isinf-tests: Likewise.
71966         * modules/ldexpl-tests: Likewise.
71967         * modules/locale-tests: Likewise.
71968         * modules/math-tests: Likewise.
71969         * modules/netdb-tests: Likewise.
71970         * modules/netinet_in-tests: Likewise.
71971         * modules/printf-frexp-tests: Likewise.
71972         * modules/printf-frexpl-tests: Likewise.
71973         * modules/priv-set-tests: Likewise.
71974         * modules/random_r-tests: Likewise.
71975         * modules/round-tests: Likewise.
71976         * modules/roundf-tests: Likewise.
71977         * modules/roundl-tests: Likewise.
71978         * modules/search-tests: Likewise.
71979         * modules/select-tests: Likewise.
71980         * modules/signal-tests: Likewise.
71981         * modules/stdbool-tests: Likewise.
71982         * modules/stddef-tests: Likewise.
71983         * modules/stdint-tests: Likewise.
71984         * modules/stdio-tests: Likewise.
71985         * modules/stdlib-tests: Likewise.
71986         * modules/string-tests: Likewise.
71987         * modules/strings-tests: Likewise.
71988         * modules/sys_select-tests: Likewise.
71989         * modules/sys_socket-tests: Likewise.
71990         * modules/sys_stat-tests: Likewise.
71991         * modules/sys_time-tests: Likewise.
71992         * modules/sys_utsname-tests: Likewise.
71993         * modules/sysexits-tests: Likewise.
71994         * modules/time-tests: Likewise.
71995         * modules/trunc-tests: Likewise.
71996         * modules/truncf-tests: Likewise.
71997         * modules/truncl-tests: Likewise.
71998         * modules/tsearch-tests: Likewise.
71999         * modules/unistd-tests: Likewise.
72000         * modules/wchar-tests: Likewise.
72001         * modules/wctype-tests: Likewise.
72003         tests: fix license on several tests
72004         * tests/test-des.c: Update to GPLv3+.
72005         * tests/test-flock.c: Likewise.
72006         * tests/test-fsync.c: Likewise.
72007         * tests/test-futimens.h: Likewise.
72008         * tests/test-gc-arcfour.c: Likewise.
72009         * tests/test-gc-arctwo.c: Likewise.
72010         * tests/test-gc-des.c: Likewise.
72011         * tests/test-gc-hmac-md5.c: Likewise.
72012         * tests/test-gc-hmac-sha1.c: Likewise.
72013         * tests/test-gc-md2.c: Likewise.
72014         * tests/test-gc-md4.c: Likewise.
72015         * tests/test-gc-md5.c: Likewise.
72016         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72017         * tests/test-gc-rijndael.c: Likewise.
72018         * tests/test-gc-sha1.c: Likewise.
72019         * tests/test-gc.c: Likewise.
72020         * tests/test-getcwd.c: Likewise.
72021         * tests/test-link.c: Likewise.
72022         * tests/test-link.h: Likewise.
72023         * tests/test-lutimens.h: Likewise.
72024         * tests/test-md2.c: Likewise.
72025         * tests/test-md4.c: Likewise.
72026         * tests/test-mkdir.h: Likewise.
72027         * tests/test-rename.c: Likewise.
72028         * tests/test-rename.h: Likewise.
72029         * tests/test-safe-alloc.c: Likewise.
72030         * tests/test-utimens-common.h: Likewise.
72031         * tests/test-utimens.h: Likewise.
72033         maint: sync license texts
72034         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
72035         * doc/gpl-3.0.texi: Revert copyright year update.
72036         * doc/lgpl-3.0.texi: Likewise.
72038 2009-12-29  Jim Meyering  <meyering@redhat.com>
72040         update nearly all FSF copyright year lists to include 2009
72041         The files named by the following are exempted:
72042             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
72043               test -f "$dst" && { echo "$dst"; continue; }
72044               test -d "$dst" || continue
72045               echo "$dst"/$(basename "$src")
72046             done > exempt
72047             git ls-files tests/unictype >> exempt
72048         In the remaining files, convert to all-interval notation if
72049         - there is already at least one year interval like 2000-2003
72050         - the file is maintained by me
72051         - the file is in lib/uni*/, where that style already prevails
72052         Otherwise, use update-copyright's default.
72054 2009-12-29  Simon Josefsson  <simon@josefsson.org>
72055         and Eric Blake  <ebb9@byu.net>
72057         tests: don't require debug system() to pass
72058         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
72059         * tests/test-rmdir.h (test_rmdir_func): Likewise.
72060         * tests/test-unlink.h (test_unlink_func): Likewise.
72061         * tests/test-fstatat.c (main): ...into callers.
72062         * tests/test-lstat.c (main): Likewise.
72063         * tests/test-rmdir.c (main): Likewise.
72064         * tests/test-unlink.c (main): Likewise.
72065         * tests/test-unlinkat.c (main): Likewise.
72066         * tests/test-areadlink-with-size.c (main): Don't require a
72067         debug-only system call to pass, aiding cross-testing to mingw.
72068         * tests/test-areadlink.c (main): Likewise.
72069         * tests/test-areadlinkat-with-size.c (main): Likewise.
72070         * tests/test-areadlinkat.c (main): Likewise.
72071         * tests/test-canonicalize-lgpl.c (main): Likewise.
72072         * tests/test-canonicalize.c (main): Likewise.
72073         * tests/test-chown.c (main): Likewise.
72074         * tests/test-fchownat.c (main): Likewise.
72075         * tests/test-lchown.c (main): Likewise.
72076         * tests/test-fdutimensat.c (main): Likewise.
72077         * tests/test-futimens.c (main): Likewise.
72078         * tests/test-link.c (main): Likewise.
72079         * tests/test-linkat.c (main): Likewise.
72080         * tests/test-mkdir.c (main): Likewise.
72081         * tests/test-mkdirat.c (main): Likewise.
72082         * tests/test-mkfifo.c (main): Likewise.
72083         * tests/test-mkfifoat.c (main): Likewise.
72084         * tests/test-mknod.c (main): Likewise.
72085         * tests/test-readlink.c (main): Likewise.
72086         * tests/test-remove.c (main): Likewise.
72087         * tests/test-rename.c (main): Likewise.
72088         * tests/test-renameat.c (main): Likewise.
72089         * tests/test-symlink.c (main): Likewise.
72090         * tests/test-symlinkat.c (main): Likewise.
72091         * tests/test-utimens.c (main): Likewise.
72092         * tests/test-utimensat.c (main): Likewise.
72094 2009-12-29  Simon Josefsson  <simon@josefsson.org>
72096         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
72097         on $(UNUSED_PARAMETER_H) to avoid build failure.
72099 2009-12-28  Jim Meyering  <meyering@redhat.com>
72101         update-copyright: you may specify a max. line length other than 72
72102         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
72104         maint: use consistent FSF copyright line syntax
72105         * lib/posixtm.c: Add missing comma in FSF copyright line.
72106         * lib/posixtm.h: Likewise.
72107         * lib/getugroups.c: Add missing ", Inc.".
72109         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
72110         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
72111         FSF copyright line.  Remove trailing blanks.
72113 2009-12-28  Eric Blake  <ebb9@byu.net>
72115         test-dup2: reduce dependencies
72116         * modules/cloexec (Configure.ac): Set witness.
72117         * modules/dup2-tests (Depends-on): Drop cloexec.
72118         * tests/test-dup2.c (main): Skip portion of test if cloexec module
72119         not present.
72120         Suggested by Bruno Haible.
72122 2009-12-26  Bruno Haible  <bruno@clisp.org>
72124         Remove an unneeded dependency.
72125         * modules/fseterr (Depends-on): Remove dup2.
72127 2009-12-26  Eric Blake  <ebb9@byu.net>
72129         tests: use macros.h in more places
72130         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
72131         (ASSERT_STREAM): Provide default of stderr.
72132         * tests/test-dirent-safer.c: Include macros.h, using alternate
72133         stream for assertions.
72134         * tests/test-dup-safer.c: Likewise.
72135         * tests/test-freopen-safer.c: Likewise.
72136         * tests/test-getopt.c: Likewise.
72137         * tests/test-openat-safer.c: Likewise.
72138         * tests/test-pipe.c: Likewise.
72139         * tests/test-popen-safer.c: Likewise.
72140         * modules/dirent-safer-tests (Files): Include macros.h.
72141         * modules/unistd-safer-tests (Files): Likewise.
72142         * modules/freopen-safer-tests (Files): Likewise.
72143         * modules/getopt-posix-tests (Files): Likewise.
72144         * modules/openat-safer-tests (Files): Likewise.
72145         * modules/pipe-tests (Files): Likewise.
72147 2009-12-26  Bruno Haible  <bruno@clisp.org>
72149         javacomp-script: Portability fix.
72150         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
72151         that it also works on Solaris.
72153 2009-12-26  Bruno Haible  <bruno@clisp.org>
72155         localename: Fix storage allocation of gl_locale_name_thread's result.
72156         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
72157         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
72158         all platforms that have 'uselocale'.
72159         (gl_locale_name_thread_unsafe): New function, extracted from
72160         gl_locale_name_thread.
72161         (gl_locale_name_thread): Call struniq on all platforms that have
72162         'uselocale'.
72163         * tests/test-localename.c (test_locale_name_thread): Check that the
72164         resulting strings are permanently allocated.
72165         * modules/localename-tests (Depends-on): Add strdup.
72167 2009-12-26  Bruno Haible  <bruno@clisp.org>
72169         * tests/test-localename.c (categories): Fill in the strings.
72171 2009-12-26  Jim Meyering  <meyering@redhat.com>
72173         isdir: complete the removal of m4/isdir.m4
72174         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
72176         isdir: clean up, since at least grep still uses it
72177         * lib/isdir.c: Include "isdir.h".
72178         (S_ISDIR): Remove now-unneeded definition.
72179         * modules/isdir (Files): Add lib/isdir.h.
72180         * lib/isdir.h: New file, with declaration.
72181         * m4/isdir.m4: Remove file -- unneeded.
72183 2009-12-25  Bruno Haible  <bruno@clisp.org>
72185         selinux-h: Make generated .h files standalone.
72186         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
72187         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
72188         * lib/se-selinux.in.h: Likewise.
72189         * modules/selinux-h (Depends-on): Add unused-parameter.
72190         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
72191         selinux/selinux.h and selinux/context.h.
72192         Suggested by Eric Blake.
72194 2009-12-25  Bruno Haible  <bruno@clisp.org>
72196         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
72197         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
72198         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
72199         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
72200         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
72202 2009-12-24  Bruno Haible  <bruno@clisp.org>
72204         openat: Fix warning.
72205         * lib/openat-proc.c: Include <unistd.h>.
72207 2009-12-24  Bruno Haible  <bruno@clisp.org>
72209         New module 'unused-parameter'.
72210         * build-aux/unused-parameter.h: New file, extracted from earlier
72211         gnulib-common.m4.
72212         * modules/unused-parameter: New file.
72213         * lib/unistr.h: Include unused-parameter.h.
72214         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
72215         _GL_UNUSED.
72216         * modules/unistr/base (Depends-on): Add unused-parameter.
72218 2009-12-24  Bruno Haible  <bruno@clisp.org>
72220         Add missing dependencies to 'extensions' module.
72221         * m4/extensions.m4: Add comment.
72222         * modules/accept4 (Depends-on): Add extensions.
72223         * modules/dup3 (Depends-on): Likewise.
72224         * modules/fcntl (Depends-on): Likewise.
72225         * modules/futimens (Depends-on): Likewise.
72226         * modules/mknod (Depends-on): Likewise.
72227         * modules/pipe2 (Depends-on): Likewise.
72228         * modules/stat-time (Depends-on): Likewise.
72229         * modules/strcasestr-simple (Depends-on): Likewise.
72230         * modules/strsignal (Depends-on): Likewise.
72231         * modules/utimensat (Depends-on): Likewise.
72232         * modules/localcharset (Depends-on): Likewise. Needed because of
72233         gl_FCNTL_O_FLAGS.
72234         * modules/wcrtomb (Depends-on): Likewise. Needed because of
72235         AC_TYPE_MBSTATE_T.
72236         * modules/wcsnrtombs (Depends-on): Likewise.
72237         * modules/wcsrtombs (Depends-on): Likewise.
72239 2009-12-24  Bruno Haible  <bruno@clisp.org>
72241         binary-io: Avoid gcc warning due to SET_BINARY.
72242         * lib/binary-io.h (SET_BINARY): Cast the result to void.
72243         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
72245 2009-12-24  Bruno Haible  <bruno@clisp.org>
72247         Avoid future namespace pollution on glibc systems.
72248         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
72249         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
72250         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
72251         glibc systems.
72253 2009-12-24  Bruno Haible  <bruno@clisp.org>
72255         Refactor common macros used in tests.
72256         * tests/macros.h: New file.
72257         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
72258         and/or <stdlib.h>, if appropriate.
72259         (ASSERT, SIZEOF): Remove macros.
72260         * tests/test-areadlink-with-size.c: Likewise.
72261         * tests/test-areadlinkat.c: Likewise.
72262         * tests/test-areadlinkat-with-size.c: Likewise.
72263         * tests/test-argmatch.c: Likewise.
72264         * tests/test-argv-iter.c: Likewise.
72265         * tests/test-array-mergesort.c: Likewise.
72266         * tests/test-array_list.c: Likewise.
72267         * tests/test-array_oset.c: Likewise.
72268         * tests/test-avltree_list.c: Likewise.
72269         * tests/test-avltree_oset.c: Likewise.
72270         * tests/test-avltreehash_list.c: Likewise.
72271         * tests/test-base64.c: Likewise.
72272         * tests/test-binary-io.c: Likewise.
72273         * tests/test-bitrotate.c: Likewise.
72274         * tests/test-btowc.c: Likewise.
72275         * tests/test-byteswap.c: Likewise.
72276         * tests/test-c-ctype.c: Likewise.
72277         * tests/test-c-stack.c: Likewise.
72278         * tests/test-c-strcasecmp.c: Likewise.
72279         * tests/test-c-strcasestr.c: Likewise.
72280         * tests/test-c-strncasecmp.c: Likewise.
72281         * tests/test-c-strstr.c: Likewise.
72282         * tests/test-canonicalize-lgpl.c: Likewise.
72283         * tests/test-canonicalize.c: Likewise.
72284         * tests/test-carray_list.c: Likewise.
72285         * tests/test-ceilf1.c: Likewise.
72286         * tests/test-ceilf2.c: Likewise.
72287         * tests/test-ceill.c: Likewise.
72288         * tests/test-chown.c: Likewise.
72289         * tests/test-cloexec.c: Likewise.
72290         * tests/test-copy-acl.c: Likewise.
72291         * tests/test-copy-file.c: Likewise.
72292         * tests/test-count-one-bits.c: Likewise.
72293         * tests/test-dprintf-posix.c: Likewise.
72294         * tests/test-dup2.c: Likewise.
72295         * tests/test-dup3.c: Likewise.
72296         * tests/test-duplocale.c: Likewise.
72297         * tests/test-fbufmode.c: Likewise.
72298         * tests/test-fchdir.c: Likewise.
72299         * tests/test-fchownat.c: Likewise.
72300         * tests/test-fcntl-safer.c: Likewise.
72301         * tests/test-fcntl.c: Likewise.
72302         * tests/test-fdopendir.c: Likewise.
72303         * tests/test-fdutimensat.c: Likewise.
72304         * tests/test-fflush2.c: Likewise.
72305         * tests/test-file-has-acl.c: Likewise.
72306         * tests/test-filevercmp.c: Likewise.
72307         * tests/test-flock.c: Likewise.
72308         * tests/test-floorf1.c: Likewise.
72309         * tests/test-floorf2.c: Likewise.
72310         * tests/test-floorl.c: Likewise.
72311         * tests/test-fnmatch.c: Likewise.
72312         * tests/test-fopen.h: Likewise.
72313         * tests/test-fpending.c: Likewise.
72314         * tests/test-fprintf-posix.c: Likewise.
72315         * tests/test-fpurge.c: Likewise.
72316         * tests/test-freadable.c: Likewise.
72317         * tests/test-freadahead.c: Likewise.
72318         * tests/test-freading.c: Likewise.
72319         * tests/test-freadptr.c: Likewise.
72320         * tests/test-freadptr2.c: Likewise.
72321         * tests/test-freadseek.c: Likewise.
72322         * tests/test-freopen.c: Likewise.
72323         * tests/test-frexp.c: Likewise.
72324         * tests/test-frexpl.c: Likewise.
72325         * tests/test-fseek.c: Likewise.
72326         * tests/test-fseeko.c: Likewise.
72327         * tests/test-fstatat.c: Likewise.
72328         * tests/test-fstrcmp.c: Likewise.
72329         * tests/test-fsync.c: Likewise.
72330         * tests/test-ftell.c: Likewise.
72331         * tests/test-ftello.c: Likewise.
72332         * tests/test-func.c: Likewise.
72333         * tests/test-futimens.c: Likewise.
72334         * tests/test-fwritable.c: Likewise.
72335         * tests/test-fwriting.c: Likewise.
72336         * tests/test-getcwd.c: Likewise.
72337         * tests/test-getdate.c: Likewise.
72338         * tests/test-getdelim.c: Likewise.
72339         * tests/test-getdtablesize.c: Likewise.
72340         * tests/test-getgroups.c: Likewise.
72341         * tests/test-getline.c: Likewise.
72342         * tests/test-getndelim2.c: Likewise.
72343         * tests/test-glob.c: Likewise.
72344         * tests/test-hash.c: Likewise.
72345         * tests/test-i-ring.c: Likewise.
72346         * tests/test-iconv-utf.c: Likewise.
72347         * tests/test-iconv.c: Likewise.
72348         * tests/test-idpriv-drop.c: Likewise.
72349         * tests/test-idpriv-droptemp.c: Likewise.
72350         * tests/test-inet_ntop.c: Likewise.
72351         * tests/test-inet_pton.c: Likewise.
72352         * tests/test-isblank.c: Likewise.
72353         * tests/test-isfinite.c: Likewise.
72354         * tests/test-isinf.c: Likewise.
72355         * tests/test-isnan.c: Likewise.
72356         * tests/test-isnand.h: Likewise.
72357         * tests/test-isnanf.h: Likewise.
72358         * tests/test-isnanl.h: Likewise.
72359         * tests/test-lchown.c: Likewise.
72360         * tests/test-ldexpl.c: Likewise.
72361         * tests/test-link.c: Likewise.
72362         * tests/test-linkat.c: Likewise.
72363         * tests/test-linked_list.c: Likewise.
72364         * tests/test-linkedhash_list.c: Likewise.
72365         * tests/test-localename.c: Likewise.
72366         * tests/test-lseek.c: Likewise.
72367         * tests/test-lstat.c: Likewise.
72368         * tests/test-mbmemcasecmp.c: Likewise.
72369         * tests/test-mbmemcasecoll.c: Likewise.
72370         * tests/test-mbrtowc.c: Likewise.
72371         * tests/test-mbscasecmp.c: Likewise.
72372         * tests/test-mbscasestr1.c: Likewise.
72373         * tests/test-mbscasestr2.c: Likewise.
72374         * tests/test-mbscasestr3.c: Likewise.
72375         * tests/test-mbscasestr4.c: Likewise.
72376         * tests/test-mbschr.c: Likewise.
72377         * tests/test-mbscspn.c: Likewise.
72378         * tests/test-mbsinit.c: Likewise.
72379         * tests/test-mbsncasecmp.c: Likewise.
72380         * tests/test-mbsnrtowcs.c: Likewise.
72381         * tests/test-mbspbrk.c: Likewise.
72382         * tests/test-mbspcasecmp.c: Likewise.
72383         * tests/test-mbsrchr.c: Likewise.
72384         * tests/test-mbsrtowcs.c: Likewise.
72385         * tests/test-mbsspn.c: Likewise.
72386         * tests/test-mbsstr1.c: Likewise.
72387         * tests/test-mbsstr2.c: Likewise.
72388         * tests/test-mbsstr3.c: Likewise.
72389         * tests/test-memchr.c: Likewise.
72390         * tests/test-memchr2.c: Likewise.
72391         * tests/test-memcmp.c: Likewise.
72392         * tests/test-memmem.c: Likewise.
72393         * tests/test-memrchr.c: Likewise.
72394         * tests/test-mkdir.c: Likewise.
72395         * tests/test-mkdirat.c: Likewise.
72396         * tests/test-mkfifo.c: Likewise.
72397         * tests/test-mkfifoat.c: Likewise.
72398         * tests/test-mknod.c: Likewise.
72399         * tests/test-nanosleep.c: Likewise.
72400         * tests/test-nl_langinfo.c: Likewise.
72401         * tests/test-obstack-printf.c: Likewise.
72402         * tests/test-open.c: Likewise.
72403         * tests/test-openat.c: Likewise.
72404         * tests/test-pipe-filter-gi1.c: Likewise.
72405         * tests/test-pipe-filter-gi2-main.c: Likewise.
72406         * tests/test-pipe-filter-ii1.c: Likewise.
72407         * tests/test-pipe-filter-ii2-main.c: Likewise.
72408         * tests/test-pipe2.c: Likewise.
72409         * tests/test-popen.h: Likewise.
72410         * tests/test-posixtm.c: Likewise.
72411         * tests/test-pread.c: Likewise.
72412         * tests/test-printf-frexp.c: Likewise.
72413         * tests/test-printf-frexpl.c: Likewise.
72414         * tests/test-printf-posix.c: Likewise.
72415         * tests/test-priv-set.c: Likewise.
72416         * tests/test-quotearg.c: Likewise.
72417         * tests/test-random_r.c: Likewise.
72418         * tests/test-rawmemchr.c: Likewise.
72419         * tests/test-rbtree_list.c: Likewise.
72420         * tests/test-rbtree_oset.c: Likewise.
72421         * tests/test-rbtreehash_list.c: Likewise.
72422         * tests/test-readlink.c: Likewise.
72423         * tests/test-remove.c: Likewise.
72424         * tests/test-rename.c: Likewise.
72425         * tests/test-renameat.c: Likewise.
72426         * tests/test-rmdir.c: Likewise.
72427         * tests/test-round1.c: Likewise.
72428         * tests/test-roundf1.c: Likewise.
72429         * tests/test-roundl.c: Likewise.
72430         * tests/test-safe-alloc.c: Likewise.
72431         * tests/test-sameacls.c: Likewise.
72432         * tests/test-set-mode-acl.c: Likewise.
72433         * tests/test-setenv.c: Likewise.
72434         * tests/test-sigaction.c: Likewise.
72435         * tests/test-signbit.c: Likewise.
72436         * tests/test-sleep.c: Likewise.
72437         * tests/test-snprintf-posix.c: Likewise.
72438         * tests/test-snprintf.c: Likewise.
72439         * tests/test-sprintf-posix.c: Likewise.
72440         * tests/test-stat-time.c: Likewise.
72441         * tests/test-stat.c: Likewise.
72442         * tests/test-strcasestr.c: Likewise.
72443         * tests/test-strchrnul.c: Likewise.
72444         * tests/test-strerror.c: Likewise.
72445         * tests/test-striconv.c: Likewise.
72446         * tests/test-striconveh.c: Likewise.
72447         * tests/test-striconveha.c: Likewise.
72448         * tests/test-strsignal.c: Likewise.
72449         * tests/test-strstr.c: Likewise.
72450         * tests/test-strtod.c: Likewise.
72451         * tests/test-strverscmp.c: Likewise.
72452         * tests/test-symlink.c: Likewise.
72453         * tests/test-symlinkat.c: Likewise.
72454         * tests/test-trunc1.c: Likewise.
72455         * tests/test-trunc2.c: Likewise.
72456         * tests/test-truncf1.c: Likewise.
72457         * tests/test-truncf2.c: Likewise.
72458         * tests/test-truncl.c: Likewise.
72459         * tests/test-uname.c: Likewise.
72460         * tests/test-unlink.c: Likewise.
72461         * tests/test-unlinkat.c: Likewise.
72462         * tests/test-unsetenv.c: Likewise.
72463         * tests/test-usleep.c: Likewise.
72464         * tests/test-utimens.c: Likewise.
72465         * tests/test-utimensat.c: Likewise.
72466         * tests/test-vasnprintf-posix.c: Likewise.
72467         * tests/test-vasnprintf-posix2.c: Likewise.
72468         * tests/test-vasnprintf.c: Likewise.
72469         * tests/test-vasprintf-posix.c: Likewise.
72470         * tests/test-vasprintf.c: Likewise.
72471         * tests/test-vdprintf-posix.c: Likewise.
72472         * tests/test-vfprintf-posix.c: Likewise.
72473         * tests/test-vprintf-posix.c: Likewise.
72474         * tests/test-vsnprintf-posix.c: Likewise.
72475         * tests/test-vsnprintf.c: Likewise.
72476         * tests/test-vsprintf-posix.c: Likewise.
72477         * tests/test-wcrtomb.c: Likewise.
72478         * tests/test-wcsnrtombs.c: Likewise.
72479         * tests/test-wcsrtombs.c: Likewise.
72480         * tests/test-wctype.c: Likewise.
72481         * tests/test-wcwidth.c: Likewise.
72482         * tests/test-xfprintf-posix.c: Likewise.
72483         * tests/test-xmemdup0.c: Likewise.
72484         * tests/test-xprintf-posix.c: Likewise.
72485         * tests/test-xvasprintf.c: Likewise.
72486         * tests/unicase/test-locale-language.c: Likewise.
72487         * tests/unicase/test-mapping-part1.h: Likewise.
72488         * tests/unicase/test-predicate-part1.h: Likewise.
72489         * tests/unicase/test-u8-casecmp.c: Likewise.
72490         * tests/unicase/test-u8-casecoll.c: Likewise.
72491         * tests/unicase/test-u8-casefold.c: Likewise.
72492         * tests/unicase/test-u8-is-cased.c: Likewise.
72493         * tests/unicase/test-u8-is-casefolded.c: Likewise.
72494         * tests/unicase/test-u8-is-lowercase.c: Likewise.
72495         * tests/unicase/test-u8-is-titlecase.c: Likewise.
72496         * tests/unicase/test-u8-is-uppercase.c: Likewise.
72497         * tests/unicase/test-u8-tolower.c: Likewise.
72498         * tests/unicase/test-u8-totitle.c: Likewise.
72499         * tests/unicase/test-u8-toupper.c: Likewise.
72500         * tests/unicase/test-u16-casecmp.c: Likewise.
72501         * tests/unicase/test-u16-casecoll.c: Likewise.
72502         * tests/unicase/test-u16-casefold.c: Likewise.
72503         * tests/unicase/test-u16-is-cased.c: Likewise.
72504         * tests/unicase/test-u16-is-casefolded.c: Likewise.
72505         * tests/unicase/test-u16-is-lowercase.c: Likewise.
72506         * tests/unicase/test-u16-is-titlecase.c: Likewise.
72507         * tests/unicase/test-u16-is-uppercase.c: Likewise.
72508         * tests/unicase/test-u16-tolower.c: Likewise.
72509         * tests/unicase/test-u16-totitle.c: Likewise.
72510         * tests/unicase/test-u16-toupper.c: Likewise.
72511         * tests/unicase/test-u32-casecmp.c: Likewise.
72512         * tests/unicase/test-u32-casecoll.c: Likewise.
72513         * tests/unicase/test-u32-casefold.c: Likewise.
72514         * tests/unicase/test-u32-is-cased.c: Likewise.
72515         * tests/unicase/test-u32-is-casefolded.c: Likewise.
72516         * tests/unicase/test-u32-is-lowercase.c: Likewise.
72517         * tests/unicase/test-u32-is-titlecase.c: Likewise.
72518         * tests/unicase/test-u32-is-uppercase.c: Likewise.
72519         * tests/unicase/test-u32-tolower.c: Likewise.
72520         * tests/unicase/test-u32-totitle.c: Likewise.
72521         * tests/unicase/test-u32-toupper.c: Likewise.
72522         * tests/unicase/test-ulc-casecmp.c: Likewise.
72523         * tests/unicase/test-ulc-casecoll.c: Likewise.
72524         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
72525         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
72526         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
72527         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
72528         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
72529         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
72530         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
72531         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
72532         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
72533         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
72534         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
72535         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
72536         * tests/unictype/test-bidi_byname.c: Likewise.
72537         * tests/unictype/test-bidi_name.c: Likewise.
72538         * tests/unictype/test-bidi_of.c: Likewise.
72539         * tests/unictype/test-bidi_test.c: Likewise.
72540         * tests/unictype/test-block_list.c: Likewise.
72541         * tests/unictype/test-block_of.c: Likewise.
72542         * tests/unictype/test-block_test.c: Likewise.
72543         * tests/unictype/test-categ_and.c: Likewise.
72544         * tests/unictype/test-categ_and_not.c: Likewise.
72545         * tests/unictype/test-categ_byname.c: Likewise.
72546         * tests/unictype/test-categ_name.c: Likewise.
72547         * tests/unictype/test-categ_none.c: Likewise.
72548         * tests/unictype/test-categ_of.c: Likewise.
72549         * tests/unictype/test-categ_or.c: Likewise.
72550         * tests/unictype/test-categ_test_withtable.c: Likewise.
72551         * tests/unictype/test-combining.c: Likewise.
72552         * tests/unictype/test-decdigit.c: Likewise.
72553         * tests/unictype/test-digit.c: Likewise.
72554         * tests/unictype/test-mirror.c: Likewise.
72555         * tests/unictype/test-numeric.c: Likewise.
72556         * tests/unictype/test-pr_byname.c: Likewise.
72557         * tests/unictype/test-pr_test.c: Likewise.
72558         * tests/unictype/test-predicate-part1.h: Likewise.
72559         * tests/unictype/test-scripts.c: Likewise.
72560         * tests/unictype/test-sy_c_ident.c: Likewise.
72561         * tests/unictype/test-sy_java_ident.c: Likewise.
72562         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
72563         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
72564         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
72565         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
72566         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
72567         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
72568         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
72569         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
72570         * tests/uninorm/test-canonical-decomposition.c: Likewise.
72571         * tests/uninorm/test-compat-decomposition.c: Likewise.
72572         * tests/uninorm/test-composition.c: Likewise.
72573         * tests/uninorm/test-decomposing-form.c: Likewise.
72574         * tests/uninorm/test-decomposition.c: Likewise.
72575         * tests/uninorm/test-u8-nfc.c: Likewise.
72576         * tests/uninorm/test-u8-nfd.c: Likewise.
72577         * tests/uninorm/test-u8-nfkc.c: Likewise.
72578         * tests/uninorm/test-u8-nfkd.c: Likewise.
72579         * tests/uninorm/test-u8-normcmp.c: Likewise.
72580         * tests/uninorm/test-u8-normcoll.c: Likewise.
72581         * tests/uninorm/test-u16-nfc.c: Likewise.
72582         * tests/uninorm/test-u16-nfd.c: Likewise.
72583         * tests/uninorm/test-u16-nfkc.c: Likewise.
72584         * tests/uninorm/test-u16-nfkd.c: Likewise.
72585         * tests/uninorm/test-u16-normcmp.c: Likewise.
72586         * tests/uninorm/test-u16-normcoll.c: Likewise.
72587         * tests/uninorm/test-u32-nfc.c: Likewise.
72588         * tests/uninorm/test-u32-nfd.c: Likewise.
72589         * tests/uninorm/test-u32-nfkc.c: Likewise.
72590         * tests/uninorm/test-u32-nfkd.c: Likewise.
72591         * tests/uninorm/test-u32-normalize-big.c: Likewise.
72592         * tests/uninorm/test-u32-normcmp.c: Likewise.
72593         * tests/uninorm/test-u32-normcoll.c: Likewise.
72594         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
72595         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
72596         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
72597         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
72598         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
72599         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
72600         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
72601         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
72602         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
72603         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
72604         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
72605         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
72606         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
72607         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
72608         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
72609         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
72610         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
72611         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
72612         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
72613         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
72614         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
72615         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
72616         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
72617         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
72618         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
72619         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
72620         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
72621         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
72622         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
72623         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
72624         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
72625         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
72626         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
72627         * tests/uniwidth/test-u8-strwidth.c: Likewise.
72628         * tests/uniwidth/test-u8-width.c: Likewise.
72629         * tests/uniwidth/test-u16-strwidth.c: Likewise.
72630         * tests/uniwidth/test-u16-width.c: Likewise.
72631         * tests/uniwidth/test-u32-strwidth.c: Likewise.
72632         * tests/uniwidth/test-u32-width.c: Likewise.
72633         * tests/uniwidth/test-uc_width.c: Likewise.
72634         * tests/uniwidth/test-uc_width2.c: Likewise.
72635         * modules/acl-tests (Files): Add tests/macros.h.
72636         * modules/areadlink-tests (Files): Likewise.
72637         * modules/areadlink-with-size-tests (Files): Likewise.
72638         * modules/areadlinkat-tests (Files): Likewise.
72639         * modules/areadlinkat-with-size-tests (Files): Likewise.
72640         * modules/argmatch-tests (Files): Likewise.
72641         * modules/argv-iter-tests (Files): Likewise.
72642         * modules/array-list-tests (Files): Likewise.
72643         * modules/array-mergesort-tests (Files): Likewise.
72644         * modules/array-oset-tests (Files): Likewise.
72645         * modules/avltree-list-tests (Files): Likewise.
72646         * modules/avltree-oset-tests (Files): Likewise.
72647         * modules/avltreehash-list-tests (Files): Likewise.
72648         * modules/base64-tests (Files): Likewise.
72649         * modules/binary-io-tests (Files): Likewise.
72650         * modules/bitrotate-tests (Files): Likewise.
72651         * modules/btowc-tests (Files): Likewise.
72652         * modules/byteswap-tests (Files): Likewise.
72653         * modules/c-ctype-tests (Files): Likewise.
72654         * modules/c-stack-tests (Files): Likewise.
72655         * modules/c-strcase-tests (Files): Likewise.
72656         * modules/c-strcasestr-tests (Files): Likewise.
72657         * modules/c-strstr-tests (Files): Likewise.
72658         * modules/canonicalize-lgpl-tests (Files): Likewise.
72659         * modules/canonicalize-tests (Files): Likewise.
72660         * modules/carray-list-tests (Files): Likewise.
72661         * modules/ceilf-tests (Files): Likewise.
72662         * modules/ceill-tests (Files): Likewise.
72663         * modules/chown-tests (Files): Likewise.
72664         * modules/cloexec-tests (Files): Likewise.
72665         * modules/copy-file-tests (Files): Likewise.
72666         * modules/count-one-bits-tests (Files): Likewise.
72667         * modules/dprintf-posix-tests (Files): Likewise.
72668         * modules/dup2-tests (Files): Likewise.
72669         * modules/dup3-tests (Files): Likewise.
72670         * modules/duplocale-tests (Files): Likewise.
72671         * modules/fbufmode-tests (Files): Likewise.
72672         * modules/fchdir-tests (Files): Likewise.
72673         * modules/fcntl-safer-tests (Files): Likewise.
72674         * modules/fcntl-tests (Files): Likewise.
72675         * modules/fdopendir-tests (Files): Likewise.
72676         * modules/fdutimensat-tests (Files): Likewise.
72677         * modules/fflush-tests (Files): Likewise.
72678         * modules/filevercmp-tests (Files): Likewise.
72679         * modules/flock-tests (Files): Likewise.
72680         * modules/floorf-tests (Files): Likewise.
72681         * modules/floorl-tests (Files): Likewise.
72682         * modules/fnmatch-tests (Files): Likewise.
72683         * modules/fopen-safer-tests (Files): Likewise.
72684         * modules/fopen-tests (Files): Likewise.
72685         * modules/fpending-tests (Files): Likewise.
72686         * modules/fprintf-posix-tests (Files): Likewise.
72687         * modules/fpurge-tests (Files): Likewise.
72688         * modules/freadable-tests (Files): Likewise.
72689         * modules/freadahead-tests (Files): Likewise.
72690         * modules/freading-tests (Files): Likewise.
72691         * modules/freadptr-tests (Files): Likewise.
72692         * modules/freadseek-tests (Files): Likewise.
72693         * modules/freopen-tests (Files): Likewise.
72694         * modules/frexp-nolibm-tests (Files): Likewise.
72695         * modules/frexp-tests (Files): Likewise.
72696         * modules/frexpl-nolibm-tests (Files): Likewise.
72697         * modules/frexpl-tests (Files): Likewise.
72698         * modules/fseek-tests (Files): Likewise.
72699         * modules/fseeko-tests (Files): Likewise.
72700         * modules/fstrcmp-tests (Files): Likewise.
72701         * modules/fsync-tests (Files): Likewise.
72702         * modules/ftell-tests (Files): Likewise.
72703         * modules/ftello-tests (Files): Likewise.
72704         * modules/func-tests (Files): Likewise.
72705         * modules/futimens-tests (Files): Likewise.
72706         * modules/fwritable-tests (Files): Likewise.
72707         * modules/fwriting-tests (Files): Likewise.
72708         * modules/getcwd-tests (Files): Likewise.
72709         * modules/getdate-tests (Files): Likewise.
72710         * modules/getdelim-tests (Files): Likewise.
72711         * modules/getdtablesize-tests (Files): Likewise.
72712         * modules/getgroups-tests (Files): Likewise.
72713         * modules/getline-tests (Files): Likewise.
72714         * modules/getndelim2-tests (Files): Likewise.
72715         * modules/glob-tests (Files): Likewise.
72716         * modules/hash-tests (Files): Likewise.
72717         * modules/i-ring-tests (Files): Likewise.
72718         * modules/iconv-tests (Files): Likewise.
72719         * modules/iconv_open-utf-tests (Files): Likewise.
72720         * modules/idpriv-drop-tests (Files): Likewise.
72721         * modules/idpriv-droptemp-tests (Files): Likewise.
72722         * modules/inet_ntop-tests (Files): Likewise.
72723         * modules/inet_pton-tests (Files): Likewise.
72724         * modules/isblank-tests (Files): Likewise.
72725         * modules/isfinite-tests (Files): Likewise.
72726         * modules/isinf-tests (Files): Likewise.
72727         * modules/isnan-tests (Files): Likewise.
72728         * modules/isnand-nolibm-tests (Files): Likewise.
72729         * modules/isnand-tests (Files): Likewise.
72730         * modules/isnanf-nolibm-tests (Files): Likewise.
72731         * modules/isnanf-tests (Files): Likewise.
72732         * modules/isnanl-nolibm-tests (Files): Likewise.
72733         * modules/isnanl-tests (Files): Likewise.
72734         * modules/lchown-tests (Files): Likewise.
72735         * modules/ldexpl-tests (Files): Likewise.
72736         * modules/link-tests (Files): Likewise.
72737         * modules/linkat-tests (Files): Likewise.
72738         * modules/linked-list-tests (Files): Likewise.
72739         * modules/linkedhash-list-tests (Files): Likewise.
72740         * modules/localename-tests (Files): Likewise.
72741         * modules/lseek-tests (Files): Likewise.
72742         * modules/lstat-tests (Files): Likewise.
72743         * modules/mbmemcasecmp-tests (Files): Likewise.
72744         * modules/mbmemcasecoll-tests (Files): Likewise.
72745         * modules/mbrtowc-tests (Files): Likewise.
72746         * modules/mbscasecmp-tests (Files): Likewise.
72747         * modules/mbscasestr-tests (Files): Likewise.
72748         * modules/mbschr-tests (Files): Likewise.
72749         * modules/mbscspn-tests (Files): Likewise.
72750         * modules/mbsinit-tests (Files): Likewise.
72751         * modules/mbsncasecmp-tests (Files): Likewise.
72752         * modules/mbsnrtowcs-tests (Files): Likewise.
72753         * modules/mbspbrk-tests (Files): Likewise.
72754         * modules/mbspcasecmp-tests (Files): Likewise.
72755         * modules/mbsrchr-tests (Files): Likewise.
72756         * modules/mbsrtowcs-tests (Files): Likewise.
72757         * modules/mbsspn-tests (Files): Likewise.
72758         * modules/mbsstr-tests (Files): Likewise.
72759         * modules/memchr-tests (Files): Likewise.
72760         * modules/memchr2-tests (Files): Likewise.
72761         * modules/memcmp-tests (Files): Likewise.
72762         * modules/memmem-tests (Files): Likewise.
72763         * modules/memrchr-tests (Files): Likewise.
72764         * modules/mkdir-tests (Files): Likewise.
72765         * modules/mkfifo-tests (Files): Likewise.
72766         * modules/mkfifoat-tests (Files): Likewise.
72767         * modules/mknod-tests (Files): Likewise.
72768         * modules/nanosleep-tests (Files): Likewise.
72769         * modules/nl_langinfo-tests (Files): Likewise.
72770         * modules/obstack-printf-tests (Files): Likewise.
72771         * modules/open-tests (Files): Likewise.
72772         * modules/openat-tests (Files): Likewise.
72773         * modules/pipe-filter-gi-tests (Files): Likewise.
72774         * modules/pipe-filter-ii-tests (Files): Likewise.
72775         * modules/pipe2-tests (Files): Likewise.
72776         * modules/popen-safer-tests (Files): Likewise.
72777         * modules/popen-tests (Files): Likewise.
72778         * modules/posixtm-tests (Files): Likewise.
72779         * modules/pread-tests (Files): Likewise.
72780         * modules/printf-frexp-tests (Files): Likewise.
72781         * modules/printf-frexpl-tests (Files): Likewise.
72782         * modules/printf-posix-tests (Files): Likewise.
72783         * modules/priv-set-tests (Files): Likewise.
72784         * modules/quotearg-tests (Files): Likewise.
72785         * modules/random_r-tests (Files): Likewise.
72786         * modules/rawmemchr-tests (Files): Likewise.
72787         * modules/rbtree-list-tests (Files): Likewise.
72788         * modules/rbtree-oset-tests (Files): Likewise.
72789         * modules/rbtreehash-list-tests (Files): Likewise.
72790         * modules/readlink-tests (Files): Likewise.
72791         * modules/remove-tests (Files): Likewise.
72792         * modules/rename-tests (Files): Likewise.
72793         * modules/renameat-tests (Files): Likewise.
72794         * modules/rmdir-tests (Files): Likewise.
72795         * modules/round-tests (Files): Likewise.
72796         * modules/roundf-tests (Files): Likewise.
72797         * modules/roundl-tests (Files): Likewise.
72798         * modules/safe-alloc-tests (Files): Likewise.
72799         * modules/setenv-tests (Files): Likewise.
72800         * modules/sigaction-tests (Files): Likewise.
72801         * modules/signbit-tests (Files): Likewise.
72802         * modules/sleep-tests (Files): Likewise.
72803         * modules/snprintf-posix-tests (Files): Likewise.
72804         * modules/snprintf-tests (Files): Likewise.
72805         * modules/sprintf-posix-tests (Files): Likewise.
72806         * modules/stat-tests (Files): Likewise.
72807         * modules/stat-time-tests (Files): Likewise.
72808         * modules/strcasestr-tests (Files): Likewise.
72809         * modules/strchrnul-tests (Files): Likewise.
72810         * modules/strerror-tests (Files): Likewise.
72811         * modules/striconv-tests (Files): Likewise.
72812         * modules/striconveh-tests (Files): Likewise.
72813         * modules/striconveha-tests (Files): Likewise.
72814         * modules/strsignal-tests (Files): Likewise.
72815         * modules/strstr-tests (Files): Likewise.
72816         * modules/strtod-tests (Files): Likewise.
72817         * modules/strverscmp-tests (Files): Likewise.
72818         * modules/symlink-tests (Files): Likewise.
72819         * modules/symlinkat-tests (Files): Likewise.
72820         * modules/trunc-tests (Files): Likewise.
72821         * modules/truncf-tests (Files): Likewise.
72822         * modules/truncl-tests (Files): Likewise.
72823         * modules/uname-tests (Files): Likewise.
72824         * modules/unicase/cased-tests (Files): Likewise.
72825         * modules/unicase/ignorable-tests (Files): Likewise.
72826         * modules/unicase/locale-language-tests (Files): Likewise.
72827         * modules/unicase/tolower-tests (Files): Likewise.
72828         * modules/unicase/totitle-tests (Files): Likewise.
72829         * modules/unicase/toupper-tests (Files): Likewise.
72830         * modules/unicase/u8-casecmp-tests (Files): Likewise.
72831         * modules/unicase/u8-casecoll-tests (Files): Likewise.
72832         * modules/unicase/u8-casefold-tests (Files): Likewise.
72833         * modules/unicase/u8-is-cased-tests (Files): Likewise.
72834         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
72835         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
72836         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
72837         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
72838         * modules/unicase/u8-tolower-tests (Files): Likewise.
72839         * modules/unicase/u8-totitle-tests (Files): Likewise.
72840         * modules/unicase/u8-toupper-tests (Files): Likewise.
72841         * modules/unicase/u16-casecmp-tests (Files): Likewise.
72842         * modules/unicase/u16-casecoll-tests (Files): Likewise.
72843         * modules/unicase/u16-casefold-tests (Files): Likewise.
72844         * modules/unicase/u16-is-cased-tests (Files): Likewise.
72845         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
72846         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
72847         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
72848         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
72849         * modules/unicase/u16-tolower-tests (Files): Likewise.
72850         * modules/unicase/u16-totitle-tests (Files): Likewise.
72851         * modules/unicase/u16-toupper-tests (Files): Likewise.
72852         * modules/unicase/u32-casecmp-tests (Files): Likewise.
72853         * modules/unicase/u32-casecoll-tests (Files): Likewise.
72854         * modules/unicase/u32-casefold-tests (Files): Likewise.
72855         * modules/unicase/u32-is-cased-tests (Files): Likewise.
72856         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
72857         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
72858         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
72859         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
72860         * modules/unicase/u32-tolower-tests (Files): Likewise.
72861         * modules/unicase/u32-totitle-tests (Files): Likewise.
72862         * modules/unicase/u32-toupper-tests (Files): Likewise.
72863         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
72864         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
72865         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
72866         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
72867         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
72868         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
72869         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
72870         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
72871         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
72872         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
72873         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
72874         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
72875         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
72876         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
72877         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
72878         * modules/unictype/bidicategory-name-tests (Files): Likewise.
72879         * modules/unictype/bidicategory-of-tests (Files): Likewise.
72880         * modules/unictype/bidicategory-test-tests (Files): Likewise.
72881         * modules/unictype/block-list-tests (Files): Likewise.
72882         * modules/unictype/block-of-tests (Files): Likewise.
72883         * modules/unictype/block-test-tests (Files): Likewise.
72884         * modules/unictype/category-C-tests (Files): Likewise.
72885         * modules/unictype/category-Cc-tests (Files): Likewise.
72886         * modules/unictype/category-Cf-tests (Files): Likewise.
72887         * modules/unictype/category-Cn-tests (Files): Likewise.
72888         * modules/unictype/category-Co-tests (Files): Likewise.
72889         * modules/unictype/category-Cs-tests (Files): Likewise.
72890         * modules/unictype/category-L-tests (Files): Likewise.
72891         * modules/unictype/category-Ll-tests (Files): Likewise.
72892         * modules/unictype/category-Lm-tests (Files): Likewise.
72893         * modules/unictype/category-Lo-tests (Files): Likewise.
72894         * modules/unictype/category-Lt-tests (Files): Likewise.
72895         * modules/unictype/category-Lu-tests (Files): Likewise.
72896         * modules/unictype/category-M-tests (Files): Likewise.
72897         * modules/unictype/category-Mc-tests (Files): Likewise.
72898         * modules/unictype/category-Me-tests (Files): Likewise.
72899         * modules/unictype/category-Mn-tests (Files): Likewise.
72900         * modules/unictype/category-N-tests (Files): Likewise.
72901         * modules/unictype/category-Nd-tests (Files): Likewise.
72902         * modules/unictype/category-Nl-tests (Files): Likewise.
72903         * modules/unictype/category-No-tests (Files): Likewise.
72904         * modules/unictype/category-P-tests (Files): Likewise.
72905         * modules/unictype/category-Pc-tests (Files): Likewise.
72906         * modules/unictype/category-Pd-tests (Files): Likewise.
72907         * modules/unictype/category-Pe-tests (Files): Likewise.
72908         * modules/unictype/category-Pf-tests (Files): Likewise.
72909         * modules/unictype/category-Pi-tests (Files): Likewise.
72910         * modules/unictype/category-Po-tests (Files): Likewise.
72911         * modules/unictype/category-Ps-tests (Files): Likewise.
72912         * modules/unictype/category-S-tests (Files): Likewise.
72913         * modules/unictype/category-Sc-tests (Files): Likewise.
72914         * modules/unictype/category-Sk-tests (Files): Likewise.
72915         * modules/unictype/category-Sm-tests (Files): Likewise.
72916         * modules/unictype/category-So-tests (Files): Likewise.
72917         * modules/unictype/category-Z-tests (Files): Likewise.
72918         * modules/unictype/category-Zl-tests (Files): Likewise.
72919         * modules/unictype/category-Zp-tests (Files): Likewise.
72920         * modules/unictype/category-Zs-tests (Files): Likewise.
72921         * modules/unictype/category-and-not-tests (Files): Likewise.
72922         * modules/unictype/category-and-tests (Files): Likewise.
72923         * modules/unictype/category-byname-tests (Files): Likewise.
72924         * modules/unictype/category-name-tests (Files): Likewise.
72925         * modules/unictype/category-none-tests (Files): Likewise.
72926         * modules/unictype/category-of-tests (Files): Likewise.
72927         * modules/unictype/category-or-tests (Files): Likewise.
72928         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72929         * modules/unictype/combining-class-tests (Files): Likewise.
72930         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72931         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72932         * modules/unictype/ctype-blank-tests (Files): Likewise.
72933         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72934         * modules/unictype/ctype-digit-tests (Files): Likewise.
72935         * modules/unictype/ctype-graph-tests (Files): Likewise.
72936         * modules/unictype/ctype-lower-tests (Files): Likewise.
72937         * modules/unictype/ctype-print-tests (Files): Likewise.
72938         * modules/unictype/ctype-punct-tests (Files): Likewise.
72939         * modules/unictype/ctype-space-tests (Files): Likewise.
72940         * modules/unictype/ctype-upper-tests (Files): Likewise.
72941         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72942         * modules/unictype/decimal-digit-tests (Files): Likewise.
72943         * modules/unictype/digit-tests (Files): Likewise.
72944         * modules/unictype/mirror-tests (Files): Likewise.
72945         * modules/unictype/numeric-tests (Files): Likewise.
72946         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72947         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72948         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72949         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72950         Likewise.
72951         * modules/unictype/property-bidi-block-separator-tests (Files):
72952         Likewise.
72953         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72954         Likewise.
72955         * modules/unictype/property-bidi-common-separator-tests (Files):
72956         Likewise.
72957         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72958         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72959         Likewise.
72960         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72961         Likewise.
72962         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72963         Likewise.
72964         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72965         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72966         Likewise.
72967         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72968         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72969         Likewise.
72970         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72971         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72972         * modules/unictype/property-bidi-segment-separator-tests (Files):
72973         Likewise.
72974         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72975         * modules/unictype/property-byname-tests (Files): Likewise.
72976         * modules/unictype/property-combining-tests (Files): Likewise.
72977         * modules/unictype/property-composite-tests (Files): Likewise.
72978         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72979         * modules/unictype/property-dash-tests (Files): Likewise.
72980         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72981         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72982         Likewise.
72983         * modules/unictype/property-deprecated-tests (Files): Likewise.
72984         * modules/unictype/property-diacritic-tests (Files): Likewise.
72985         * modules/unictype/property-extender-tests (Files): Likewise.
72986         * modules/unictype/property-format-control-tests (Files): Likewise.
72987         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72988         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72989         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72990         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72991         * modules/unictype/property-hyphen-tests (Files): Likewise.
72992         * modules/unictype/property-id-continue-tests (Files): Likewise.
72993         * modules/unictype/property-id-start-tests (Files): Likewise.
72994         * modules/unictype/property-ideographic-tests (Files): Likewise.
72995         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72996         * modules/unictype/property-ids-trinary-operator-tests (Files):
72997         Likewise.
72998         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72999         * modules/unictype/property-iso-control-tests (Files): Likewise.
73000         * modules/unictype/property-join-control-tests (Files): Likewise.
73001         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
73002         * modules/unictype/property-line-separator-tests (Files): Likewise.
73003         * modules/unictype/property-logical-order-exception-tests (Files):
73004         Likewise.
73005         * modules/unictype/property-lowercase-tests (Files): Likewise.
73006         * modules/unictype/property-math-tests (Files): Likewise.
73007         * modules/unictype/property-non-break-tests (Files): Likewise.
73008         * modules/unictype/property-not-a-character-tests (Files): Likewise.
73009         * modules/unictype/property-numeric-tests (Files): Likewise.
73010         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
73011         * modules/unictype/property-other-default-ignorable-code-point-tests
73012         (Files): Likewise.
73013         * modules/unictype/property-other-grapheme-extend-tests (Files):
73014         Likewise.
73015         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
73016         * modules/unictype/property-other-id-start-tests (Files): Likewise.
73017         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
73018         * modules/unictype/property-other-math-tests (Files): Likewise.
73019         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
73020         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
73021         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
73022         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
73023         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
73024         * modules/unictype/property-private-use-tests (Files): Likewise.
73025         * modules/unictype/property-punctuation-tests (Files): Likewise.
73026         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
73027         * modules/unictype/property-radical-tests (Files): Likewise.
73028         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
73029         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
73030         * modules/unictype/property-space-tests (Files): Likewise.
73031         * modules/unictype/property-terminal-punctuation-tests (Files):
73032         Likewise.
73033         * modules/unictype/property-test-tests (Files): Likewise.
73034         * modules/unictype/property-titlecase-tests (Files): Likewise.
73035         * modules/unictype/property-unassigned-code-value-tests (Files):
73036         Likewise.
73037         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
73038         * modules/unictype/property-uppercase-tests (Files): Likewise.
73039         * modules/unictype/property-variation-selector-tests (Files): Likewise.
73040         * modules/unictype/property-white-space-tests (Files): Likewise.
73041         * modules/unictype/property-xid-continue-tests (Files): Likewise.
73042         * modules/unictype/property-xid-start-tests (Files): Likewise.
73043         * modules/unictype/property-zero-width-tests (Files): Likewise.
73044         * modules/unictype/scripts-tests (Files): Likewise.
73045         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
73046         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
73047         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
73048         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
73049         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
73050         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
73051         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
73052         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
73053         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
73054         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
73055         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
73056         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
73057         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
73058         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
73059         * modules/uninorm/composition-tests (Files): Likewise.
73060         * modules/uninorm/decomposing-form-tests (Files): Likewise.
73061         * modules/uninorm/decomposition-tests (Files): Likewise.
73062         * modules/uninorm/filter-tests (Files): Likewise.
73063         * modules/uninorm/nfc-tests (Files): Likewise.
73064         * modules/uninorm/nfd-tests (Files): Likewise.
73065         * modules/uninorm/nfkc-tests (Files): Likewise.
73066         * modules/uninorm/nfkd-tests (Files): Likewise.
73067         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
73068         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
73069         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
73070         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
73071         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
73072         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
73073         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
73074         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
73075         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
73076         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
73077         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
73078         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
73079         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
73080         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
73081         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
73082         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
73083         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
73084         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
73085         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
73086         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
73087         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
73088         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
73089         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
73090         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
73091         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
73092         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
73093         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
73094         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
73095         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
73096         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
73097         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
73098         * modules/uniwidth/u8-width-tests (Files): Likewise.
73099         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
73100         * modules/uniwidth/u16-width-tests (Files): Likewise.
73101         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
73102         * modules/uniwidth/u32-width-tests (Files): Likewise.
73103         * modules/uniwidth/width-tests (Files): Likewise.
73104         * modules/unlink-tests (Files): Likewise.
73105         * modules/unsetenv-tests (Files): Likewise.
73106         * modules/usleep-tests (Files): Likewise.
73107         * modules/utimens-tests (Files): Likewise.
73108         * modules/utimensat-tests (Files): Likewise.
73109         * modules/vasnprintf-posix-tests (Files): Likewise.
73110         * modules/vasnprintf-tests (Files): Likewise.
73111         * modules/vasprintf-posix-tests (Files): Likewise.
73112         * modules/vasprintf-tests (Files): Likewise.
73113         * modules/vdprintf-posix-tests (Files): Likewise.
73114         * modules/vfprintf-posix-tests (Files): Likewise.
73115         * modules/vprintf-posix-tests (Files): Likewise.
73116         * modules/vsnprintf-posix-tests (Files): Likewise.
73117         * modules/vsnprintf-tests (Files): Likewise.
73118         * modules/vsprintf-posix-tests (Files): Likewise.
73119         * modules/wcrtomb-tests (Files): Likewise.
73120         * modules/wcsnrtombs-tests (Files): Likewise.
73121         * modules/wcsrtombs-tests (Files): Likewise.
73122         * modules/wctype-tests (Files): Likewise.
73123         * modules/wcwidth-tests (Files): Likewise.
73124         * modules/xmemdup0-tests (Files): Likewise.
73125         * modules/xprintf-posix-tests (Files): Likewise.
73126         * modules/xvasprintf-tests (Files): Likewise.
73128 2009-12-24  Eric Blake  <ebb9@byu.net>
73130         test-nanosleep: fix typo
73131         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
73132         patch.
73133         Reported by Bruno Haible.
73135 2009-12-24  Bruno Haible  <bruno@clisp.org>
73137         Reduce namespace pollution on glibc systems.
73138         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
73139         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
73140         systems.
73141         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
73142         <getopt.h> on glibc systems.
73143         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
73144         systems.
73145         * lib/fcntl.c: Include <unistd.h> here instead.
73147 2009-12-24  Bruno Haible  <bruno@clisp.org>
73149         * lib/stdlib.in.h (includes): Fix typo in today's commit.
73151 2009-12-24  Eric Blake  <ebb9@byu.net>
73153         tests: add signature checks
73154         * tests/signature.h (SIGNATURE_CHECK): New file.
73155         * modules/atexit-tests (Files): Use it.
73156         * modules/btowc-tests (Files): Likewise.
73157         * modules/canonicalize-lgpl-tests (Files): Likewise.
73158         * modules/ceilf-tests (Files): Likewise.
73159         * modules/ceill-tests (Files): Likewise.
73160         * modules/chown-tests (Files): Likewise.
73161         * modules/dprintf-posix-tests (Files): Likewise.
73162         * modules/dup2-tests (Files): Likewise.
73163         * modules/dup3-tests (Files): Likewise.
73164         * modules/duplocale-tests (Files): Likewise.
73165         * modules/fchdir-tests (Files): Likewise.
73166         * modules/fcntl-tests (Files): Likewise.
73167         * modules/fdopendir-tests (Files): Likewise.
73168         * modules/fflush-tests (Files): Likewise.
73169         * modules/flock-tests (Files): Likewise.
73170         * modules/floorf-tests (Files): Likewise.
73171         * modules/floorl-tests (Files): Likewise.
73172         * modules/fnmatch-tests (Files): Likewise.
73173         * modules/fopen-tests (Files): Likewise.
73174         * modules/fprintf-posix-tests (Files): Likewise.
73175         * modules/freopen-tests (Files): Likewise.
73176         * modules/frexp-nolibm-tests (Files): Likewise.
73177         * modules/frexp-tests (Files): Likewise.
73178         * modules/frexpl-nolibm-tests (Files): Likewise.
73179         * modules/frexpl-tests (Files): Likewise.
73180         * modules/fseek-tests (Files): Likewise.
73181         * modules/fseeko-tests (Files): Likewise.
73182         * modules/fsync-tests (Files): Likewise.
73183         * modules/ftell-tests (Files): Likewise.
73184         * modules/ftello-tests (Files): Likewise.
73185         * modules/futimens-tests (Files): Likewise.
73186         * modules/getaddrinfo-tests (Files): Likewise.
73187         * modules/getcwd-tests (Files): Likewise.
73188         * modules/getdelim-tests (Files): Likewise.
73189         * modules/getdtablesize-tests (Files): Likewise.
73190         * modules/getgroups-tests (Files): Likewise.
73191         * modules/gethostname-tests (Files): Likewise.
73192         * modules/getline-tests (Files): Likewise.
73193         * modules/getopt-posix-tests (Files): Likewise.
73194         * modules/gettimeofday-tests (Files): Likewise.
73195         * modules/glob-tests (Files): Likewise.
73196         * modules/iconv-tests (Files): Likewise.
73197         * modules/inet_ntop-tests (Files): Likewise.
73198         * modules/inet_pton-tests (Files): Likewise.
73199         * modules/isblank-tests (Files): Likewise.
73200         * modules/lchown-tests (Files): Likewise.
73201         * modules/ldexpl-tests (Files): Likewise.
73202         * modules/link-tests (Files): Likewise.
73203         * modules/linkat-tests (Files): Likewise.
73204         * modules/lseek-tests (Files): Likewise.
73205         * modules/lstat-tests (Files): Likewise.
73206         * modules/mbrtowc-tests (Files): Likewise.
73207         * modules/mbsinit-tests (Files): Likewise.
73208         * modules/mbsnrtowcs-tests (Files): Likewise.
73209         * modules/mbsrtowcs-tests (Files): Likewise.
73210         * modules/memchr-tests (Files): Likewise.
73211         * modules/memcmp-tests (Files): Likewise.
73212         * modules/memmem-tests (Files): Likewise.
73213         * modules/memrchr-tests (Files): Likewise.
73214         * modules/mkdir-tests (Files): Likewise.
73215         * modules/mkfifo-tests (Files): Likewise.
73216         * modules/mkfifoat-tests (Files): Likewise.
73217         * modules/mknod-tests (Files): Likewise.
73218         * modules/nanosleep-tests (Files): Likewise.
73219         * modules/nl_langinfo-tests (Files): Likewise.
73220         * modules/obstack-printf-tests (Files): Likewise.
73221         * modules/open-tests (Files): Likewise.
73222         * modules/openat-tests (Files): Likewise.
73223         * modules/perror-tests (Files): Likewise.
73224         * modules/pipe2-tests (Files): Likewise.
73225         * modules/poll-tests (Files): Likewise.
73226         * modules/popen-tests (Files): Likewise.
73227         * modules/posix_spawn-tests (Files): Likewise.
73228         * modules/posix_spawnp-tests (Files): Likewise.
73229         * modules/pread-tests (Files): Likewise.
73230         * modules/printf-posix-tests (Files): Likewise.
73231         * modules/pty-tests (Files): Likewise.
73232         * modules/random_r-tests (Files): Likewise.
73233         * modules/rawmemchr-tests (Files): Likewise.
73234         * modules/readlink-tests (Files): Likewise.
73235         * modules/remove-tests (Files): Likewise.
73236         * modules/rename-tests (Files): Likewise.
73237         * modules/renameat-tests (Files): Likewise.
73238         * modules/rmdir-tests (Files): Likewise.
73239         * modules/round-tests (Files): Likewise.
73240         * modules/roundf-tests (Files): Likewise.
73241         * modules/roundl-tests (Files): Likewise.
73242         * modules/select-tests (Files): Likewise.
73243         * modules/setenv-tests (Files): Likewise.
73244         * modules/sigaction-tests (Files): Likewise.
73245         * modules/sleep-tests (Files): Likewise.
73246         * modules/snprintf-posix-tests (Files): Likewise.
73247         * modules/snprintf-tests (Files): Likewise.
73248         * modules/sprintf-posix-tests (Files): Likewise.
73249         * modules/stat-tests (Files): Likewise.
73250         * modules/strcasestr-tests (Files): Likewise.
73251         * modules/strchrnul-tests (Files): Likewise.
73252         * modules/strerror-tests (Files): Likewise.
73253         * modules/strsignal-tests (Files): Likewise.
73254         * modules/strstr-tests (Files): Likewise.
73255         * modules/strtod-tests (Files): Likewise.
73256         * modules/strverscmp-tests (Files): Likewise.
73257         * modules/symlink-tests (Files): Likewise.
73258         * modules/symlinkat-tests (Files): Likewise.
73259         * modules/times-tests (Files): Likewise.
73260         * modules/trunc-tests (Files): Likewise.
73261         * modules/truncf-tests (Files): Likewise.
73262         * modules/truncl-tests (Files): Likewise.
73263         * modules/tsearch-tests (Files): Likewise.
73264         * modules/uname-tests (Files): Likewise.
73265         * modules/unlink-tests (Files): Likewise.
73266         * modules/unsetenv-tests (Files): Likewise.
73267         * modules/usleep-tests (Files): Likewise.
73268         * modules/utimensat-tests (Files): Likewise.
73269         * modules/vasprintf-tests (Files): Likewise.
73270         * modules/vdprintf-posix-tests (Files): Likewise.
73271         * modules/vfprintf-posix-tests (Files): Likewise.
73272         * modules/vprintf-posix-tests (Files): Likewise.
73273         * modules/vsnprintf-posix-tests (Files): Likewise.
73274         * modules/vsnprintf-tests (Files): Likewise.
73275         * modules/vsprintf-posix-tests (Files): Likewise.
73276         * modules/wcrtomb-tests (Files): Likewise.
73277         * modules/wcsnrtombs-tests (Files): Likewise.
73278         * modules/wcsrtombs-tests (Files): Likewise.
73279         * modules/wcwidth-tests (Files): Likewise.
73280         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
73281         * tests/test-isinf.c (isinf): Likewise.
73282         * tests/test-isnan.c (isnan): Likewise.
73283         * tests/test-signbit.c (signbit): Likewise.
73284         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
73285         declaration, either as macro or with correct signature.
73286         (select): Ensure function under test is declared with correct
73287         signature in correct header.
73288         * tests/test-atexit.c (atexit): Likewise.
73289         * tests/test-btowc.c (btowc): Likewise.
73290         * tests/test-canonicalize-lgpl.c (realpath)
73291         (canonicalize_file_name): Likewise.
73292         * tests/test-ceilf1.c (ceilf): Likewise.
73293         * tests/test-ceill.c (ceill): Likewise.
73294         * tests/test-chown.c (chown): Likewise.
73295         * tests/test-dprintf-posix.c (dprintf): Likewise.
73296         * tests/test-dup2.c (dup2): Likewise.
73297         * tests/test-dup3.c (dup3): Likewise.
73298         * tests/test-duplocale.c (duplocale): Likewise.
73299         * tests/test-fchdir.c (fchdir): Likewise.
73300         * tests/test-fchownat.c (fchownat): Likewise.
73301         * tests/test-fcntl.c (fcntl): Likewise.
73302         * tests/test-fdopendir.c (fdopendir): Likewise.
73303         * tests/test-fflush.c (fflush): Likewise.
73304         * tests/test-flock.c (flock): Likewise.
73305         * tests/test-floorf1.c (floorf): Likewise.
73306         * tests/test-floorl.c (floorl): Likewise.
73307         * tests/test-fnmatch.c (fnmatch): Likewise.
73308         * tests/test-fopen.c (fopen): Likewise.
73309         * tests/test-fprintf-posix.c (fprintf): Likewise.
73310         * tests/test-freopen.c (freopen): Likewise.
73311         * tests/test-frexp.c (frexp): Likewise.
73312         * tests/test-frexpl.c (frexpl): Likewise.
73313         * tests/test-fseek.c (fseek): Likewise.
73314         * tests/test-fseeko.c (fseeko): Likewise.
73315         * tests/test-fstatat.c (fstatat): Likewise.
73316         * tests/test-fsync.c (fsync): Likewise.
73317         * tests/test-ftell.c (ftell): Likewise.
73318         * tests/test-ftello.c (ftello): Likewise.
73319         * tests/test-futimens.c (futimens): Likewise.
73320         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
73321         (gai_strerror): Likewise.
73322         * tests/test-getcwd.c (getcwd): Likewise.
73323         * tests/test-getdelim.c (getdelim): Likewise.
73324         * tests/test-getdtablesize.c (getdtablesize): Likewise.
73325         * tests/test-getgroups.c (getgroups): Likewise.
73326         * tests/test-gethostname.c (gethostname): Likewise.
73327         * tests/test-getline.c (getline): Likewise.
73328         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
73329         Likewise.
73330         * tests/test-gettimeofday.c (gettimeofday): Likewise.
73331         * tests/test-glob.c (glob, globfree): Likewise.
73332         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
73333         * tests/test-inet_ntop.c (inet_ntop): Likewise.
73334         * tests/test-inet_pton.c (inet_pton): Likewise.
73335         * tests/test-isblank.c (isblank): Likewise.
73336         * tests/test-lchown.c (lchown): Likewise.
73337         * tests/test-ldexpl.c (ldexpl): Likewise.
73338         * tests/test-link.c (link): Likewise.
73339         * tests/test-linkat.c (linkat): Likewise.
73340         * tests/test-lseek.c (lseek): Likewise.
73341         * tests/test-lstat.c (lstat): Likewise.
73342         * tests/test-mbrtowc.c (mbrtowc): Likewise.
73343         * tests/test-mbsinit.c (mbsinit): Likewise.
73344         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
73345         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
73346         * tests/test-memchr.c (memchr): Likewise.
73347         * tests/test-memcmp.c (memcmp): Likewise.
73348         * tests/test-memmem.c (memmem): Likewise.
73349         * tests/test-memrchr.c (memrchr): Likewise.
73350         * tests/test-mkdir.c (mkdir): Likewise.
73351         * tests/test-mkdirat.c (mkdirat): Likewise.
73352         * tests/test-mkfifo.c (mkfifo): Likewise.
73353         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
73354         * tests/test-mknod.c (mknod): Likewise.
73355         * tests/test-nanosleep.c (nanosleep): Likewise.
73356         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
73357         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
73358         Likewise.
73359         * tests/test-open.c (open): Likewise.
73360         * tests/test-openat.c (openat): Likewise.
73361         * tests/test-perror.c (perror): Likewise.
73362         * tests/test-pipe2.c (pipe2): Likewise.
73363         * tests/test-poll.c (poll): Likewise.
73364         * tests/test-popen.c (popen, pclose): Likewise.
73365         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
73366         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
73367         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
73368         (posix_spawn_file_actions_destroy)
73369         (posix_spawn_file_actions_addclose)
73370         (posix_spawn_file_actions_addopen)
73371         (posix_spawn_file_actions_adddup2): Likewise.
73372         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
73373         * tests/test-pread.c (pread): Likewise.
73374         * tests/test-printf-posix.c (printf): Likewise.
73375         * tests/test-pty.c (openpty, forkpty): Likewise.
73376         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
73377         (random_r): Likewise.
73378         * tests/test-rawmemchr.c (rawmemchr): Likewise.
73379         * tests/test-readlink.c (readlink): Likewise.
73380         * tests/test-remove.c (remove): Likewise.
73381         * tests/test-rename.c (rename): Likewise.
73382         * tests/test-renameat.c (renameat): Likewise.
73383         * tests/test-rmdir.c (rmdir): Likewise.
73384         * tests/test-round1.c (round): Likewise.
73385         * tests/test-roundf1.c (roundf): Likewise.
73386         * tests/test-roundl.c (roundl): Likewise.
73387         * tests/test-setenv.c (setenv): Likewise.
73388         * tests/test-sigaction.c (sigaction): Likewise.
73389         * tests/test-sleep.c (sleep): Likewise.
73390         * tests/test-snprintf.c (snprintf): Likewise.
73391         * tests/test-sprintf-posix.c (sprintf): Likewise.
73392         * tests/test-stat.c (stat): Likewise.
73393         * tests/test-stpncpy.c (stpncpy): Likewise.
73394         * tests/test-strcasestr.c (strcasestr): Likewise.
73395         * tests/test-strchrnul.c (strchrnul): Likewise.
73396         * tests/test-strerror.c (strerror): Likewise.
73397         * tests/test-strsignal.c (strsignal): Likewise.
73398         * tests/test-strstr.c (strstr): Likewise.
73399         * tests/test-strtod.c (strtod): Likewise.
73400         * tests/test-strverscmp.c (strverscmp): Likewise.
73401         * tests/test-symlink.c (symlink): Likewise.
73402         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
73403         * tests/test-times.c (times): Likewise.
73404         * tests/test-trunc1.c (trunc): Likewise.
73405         * tests/test-truncf1.c (truncf): Likewise.
73406         * tests/test-truncl.c (truncl): Likewise.
73407         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
73408         Likewise.
73409         * tests/test-uname.c (uname): Likewise.
73410         * tests/test-unlink.c (unlink): Likewise.
73411         * tests/test-unlinkat.c (unlinkat): Likewise.
73412         * tests/test-unsetenv.c (unsetenv): Likewise.
73413         * tests/test-usleep.c (usleep): Likewise.
73414         * tests/test-utimensat.c (utimensat): Likewise.
73415         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
73416         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
73417         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
73418         * tests/test-vprintf-posix.c (vprintf): Likewise.
73419         * tests/test-vsnprintf.c (vsnprintf): Likewise.
73420         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
73421         * tests/test-wcrtomb.c (wcrtomb): Likewise.
73422         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
73423         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
73424         * tests/test-wcwidth.c (wcwidth): Likewise.
73426         build: pull in conditional headers during GNULIB_POSIXCHECK
73427         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
73428         definitions from any conditionally-included headers.
73429         * lib/stdlib.in.h (includes): Likewise.
73430         * lib/unistd.in.h (includes): Likewise.
73432 2009-12-24  Bruno Haible  <bruno@clisp.org>
73434         * tests/test-argv-iter.c: Include header file being tested immediately
73435         after config.h.
73436         * tests/test-base64.c: Likewise.
73437         * tests/test-flock.c: Likewise.
73438         * tests/test-fsync.c: Likewise.
73439         * tests/test-getdate.c: Likewise.
73440         * tests/test-getndelim2.c: Likewise.
73441         * tests/test-isfinite.c: Likewise.
73442         * tests/test-isinf.c: Likewise.
73443         * tests/test-strerror.c: Likewise.
73444         * tests/test-strsignal.c: Likewise.
73446 2009-12-23  Eric Blake  <ebb9@byu.net>
73448         unistd: work around cygwin bug
73449         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
73450         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
73451         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
73453 2009-12-23  Bruno Haible  <bruno@clisp.org>
73455         localename: More tests.
73456         * tests/test-localename.c (SIZEOF): New macro.
73457         (categories): New variable.
73458         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
73459         test_locale_name_default): Add test w.r.t. thread locale.
73460         (test_locale_name_thread): New function.
73461         (main): Invoke it.
73463         localename: Make aware of thread locale.
73464         * lib/localename.h (gl_locale_name_thread): New declaration.
73465         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
73466         behaviour with respect to thread locale.
73467         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
73468         <langinfo.h>, glthread/lock.h.
73469         (SIZE_BITS): New macro.
73470         (string_hash): New function.
73471         (struct hash_node): New type.
73472         (HASH_TABLE_SIZE): New macro.
73473         (struniq_hash_table, struniq_lock): New variables.
73474         (struniq): New function.
73475         (gl_locale_name_thread): New function.
73476         (gl_locale_name): Invoke it.
73477         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
73478         * modules/localename (Depends-on): Add lock.
73479         Reported by Mike Gran <spk121@yahoo.com>.
73481 2009-12-23  Eric Blake  <ebb9@byu.net>
73483         va-args: new module
73484         * modules/va-args: New file.
73485         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
73486         * MODULES.html.sh (Core language properties): Mention it.
73488         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
73489         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
73490         named alias for __attribute__((__unused__)).
73491         * lib/chown.c: Update client.
73492         * lib/fchmodat.c: Likewise.
73493         * lib/fts.c: Likewise.
73494         * lib/getdate.y: Likewise.
73495         * lib/getgroups.c: Likewise.
73496         * lib/getopt.c: Likewise.
73497         * lib/getugroups.c: Likewise.
73498         * lib/mkdir.c: Likewise.
73499         * lib/mkfifo.c: Likewise.
73500         * lib/mkfifoat.c: Likewise.
73501         * lib/mknod.c: Likewise.
73502         * lib/mknodat.c: Likewise.
73503         * lib/readlink.c: Likewise.
73504         * lib/se-context.in.h: Likewise.
73505         * lib/se-selinux.in.h: Likewise.
73506         * lib/sockets.c: Likewise.
73507         * lib/symlink.c: Likewise.
73508         * lib/symlinkat.c: Likewise.
73509         * lib/unicodeio.c: Likewise.
73510         * lib/unistr.h: Likewise.
73511         * tests/test-areadlink.c: Likewise.
73512         * tests/test-areadlinkat.c: Likewise.
73513         * tests/test-filenamecat.c: Likewise.
73514         * tests/test-fseeko.c: Likewise.
73515         * tests/test-ftello.c: Likewise.
73516         * tests/test-getdate.c: Likewise.
73517         * tests/test-getgroups.c: Likewise.
73518         * tests/test-gethostname.c: Likewise.
73519         * tests/test-quotearg.c: Likewise.
73520         * tests/test-version-etc.c: Likewise.
73521         * tests/test-xalloc-die.c: Likewise.
73522         * tests/test-xfprintf-posix.c: Likewise.
73523         * tests/test-xprintf-posix.c: Likewise.
73524         * tests/test-xvasprintf.c: Likewise.
73526         tests: avoid compiler warnings
73527         * tests/test-fcntl.c (main): Delete unused parameters.
73528         * tests/test-freopen-safer.c (main): Likewise.
73529         * tests/test-xalloc-die.c (main): Mark unused parameters.
73530         * tests/test-fseeko.c (main): Likewise.
73531         * tests/test-ftello.c (main): Likewise.
73532         * tests/test-nanosleep.c (main): Avoid declaration warning.
73533         * tests/test-sleep.c (main): Likewise.
73534         * tests/test-unsetenv.c (main): Silence warning about string
73535         literal.
73536         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
73538 2009-12-23  Bruno Haible  <bruno@clisp.org>
73540         * tests/test-localename.c (test_locale_name): New function, extracted
73541         from main. Also test mixed situations.
73542         (test_locale_name_posix, test_locale_name_environ,
73543         test_locale_name_default): New functions.
73544         (main): Invoke them all.
73545         * modules/localename-tests (configure.ac): Test for newlocale.
73547 2009-12-23  Bruno Haible  <bruno@clisp.org>
73549         unistd: Ensure getcwd gets declared before being overridden.
73550         * lib/unistd.in.h: Conditionally include <io.h>.
73552 2009-12-22  Bruno Haible  <bruno@clisp.org>
73554         wchar: Diagnose broken combination of glibc and gcc versions and flags.
73555         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
73556         (gl_WCHAR_H): Invoke it.
73557         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
73558         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
73559         Reported by Karl Berry <karl@freefriends.org>.
73561 2009-12-22  Eric Blake  <ebb9@byu.net>
73563         math, unistd: avoid redundant includes
73564         * lib/math.in.h (isnan): No need to re-include <math.h>.
73565         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
73567         getsubopt: work around cygwin bug
73568         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
73569         avoid conflicting with system getsubopt.
73570         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
73571         bug.
73573         getopt: synchronize from glibc
73574         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
73575         parameter order.  Adjust all callers.
73576         (_getopt_internal_r, main): Adjust quoting in error messages.
73577         Drop considerations for outdated POSIX 1003.2 error message.
73578         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
73579         callers.
73580         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
73582         test-getopt: test stderr behavior
73583         * modules/getopt-posix-tests (Depends-on): Add dup2.
73584         * tests/test-getopt.c (ASSERT): Avoid stderr.
73585         (main): Move stderr to a temporary file.
73586         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
73587         Instead, add parameter to inform caller if output occurred.
73588         (test_getopt): Adjust all existing tests to expect silence, and
73589         add new tests of leading ":".
73590         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73591         glibc shortcomings with leading "-:" or "+:" in optstring.
73592         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73593         Likewise.
73594         * doc/posix-functions/getopt.texi (getopt): Likewise.
73596         test-getopt: enhance test
73597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
73598         supports optind=0.
73599         * tests/test-getopt.c (OPTIND_MIN): Move...
73600         * tests/test-getopt.h (OPTIND_MIN): ...here.
73601         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
73602         Require that optind=0 works, since modern BSD supports it in
73603         addition to optreset, and since coreutils expects it.
73604         (test_getopt_long_only): New test.
73605         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73606         glibc shortcomings with 'W;', and enforcement of optind=0.
73607         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73608         Likewise.
73610 2009-12-21  Bruno Haible  <bruno@clisp.org>
73612         localename: Improvements for MacOS X and Cygwin.
73613         * lib/localename.h (gl_locale_name_environ): New declaration.
73614         * lib/localename.c (gl_locale_name_environ): New function, extracted from
73615         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
73616         (gl_locale_name_posix): Invoke it.
73617         (gl_locale_name_default): Add comments. Use Windows native API also on
73618         Cygwin.
73620 2009-12-21  Bruno Haible  <bruno@clisp.org>
73622         Update list of Win32 locale ids.
73623         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
73624         (LANG_SAMI): Renamed from LANG_SAAMI.
73625         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
73626         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
73627         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
73628         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
73629         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
73630         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
73631         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
73632         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
73633         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
73634         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
73635         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
73636         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
73637         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
73638         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
73639         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
73640         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
73641         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
73642         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
73643         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
73644         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
73645         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
73646         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
73647         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
73648         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
73649         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
73650         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
73651         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
73652         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
73653         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
73654         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
73655         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
73656         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
73657         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
73658         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
73659         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
73660         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
73661         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
73662         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
73663         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
73664         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
73665         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
73666         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
73667         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
73668         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
73669         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
73670         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
73671         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
73672         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
73673         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
73674         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
73675         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
73676         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
73677         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
73678         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
73679         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
73680         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
73681         Add more languages and countries for Sami, Sorbian. Add more countries
73682         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
73683         for Pashto. Change country for Syriac, Tswana.
73685 2009-12-21  Eric Blake  <ebb9@byu.net>
73687         test-utimens: avoid spurious failure
73688         * tests/test-chown.h (nap): Factor...
73689         * tests/nap.h: ...into new file.
73690         * tests/test-lchown.h (nap): Avoid duplication.
73691         * tests/test-utimens-common.h (nap): Use shared implementation,
73692         necessary on file systems with 1-second resolution.
73693         * modules/chown-tests (Files): Include new file.
73694         * modules/fdutimensat-tests (Files): Likewise.
73695         * modules/futimens-tests (Files): Likewise.
73696         * modules/lchown-tests (Files): Likewise.
73697         * modules/openat-tests (Files): Likewise.
73698         * modules/utimens-tests (Files): Likewise.
73699         * modules/utimensat-tests (Files): Likewise.
73701 2009-12-19  Eric Blake  <ebb9@byu.net>
73703         futimens, utimensat: work around Linux bug
73704         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
73705         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73706         * lib/utimensat.c (rpl_utimensat): Work around it.
73707         * lib/futimens.c (rpl_futimens): Adjust comment.
73709         utimens: work around Linux ctime bug
73710         * lib/utimens.c (detect_ctime_bug): New helper function.
73711         (update_timespec): Differentiate between workaround needed for
73712         this bug vs. what is needed for systems that lack utimensat.
73713         (fdutimens, lutimens): Work around bug.
73715         utimens: check for ctime update
73716         * tests/test-utimens-common.h (check_ctime): Define.
73717         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
73718         * tests/test-futimens.h (test_futimens): Likewise.
73719         * tests/test-lutimens.h (test_lutimens): Likewise.
73720         * doc/posix-functions/futimens.texi (futimens): Document the bug.
73721         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73723 2009-12-19  Bruno Haible  <bruno@clisp.org>
73725         dprintf-posix: Check against memory leak fixed on 2009-12-15.
73726         * tests/test-dprintf-posix2.sh: New file.
73727         * tests/test-dprintf-posix2.c: New file.
73728         * modules/dprintf-posix-tests (Files): Add them.
73729         (configure.ac): Check for getrlimit and setrlimit.
73730         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73732 2009-12-19  Bruno Haible  <bruno@clisp.org>
73734         fprintf-posix: Check against memory leak fixed on 2009-12-15.
73735         * tests/test-fprintf-posix3.sh: New file.
73736         * tests/test-fprintf-posix3.c: New file.
73737         * modules/fprintf-posix-tests (Files): Add them.
73738         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73740 2009-12-19  Eric Blake  <ebb9@byu.net>
73742         dirfd: fix prototype
73743         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
73744         * lib/dirfd.c (dirfd): Likewise.
73746         canonicalize: reduce memory usage
73747         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
73748         allocation to size.
73749         Reported by Solar Designer <solar@openwall.com>.
73751 2009-12-19  Bruno Haible  <bruno@clisp.org>
73753         New module attribute 'Applicability'.
73754         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
73755         * gnulib-tool: New option --extract-applicability.
73756         (func_usage): Document it.
73757         (sed_extract_prog): Recognize it.
73758         (func_get_applicability): New function.
73759         (func_import): Generalize handling of 'link-warning' module.
73760         * modules/link-warning (Applicability): New section.
73761         * modules/arg-nonnull (Applicability): New section.
73762         Repoted by Simon Josefsson <simon@josefsson.org>.
73764 2009-12-19  Bruno Haible  <bruno@clisp.org>
73766         fflush: tweak
73767         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
73768         * lib/fseeko.c (rpl_fseeko): Likewise.
73770 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
73772         * lib/gl_list.h: Fix typo in comment.
73774 2009-12-16  Eric Blake  <ebb9@byu.net>
73776         fcntl: use to simplify other modules
73777         * modules/cloexec (Depends-on): Add fcntl.
73778         * modules/fchdir (Depends-on): Likewise.
73779         * modules/fd-safer-flag (Depends-on): Likewise.
73780         * modules/unistd-safer (Depends-on): Likewise.
73781         * modules/dup3 (configure.ac): Set module indicator.
73782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
73783         missing.
73784         * lib/fchdir.c (_gl_register_dup): Fix comment.
73785         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
73786         * lib/dup-safer.c (dup_safer): Likewise.
73787         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
73788         * lib/dup3.c (dup3): Likewise.
73789         * tests/test-fchdir.c (main): Enhance test.
73790         Fixes a dup_cloexec bug reported by Ondřej Vašík.
73792         fcntl: port portions of fcntl to mingw
73793         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
73794         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
73795         replacement for mingw.
73796         * modules/fcntl (Description): Update.
73797         (Depends-on): Add dup2.
73798         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
73799         * modules/fcntl-h (Makefile.am): Substitute it.
73800         * lib/fcntl.in.h (fcntl): Update declaration.
73801         (F_DUPFD, F_GETFD): New macros, when needed.
73802         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73803         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
73804         * tests/test-fcntl.c (check_flags, main): Enhance test for items
73805         we now guarantee.
73807         fcntl: work around cygwin bug in F_DUPFD
73808         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
73809         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
73810         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
73811         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
73812         * doc/posix-functions/fcntl.texi (fcntl): Document it.
73814         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
73815         * modules/fcntl (Files): List new files.
73816         (configure.ac): Run a test.
73817         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
73818         * lib/fcntl.c (rpl_fcntl): Likewise.
73819         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
73820         (gl_FCNTL_H): Always replace fcntl.h.
73821         * modules/fcntl-h (Makefile.am): Substitute witnesses.
73822         * lib/fcntl.in.h (fcntl): Declare replacement.
73823         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
73824         needed, plus a witness.
73825         * doc/posix-functions/fcntl.texi (fcntl): Document this.
73826         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
73827         * tests/test-fcntl.c: New file.
73828         * modules/fcntl-tests: Likewise.
73830         binary-io: avoid potential compilation warning
73831         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
73832         directives.
73834         fflush: avoid compilation error on NetBSD
73835         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
73836         between off_t and fpos_t, since the latter is sometimes a struct.
73837         * lib/fseeko.c (rpl_fseeko): Likewise.
73838         Reported by Alexander Nasonov <alnsn@yandex.ru>.
73840 2009-12-15  Eric Blake  <ebb9@byu.net>
73842         fcntl-h, stdio, sys_ioctl: fix declarations
73843         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
73844         function must not take arguments.
73845         * lib/sys_ioctl.in.h (ioctl): Likewise.
73846         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
73847         (open): Add a link warning.
73849 2009-12-15  Jim Meyering  <meyering@redhat.com>
73851         areadlink, areadlink-with-size: relax license to LGPLv2+
73852         * modules/areadlink (License): Relax to LGPLv2+.
73853         * modules/areadlink-with-size (License): Likewise.
73855 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
73856             Bruno Haible  <bruno@clisp.org>
73858         *printf: Fix memory leak.
73859         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
73860         * lib/vfprintf.c (vfprintf): Likewise.
73861         * lib/dprintf.c (dprintf): Likewise.
73862         * lib/vdprintf.c (vdprintf): Likewise.
73864 2009-12-14  Eric Blake  <ebb9@byu.net>
73866         accept4: adjust module dependencies
73867         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
73869         utimens: one more try at avoiding compiler warning
73870         * lib/utimens.c (lutimens): Lower scope of result.
73872 2009-12-13  Bruno Haible  <bruno@clisp.org>
73874         Move the malloc checking from module 'list' to new module 'xlist'.
73875         * modules/xlist: New file.
73876         * lib/gl_xlist.h: New file.
73877         * lib/gl_xlist.c: New file.
73878         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
73879         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
73880         gl_list_add_last, gl_list_add_before, gl_list_add_after,
73881         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
73882         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
73883         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
73884         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
73885         gl_sortedlist_nx_add): New declarations.
73886         (struct gl_list_implementation): Rename and change methods accordingly.
73887         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
73888         (gl_list_nx_create): Renamed from gl_list_create.
73889         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73890         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73891         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73892         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73893         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73894         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73895         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73896         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73897         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73898         gl_list_create_empty.
73899         (gl_list_nx_create): Renamed from gl_list_create.
73900         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73901         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73902         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73903         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73904         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73905         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73906         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73907         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73908         * lib/gl_array_list.c: Don't include xalloc.h.
73909         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73910         NULL upon out-of-memory.
73911         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73912         out-of-memory.
73913         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73914         Change return type to 'int'.
73915         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73916         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73917         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73918         upon out-of-memory.
73919         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73920         upon out-of-memory.
73921         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73922         upon out-of-memory.
73923         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73924         upon out-of-memory.
73925         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73926         out-of-memory.
73927         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73928         Update.
73929         (gl_array_list_implementation): Update.
73930         * lib/gl_carray_list.c: Don't include xalloc.h.
73931         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73932         Return NULL upon out-of-memory.
73933         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73934         out-of-memory.
73935         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73936         Change return type to 'int'.
73937         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73938         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73939         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73940         upon out-of-memory.
73941         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73942         upon out-of-memory.
73943         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73944         out-of-memory.
73945         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73946         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73947         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73948         Update.
73949         (gl_carray_list_implementation): Update.
73950         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73951         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73952         gl_linked_create_empty. Return NULL upon out-of-memory.
73953         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73954         out-of-memory.
73955         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73956         Change return type to 'int'. Return -1 upon out-of-memory.
73957         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73958         out-of-memory.
73959         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73960         upon out-of-memory.
73961         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73962         upon out-of-memory.
73963         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73964         NULL upon out-of-memory.
73965         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73966         upon out-of-memory.
73967         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73968         out-of-memory.
73969         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73970         Update.
73971         * lib/gl_linked_list.c: Don't include xalloc.h.
73972         (gl_linked_list_implementation): Update.
73973         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73974         (add_to_bucket): Change return type to 'int'.
73975         (gl_linkedhash_list_implementation): Update.
73976         * lib/gl_anytree_list1.h (free_subtree): New function.
73977         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73978         gl_tree_create_empty. Return NULL upon out-of-memory.
73979         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73980         Change return type to 'int'. Return -1 upon out-of-memory.
73981         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73982         out-of-memory.
73983         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73984         (gl_tree_remove_node): New function, moved here from
73985         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73986         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73987         Update.
73988         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73989         malloc, not xmalloc. Return NULL upon out-of-memory.
73990         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73991         out-of-memory.
73992         (gl_tree_remove_node_from_tree): New function, extracted from
73993         gl_tree_remove_node.
73994         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73995         upon out-of-memory.
73996         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73997         out-of-memory.
73998         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73999         upon out-of-memory.
74000         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
74001         upon out-of-memory.
74002         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
74003         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
74004         not xmalloc. Return NULL upon out-of-memory.
74005         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
74006         out-of-memory.
74007         (gl_tree_remove_node_from_tree): New function, extracted from
74008         gl_tree_remove_node.
74009         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
74010         upon out-of-memory.
74011         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
74012         out-of-memory.
74013         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
74014         upon out-of-memory.
74015         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
74016         upon out-of-memory.
74017         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
74018         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
74019         gl_anytree_list1.h before gl_anyavltree_list2.h.
74020         (gl_avltree_list_implementation): Update.
74021         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
74022         gl_anytree_list1.h before gl_anyavltree_list2.h.
74023         (gl_rbtree_list_implementation): Update.
74024         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
74025         Change return type to 'int'. Return -1 upon out-of-memory. Use
74026         __builtin_expect.
74027         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
74028         (gl_avltreehash_list_implementation): Update.
74029         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
74030         (gl_rbtreehash_list_implementation): Update.
74031         * modules/array-list (Depends-on): Remove xalloc.
74032         * modules/carray-list (Depends-on): Likewise.
74033         * modules/linked-list (Depends-on): Likewise.
74034         * modules/linkedhash-list (Depends-on): Likewise.
74035         * modules/avltree-list (Depends-on): Likewise.
74036         * modules/rbtree-list (Depends-on): Likewise.
74037         * modules/avltreehash-list (Depends-on): Likewise.
74038         * modules/rbtreehash-list (Depends-on): Likewise.
74040         * modules/xsublist: New file.
74041         * lib/gl_xsublist.h: New file.
74042         * lib/gl_xsublist.c: New file.
74043         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
74044         (gl_sublist_nx_create): New declaration.
74045         * lib/gl_sublist.c: Don't include xalloc.h.
74046         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
74047         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
74048         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
74049         Change return type to 'int'. Return -1 upon out-of-memory.
74050         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
74051         upon out-of-memory.
74052         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
74053         NULL upon out-of-memory.
74054         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
74055         upon out-of-memory.
74056         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
74057         NULL upon out-of-memory.
74058         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
74059         NULL upon out-of-memory.
74060         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
74061         upon out-of-memory.
74062         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
74063         (gl_sublist_list_implementation): Update.
74064         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
74065         upon out-of-memory.
74066         * modules/sublist (Depends-on): Remove xalloc.
74068         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
74069         * tests/test-carray_list.c: Likewise.
74070         * tests/test-linked_list.c: Likewise.
74071         * tests/test-linkedhash_list.c: Likewise.
74072         * tests/test-avltree_list.c: Likewise.
74073         * tests/test-rbtree_list.c: Likewise.
74074         * tests/test-avltreehash_list.c: Likewise.
74075         * tests/test-rbtreehash_list.c: Likewise.
74076         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
74077         * modules/carray-list-tests (Makefile.am): Likewise.
74078         * modules/linked-list-tests (Makefile.am): Likewise.
74079         * modules/linkedhash-list-tests (Makefile.am): Likewise.
74080         * modules/avltree-list-tests (Makefile.am): Likewise.
74081         * modules/rbtree-list-tests (Makefile.am): Likewise.
74082         * modules/avltreehash-list-tests (Makefile.am): Likewise.
74083         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
74085         * NEWS: Mention the changes.
74087         * lib/clean-temp.c: Include gl_xlist.h.
74088         * modules/clean-temp (Depends-on): Add xlist.
74090         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
74091         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
74093         * tests/test-array_oset.c: Include gl_xlist.h.
74094         * modules/array-oset-tests (Depends-on): Add xlist.
74096         Reported by José E. Marchesi <jemarch@gnu.org>.
74098 2009-12-13  Bruno Haible  <bruno@clisp.org>
74100         Move the malloc checking from module 'oset' to new module 'xoset'.
74101         * modules/xoset: New file.
74102         * lib/gl_xoset.h: New file.
74103         * lib/gl_xoset.c: New file.
74104         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
74105         declarations.
74106         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
74107         (struct gl_oset_implementation): Rename and change methods accordingly.
74108         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
74109         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
74110         'int'. Mark as __warn_unused_result__.
74111         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
74112         gl_oset_create_empty.
74113         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
74114         'int'.
74115         * lib/gl_array_oset.c: Don't include xalloc.h.
74116         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
74117         malloc, not xmalloc.
74118         (grow): Change return type to 'int'. Don't call xalloc_die.
74119         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
74120         to 'int'.
74121         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
74122         'int'.
74123         (gl_array_oset_implementation): Update.
74124         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
74125         gl_tree_create_empty.
74126         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
74127         'int'.
74128         * lib/gl_avltree_oset.c: Don't include xalloc.h.
74129         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
74130         xmalloc.
74131         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
74132         not xmalloc.
74133         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
74134         xmalloc.
74135         (gl_avltree_oset_implementation): Update.
74136         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
74137         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
74138         xmalloc.
74139         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
74140         not xmalloc.
74141         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
74142         xmalloc.
74143         (gl_rbtree_oset_implementation): Update.
74144         * modules/array-oset (Depends-on): Remove xalloc.
74145         * modules/avltree-oset (Depends-on): Likewise.
74146         * modules/rbtree-oset (Depends-on): Likewise.
74147         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
74148         * tests/test-avltree_oset.c: Likewise.
74149         * tests/test-rbtree_oset.c: Likewise.
74150         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74151         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
74152         * modules/rbtree-oset-tests (Makefile.am): Likewise.
74153         * NEWS: Mention the change.
74155 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
74157         maint.mk: allow a project to override release-prep commands
74158         * top/maint.mk (alpha, beta, stable): Move release-preparatory
74159         commands into a new rule.
74160         (release-prep): New rule.
74161         (release-prep-hook): New overridable variable.
74163 2009-12-13  Bruno Haible  <bruno@clisp.org>
74165         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
74167 2009-12-13  Jim Meyering  <meyering@redhat.com>
74169         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
74170         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
74172 2009-12-12  Bruno Haible  <bruno@clisp.org>
74174         duplocale: Tweak.
74175         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
74177 2009-12-12  Karl Berry  <karl@gnu.org>
74179         * config/srclist.txt (strtoll.c): tab changes, no more sync.
74181 2009-12-12  Bruno Haible  <bruno@clisp.org>
74183         * m4/po.m4: Undo incorrect untabification.
74185 2009-12-12  Bruno Haible  <bruno@clisp.org>
74187         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
74188         * modules/c-strtod (Depends-on): Add locale.
74189         * modules/c-strtold (Depends-on): Likewise.
74191 2009-12-12  Bruno Haible  <bruno@clisp.org>
74193         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
74195 2009-12-11  Eric Blake  <ebb9@byu.net>
74197         setenv: relax requirement in light of POSIX ruling
74198         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
74199         not NULL.
74200         * tests/test-setenv.c (main): Relax test.
74201         * tests/test-unsetenv.c (main): Likewise.
74202         * doc/posix-functions/setenv.texi (setenv): Document this.
74203         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74205 2009-12-11  Bruno Haible  <bruno@clisp.org>
74207         New module 'fd-safer-flag'.
74208         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
74209         * lib/dup-safer.c (dup_safer_flag): Remove function.
74210         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
74211         * lib/fd-safer.c (fd_safer_flag): Remove function.
74212         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
74213         * modules/cloexec (configure.ac): Drop indicator macro.
74214         * modules/fd-safer-flag: New file.
74215         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
74216         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
74217         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
74219 2009-12-11  Bruno Haible  <bruno@clisp.org>
74221         Tests for module 'nl_langinfo'.
74222         * modules/nl_langinfo-tests: New file.
74223         * tests/test-nl_langinfo.sh: New file.
74224         * tests/test-nl_langinfo.c: New file.
74226         New module 'nl_langinfo'.
74227         * lib/nl_langinfo.c: New file.
74228         * m4/nl_langinfo.m4: New file.
74229         * modules/nl_langinfo: New file.
74230         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
74232 2009-12-11  Bruno Haible  <bruno@clisp.org>
74234         Tests for module 'langinfo'.
74235         * modules/langinfo-tests: New file.
74236         * tests/test-langinfo.c: New file.
74238         New module 'langinfo'.
74239         * lib/langinfo.in.h: New file.
74240         * m4/langinfo_h.m4: New file.
74241         * modules/langinfo: New file.
74242         * doc/posix-headers/langinfo.texi: Mention the new module.
74244 2009-12-11  Bruno Haible  <bruno@clisp.org>
74246         * lib/config.charset: Untabify.
74248 2009-12-11  Bruno Haible  <bruno@clisp.org>
74250         * modules/unistd-safer (configure.ac): Drop indicator macro.
74252 2009-12-11  Bruno Haible  <bruno@clisp.org>
74254         Move pipe2-safer code to its own file.
74255         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
74256         * lib/pipe-safer.c (pipe2_safer): Remove function.
74257         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
74258         (Makefile.am): Add it to lib_SOURCES.
74260 2009-12-10  Bruno Haible  <bruno@clisp.org>
74262         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
74264 2009-12-10  Bruno Haible  <bruno@clisp.org>
74266         Declare which arguments expect non-NULL values, for GCC and clang.
74267         * build-aux/arg-nonnull.h: New file.
74268         * modules/arg-nonnull: New file.
74269         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
74270         (inet_ntop, inet_pton): Use it.
74271         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
74272         (closedir, dirfd, opendir, scandir, alphasort): Use it.
74273         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
74274         (open, openat): Use it.
74275         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
74276         (fnmatch): Use it.
74277         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
74278         (getopt, getopt_long, getopt_long_only): Use it.
74279         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
74280         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
74281         Use it.
74282         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
74283         (iconv_open): Use it.
74284         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
74285         (strtoimax, strtoumax): Use it.
74286         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
74287         (duplocale): Use it.
74288         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
74289         (frexp, frexpl): Use it.
74290         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
74291         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
74292         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
74293         (tsearch, tfind, tdelete, twalk): Use it.
74294         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
74295         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
74296         sigpending): Use it.
74297         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
74298         (posix_spawn, posix_spawnp, posix_spawnattr_init,
74299         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
74300         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
74301         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
74302         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
74303         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
74304         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
74305         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
74306         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
74307         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
74308         Use it.
74309         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
74310         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
74311         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
74312         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
74313         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
74314         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
74315         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
74316         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
74317         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
74318         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
74319         strtoull, unsetenv): Use it.
74320         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
74321         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
74322         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
74323         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
74324         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
74325         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
74326         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
74327         (strcasecmp, strncasecmp): Use it.
74328         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
74329         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
74330         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
74331         rpl_setsockopt): Use it.
74332         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
74333         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
74334         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
74335         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
74336         (gettimeofday): Use it.
74337         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
74338         (times): Use it.
74339         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
74340         (uname): Use it.
74341         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
74342         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
74343         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
74344         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
74345         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
74346         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
74347         unlinkat, write): Use it.
74348         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
74349         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
74350         * lib/argv-iter.h: Include arg-nonnull.h.
74351         (_ATTRIBUTE_NONNULL_): Remove macro.
74352         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
74353         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
74354         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
74355         optimization.
74356         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
74357         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
74358         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
74359         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
74360         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
74361         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
74362         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
74363         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
74364         * modules/arpa_inet (Depends-on): Add arg-nonnull.
74365         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
74366         * modules/dirent (Depends-on): Add arg-nonnull.
74367         (Makefile.am): Insert arg-nonnull.h into dirent.h.
74368         * modules/fcntl-h (Depends-on): Add arg-nonnull.
74369         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
74370         * modules/fnmatch (Depends-on): Add arg-nonnull.
74371         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
74372         * modules/getopt-posix (Depends-on): Add arg-nonnull.
74373         (Makefile.am): Insert arg-nonnull.h into getopt.h.
74374         * modules/glob (Depends-on): Add arg-nonnull.
74375         (Makefile.am): Insert arg-nonnull.h into glob.h.
74376         * modules/iconv_open (Depends-on): Add arg-nonnull.
74377         (Makefile.am): Insert arg-nonnull.h into iconv.h.
74378         * modules/inttypes (Depends-on): Add arg-nonnull.
74379         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
74380         * modules/locale (Depends-on): Add arg-nonnull.
74381         (Makefile.am): Insert arg-nonnull.h into locale.h.
74382         * modules/math (Depends-on): Add arg-nonnull.
74383         (Makefile.am): Insert arg-nonnull.h into math.h.
74384         * modules/netdb (Depends-on): Add arg-nonnull.
74385         (Makefile.am): Insert arg-nonnull.h into netdb.h.
74386         * modules/search (Depends-on): Add arg-nonnull.
74387         (Makefile.am): Insert arg-nonnull.h into search.h.
74388         * modules/signal (Depends-on): Add arg-nonnull.
74389         (Makefile.am): Insert arg-nonnull.h into signal.h.
74390         * modules/spawn (Depends-on): Add arg-nonnull.
74391         (Makefile.am): Insert arg-nonnull.h into spawn.h.
74392         * modules/stdio (Depends-on): Add arg-nonnull.
74393         (Makefile.am): Insert arg-nonnull.h into stdio.h.
74394         * modules/stdlib (Depends-on): Add arg-nonnull.
74395         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
74396         * modules/string (Depends-on): Add arg-nonnull.
74397         (Makefile.am): Insert arg-nonnull.h into string.h.
74398         * modules/strings (Depends-on): Add arg-nonnull.
74399         (Makefile.am): Insert arg-nonnull.h into strings.h.
74400         * modules/sys_socket (Depends-on): Add arg-nonnull.
74401         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
74402         * modules/sys_stat (Depends-on): Add arg-nonnull.
74403         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
74404         * modules/sys_time (Depends-on): Add arg-nonnull.
74405         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
74406         * modules/sys_times (Depends-on): Add arg-nonnull.
74407         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
74408         * modules/sys_utsname (Depends-on): Add arg-nonnull.
74409         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
74410         * modules/time (Depends-on): Add arg-nonnull.
74411         (Makefile.am): Insert arg-nonnull.h into time.h.
74412         * modules/unistd (Depends-on): Add arg-nonnull.
74413         (Makefile.am): Insert arg-nonnull.h into unistd.h.
74414         * modules/wchar (Depends-on): Add arg-nonnull.
74415         (Makefile.am): Insert arg-nonnull.h into wchar.h.
74416         * modules/argv-iter (Depends-on): Add arg-nonnull.
74417         * tests/test-canonicalize.c (null_ptr): New function.
74418         (main): Use it.
74419         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
74420         (main): Use it.
74421         * tests/test-memmem.c (null_ptr): New function.
74422         (main): Use it.
74423         Reported by Jim Meyering.
74425 2009-12-10  Bruno Haible  <bruno@clisp.org>
74427         Use spaces for indentation, not tabs.
74428         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
74429         * m4/*.m4: Untabify.
74430         * build-aux/*.h: Untabify.
74431         * tests/**/*.[hc]: Untabify.
74432         * README: New section "Indent with spaces, not TABs", based on
74433         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
74434         * NEWS: Mention the change.
74436 2009-12-10  Bruno Haible  <bruno@clisp.org>
74438         pty test: Fix link error.
74439         * modules/pty-tests (Makefile.am): Add the default LDADD value to
74440         test_pty_LDADD.
74442 2009-12-07  Simon Josefsson  <simon@josefsson.org>
74444         * modules/pty: New file.
74445         * modules/pty-tests: New file.
74446         * m4/pty.m4: New file.
74447         * tests/test-pty.c: New file.
74448         * doc/glibc-headers/pty.texi: Modified.
74449         * doc/glibc-functions/forkpty.texi: Modified.
74450         * doc/glibc-functions/openpty.texi: Modified.
74452 2009-12-10  Bruno Haible  <bruno@clisp.org>
74454         Avoid syntax error in C++ mode.
74455         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
74457 2009-12-10  Bruno Haible  <bruno@clisp.org>
74459         Use sed with option -e.
74460         * gnulib-tool (func_version, func_emit_copyright_notice,
74461         func_emit_initmacro_end, func_import, func_create_testdir): Pass
74462         option -e to sed.
74463         * modules/link-warning (Makefile.am): Likewise.
74465 2009-12-10  Jim Meyering  <meyering@redhat.com>
74467         mgetgroups: do not write bytes beyond end of malloc'd buffer
74468         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
74469         username, we call getgroups with a one-element-shorter buffer,
74470         but still told it the length was original, max_n_groups.
74472 2009-12-09  Eric Blake  <ebb9@byu.net>
74474         cloexec: relax license
74475         * modules/cloexec (Maintainer): Add myself.
74476         (License): Use LGPL, not GPL.
74478         link-warning: optimize generation
74479         * modules/link-warning (Makefile.am): Reduce process usage.
74481 2009-12-09  Bruno Haible  <bruno@clisp.org>
74483         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
74484         workaround was added on 2009-11-17.
74486 2009-12-09  Jim Meyering  <meyering@redhat.com>
74487             Bruno Haible  <bruno@clisp.org>
74489         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
74490         * modules/link-warning (Makefile.am): Make the comment-removing sed
74491         command more robust in the face of bootstrap-prepended comment lines.
74493 2009-12-09  Bruno Haible  <bruno@clisp.org>
74495         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
74496         most one group.
74498 2009-12-09  Simon Josefsson  <simon@josefsson.org>
74499             Bruno Haible  <bruno@clisp.org>
74501         * build-aux/link-warning.h: Add copyright notice.
74502         * modules/link-warning (Makefile.am): Generate link-warning.h from
74503         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
74504         * NEWS: Mention change in link-warning module.
74505         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
74506         * modules/dirent (Makefile.am): Add dependency to dirent.h.
74507         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
74508         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
74509         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
74510         * modules/math (Makefile.am): Add dependency to math.h.
74511         * modules/search (Makefile.am): Add dependency to search.h.
74512         * modules/signal (Makefile.am): Add dependency to signal.h.
74513         * modules/spawn (Makefile.am): Add dependency to spawn.h.
74514         * modules/stdio (Makefile.am): Add dependency to stdio.h.
74515         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
74516         * modules/string (Makefile.am): Add dependency to string.h.
74517         * modules/strings (Makefile.am): Add dependency to strings.h.
74518         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
74519         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
74520         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
74521         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
74522         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
74523         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
74524         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
74525         * modules/unistd (Makefile.am): Add dependency to unistd.h.
74526         * modules/wchar (Makefile.am): Add dependency to wchar.h.
74528 2009-12-09  Bruno Haible  <bruno@clisp.org>
74530         fchdir: Optimize away rpl_fstat when possible.
74531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
74532         REPLACE_OPEN_DIRECTORY.
74533         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
74535 2009-12-09  Bruno Haible  <bruno@clisp.org>
74537         * lib/fchdir.c: Update comment.
74539 2009-12-09  Bruno Haible  <bruno@clisp.org>
74541         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
74543 2009-12-08  Eric Blake  <ebb9@byu.net>
74545         fchdir: avoid memory leak on re-registration.
74546         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
74548 2009-12-08  Jim Meyering  <meyering@redhat.com>
74550         init.sh: avoid Solaris 10 /bin/sh portability problem
74551         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
74552         sourced script:
74553           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
74554           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
74555           bar
74556         tests/init.sh relied on that, accepting a --set-path=DIR argument,
74557         and two tests used that idiom.
74558         * tests/init.sh: Update suggested usage comments.
74559         (path_prepend_): New function, to be used in place
74560         of the --src-path=DIR option.
74561         (setup_): Move PATH-prepending code into path_prepend_.
74562         * tests/test-pread.sh: Adapt to new usage.
74563         * tests/test-xalloc-die.sh: Likewise.
74565 2009-12-08  Simon Josefsson  <simon@josefsson.org>
74567         * doc/gnulib.texi (Glibc pty.h): Add.
74568         * doc/glibc-functions/forkpty.texi: Add.
74569         * doc/glibc-functions/openpty.texi: Add.
74570         Suggested by Bruno Haible.
74572 2009-12-08  Eric Blake  <ebb9@byu.net>
74574         fchdir: fix logic bugs
74575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
74576         * tests/test-fchdir.c (main): Enhance test.
74577         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
74578         is in use.
74580         dup2: fix logic bugs
74581         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
74582         REPLACE_DUP2 to decide when rpl_dup2 is needed.
74583         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
74584         exists.
74585         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
74587 2009-12-07  Eric Blake  <ebb9@byu.net>
74589         unlink: fix m4 detection
74590         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
74592         unistd-safer: add unit test
74593         * modules/unistd-safer-tests: New file.
74594         * tests/test-dup-safer.c: Likewise.
74595         * tests/test-cloexec.c (setmode): Avoid compiler warning.
74596         * tests/test-dup2.c (setmode): Likewise.
74597         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
74599         cloexec: preserve text vs. binary across dup_cloexec
74600         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
74601         mode.
74602         * modules/dup2-tests (Depends-on): Add binary-io.
74603         * modules/cloexec-tests (Depends-on): Likewise.
74604         * tests/test-dup2.c (setmode, is_mode): New helpers.
74605         (main): Add tests that translation mode is preserved.
74606         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
74607         Reported by Bruno Haible.
74609         mgetgroups: reduce duplicate listings
74610         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
74611         resulting array.
74612         * tests/test-chown.h (test_chown): Simplify client.
74613         * tests/test-lchown.h (test_lchown): Likewise.
74615 2009-12-06  Bruno Haible  <bruno@clisp.org>
74617         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
74618         value.
74620 2009-12-06  Bruno Haible  <bruno@clisp.org>
74622         * lib/progname.c: Include stdio.h, stdlib.h.
74623         (set_program_name): Reject a NULL argument.
74625 2009-12-05  Eric Blake  <ebb9@byu.net>
74627         pipe2-safer: new module
74628         * modules/pipe2-safer: New file.
74629         * lib/unistd-safer.h (pipe2_safer): New prototype.
74630         * lib/unistd--.h (pipe2): New wrapper.
74631         * lib/pipe-safer.c (pipe2_safer): New function.
74632         * modules/pipe (Depends-on): Add pipe2-safer.
74633         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
74635         stdlib-safer: preserve cloexec flag for mkostemp[s]
74636         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
74637         fd_safer_flag.
74639         unistd-safer: allow preservation of cloexec status via flag
74640         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
74641         prototypes.
74642         * lib/dup-safer.c (dup_safer_flag): New function.
74643         * lib/fd-safer.c (fd_safer_flag): Likewise.
74644         * modules/cloexec (configure.ac): Set witness.
74646         test-dup2: enhance test
74647         * modules/dup2-tests (Depends-on): Add cloexec.
74648         * tests/test-dup2.c (main): Enhance test.
74650         cloexec: add dup_cloexec
74651         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
74652         header and comments.
74653         * lib/cloexec.c (set_cloexec_flag): Add comments.
74654         (dup_cloexec): New function, with mingw implementation borrowed
74655         from...
74656         * lib/w32spawn.h (dup_noinherit): ...here.
74657         * modules/execute (Depends-on): Add cloexec.
74658         * modules/pipe (Depends-on): Likewise.
74659         * modules/cloexec (Depends-on): Add dup2.
74660         * modules/cloexec-tests (Files): New file.
74661         * tests/test-cloexec.c: Likewise.
74663         test-xalloc-die: fix test for mingw
74664         * modules/xalloc-die-tests (Files): Add tests/init.sh.
74665         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
74666         directory and .exe suffix off argv[0] output.
74668         test-fseeko: fix test for mingw
74669         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
74670         than undefining fseek, so test will pass on mingw.
74672 2009-12-05  Bruno Haible  <bruno@clisp.org>
74674         * lib/progname.h (set_program_name): Clarify specification.
74675         * lib/progname.c (set_program_name): Likewise.
74676         Reported by Jim Meyering.
74678 2009-12-05  Jim Meyering  <meyering@redhat.com>
74680         maint.mk: backslash-escape parens in default regexp
74681         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
74682         backslash-escape the literal parentheses.
74684         maint.mk: news-date-check: use grep -E
74685         * top/maint.mk (today): Define a Make variable, not a...
74686         (news-date-check): ...shell variable.
74687         (news-date-regexp): Use the Make variable.
74688         Use grep's -E option.  Change the failing diagnostic to mention
74689         the variable, $(news-date-regexp).
74691 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
74693         maintainer-makefile: allow customization of NEWS entry format
74694         * top/maint.mk (news-date-regexp): New overridable variable.
74695         (news-date-check): Use it.
74697 2009-12-04  Eric Blake  <ebb9@byu.net>
74699         mgetgroups: add xgetgroups, and avoid ENOSYS failures
74700         * lib/mgetgroups.h (xgetgroups): New prototype.
74701         * lib/mgetgroups.c (xgetgroups): New wrapper.
74702         (mgetgroups): Handle ENOSYS.
74703         * modules/mgetgroups (Depends-on): Add realloc.
74704         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
74706         mgetgroups: avoid argument promotion issues with -1
74707         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
74708         for invalid gid_t.
74709         * tests/test-chown.h (getegid, test_chown): Likewise.
74710         * tests/test-lchown.h (getegid, test_lchown): Likewise.
74712 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
74714         exclude: Fix header file problems.
74715         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
74717 2009-12-01  Jim Meyering  <meyering@redhat.com>
74719         fts: fts_open: do not let an empty string cause immediate failure
74720         This is required in support of GNU rm, for which the command
74721         "rm A '' B" must process and remove both A and B, in spite of
74722         the empty string argument.
74723         * lib/fts.c (fts_open): Do not let the presence of an empty string
74724         cause fts_open to fail immediately.  Most fts-using tools must be
74725         able to process all arguments, in order, and can be expected to
74726         diagnose such arguments themselves.
74728 2009-11-30  Eric Blake  <ebb9@byu.net>
74730         utimens: fix compilation error
74731         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
74732         Declare variable at right scope.
74734 2009-11-29  Jim Meyering  <meyering@redhat.com>
74736         bootstrap: handle perl-5.11's changed --version output
74737         * build-aux/bootstrap (get_version): Handle perl separately,
74738         since perl-5.11's --version output is different.
74740 2009-11-28  Jim Meyering  <meyering@redhat.com>
74742         userspec: depend on the inttostr module, too
74743         * modules/userspec (Depends-on): Add inttostr.
74745         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
74746         * lib/userspec.c (parse_with_separator): Do not accept a user ID
74747         number of MAXUID when it evaluates to (uid_t) -1.
74748         Likewise for group ID.  Reported by Matt McCutchen in
74749         <http://savannah.gnu.org/bugs/?28113>
74751         userspec: reformat to use spaces, not TABs
74752         * lib/userspec.c: Expand TABs to spaces.
74753         Add Emacs' "indent-tabs-mode: nil" hint.
74755 2009-11-27  Eric Blake  <ebb9@byu.net>
74757         getopt-gnu: flush out another BSD bug
74758         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
74759         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
74760         flush out BSD bug.
74761         * tests/test-getopt.h (test_getopt): End lists with NULL.
74762         * tests/test-getopt_long.h (test_getopt_long): Likewise.
74763         (test_getopt_long_posix): Enhance test.
74764         * modules/getopt-posix-tests (Depends-on): Add stdbool.
74765         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
74766         getopt-gnu.
74767         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74768         Likewise.
74770 2009-11-27  Simon Josefsson  <simon@josefsson.org>
74772         * modules/idpriv-droptemp-tests (Notice): Fix text.
74774 2009-11-27  Jim Meyering  <meyering@redhat.com>
74776         test-xalloc-die: avoid spurious failure due to libtool argv difference
74777         In a libtool-enabled project, this test would fail due to a difference
74778         in the emitted program name, e.g.,
74779         -test-xalloc-die: memory exhausted
74780         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
74781         Use program to avoid that.
74782         * modules/xalloc-die-tests (Depends-on): Add progname.
74783         * tests/test-xalloc-die.c: Include progname.h".
74784         (program_name): Remove decl.
74785         (main): Call set_program_name.
74786         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
74788 2009-11-26  Richard Jones  <rjones@redhat.com>
74790         w32sock: leave win32 error in place.
74791         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
74793 2009-11-26  Eric Blake  <ebb9@byu.net>
74795         init.sh: suggest to use skip_ and fail_ functions in comments
74796         * tests/init.sh: Add a sentence.
74798 2009-11-25  Bruno Haible  <bruno@clisp.org>
74800         init.sh: add documentation in comments
74801         * tests/init.sh: Add some developer and user documentation.
74803 2009-11-26  Jim Meyering  <meyering@redhat.com>
74805         init.sh: accommodate even those who specify bogus srcdir manually
74806         * tests/init.sh: Normally, srcdir is guaranteed by automake and
74807         configure-time tests to be sanitized, so that there is no need to
74808         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
74809         (with no double quotes) suffices.  However, since tests may be
74810         invoked manually, and since you may explicitly set srcdir to the
74811         name of a directory containing spaces, do quote its uses here.
74812         * tests/test-pread.sh: Likewise.
74813         Suggested by Bruno Haible.
74815         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
74816         * tests/test-pread.sh: Write no data into the pipe, because
74817         test-pread actually reads none.  This avoids a diagnostic,
74818         "bash: echo: write error: Broken pipe", that arises in the unusual
74819         event something is ignoring SIGPIPE, and might be interpreted
74820         as some sort of failure.  Reported by Bruno Haible.
74822 2009-11-25  Jim Meyering  <meyering@redhat.com>
74824         test-pread: cover failure with ESPIPE and EINVAL
74825         * tests/test-pread.c (main): Test for failure, too.
74826         * tests/test-pread.sh: Invoke with stdin on a pipe.
74827         Suggested by Eric Blake.
74829         pread: improvement and fix
74830         * modules/pread (Depends-on): Depend on lseek, for portability to
74831         e.g., mingw.  Suggested by Eric Blake.
74832         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
74834         unistd.in.h: correct declaration of pread
74835         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
74836         Reported by Richard W.M. Jones.
74838         test-pread.sh: distribute the test script
74839         * modules/pread-tests (Files): Include test-pread.sh.
74841         test-pread.sh: clean up
74842         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
74843         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
74844         That is unnecessary, since it's always ".".
74845         Suggestion from Eric Blake.
74847         test-pread.sh: make executable
74848         * tests/test-pread.sh: Set executable bit.
74849         Reported by Eric Blake.
74851         correct typo in test-pread.sh
74852         * tests/test-pread.sh: Add #! line.
74854         test pread
74855         * tests/test-pread.c: New file.
74856         * tests/test-pread.sh: Likewise.
74857         * modules/pread-tests: Likewise.
74859         pread: new module
74860         * modules/pread: New file.
74861         * lib/unistd.in.h (pread): Define/declare.
74862         * lib/pread.c (pread): New file.
74863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
74864         * modules/unistd (Makefile.am): Substitute witnesses.
74865         * doc/posix-functions/pread.texi (pread): Update.
74866         * MODULES.html.sh: Add pread.
74868 2009-11-25  Jim Meyering  <meyering@redhat.com>
74870         tests/init.sh: new file to be used via most *.sh tests
74871         * tests/init.sh: New file.
74873 2009-11-25  Eric Blake  <ebb9@byu.net>
74875         utimens: work around older Linux failure with symlinks
74876         * lib/utimens.c (lutimensat_works_really): New variable.
74877         (fdutimens, lutimens): Use it to manage kernels that support
74878         nanosecond times on files, but not on symlinks.
74879         Reported by Ondřej Vašík.
74881         utimes: fix configure grammar
74882         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
74884 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
74886         regex: Fix fastmap for multibyte character ranges.
74887         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
74888         characters when a multibyte character range is included.
74890 2009-11-22  Andy Wingo  <wingo@pobox.com>
74892         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
74893         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74895 2009-11-24  Bruno Haible  <bruno@clisp.org>
74897         doc: Most *_l functions exist in MacOS X 10.5.
74898         * doc/posix-functions/duplocale.texi: Update platforms list.
74899         * doc/posix-functions/freelocale.texi: Likewise.
74900         * doc/posix-functions/newlocale.texi: Likewise.
74901         * doc/posix-functions/uselocale.texi: Likewise.
74902         * doc/posix-functions/isalnum_l.texi: Likewise.
74903         * doc/posix-functions/isalpha_l.texi: Likewise.
74904         * doc/posix-functions/isblank_l.texi: Likewise.
74905         * doc/posix-functions/iscntrl_l.texi: Likewise.
74906         * doc/posix-functions/isdigit_l.texi: Likewise.
74907         * doc/posix-functions/isgraph_l.texi: Likewise.
74908         * doc/posix-functions/islower_l.texi: Likewise.
74909         * doc/posix-functions/isprint_l.texi: Likewise.
74910         * doc/posix-functions/ispunct_l.texi: Likewise.
74911         * doc/posix-functions/isspace_l.texi: Likewise.
74912         * doc/posix-functions/isupper_l.texi: Likewise.
74913         * doc/posix-functions/iswalnum_l.texi: Likewise.
74914         * doc/posix-functions/iswalpha_l.texi: Likewise.
74915         * doc/posix-functions/iswblank_l.texi: Likewise.
74916         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74917         * doc/posix-functions/iswctype_l.texi: Likewise.
74918         * doc/posix-functions/iswdigit_l.texi: Likewise.
74919         * doc/posix-functions/iswgraph_l.texi: Likewise.
74920         * doc/posix-functions/iswlower_l.texi: Likewise.
74921         * doc/posix-functions/iswprint_l.texi: Likewise.
74922         * doc/posix-functions/iswpunct_l.texi: Likewise.
74923         * doc/posix-functions/iswspace_l.texi: Likewise.
74924         * doc/posix-functions/iswupper_l.texi: Likewise.
74925         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74926         * doc/posix-functions/isxdigit_l.texi: Likewise.
74927         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74928         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74929         * doc/posix-functions/strcoll_l.texi: Likewise.
74930         * doc/posix-functions/strfmon_l.texi: Likewise.
74931         * doc/posix-functions/strftime_l.texi: Likewise.
74932         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74933         * doc/posix-functions/strxfrm_l.texi: Likewise.
74934         * doc/posix-functions/tolower_l.texi: Likewise.
74935         * doc/posix-functions/toupper_l.texi: Likewise.
74936         * doc/posix-functions/towctrans_l.texi: Likewise.
74937         * doc/posix-functions/towlower_l.texi: Likewise.
74938         * doc/posix-functions/towupper_l.texi: Likewise.
74939         * doc/posix-functions/wcscoll_l.texi: Likewise.
74940         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74941         * doc/posix-functions/wctrans_l.texi: Likewise.
74942         * doc/posix-functions/wctype_l.texi: Likewise.
74943         * doc/glibc-functions/strptime_l.texi: Likewise.
74944         * doc/glibc-functions/strtod_l.texi: Likewise.
74945         * doc/glibc-functions/strtof_l.texi: Likewise.
74946         * doc/glibc-functions/strtol_l.texi: Likewise.
74947         * doc/glibc-functions/strtold_l.texi: Likewise.
74948         * doc/glibc-functions/strtoll_l.texi: Likewise.
74949         * doc/glibc-functions/strtoul_l.texi: Likewise.
74950         * doc/glibc-functions/strtoull_l.texi: Likewise.
74951         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74952         * doc/glibc-functions/wcstod_l.texi: Likewise.
74953         * doc/glibc-functions/wcstof_l.texi: Likewise.
74954         * doc/glibc-functions/wcstol_l.texi: Likewise.
74955         * doc/glibc-functions/wcstold_l.texi: Likewise.
74956         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74957         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74958         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74960 2009-11-24  Bruno Haible  <bruno@clisp.org>
74962         duplocale: Fix logic bug.
74963         * lib/duplocale.c: Don't include <langinfo.h>.
74964         (_NL_LOCALE_NAME): Remove macro.
74965         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74966         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74968 2009-11-23  Jim Meyering  <meyering@redhat.com>
74970         test-update-copyright: don't hard-code /usr/bin/perl
74971         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74972         perl to print the current year.  Gilles Espinasse reported that
74973         the replaced use of perl was hard-coded as /usr/bin/perl.
74975 2009-11-23  Bruno Haible  <bruno@clisp.org>
74977         duplocale: Add support for glibc 2.3.x.
74978         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74980 2009-11-22  Bruno Haible  <bruno@clisp.org>
74982         vasnprintf: Tiny optimization.
74983         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74984         MacOS X.
74986 2009-11-22  Bruno Haible  <bruno@clisp.org>
74988         Tests for module 'duplocale'.
74989         * modules/duplocale-tests: New file.
74990         * tests/test-duplocale.c: New file.
74992         New module 'duplocale'.
74993         * m4/duplocale.m4: New file.
74994         * lib/locale.in.h (duplocale): New declaration.
74995         * lib/duplocale.c: New file.
74996         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74997         gl_LOCALE_H_DEFAULTS): New macros.
74998         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74999         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
75000         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
75001         REPLACE_DUPLOCALE.
75002         * modules/duplocale: New file.
75003         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
75005 2009-11-22  Bruno Haible  <bruno@clisp.org>
75007         * modules/locale-tests (configure.ac): Test for newlocale function.
75008         * tests/test-locale.c: When the system has extended locale functions,
75009         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
75011         locale: Make locale_t available when possible.
75012         * lib/locale.in.h: Include <xlocale.h> when it exists.
75013         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
75014         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
75015         * modules/locale (Depends-on): Add extensions.
75016         (Makefile.am): Also substitute HAVE_XLOCALE_H.
75017         * doc/posix-headers/locale.texi: Document the problem with locale_t.
75019 2009-11-22  Bruno Haible  <bruno@clisp.org>
75021         Add comments.
75022         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
75023         invocation.
75024         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
75025         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
75026         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
75028 2009-11-22  Bruno Haible  <bruno@clisp.org>
75030         error: account for the possibility of freopen (stdout).
75031         * lib/error.c: Include <unistd.h>.
75032         (flush_stdout): New function, extracted from error and error_at_line.
75033         Determine stdout's fd dynamically.
75034         (error, error_at_line): Invoke flush_stdout.
75035         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
75036         * modules/error (Depends-on): Add unistd.
75038 2009-11-22  Bruno Haible  <bruno@clisp.org>
75040         diffseq: Add comment.
75041         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
75043 2009-11-22  Jim Meyering  <meyering@redhat.com>
75045         c-stack: avoid defining an unused static function
75046         * lib/c-stack.c (find_stack_direction): Do not define this function
75047         when it will not be used.
75049         diffseq: avoid spurious gcc warnings
75050         * lib/diffseq.h (IF_LINT2): Define.
75051         (compareseq): Use it to initialize two members of "part".
75052         This avoids two used-uninitialized warnings.
75054 2009-11-21  Jim Meyering  <meyering@redhat.com>
75056         c-stack: avoid "ignoring return value of `write'" warning
75057         * lib/c-stack.c: Include "ignore-value.h".
75058         (die): Explicitly ignore each write return value.
75059         * modules/c-stack (Depends-on): Add ignore-value.
75061 2009-11-21  Bruno Haible  <bruno@clisp.org>
75063         diffseq: reduce scope of variable 'best'.
75064         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
75065         variable, earlier used for two different purposes.
75067 2009-11-21  Jim Meyering  <meyering@redhat.com>
75069         diffseq: remove useless assignment to "best"
75070         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
75071         assignment.  At that point "best" is already guaranteed to be zero.
75073 2009-11-20  Eric Blake  <ebb9@byu.net>
75075         build: mention ftp redirector in release announcements
75076         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
75077         values that used to come from cfg.mk; mention FTP redirect URL.
75078         * build-aux/announce-gen: Mention the mirror list.
75079         Suggested by Karl Berry.
75081         nanosleep: improve port to mingw
75082         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
75083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
75084         LIB_NANOSLEEP, but only when needed.
75085         * modules/select (Link): Document LIBSOCKET.
75086         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
75087         enough.
75089         nanosleep: work around cygwin bug
75090         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
75091         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
75092         bug.
75093         (getnow): Delete, not needed.
75094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
75095         LIB_CLOCK_GETTIME.
75096         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
75097         clock-time, gettime.
75098         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
75099         bug.
75100         * modules/nanosleep-tests: New test.
75101         * tests/test-nanosleep.c: New file.
75103         sleep: work around cygwin bug
75104         * lib/sleep.c (rpl_sleep): Work around the bug.
75105         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
75106         (gl_PREREQ_SLEEP): Delete unused macro.
75107         * modules/sleep (Depends-on): Add verify.
75108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
75109         * modules/unistd (Makefile.am): Substitute witness.
75110         * lib/unistd.in.h (sleep): Update prototype.
75111         * doc/posix-functions/sleep.texi (sleep): Document the bug.
75112         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
75113         * modules/sleep-tests (Depends-on): Check for alarm.
75115 2009-11-20  Jim Meyering  <meyering@redhat.com>
75117         maint.mk: improve sc_prohibit_magic_number_exit
75118         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
75119         so it does not match uses like System.exit(1).
75120         Add comments showing how to correct all offenders.
75122 2009-11-19  Eric Blake  <ebb9@byu.net>
75124         xalloc-die-tests: add missing library
75125         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
75127         test-xvasprintf: silence compiler warnings
75128         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
75129         empty string from gcc.
75131 2009-11-19  Jim Meyering  <meyering@redhat.com>
75133         xfreopen: new module, from coreutils
75134         * modules/xfreopen: New module.
75135         * lib/xfreopen.c: New file.
75136         * lib/xfreopen.h: New file.
75137         * MODULES.html.sh (File stream based Input/Output"): Add it.
75139 2009-11-19  Eric Blake  <ebb9@byu.net>
75141         manywarnings: depend on warnings
75142         * modules/manywarnings (Depends-on): Add warnings.
75144         build: avoid compiler warnings
75145         * lib/select.c (rpl_select): Delete unused variable.
75146         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
75148 2009-11-18  Eric Blake  <ebb9@byu.net>
75150         tests: avoid false negative with --with-packager
75151         * tests/test-version-etc.sh: Discard packager information.
75152         * tests/test-argp-version-etc-1.sh: Likewise.
75153         Reported by Mike Frysinger.
75155         utimens: fix regression on Solaris
75156         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
75157         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
75158         can only change fd timestamps via futimesat.  Instead, use an
75159         additional witness macro to avoid BSD bug.
75160         Reported by Jim Meyering.
75162 2009-11-17  Eric Blake  <ebb9@byu.net>
75164         usleep: use it to simplify tests
75165         * modules/stat-time-tests (Depends-on): Add usleep.
75166         (configure.ac): Drop usleep check.
75167         * modules/chown-tests (Depends-on, configure.ac): Likewise.
75168         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
75169         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
75170         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
75171         * modules/openat-tests (Depends-on, configure.ac): Likewise.
75172         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
75173         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
75174         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
75175         Likewise.
75176         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
75177         * tests/test-lchown.h (nap): Likewise.
75178         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
75179         * tests/test-stat-time.c (nap): Likewise.
75180         * tests/test-utimens-common.h (nap): Update comments.
75182         usleep: new module
75183         * modules/usleep: New file.
75184         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
75185         * lib/usleep.c (usleep): Likewise.
75186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75187         * modules/unistd (Makefile.am): Substitute witnesses.
75188         * lib/unistd.in.h (usleep): Add declaration.
75189         * doc/pastposix-functions/usleep.texi (usleep): Document this.
75190         * MODULES.html.sh (Date and time): Likewise.
75191         * modules/usleep-tests (Depends-on): New test.
75192         * tests/test-usleep.c: New file.
75194         chown: work around OpenBSD bug
75195         * lib/chown.c (rpl_chown): Work around the bug.
75196         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
75197         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
75198         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
75199         * modules/chown (Depends-on): Add stdbool.
75200         * modules/lchown (Depends-on): Likewise.
75201         * doc/posix-functions/chown.texi (chown): Document the bug.
75202         * doc/posix-functions/lchown.texi (lchown): Likewise.
75203         * tests/test-lchown.h (test_chown): Relax test.
75205         mkstemp: avoid conflict with C++ keyword template
75206         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
75207         * lib/mkostemp.c (mkostemp): Likewise.
75208         * lib/mkostemps.c (mkostemps): Likewise.
75209         * lib/mkstemp.c (mkstemp): Likewise.
75210         * lib/mkstemps.c (mkstemps): Likewise.
75212         xalloc-die-tests: optimize
75213         * tests/test-xalloc-die.sh: Reduce number of processes.
75215 2009-11-17  Simon Josefsson  <simon@josefsson.org>
75217         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
75218         patch from ludo@gnu.org (Ludovic Courtès).
75220 2009-11-17  Jim Meyering  <meyering@redhat.com>
75222         version-etc: use proper license string
75223         * modules/version-etc (License): Use LGPL, not LGPLv3+.
75224         * modules/version-etc-fsf: Likewise.
75226 2009-11-17  Simon Josefsson  <simon@josefsson.org>
75228         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
75229         printed to stdout.  Deal with EOL differences.
75231 2009-11-17  Eric Blake  <ebb9@byu.net>
75233         unsetenv: work around Solaris bug
75234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
75235         * lib/unsetenv.c (rpl_unsetenv): Work around it.
75236         Reported by Jim Meyering.
75238         vasnprintf: avoid compiler warnings
75239         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
75240         variables.
75241         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
75243 2009-11-17  Simon Josefsson  <simon@josefsson.org>
75245         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
75246         settings since xalloc-die is no longer the self test,
75247         xalloc-die.sh is.
75249 2009-11-17  Jim Meyering  <meyering@redhat.com>
75251         test-xalloc-die.sh: make the code agree with the commit log
75252         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
75253         at the end, just in case you happen to have a test-xalloc-die
75254         program in some other PATH directory.
75256         test-xalloc-die.sh: fix a portability bug
75257         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
75258         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
75259         Otherwise, argv[0] (as often seen in diagnostics) would be too
75260         system-dependent, sometimes with, and sometimes without the leading "./".
75262         version-etc-fsf: relax license to LGPLv3+
75263         * modules/version-etc-fsf (License): Relax license.
75265 2009-11-16  Eric Blake  <ebb9@byu.net>
75267         xalloc-die-tests: avoid printing null pointer
75268         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
75269         shell script.
75270         * tests/test-xalloc-die.c (program_name): Declare.
75271         * tests/test-xalloc-die.sh (tmpfiles): New file.
75273         setenv, unsetenv: work around various bugs
75274         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
75275         (setenv) [HAVE_SETENV]: Work around bugs.
75276         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
75277         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
75278         for bugs.
75279         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
75280         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
75281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
75282         * modules/stdlib (Makefile.am): Update substitutions.
75283         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
75284         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
75285         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
75286         * modules/setenv-tests: New test.
75287         * modules/unsetenv-tests: Likewise.
75288         * tests/test-setenv.c: New file.
75289         * tests/test-unsetenv.c: Likewise.
75291 2009-11-16  Jim Meyering  <meyering@redhat.com>
75293         version-etc: relax license to LGPLv3+
75294         * modules/version-etc (License): Relax license.
75296         better AC_REQUIRE expanded-before-required-warning avoidance
75297         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
75298         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
75299         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
75300         which is no longer needed.
75302 2009-11-16  Eric Blake  <ebb9@byu.net>
75304         test-freading: clean up temporary file
75305         * tests/test-freading.c (main): Remove file on success, and use
75306         ASSERT more liberally.
75307         Reported by Jim Meyering.
75309 2009-11-16  Jim Meyering  <meyering@redhat.com>
75311         avoid new AC_REQUIRE expanded-before-required warnings
75312         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
75313         merely using it.
75314         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
75315         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
75317 2009-11-15  Simon Josefsson  <simon@josefsson.org>
75319         * tests/test-xalloc-die.c: New file.
75320         * modules/xalloc-die-tests: New file.
75321         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
75322         XFAIL_TESTS so it can be appended by modules.
75324 2009-11-15  Simon Josefsson  <simon@josefsson.org>
75326         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
75327         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
75329 2009-11-14  Eric Blake  <ebb9@byu.net>
75331         fnmatch: avoid compiler warning
75332         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
75333         to silence compiler warning about mismatch signedness in ?:.
75334         Reported by Robert Millan.
75336         intprops: add double-inclusion guard
75337         * lib/intprops.h: Allow idempotent includes.
75338         Suggested by Bruce Korb.
75340         openat: detect Solaris fchownat bug
75341         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
75342         penalizing glibc chownat when only lchownat is broken.
75343         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
75344         trailing slash bugs.
75345         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
75346         * modules/openat-tests (Files): Include more files.
75347         (Depends-on): Add mgetgroups, sleep, stat-time.
75348         (configure.ac): Add additional checks.
75349         (Makefile.am): Build new test.
75350         * tests/test-fchownat.c: New file.
75352         lchown: detect Solaris and FreeBSD bug
75353         * lib/lchown.c (rpl_lchown): Work around bug.
75354         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
75355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75356         * modules/unistd (Makefile.am): Populate it.
75357         * lib/unistd.in.h (lchown): Update declaration.
75358         * doc/posix-functions/lchown.texi (lchown): Document the bug.
75359         * modules/lchown-tests: New file.
75360         * tests/test-lchown.h (test_lchown): Likewise.
75361         * tests/test-lchown.c (main): Likewise.
75363         chown: detect Solaris and FreeBSD bug
75364         * lib/chown.c (rpl_chown): Work around bug.
75365         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
75366         (gl_PREREQ_CHOWN): Delete.
75367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75368         * modules/unistd (Makefile.am): Populate it.
75369         * lib/unistd.in.h (chown): Update declaration.
75370         * lib/lchown.c (chown): Update client.
75371         * modules/lchown (Depends-on): Add lstat.
75372         * doc/posix-functions/chown.texi (chown): Document the bug.
75373         * doc/posix-functions/getgroups.texi (getgroups): Document
75374         getgroups pitfall.
75375         * modules/chown-tests: New file.
75376         * tests/test-chown.h (test_chown): Likewise.
75377         * tests/test-chown.c (main): Likewise.
75379 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
75381         gnulib-tool: correctly detect absence of m4 directories
75382         * gnulib-tool: Avoid extra newline on data passed to wc -l.
75384 2009-11-14  Jim Meyering  <meyering@redhat.com>
75386         maint.mk: Prohibit inclusion of "xalloc.h" without use.
75387         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
75389 2009-11-14  John W. Eaton  <jwe@gnu.org>
75391         strftime.h: wrap function declaration in extern "C" block
75392         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
75394 2009-11-13  Eric Blake  <ebb9@byu.net>
75396         getgroups: avoid compiler warning
75397         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
75399         getgroups: work around FreeBSD bug
75400         * lib/getgroups.c (rpl_getgroups): Work around the bug.
75401         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
75402         * doc/posix-functions/getgroups.texi (getgroups): Document it.
75403         * tests/test-getgroups.c (main): Fix buffer overrun.
75405         getgroups: avoid compilation failure
75406         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
75407         * modules/getgroups (Depends-on): Add stdint.
75409 2009-11-13  Jim Meyering  <meyering@redhat.com>
75411         test-getgroups: avoid compilation failure
75412         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
75414 2009-11-13  Eric Blake  <ebb9@byu.net>
75416         mgetgroups: new module, taken from coreutils
75417         * modules/mgetgroups: New file.
75418         * lib/mgetgroups.h: Likewise.
75419         * lib/mgetgroups.c (mgetgroups): Likewise.
75420         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
75421         * MODULES.html.sh (Users and groups): Mention it.
75423         getgroups: don't expose GETGROUPS_T to user
75424         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
75425         an element at a time if GETGROUPS_T is wrong size.
75426         * lib/getugroups.h (getugroups): Change signature.
75427         * lib/unistd.in.h (getgroups): Likewise.
75428         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
75429         signature needs fixing.
75430         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
75431         AC_TYPE_GETGROUPS.
75432         * modules/group-member (Depends-on): Add getgroups.
75433         * lib/group-member.c (group_info, get_group_info): Use gid_t.
75434         (group_member): Rely on getgroups replacement.
75435         * lib/getugroups.c (getugroups): Use gid_t.
75436         * tests/test-getgroups.c (main): Likewise.
75437         * NEWS: Mention the signature change.
75438         * doc/posix-functions/getgroups.texi (getgroups): Mention the
75439         problem with signature.
75440         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
75441         GETGROUPS_T is still useful for setgroups.
75443         getgroups, getugroups: provide stubs for mingw
75444         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
75445         * lib/getugroups.c (getugroups): Likewise.
75446         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
75447         function.  Modernize replacement scheme.
75448         (gl_PREREQ_GETGROUPS): Delete.
75449         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
75450         * modules/getgroups (configure.ac): Declare witness.
75451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
75452         * modules/unistd (Depends-on): Substitute witness.
75453         * lib/unistd.in.h (getgroups): Declare replacement.
75455         getgroups: avoid calling exit
75456         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
75457         drop xalloc.
75458         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
75459         dependencies.
75460         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
75461         exiting, in the rare case of malloc failure.
75463         getgroups: fix logic error
75464         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
75465         has more than 20 groups.
75466         * modules/getgroups-tests: New test.
75467         * tests/test-getgroups.c: New file.
75469 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75471         * tests/test-base64.c: Improve.
75473 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75475         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
75476         Blake <ebb9@byu.net>.
75478 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75480         * tests/test-xvasprintf.c: Add %s%s related checks.
75482 2009-11-12  Eric Blake  <ebb9@byu.net>
75484         version-etc: match standards.texi style
75485         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
75486         and use <> only for URLs.
75488 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
75490         fts: do not fail on a submount during traversal
75491         * lib/fts.c (fts_build): Read the stat info again after opening
75492         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
75493         Original report at http://bugzilla.redhat.com/501848.
75495 2009-11-12  Jim Meyering  <meyering@redhat.com>
75497         bootstrap: sync from coreutils
75498         * build-aux/bootstrap (bootstrap_epilogue): New function.
75499         Use git_modules_config in one more place.  This make bootstrap's
75500         --gnulib-srcdir option more useful for testing.
75502         bootstrap: generalize autoheader check
75503         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
75504         AC_CONFIG_HEADERS.
75506 2009-11-11  Eric Blake  <ebb9@byu.net>
75508         mkfifoat: use new modules for Solaris and BSD bugs
75509         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
75510         * lib/mkfifoat.c (mknodat): Split...
75511         * lib/mknodat.c (mknodat): ...into new file.
75512         * modules/mkfifoat (Files): Ship new file.
75513         (Depends-on): Add mkfifo, mknod.
75514         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
75515         (Depends-on): Add symlink.
75516         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
75517         redundant with test_mkfifo.h.
75518         (do_mkfifoat, do_mknodat): New helpers.
75520         mknod: new module
75521         * modules/mknod: New file.
75522         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
75523         * lib/mknod.c (mknod): Likewise.
75524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75525         defaults.
75526         * modules/sys_stat (Makefile.am): Substitute them.
75527         * lib/sys_stat.in.h (mknod): Declare replacement.
75528         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75529         Document it.
75530         * doc/posix-functions/mknod.texi (mknod): Likewise.
75531         * modules/mknod-tests: New test.
75532         * tests/test-mknod.c: Likewise.
75534         mkfifo: new module
75535         * modules/mkfifo: New file.
75536         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
75537         * lib/mkfifo.c (mkfifo): Likewise.
75538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75539         defaults.
75540         * modules/sys_stat (Makefile.am): Substitute them.
75541         * lib/sys_stat.in.h (mkfifo): Declare replacement.
75542         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75543         Document it.
75544         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
75545         * modules/mkfifo-tests: New test.
75546         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
75547         from test-mkfifoat.c.
75548         * tests/test-mkfifo.c: New file.
75550         readlink: detect FreeBSD bug
75551         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
75552         slash on symlink.
75553         * doc/posix-functions/readlink.texi (readlink): Document the bug.
75554         * tests/test-readlink.h (test_readlink): Enhance test.
75556         symlink: detect FreeBSD bug
75557         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
75558         slash on symlink.
75559         * doc/posix-functions/symlink.texi (symlink): Document the bug.
75560         * tests/test-symlink.h (test_symlink): Enhance test.
75562 2009-11-10  Eric Blake  <ebb9@byu.net>
75564         link: detect FreeBSD bug
75565         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
75566         symlink.
75567         * doc/posix-functions/link.texi (link): Document the bug.
75568         * tests/test-link.h (test_link): Enhance test.
75569         * tests/test-linkat.c (main): Update caller.
75571         unlink, remove: detect FreeBSD bug
75572         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
75573         slash on symlink.
75574         * doc/posix-functions/unlink.texi (unlink): Document the bug.
75575         * doc/posix-functions/remove.texi (remove): Likewise.
75576         * tests/test-unlink.h (test_unlink): Enhance test.
75577         * tests/test-remove.c (main): Likewise.
75579 2009-11-09  Eric Blake  <ebb9@byu.net>
75581         rename: detect FreeBSD bug
75582         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
75583         slash on symlink.
75584         * modules/renameat-tests (Depends-on): Add filenamecat.
75585         * tests/test-rename.h (test_rename): Allow one more errno.
75586         * tests/test-renameat.c (main): Likewise.
75587         * doc/posix-functions/rename.texi (rename): Document the bug.
75589         open: detect FreeBSD bug
75590         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
75591         symlink.
75592         * doc/posix-functions/open.texi (open): Document the bug.
75593         * doc/posix-functions/utimes.texi (utimes): Likewise.
75594         * tests/test-open.h (test_open): Add parameters, and test symlink
75595         handling.
75596         * tests/test-open.c (main): Adjust caller.
75597         * tests/test-fcntl-safer.c (main): Likewise.
75598         * modules/open-tests (Depends-on): Add stdbool, symlink.
75599         * modules/fcntl-safer-tests (Depends-on): Likewise.
75600         * tests/test-openat.c (main): Add test-open tests.
75602         stat: detect FreeBSD bug
75603         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
75604         symlink.
75605         * doc/posix-functions/stat.texi (stat): Document the bug.
75606         * tests/test-stat.h (test_stat_func): Add argument.
75607         * tests/test-stat.c (main): Adjust caller.
75608         * tests/test-fstatat.c (main): Likewise.
75609         * modules/stat-tests (Depends-on): Add stdbool, symlink.
75610         Reported by Jim Meyering.
75612 2009-11-09  James Youngman  <jay@gnu.org>
75614         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
75615         * lib/strftime.c: Correct placement of #include "ignore-value.h".
75617 2009-11-08  Jim Meyering  <meyering@redhat.com>
75619         utimens: remove invalid futimesat call
75620         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
75621         It used the file descriptor of the target file as the DIR_FD
75622         parameter and NULL as the file name.  That caused failure with
75623         errno == EFAULT on FreeBSD-8.0-rc2
75625 2009-11-07  Eric Blake  <ebb9@byu.net>
75627         fflush, freadseek: use fseeko, not fseek
75628         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
75629         (clear_ungetc_buffer): Avoid potential problems on large files.
75630         * lib/freadseek.c (freadseek): Likewise.
75631         * modules/freadseek (Depends-on): Add fseeko.
75632         * modules/fseek (configure.ac): Set a witness.
75633         * tests/test-fflush.c (main): Use fseeko.
75634         * tests/test-fpurge.c (fseek): Disable link warning.
75635         * tests/test-freadable.c (fseek): Likewise.
75636         * tests/test-freading.c (fseek): Likewise.
75637         * tests/test-fseeko.c (fseek): Likewise.
75638         * tests/test-ftell.c (fseek): Likewise.
75639         * tests/test-ftello.c (fseek): Likewise.
75640         * tests/test-fwritable.c (fseek): Likewise.
75641         * tests/test-fwriting.c (fseek): Likewise.
75643 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75645         * modules/memchr (Depends-on): Drop getpagesize dependency.
75647 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75649         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
75650         Reported by Ludovic Courtès.
75651         * build-aux/pmccabe2html: Improve example usage.
75652         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
75654 2009-11-06  Jim Meyering  <meyering@redhat.com>
75656         do-release-commit-and-tag: New module.
75657         Automate the release-commit and tag process.
75658         * build-aux/do-release-commit-and-tag: New script, from coreutils.
75659         * modules/do-release-commit-and-tag: New file.
75660         * MODULES.html.sh (Support for maintaining and releasing): Add it.
75662 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75664         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
75665         because test-select.c uses inet_pton.
75667 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75669         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
75670         GETADDRINFO_LIB.  Bump serial number.
75671         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
75672         Suggested by Eric Blake <ebb9@byu.net>.
75674 2009-11-05  Eric Blake  <ebb9@byu.net>
75676         strtod: detect darwin bug
75677         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
75678         Reported by Leo Davis.
75680         freopen-safer: new module
75681         * modules/freopen-safer: New module.
75682         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
75683         * lib/freopen-safer.c (freopen_safer): New file.
75684         * lib/stdio-safer.h (freopen_safer): New declaration.
75685         * lib/stdio--.h (freopen): New override.
75686         * MODULES.html.sh (File stream based Input/Output): Mention it.
75687         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
75688         freopen-safer module.
75689         * doc/posix-functions/stderr.texi (stderr): Likewise.
75690         * doc/posix-functions/stdin.texi (stdin): Likewise.
75691         * doc/posix-functions/stdout.texi (stdout): Likewise.
75692         * modules/freopen-safer-tests: New test.
75693         * tests/test-reopen-safer.c: New file.
75695 2009-11-05  Jim Meyering  <meyering@redhat.com>
75697         maint.mk: Prohibit inclusion of "close-stream.h" without use.
75698         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
75700 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75702         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
75704 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75706         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
75708 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75710         Fix link error.
75711         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75712         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75716         * tests/test-func.c: Also test value of __func__.
75718 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75720         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
75721         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
75723 2009-11-05  Bruno Haible  <bruno@clisp.org>
75725         Fix link error.
75726         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75727         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75728         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
75730 2009-11-05  Bruno Haible  <bruno@clisp.org>
75732         Tests for module 'inet_pton'.
75733         * modules/inet_pton-tests: New file.
75734         * tests/test-inet_pton.c: New file.
75736 2009-11-05  Bruno Haible  <bruno@clisp.org>
75738         Tests for module 'inet_ntop'.
75739         * modules/inet_ntop-tests: New file.
75740         * tests/test-inet_ntop.c: New file.
75742 2009-11-04  Eric Blake  <ebb9@byu.net>
75744         stdlib-safer: wrap all mkstemp variants
75745         * modules/mkostemp (configure.ac): Set witness.
75746         * modules/mkostemps (configure.ac): Likewise.
75747         * modules/mkstemps (configure.ac): Likewise.
75748         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
75749         (mkstemps_safer): Wrap more functions.
75750         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
75751         wrapping.
75752         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
75753         (mkstemps_safer): Implement the wrappers.
75755         mkstemps, mkostemps: new modules
75756         * modules/mkostemps: New module.
75757         * modules/mkstemps: Likewise.
75758         * lib/mkostemps.c (mkostemps): New file.
75759         * lib/mkstemps.c (mkstemps): Likewise.
75760         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
75761         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
75762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
75763         * modules/stdlib (Makefile.am): Substitute them.
75764         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
75765         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
75766         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
75767         * doc/gnulib.texi (Glibc stdlib.h): Include them.
75768         * MODULES.html.sh (File system functions): Mention them.
75770         tempname: resync from glibc
75771         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
75772         same values for __GT_FILE as glibc.  Abort even when assertions
75773         are disabled.
75774         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
75775         match its value otherwise.  Allow idempotent inclusion.
75776         * lib/mkdtemp.c (mkdtemp): Adjust caller.
75777         * lib/mkostemp.c (mkostemp): Likewise.
75778         * lib/mkstemp.c (mkstemp): Likewise.
75779         * lib/tmpfile.c (tmpfile): Likewise.
75780         * NEWS: Document this.
75782         utimens: fix use of futimens on older Linux
75783         * lib/utimens.c (fdutimens): Use updated, rather than original,
75784         timespec to avoid bug in older Linux kernel.
75785         Reported by Simon Josefsson.
75787 2009-11-04  Bruno Haible  <bruno@clisp.org>
75789         Make num_processors more flexible and consistent.
75790         * lib/nproc.h (enum nproc_query): New type.
75791         (num_processors): Add a 'query' argument.
75792         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
75793         (num_processors): Add a 'query' argument. Test the value of the
75794         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
75795         mingw, count the number of CPUs available for the current process.
75796         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
75797         Check for sched_getaffinity and sched_getaffinity_np.
75798         * modules/nproc (Depends-on): Add c-ctype, extensions.
75799         * NEWS: Mention the change.
75801 2009-11-03  Bruno Haible  <bruno@clisp.org>
75803         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
75805 2009-11-03  Jim Meyering  <meyering@redhat.com>
75807         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
75808         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
75809         if it is defined.
75811 2009-11-02  Eric Blake  <ebb9@byu.net>
75813         mktime, timegm: share common declaration
75814         * lib/mktime-internal.h: New file.
75815         * lib/mktime.c: Use it rather than open-coding a declaration.
75816         * lib/timegm.c: Likewise.
75817         * modules/mktime (Files): Ship it.
75818         * modules/timegm (Files): Likewise.
75819         Suggested by Bruno Haible.
75821         test-update-copyright: update test to match script changes
75822         * tests/test-update-copyright.sh: Avoid hard-coding perl
75823         location.  Don't update *.bak created by earlier runs.
75825 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75826             Simon Josefsson  <simon@josefsson.org>
75827             Bruno Haible  <bruno@clisp.org>
75829         Fix link error on Solaris 8.
75830         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
75831         also in libnsl. Define also INET_PTON_LIB.
75832         * modules/inet_pton (Link): New section.
75834 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75835             Bruno Haible  <bruno@clisp.org>
75837         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
75838         * modules/inet_ntop (Link): New section.
75839         Reported by Boyan Kasarov <bkasarov@gmail.com>.
75841 2009-11-02  Eric Blake  <ebb9@byu.net>
75843         maint: avoid compiler warnings in m4 macros
75844         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
75845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
75847 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75849         * m4/pmccabe2html.m4: Remove file.
75850         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
75851         function.  Change maintainer.
75852         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
75853         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
75854         Courtès).
75856 2009-10-31  Eric Blake  <ebb9@byu.net>
75858         fseeko: fix m4 regression
75859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
75860         regression from 2009-10-27.
75861         Reported by Ralf Wildenhues.
75863 2009-10-31  Jim Meyering  <meyering@redhat.com>
75865         inttostr: aesthetics and improved (compile-time) safety
75866         Define inttype_is_signed rather than inttype_is_unsigned,
75867         since the sole use is via "#if inttype_is_signed".
75868         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
75869         inttype_is_unsigned.
75870         * lib/offtostr.c (inttype_is_signed): Likewise.
75871         * lib/uinttostr.c (inttype_is_signed): Likewise.
75872         * lib/umaxtostr.c (inttype_is_signed): Likewise.
75873         * lib/inttostr.c (inttostr): Use verify to cross-check the
75874         inttype_is_signed value and the signedness of the actual type.
75875         * modules/inttostr (Depends-on): Add verify.
75877 2009-10-30  Eric Blake  <ebb9@byu.net>
75879         build: avoid compiler warnings
75880         * lib/fchmodat.c (lchmod): Mark unused variables.
75881         * lib/getopt.c (_getopt_initialize): Likewise.
75882         * lib/mktime.c (__mktime_internal): Provide prototype.
75883         * lib/inttostr.c (inttostr): Avoid compiler warning even with
75884         older gcc that do not understand #pragma GCC diagnostic.
75885         * lib/uinttostr.c (inttype_is_unsigned): Define.
75886         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
75888 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
75890         stat: fix compilation on AIX
75891         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
75892         only see struct stat64.
75894 2009-10-30  Eric Blake  <ebb9@byu.net>
75896         exclude: make more robust
75897         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75898         rather than masking a coding bug.
75899         Suggested by Bruno Haible.
75901 2009-10-30  Jim Meyering  <meyering@redhat.com>
75903         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75904         Rather than putting #!/usr/bin/perl on the first line,
75905         start with a variant of what's recommended by "man perlrun" that
75906         invokes the first "perl" program from your shell's search path.
75907         * build-aux/gitlog-to-changelog: Replace #!... as above.
75908         Add a "Local Variables" perl mode setting.
75909         Prompted by a patch from Ludovic Courtès.
75910         Improved by Eric Blake.
75911         * build-aux/useless-if-before-free: Likewise.
75912         * build-aux/announce-gen: Likewise.
75913         * build-aux/update-copyright: Likewise.
75915 2009-10-29  Eric Blake  <ebb9@byu.net>
75917         filenamecat-lgpl: adjust clients
75918         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75919         filenamecat.
75920         * modules/renameat (Depends-on): Likewise.
75922         filenamecat: split into filenamecat-lgpl
75923         * modules/filenamecat-lgpl: New module.
75924         * modules/filenamecat (Files): Move library-safe files into
75925         filenamecat-lgpl.
75926         (Depends-on): Add filenamecat-lgpl.
75927         (configure.ac): Declare witness.
75928         * lib/filenamecat.h (file_name_concat): Only declare when using
75929         GPL module.
75930         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75931         Move...
75932         * lib/filenamecat-lgpl.c: ...into new file.
75933         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75934         (gl_FILE_NAME_CONCAT): Use it.
75935         * MODULES.html.sh (File system functions): Mention new module.
75937         argp: avoid memory leak
75938         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75939         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75940         base_name, since the latter malloc()s and can call exit().
75941         Leak introduced 2006-07-03.
75943         dirname-lgpl: adjust clients that don't need full dirname
75944         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75945         * modules/filenamecat (Depends-on): Likewise.
75946         * modules/linkat (Depends-on): Likewise.
75947         * modules/mkancesdirs (Depends-on): Likewise.
75948         * modules/mkdir (Depends-on): Likewise.
75949         * modules/openat (Depends-on): Likewise.
75950         * modules/savewd (Depends-on): Likewise.
75951         * modules/rename (Depends-on): Likewise.
75952         (License): Relax license.
75953         * modules/mkdir-tests (Depends-on): Drop progname.
75954         (Makefile.am): Delete unneeded LDADD.
75955         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75957         dirname: split into dirname-lgpl
75958         * modules/dirname-lgpl: New module.
75959         * modules/dirname (Files): Move library-safe files into
75960         dirname-lgpl.
75961         (Depends-on): Add dirname-lgpl.
75962         (configure.ac): Declare witness.
75963         * modules/double-slash-root (License): Relax license.
75964         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75965         module.
75966         * lib/dirname.c (dir_len, mdir_name): Move...
75967         * lib/dirname-lgpl.c: ...into new file.
75968         * lib/basename.c (last_component, base_len): Move...
75969         * lib/basename-lgpl.c: ...into new file.
75970         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75971         (gl_DIRNAME): Use it.
75972         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75973         Mention new module.
75974         * modules/dirname-tests (Depends-on): Add progname.
75975         * tests/test-dirname.c (program_name): Delete.
75977         mkdir: make safe for libraries
75978         * modules/mkdir (Depends-on): Drop xalloc.
75979         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75980         exit.
75982         tests: avoid some compiler warnings
75983         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75984         literals.
75985         * tests/test-memchr.c (main): Avoid type mismatch.
75986         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75987         * tests/test-base64.c (main): Likewise.
75988         * tests/test-getdelim.c (main): Likewise.
75989         * tests/test-gethostname.c (main): Likewise.
75990         * tests/test-getline.c (main): Likewise.
75991         * tests/test-netinet_in.c (main): Likewise.
75992         * tests/test-select.c (open_server_socket, main): Likewise.
75993         * tests/test-select-stdin.c (main): Likewise.
75994         * tests/test-sockets.c (main): Likewise.
75995         * tests/test-strsignal.c (main): Likewise.
75996         * tests/test-sys_select.c (main): Likewise.
75997         * tests/test-sys_socket.c (main): Likewise.
75998         * tests/test-u64.c (main): Likewise.
75999         * tests/test-xfprintf-posix.c (main): Likewise.
76000         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
76002         sockets: avoid compiler warning
76003         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
76005         maint: detect usage(1) and other suspicious exits
76006         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
76008 2009-10-29  Jim Meyering  <meyering@redhat.com>
76010         timespec: long-to-int truncation could make timespec_cmp malfunction
76011         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
76012         a multiple of 2^32 nanoseconds as no difference.
76014 2009-10-28  Jim Meyering  <meyering@redhat.com>
76016         fprintftime: wrap macro code argument in "do {...} while(0)"
76017         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
76018         cpy macro must be a statement that can be followed by a semicolon.
76019         Now that the else clause contains a comment and is hence longer
76020         than one line, I require curly braces.  That in turn requires
76021         that we wrap this code block in the standard do...while(0).
76023         fprintftime: remove stray semicolon from previous change
76024         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
76026         fprintftime: avoid a warning about ignored fwrite return value
76027         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
76028         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
76029         that is unsafe.
76030         * modules/fprintftime (Depends-on): Add ignore-value.
76032         exclude: avoid an unwarranted warning
76033         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
76035 2009-10-27  Eric Blake  <ebb9@byu.net>
76037         fseek: avoid compilation failure when fflush is replaced
76038         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
76039         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
76040         module is in use.
76041         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
76042         module is not in use; since REPLACE_FSEEK worked otherwise.
76043         (GNULIB_FTELLO): Likewise for ftell.
76044         Reported by Ian Beckwith and others.
76046 2009-10-27  Bruno Haible  <bruno@clisp.org>
76048         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
76049         Reported by Jim Meyering.
76051 2009-10-27  Jim Meyering  <jim@meyering.net>
76052             Bruno Haible  <bruno@clisp.org>
76054         Avoid warning despite dropping the return value of fwrite.
76055         * lib/unicodeio.c: Include ignore-value.h.
76056         (fwrite_success_callback): Explicitly ignore fwrite's return value.
76057         * modules/unicodeio (Depends-on): Add ignore-value.
76059 2009-10-26  Eric Blake  <ebb9@byu.net>
76061         areadlinkat: fix fallback path
76062         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
76063         pointer and zero.
76065 2009-10-22  Pádraig Brady  <P@draigBrady.com>
76067         Use a better IO block size for modern systems
76068         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
76069         * lib/md2.c: Likewise.
76070         * lib/md4.c: Likewise.
76071         * lib/md5.c: Likewise.
76072         * lib/sha1.c: Likewise.
76073         * lib/sha256.c: Likewise.
76074         * lib/sha512.c: Likewise.
76076 2009-10-22  Eric Blake  <ebb9@byu.net>
76078         tests: avoid several compiler warnings
76079         * tests/test-getcwd.c (main): Avoid buffer underflow.
76080         * tests/test-getdate.c (main): String literals are not safe with
76081         putenv, so use setenv.  Declare unused argument.
76082         * modules/getdate-tests (Depends-on): Add setenv.
76083         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
76084         problems with string literals in char *.
76085         * tests/test-hash.c (main): Avoid shadowing declaration.
76086         (insert_new): Treat string literals as char const *.
76087         * tests/test-getopt.h (test_getopt): Likewise.
76088         (getopt_loop): Alter types to minimize casting elsewhere.
76089         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
76090         (test_getopt_long_posix): Likewise.
76091         (do_getopt_long): Add wrapper to minimize casting.
76092         * tests/test-atexit.c (clear_temp_file): Use void.
76093         * tests/test-areadlink-with-size.c (main): Declare unused
76094         arguments.
76095         * tests/test-areadlink.c (main): Likewise.
76096         * tests/test-areadlinkat-with-size.c (main): Likewise.
76097         * tests/test-areadlinkat.c (main): Likewise.
76098         * tests/test-canonicalize-lgpl.c (main): Likewise.
76099         * tests/test-canonicalize.c (main): Likewise.
76100         * tests/test-dirent-safer.c (main): Likewise.
76101         * tests/test-dirname.c (main): Likewise.
76102         * tests/test-dup2.c (main): Likewise.
76103         * tests/test-fchdir.c (main): Likewise.
76104         * tests/test-fcntl-h.c (main): Likewise.
76105         * tests/test-fcntl-safer.c (main): Likewise.
76106         * tests/test-fdopendir.c (main): Likewise.
76107         * tests/test-fdutimensat.c (main): Likewise.
76108         * tests/test-fflush.c (main): Likewise.
76109         * tests/test-filenamecat.c (main): Likewise.
76110         * tests/test-filevercmp.c (main): Likewise.
76111         * tests/test-fopen-safer.c (main): Likewise.
76112         * tests/test-fopen.c (main): Likewise.
76113         * tests/test-fpending.c (main): Likewise.
76114         * tests/test-fpurge.c (main): Likewise.
76115         * tests/test-freading.c (main): Likewise.
76116         * tests/test-fstatat.c (main): Likewise.
76117         * tests/test-fsync.c (main): Likewise.
76118         * tests/test-futimens.c (main): Likewise.
76119         * tests/test-getndelim2.c (main): Likewise.
76120         * tests/test-gettimeofday.c (main): Likewise.
76121         * tests/test-getopt.c (main): Likewise.
76122         * tests/test-i-ring.c (main): Likewise.
76123         * tests/test-inttypes.c (main): Likewise.
76124         * tests/test-link.c (main): Likewise.
76125         * tests/test-lstat.c (main): Likewise.
76126         * tests/test-math.c (main): Likewise.
76127         * tests/test-md5.c (main): Likewise.
76128         * tests/test-memchr2.c (main): Likewise.
76129         * tests/test-memrchr.c (main): Likewise.
76130         * tests/test-mkdir.c (main): Likewise.
76131         * tests/test-mkdirat.c (main): Likewise.
76132         * tests/test-mkfifoat.c (main): Likewise.
76133         * tests/test-open.c (main): Likewise.
76134         * tests/test-openat-safer.c (main): Likewise.
76135         * tests/test-openat.c (main): Likewise.
76136         * tests/test-quotearg.c (main): Likewise.
76137         * tests/test-rawmemchr.c (main): Likewise.
76138         * tests/test-readlink.c (main): Likewise.
76139         * tests/test-remove.c (main): Likewise.
76140         * tests/test-rename.c (main): Likewise.
76141         * tests/test-renameat.c (main): Likewise.
76142         * tests/test-rmdir.c (main): Likewise.
76143         * tests/test-sha1.c (main): Likewise.
76144         * tests/test-signal.c (main): Likewise.
76145         * tests/test-sigaction.c (main): Likewise.
76146         * tests/test-stat.c (main): Likewise.
76147         * tests/test-stat-time.c (main): Likewise.
76148         * tests/test-stddef.c (main): Likewise.
76149         * tests/test-stdint.c (main): Likewise.
76150         * tests/test-stdio.c (main): Likewise.
76151         * tests/test-stdlib.c (main): Likewise.
76152         * tests/test-strchrnul.c (main): Likewise.
76153         * tests/test-strerror.c (main): Likewise.
76154         * tests/test-string.c (main): Likewise.
76155         * tests/test-strtod.c (main): Likewise.
76156         * tests/test-strverscmp.c (main): Likewise.
76157         * tests/test-symlink.c (main): Likewise.
76158         * tests/test-symlinkat.c (main): Likewise.
76159         * tests/test-sys_stat.c (main): Likewise.
76160         * tests/test-sys_time.c (main): Likewise.
76161         * tests/test-time.c (main): Likewise.
76162         * tests/test-unistd.c (main): Likewise.
76163         * tests/test-unlink.c (main): Likewise.
76164         * tests/test-unlinkat.c (main): Likewise.
76165         * tests/test-utimens.c (main): Likewise.
76166         * tests/test-utimensat.c (main): Likewise.
76167         * tests/test-version-etc.c (main): Likewise.
76168         * tests/test-wchar.c (main): Likewise.
76169         * tests/test-wctype.c (main): Likewise.
76170         * tests/test-xprintf-posix.c (main): Likewise.
76171         * tests/test-posixtm.c (main): Likewise.
76172         (STREQ): Delete unused macro.
76173         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
76174         shadowed variables.
76175         * tests/test-memchr.c (main): Likewise.
76177 2009-10-21  Eric Blake  <ebb9@byu.net>
76179         areadlinkat: avoid failure on older glibc
76180         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
76181         rather than mis-comparing 0 against FUNC_RESULT of char*.
76183 2009-10-21  Bruno Haible  <bruno@clisp.org>
76185         * modules/stpncpy (License): Relicense under LGPLv2+.
76186         Reported by David Lutterkort <lutter@redhat.com>.
76188 2009-10-20  Eric Blake  <ebb9@byu.net>
76190         utimensat: work around Solaris 9 bug
76191         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
76192         has trailing slash bugs.
76193         * tests/test-lutimens.h (test_lutimens): Enhance test.
76194         * tests/test-utimens.h (test_utimens): Likewise.
76195         * doc/posix-functions/utime.texi (utime): Enhance documentation.
76196         * doc/posix-functions/utimes.texi (utimes): Likewise.
76197         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76198         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
76199         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
76200         * doc/posix-functions/futimens.texi (futimens): Likewise.
76202         fdutimensat: new module
76203         * modules/fdutimensat: New file.
76204         * lib/fdutimensat.c (fdutimensat): Likewise.
76205         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
76206         * MODULES.html.sh (File system functions): Mention module.
76207         * modules/fdutimensat-tests: New test.
76208         * tests/test-fdutimensat.c: Likewise.
76210         doc: regenerate INSTALL
76211         * doc/INSTALL: Reflect recent autoconf update.
76212         * doc/INSTALL.ISO: Likewise.
76213         * doc/INSTALL.UTF-8: Likewise.
76215 2009-10-20  Pádraig Brady  <P@draigBrady.com>
76217         acl: warn if ACL support is not detected
76218         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
76220 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
76222         * lib/nproc.h: Add extern "C" block for C++.
76224 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
76225             Bruno Haible  <bruno@clisp.org>
76227         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
76228         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
76229         * doc/posix-functions/isalpha.texi: Likewise.
76230         * doc/posix-functions/isblank.texi: Likewise.
76231         * doc/posix-functions/iscntrl.texi: Likewise.
76232         * doc/posix-functions/isdigit.texi: Likewise.
76233         * doc/posix-functions/isgraph.texi: Likewise.
76234         * doc/posix-functions/islower.texi: Likewise.
76235         * doc/posix-functions/isprint.texi: Likewise.
76236         * doc/posix-functions/ispunct.texi: Likewise.
76237         * doc/posix-functions/isspace.texi: Likewise.
76238         * doc/posix-functions/isupper.texi: Likewise.
76239         * doc/posix-functions/isxdigit.texi: Likewise.
76241 2009-10-18  Bruno Haible  <bruno@clisp.org>
76243         Tests for module 'isblank'.
76244         * modules/isblank-tests: New file.
76245         * tests/test-isblank.c: New file.
76247         New module 'isblank'.
76248         * lib/isblank.c: New file.
76249         * m4/isblank.m4: New file.
76250         * modules/isblank: New file.
76251         * doc/posix-functions/isblank.texi: Mention the new module.
76253 2009-10-18  Bruno Haible  <bruno@clisp.org>
76255         New module 'ctype'.
76256         * lib/ctype.in.h: New file.
76257         * m4/ctype.m4: New file.
76258         * modules/ctype: New file.
76259         * doc/posix-headers/ctype.texi: Mention the new module.
76261 2009-10-18  Jim Meyering  <meyering@redhat.com>
76263         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
76264         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
76265         right after its initialization, rather than farther down.
76266         Keeping these in close proximity makes it easier to ensure
76267         that each such variable is initialized.  E.g.,
76269             LIB_CLOCK_GETTIME=
76270             AC_SUBST([LIB_CLOCK_GETTIME])
76272         This change also increments these serial numbers.
76273         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
76274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76277 2009-10-18  Bruno Haible  <bruno@clisp.org>
76279         Don't let environment variables perturb build.
76280         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
76281         (gl_PREREQ_GETHRXTIME): ... not here.
76283 2009-10-18  Bruno Haible  <bruno@clisp.org>
76285         Avoid symlink attack in localcharset module.
76286         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
76287         (O_NOFOLLOW): Define fallback.
76288         (get_charset_aliases): Don't open the file if it is a symbolic link.
76289         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
76290         gl_FCNTL_H.
76291         (gl_FCNTL_H): Require it.
76292         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
76293         * modules/localcharset (Files): Add m4/fcntl_h.m4.
76294         Reported by Fergal Glynn <fglynn@veracode.com>.
76296 2009-10-18  Bruno Haible  <bruno@clisp.org>
76298         Implement nproc for mingw.
76299         * lib/nproc.c: Include <windows.h>
76300         (num_processors): On native Windows platforms, try GetSystemInfo.
76302 2009-10-18  Bruno Haible  <bruno@clisp.org>
76304         Implement nproc for IRIX.
76305         * lib/nproc.c: Include <sys/sysmp.h>.
76306         (num_processors): On IRIX systems, try sysmp.
76307         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
76309 2009-10-18  Bruno Haible  <bruno@clisp.org>
76311         Implement nproc for HP-UX.
76312         * lib/nproc.c: Include <sys/pstat.h>
76313         (num_processors): On HP-UX systems, try pstat_getdynamic.
76314         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
76315         pstat_getdynamic.
76317 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
76318             Bruno Haible  <bruno@clisp.org>
76320         Implement nproc for NetBSD, OpenBSD.
76321         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
76322         (ARRAY_SIZE): New macro.
76323         (num_processors): On BSD systems, try sysctl of HW_NCPU.
76324         * m4/nproc.m4: New file.
76325         * modules/nproc (Files): Add m4/nproc.m4.
76326         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
76327         (Makefile.am): Instead, augment lib_SOURCES.
76329 2009-10-18  Bruno Haible  <bruno@clisp.org>
76331         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
76332         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
76333         sys/param.h.
76335 2009-10-16  Eric Blake  <ebb9@byu.net>
76337         utimensat: new module
76338         * modules/utimensat: New file.
76339         * lib/utimensat.c (utimensat): Likewise.
76340         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76341         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
76342         so we can work around Linux bugs.
76343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76344         * modules/sys_stat (Makefile.am): Substitute them.
76345         * lib/sys_stat.in.h (utimensat): Declare it.
76346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76347         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76348         * modules/utimensat-tests: New test.
76349         * tests/test-utimensat.c: Likewise.
76351         utimens: let lutimens work on non-symlinks
76352         * lib/utimens.c (lutimens): Fall back to utimens rather than
76353         failing with ENOSYS, when file is not a symlink.
76354         (utimens): Reduce redirection.
76355         * tests/test-lutimens.h (test_lutimens): Update test to cover
76356         non-symlinks.
76357         * tests/test-utimens.h (test_utimens): Update test to cover
76358         symlinks.
76359         * tests/test-utimens.c (main): Update caller.
76361         utimens: cache whether utimensat syscall works
76362         * lib/utimens.c (utimensat_works_really): New cache variable.
76363         (fdutimens, lutimens): Use it to avoid failing syscall.
76365         test-stat-time, test-utimens: improve portability
76366         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
76367         ext4 on alpha, and for cygwin.
76368         * tests/test-utimens-common.h: New file.
76369         (nap): Factor delays into single function.
76370         * tests/test-lutimens.h (test_lutimens): Use new header.
76371         * tests/test-futimens.h (test_futimens): Likewise.
76372         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
76373         timestamps to occur from same machine, as was done previously for
76374         test_utimens.
76375         * modules/utimens-tests (Files): Ship new file.
76376         * modules/futimens-tests (Files): Likewise.
76377         Reported in part by Jim Meyering.
76379         sys_stat: sort replacement declarations
76380         * lib/sys_stat.in.h: Sort declarations.
76381         * lib/futimens.c (futimens): Fix typo.
76383 2009-10-15  Jim Meyering  <meyering@redhat.com>
76385         don't let environment settings perturb build
76386         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
76387         could cause a configure-time and/or build-time malfunction.
76388         Typically, a configure-time function-in-library test is performed
76389         via code like this:
76391           LIB_VAR=
76392           AC_SUBST([LIB_VAR])
76393           prefix_saved_LIBS=$LIBS
76394             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
76395                        [test "$ac_cv_search_FUNC" = "none required" ||
76396                         LIB_VAR=$ac_cv_search_FUNC])
76397           LIBS=$prefix_saved_LIBS
76399         However, in each of the files affected by this change, the LIB_VAR=
76400         initialization was omitted.  Thus, when set in the environment, its
76401         value would propagate into generated Makefiles when FUNC is not found
76402         in LIB_NAME.
76403         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
76404         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76407 2009-10-14  Eric Blake  <ebb9@byu.net>
76409         fchdir: avoid infinite recursion in mingw
76410         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
76411         recursing.
76413         test-stat-time: port to mingw
76414         * tests/test-stat-time.c (force_unlink): Return a value.
76415         (test_ctime) [W32]: Fix compilation error.
76416         (nap): Don't call usleep with too large an argument.  Use
76417         force_unlink.
76418         * doc/pastposix-functions/usleep.texi (usleep): Document the
76419         portability issue.
76421 2009-10-13  Jim Meyering  <meyering@redhat.com>
76423         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
76424         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
76425         * modules/pipe-filter-ii: Likewise.
76426         * modules/sys_socket-tests: Likewise.
76427         * modules/tsearch-tests: Likewise.
76428         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
76429         (check): Depend on it.
76431 2009-10-12  Eric Blake  <ebb9@byu.net>
76433         utimens-tests: port to NFS file systems
76434         * tests/test-utimens.h (test_utimens): Refactor utimecmp
76435         comparisons to avoid spurious failures from timestamp drift
76436         between NFS machines.
76438 2009-10-12  Eric Blake  <ebb9@byu.net>
76440         stat-time-tests: minor cleanups
76441         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
76442         * tests/test-stat-time.c (nap): Separate assignment from call.
76443         Suggested by Paolo Bonzini and Bruno Haible.
76445         sys_stat: guarantee struct timespec
76446         * lib/sys_stat.in.h (includes): Always include <time.h>
76447         * modules/sys_stat (Depends-on): Add time.
76448         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
76449         mode_t permission values.
76450         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
76451         get at subsecond timestamps.
76453 2009-10-10  Eric Blake  <ebb9@byu.net>
76455         futimens: new module
76456         * modules/futimens: New file.
76457         * lib/futimens.c (futimens): Likewise.
76458         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
76459         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
76460         we can work around Linux bugs.
76461         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76462         * modules/sys_stat (Makefile.am): Substitute them.
76463         * lib/sys_stat.in.h (futimens): Declare it.
76464         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76465         * doc/posix-functions/futimens.texi (futimens): Likewise.
76466         * modules/futimens-tests: New test.
76467         * tests/test-futimens.c: Likewise.
76469         utimens: introduce fdutimens
76470         * lib/utimens.h (fdutimens): New prototype.
76471         * lib/utimens.c (gl_futimens): Move guts...
76472         (fdutimens): ...to new interface.
76473         * tests/test-utimens.c (do_fdutimens): Use it.
76475         utimens: add UTIME_NOW and UTIME_OMIT support
76476         * lib/utimens.c (validate_timespec, update_timespec): New helper
76477         functions.
76478         (gl_futimens, lutimens): Use them.
76479         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
76480         stdbool, sys_stat.
76481         (Link): Mention resulting library dependency.
76482         * modules/utimecmp (Link): Likewise.
76483         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
76484         (Makefile.am): Pick up library dependency.
76485         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
76486         definition.
76487         * tests/test-sys_stat.c: Test the definitions.
76488         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
76489         * NEWS: Document library dependency.
76491         utimecmp: support symlink timestamps
76492         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
76493         hashing when possible.  Use pathconf when available.
76494         (SYSCALL_RESOLUTION): Recognize tighter resolution.
76495         * modules/utimecmp (Depends-on): Add lstat.
76497         utimens: add lutimens interface
76498         * lib/utimens.c (lutimens): New function.
76499         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
76500         * lib/utimens.h (lutimens): Declare new interface.
76501         * tests/test-utimens.c (main): Enhance test.
76502         * tests/test-lutimens.h (test_lutimens): New file.
76503         * modules/utimens-tests (Files): Distribute it.
76504         (Depends-on): Add symlink.
76505         (configure.ac): Check for usleep.
76507         utimens: validate futimens usage
76508         * lib/utimens.c (gl_futimens): Require valid fd up front, using
76509         fewer syscalls on failure later on.  Avoid compiler warning on
76510         mingw.
76511         * modules/utimens (Depends-on): Add dup2.
76513         utimens: add test
76514         * modules/utimens-tests: New test.
76515         * tests/test-utimens.h: New file.
76516         * tests/test-futimens.h: Likewise.
76517         * tests/test-utimens.c: Likewise.
76519         doc: mention timestamp portability issues
76520         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
76521         instead.
76522         * doc/posix-functions/utime.texi (utime): Likewise.
76523         * doc/posix-functions/utimes.texi (utimes): Likewise.
76524         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
76525         instead.
76526         * doc/posix-functions/futimens.texi (futimens): Mention utimens
76527         module.
76528         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76529         Mention weakness with symlink timestamps.
76530         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
76531         to utimensat/futimens instead.
76532         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
76534         test-dup2: enhance test
76535         * tests/test-dup2.c (main): Also check AT_FDCWD.
76537         test-stat-time: avoid more spurious failures
76538         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
76539         xfs; and avoid race if the two timestamps cross quantization edge.
76541         relocatable: prefer 'file system' over 'filesystem'
76542         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
76543         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
76544         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
76545         * doc/relocatable.texi (Enabling Relocatability): Likewise.
76546         * lib/relocatable.c (compute_curr_prefix): Likewise.
76548 2009-10-10  Jim Meyering  <meyering@redhat.com>
76550         stat-time-tests: check for the usleep function
76551         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
76553 2009-10-10  Bruno Haible  <bruno@clisp.org>
76555         * modules/xnanosleep: Put the Link section after the Include section.
76557 2009-10-09  Eric Blake  <ebb9@byu.net>
76559         dup2: work around FreeBSD 6.1 bug
76560         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
76561         * doc/posix-functions/dup2.texi (dup2): Document it.
76562         Reported by Nelson H. F. Beebe and Jim Meyering.
76564         test-stat-time: port to buggy NFS clients
76565         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
76566         (test_ctime): Also skip test if mtime and ctime are skewed.
76568         maint: prefer 'file system' over 'filesystem'
76569         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76570         * doc/posix-functions/lstat.texi (lstat): Likewise.
76571         * lib/file-has-acl.c (file_has_acl): Likewise.
76572         * lib/fwriteerror.c [TEST]: Likewise.
76573         * tests/test-areadlink.h (test_areadlink): Likewise.
76574         * tests/test-areadlinkat-with-size.c (main): Likewise.
76575         * tests/test-areadlinkat.c (main): Likewise.
76576         * tests/test-canonicalize-lgpl.c (main): Likewise.
76577         * tests/test-canonicalize.c (main): Likewise.
76578         * tests/test-fstatat.c (main): Likewise.
76579         * tests/test-linkat.c (main): Likewise.
76580         * tests/test-lstat.h (test_lstat_func): Likewise.
76581         * tests/test-mkdir.h (test_mkdir): Likewise.
76582         * tests/test-readlink.h (test_readlink): Likewise.
76583         * tests/test-remove.c (main): Likewise.
76584         * tests/test-rename.h (test_rename): Likewise.
76585         * tests/test-renameat.c (main): Likewise.
76586         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76587         * tests/test-symlink.h (test_symlink): Likewise.
76588         * tests/test-symlinkat.c (main): Likewise.
76589         * tests/test-unlink.h (test_unlink_func): Likewise.
76590         * tests/test-unlinkat.c (main): Likewise.
76592         maint: make realtime library usage explicit
76593         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
76594         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
76595         * modules/settime (Link): Likewise.
76596         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
76598         test-stat-time: speed up execution
76599         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
76600         warning on mingw.
76601         (nap): New helper function.
76602         (prepare_test): Use it to reduce sleep time.
76603         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
76604         execution.
76605         * modules/stat-time-tests (configure.ac): Check for usleep.
76607 2009-10-09  Jim Meyering  <meyering@redhat.com>
76609         selinux-h: always use getfilecon wrappers
76610         * lib/getfilecon.c: New file.
76611         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
76612         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
76613         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
76614         (fgetfilecon): Provide a stub.
76615         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
76616         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
76617         file unconditionally.
76618         When <selinux/selinux.h> is found, arrange to use wrappers.
76619         * modules/selinux-h (Files): Add getfilecon.c.
76620         (Makefile.am): Substitute include-next-related bits
76621         into the now-always-generated selinux/selinux.h file.
76622         * doc/glibc-functions/lgetfilecon.texi: New file.
76623         * doc/glibc-functions/fgetfilecon.texi: New file.
76624         * doc/glibc-functions/getfilecon.texi: New file.
76625         * doc/glibc-functions/getfilecon-desc.texi: New file.
76626         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
76627         which to pull in the new files.
76628         * MODULES.html.sh (Misc): Add selinux-h.
76630 2009-10-08  Jim Meyering  <meyering@redhat.com>
76632         unistd: fix comment typo
76633         * lib/unistd.in.h (euidaccess): Fix a comment typo.
76635 2009-10-08  Eric Blake  <ebb9@byu.net>
76637         areadlink: use SIZE_MAX consistently
76638         * modules/areadlink (Depends-on): Add stdint.
76639         * modules/areadlink-with-size (Depends-on): Likewise.
76640         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
76641         gives NULL; drop sys/types, since unistd gives size_t; and add
76642         stdint for SIZE_MAX.
76643         (SIZE_MAX): Rely on headers.
76644         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
76645         and add stdint.
76646         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
76647         (SIZE_MAX): Likewise.
76648         (INITIAL_BUF_SIZE): Turn into enum.
76649         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
76651 2009-10-08  Jim Meyering  <meyering@redhat.com>
76653         areadlinkat: avoid compilation failure
76654         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
76655         Fix typo in comment.
76657 2009-10-07  Eric Blake  <ebb9@byu.net>
76659         areadlinkat-with-size: new module
76660         * modules/areadlinkat-with-size: New module.
76661         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
76662         * lib/areadlink.h (areadlinkat): Declare it.
76663         * MODULES.html.sh (File system functions): Mention it.
76664         * modules/areadlinkat-with-size-tests: New test.
76665         * tests/test-areadlinkat-with-size.c: New file.
76667         xreadlinkat: new module
76668         * modules/xreadlinkat: New module.
76669         * lib/xreadlinkat.c (xreadlinkat): New file.
76670         * lib/xreadlink.h (xreadlinkat): Declare it.
76671         * MODULES.html.sh (File system functions): Mention it.
76673         areadlinkat: new module
76674         * lib/at-func.c (FUNC_FAIL): New define.
76675         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
76676         * modules/areadlinkat: New module.
76677         * lib/linkat.c (areadlinkat): Move...
76678         * lib/areadlinkat.c (areadlinkat): ...to new file.
76679         * lib/areadlink.h (areadlinkat): Declare it.
76680         * modules/linkat (Depends-on): Add areadlinkat.
76681         * MODULES.html.sh (File system functions): Mention it.
76682         * modules/areadlinkat-tests: New test.
76683         * tests/test-areadlinkat.c: New file.
76685         areadlink, areadlink-with-size: add tests
76686         * modules/areadlink-tests: New test.
76687         * modules/areadlink-with-size-tests: Likewise.
76688         * tests/test-areadlink.h: New file.
76689         * tests/test-areadlink.c: Likewise.
76690         * tests/test-areadlink-with-size.c: Likewise.
76692         maint: minor cleanups
76693         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
76694         _UNUSED_PARAMETER_ instead.
76695         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
76696         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
76697         * modules/linkat-tests (Files): Distribute test-link.h.
76699         openat, utimens: whitespace cleanup
76700         * lib/openat.c: Prefer space throughout, rather than mix of 8
76701         spaces vs. tabs.
76702         * lib/at-func.c: Likewise.
76703         * lib/utimens.c: Likewise.
76705         openat: avoid using wrong fd
76706         * lib/openat.c (openat_permissive): Reject user's fd if saving the
76707         working directory chooses same fd.
76708         * lib/at-func.c (AT_FUNC_NAME): Likewise.
76710         mkdir, mkdirat: fix cygwin 1.5.x bug
76711         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
76712         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
76713         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
76714         bug.
76715         (gl_PREREQ_MKDIR): Delete unused macro.
76716         * modules/mkdir (Files): Track file rename.
76717         (configure.ac): Update macro name.
76718         * modules/openat (Depends-on): Add mkdir.
76719         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
76721         mkdir, mkdirat: add tests
76722         * modules/mkdir-tests: New test.
76723         * tests/test-mkdir.h: New file.
76724         * tests/test-mkdir.c: Likewise.
76725         * tests/test-mkdirat.c: Likewise.
76726         * modules/openat-tests (Files): Add new files.
76727         (Makefile.am): Run new test.
76729 2009-10-06  Eric Blake  <ebb9@byu.net>
76731         doc: tweak *at function documentation
76732         * doc/posix-functions/faccessat.texi (faccessat): Mention
76733         known issue with replacement.
76734         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
76735         * doc/posix-functions/linkat.texi (linkat): Likewise.
76736         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76737         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76738         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76739         * doc/posix-functions/renameat.texi (renameat): Likewise.
76740         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76742         openat: fix GNU/Hurd bug in unlinkat
76743         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
76744         broken.
76745         * doc/posix-functions/unlink.texi (unlink): Document this.
76746         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
76748         fdopendir: fix GNU/Hurd bug
76749         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
76750         allowing non-directory fds.
76751         * lib/fdopendir.c (rpl_fdopendir): Work around it.
76752         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
76753         * modules/dirent (Makefile.am): Substitute it.
76754         * lib/dirent.in.h (fdopendir): Declare replacement.
76755         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
76756         * tests/test-fdopendir.c (main): Test something other than
76757         /dev/null, since on Hurd that behaves like a directory.
76759         test-symlink: port to GNU/Hurd
76760         * tests/test-symlink.h (test_symlink): Relax expected errno.
76762         doc: tweak more cygwin information
76763         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
76764         now compatible with glibc.
76765         * doc/posix-functions/getopt.texi (getopt): Likewise.
76767         getopt-gnu: add another test
76768         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
76769         guarantee behavior relied on by m4.
76770         * tests/test-getopt.c (main): Use it.
76771         * modules/getopt-posix-tests (Depends-on): Add setenv.
76772         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
76774         getopt: fix compilation on darwin
76775         * lib/getopt.in.h (includes): Leave breadcrumbs during system
76776         include.
76777         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
76778         Reported by Ludovic Courtès.
76780 2009-10-06  Bruno Haible  <bruno@clisp.org>
76782         * modules/size_max (Description): Discourage its use.
76783         Reported by Simon Josefsson.
76785 2009-10-06  Jim Meyering  <meyering@redhat.com>
76787         linkat: avoid compilation failure
76788         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
76790 2009-10-05  Eric Blake  <ebb9@byu.net>
76792         linkat: support Linux 2.6.17
76793         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
76794         linkat on Linux, but allow cache variable override.
76795         * lib/linkat.c (rpl_linkat): Define override.
76796         * modules/linkat (Depends-on): Add symlinkat.
76797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
76798         * modules/unistd (Makefile.am): Substitute it.
76799         * lib/unistd.in.h (linkat): Declare replacement.
76800         Reported by Pádraig Brady.
76802         quotearg: port test to systems with C.UTF-8 locale
76803         * tests/test-quotearg.c (struct result_strings): Add another
76804         member, differentiating between C.ASCII and C.UTF-8 handling.
76805         (compare_strings): Add parameter.
76806         (main): Adjust all callers.
76808         getopt: avoid clash with FreeBSD _getopt_internal
76809         * lib/getopt.in.h (_getopt_internal): Override the name.
76810         * lib/getopt_int.h (includes): Pick up any overrides.
76811         Reported by Reuben Thomas.
76813         hash: allow C89 compilation
76814         * lib/hash.c (check_tuning): Move declaration before statement.
76815         Reported by Reuben Thomas.
76817 2009-10-05  Karl Berry  <karl@gnu.org>
76819         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
76821 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
76822             Bruno Haible  <bruno@clisp.org>
76824         * lib/uname.c (uname): Use a table-driven algorithm to compute
76825         Windows NT versions.
76827 2009-10-04  Bruno Haible  <bruno@clisp.org>
76829         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
76830         program_invocation_short_name.
76831         * modules/progname (configure.ac): Test for presence of
76832         program_invocation_short_name.
76833         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76835 2009-10-04  Bruno Haible  <bruno@clisp.org>
76837         * lib/progname.c (set_program_name): Fix comment.
76838         Reported by Jim Meyering.
76840 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76841             Bruno Haible  <bruno@clisp.org>
76843         * lib/uname.c: Include <string.h>.
76844         (uname): Do only one call to GetVersionEx in the common case.
76846 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76847             Bruno Haible  <bruno@clisp.org>
76849         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
76850         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
76851         (uname): Add support for Windows CE and various non-x86 CPU types.
76853 2009-10-03  Bruno Haible  <bruno@clisp.org>
76855         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
76856         invocation to tests/configure.ac.
76857         Reported by Ian Beckwith <ianb@erislabs.net>.
76859 2009-10-02  Eric Blake  <ebb9@byu.net>
76861         fchdir: avoid compiler warning
76862         * lib/fchdir.c (canonicalize_file_name)
76863         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
76865         test-open: support mingw errno values
76866         * tests/test-open.h (test_open): Relax test.
76867         * tests/test-fopen.h (test_fopen): Likewise.
76868         * tests/test-openat-safer.c (main): Likewise.
76870         open: fix opening directory on mingw
76871         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
76873         test-open: on GNU/Hurd, /dev/null is a directory
76874         * tests/test-fopen.h (main): Rename...
76875         (test_fopen): ...to this.  Use a guaranteed non-directory when
76876         confirming open behavior on trailing slash.
76877         * tests/test-openat-safer.c (main): Likewise.
76878         * tests/test-open.h (main): Likewise....
76879         (test_open): ...to this.
76880         * tests/test-fopen.c (main): Adjust caller.
76881         * tests/test-fopen-safer.c (main): Likewise.
76882         * tests/test-open.c (main): Likewise.
76883         * tests/test-fcntl-safer.c (main): Likewise.
76884         Reported by Samuel Thibault.
76886         rename, fchdir: don't ignore chdir failure
76887         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
76888         * lib/rename.c (rpl_rename) [W32]: Likewise.
76889         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
76890         an empty destination directory if source cannot be renamed,
76891         although there is still possibility for failure.
76892         * doc/posix-functions/rename.texi (rename): Document the race.
76893         Reported by Jim Meyering.
76895         maint: cleanup whitespace in recent commits
76896         * lib/rename.c (rpl_rename): Remove tabs.
76897         * tests/test-link.h (test_link): Likewise.
76898         * lib/fchdir.c (get_name): Likewise.
76899         Reported by Jim Meyering.
76901 2009-10-02  Ben Pfaff  <blp@gnu.org>
76903         relocatable-prog-wrapper: Add missing dependency on
76904         double-slash-root.
76905         * modules/relocatable-prog-wrapper: Add dependency.
76906         Reported by Ian Beckwith <ianb@erislabs.net>.
76908 2009-10-02  Eric Blake  <ebb9@byu.net>
76910         renameat: fix Solaris bugs
76911         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76912         needed fixing.
76913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76914         * modules/stdio (Makefile.am): Substitute it.
76915         * lib/stdio.in.h (renameat): Declare replacement.
76916         * lib/renameat.c (rpl_renameat): Implement fix.
76918         renameat: new module
76919         * modules/renameat: New file.
76920         * lib/renameat.c (renameat): Likewise.
76921         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76923         * modules/stdio (Makefile.am): Substitute them.
76924         * lib/stdio.in.h (renameat): Declare it.
76925         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76926         * doc/posix-functions/renameat.texi (renameat): Likewise.
76927         * modules/renameat-tests: New test.
76928         * tests/test-renameat.c: Likewise.
76930         rename: fix mingw bugs
76931         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76932         directory overwrite bugs.
76934         rename: fix another cygwin 1.5 bug
76935         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76936         checks.
76937         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76938         unnecessary cygwin workarounds.  Also work around bug with moving
76939         full directory onto an empty one.
76940         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76942         rename-dest-slash: merge into rename module
76943         * modules/rename-dest-slash (Status): Mark obsolete.
76944         (Depends-on): Add rename.
76945         (Files): Let rename do it all.
76946         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76947         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76948         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76949         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76950         * lib/rename.c (rpl_rename): Update comments.
76952         rename: fix cygwin 1.5.x bugs
76953         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76954         * lib/rename.c (rpl_rename): Work around them.
76955         * modules/rename (Depends-on): Add same-inode.
76957         rename: fix Solaris 10 bug
76958         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76959         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76960         was the only bug.
76962         rename: fix Solaris 9 bug
76963         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76964         on non-directory.  Avoid calling exit.
76965         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76966         strdup.
76967         * modules/rename-tests (Depends-on): Drop lstat.
76968         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76969         (gl_PREREQ_RENAME): Delete unused macro.
76971         rename-dest-slash: fix NetBSD bug
76972         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76973         links.
76974         * modules/rename-dest-slash (Depends-on): Add same-inode.
76976         rename-tests: new test, exposes several platform bugs
76977         * modules/rename-tests: New file.
76978         * tests/test-rename.h: Likewise.
76979         * tests/test-rename.c: Likewise.
76980         * doc/posix-functions/rename.texi (rename): Improve documentation,
76981         including bugs that will eventually be fixed in gnulib.
76983 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76985         * lib/uname.c: Include <stdlib.h>
76986         (uname): Assume version info is available.
76988 2009-10-02  Jim Meyering  <meyering@redhat.com>
76990         gnu-web-doc-update: correct --help output
76991         * build-aux/gnu-web-doc-update: Make --help output relevant.
76993         gnu-web-doc-update: add standard options
76994         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76996         gnu-web-doc-update: New module.
76997         Use this script to automatically update the on-line web documentation
76998         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76999         * modules/gnu-web-doc-update: New file, from coreutils.
77000         * build-aux/gnu-web-doc-update: New script.
77002 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
77004         link: LoadLibrary is not needed.
77005         * lib/link.c: Use GetModuleHandle.
77007 2009-10-01  Eric Blake  <ebb9@byu.net>
77009         getopt: bump serial number
77010         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
77011         change.
77013         tests: tighten link, rmdir, and remove tests
77014         * tests/test-link.h (includes): No need to use <config.h> here.
77015         Clean up if directory hard link was created, otherwise test for
77016         trailing '.'.
77017         * tests/test-linkat.c (main): Simplify.
77018         * tests/test-remove.c (main): Enhance test for trailing '.'.
77019         * tests/test-rmdir.h (test_rmdir_func): Likewise.
77021 2009-10-01  Jim Meyering  <meyering@redhat.com>
77023         maint.mk: requiring "make major" was annoying, for a "minor" release.
77024         What is intended is "stable", to contrast with alpha and beta,
77025         so require "make stable", not "make major".
77026         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
77027         (get_tool_versions): Likewise.
77028         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
77030 2009-09-30  Ben Pfaff  <blp@gnu.org>
77032         Fix broken build of replacement for Windows tmpfile().
77033         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
77034         flags argument added along with the 'mkostemp' module.
77036 2009-09-28  Bruno Haible  <bruno@clisp.org>
77038         Avoid identifier clash with POSIX function 'remove' defined as a macro.
77039         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
77040         to 'remove_elt'.
77041         (gl_list_remove): Update.
77042         * lib/gl_list.c (gl_list_remove): Update.
77043         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
77044         to 'remove_elt'.
77045         (gl_oset_remove): Update.
77046         * lib/gl_list.c (gl_oset_remove): Update.
77047         Reported by Eric Blake.
77049 2009-09-28  Eric Blake  <ebb9@byu.net>
77051         doc: mention yet more cygwin 1.7 status
77052         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
77053         cygwin.
77054         * doc/glibc-functions/execvpe.texi (execvpe): New file.
77055         * doc/gnulib.texi (Glibc unistd.h): Mention it.
77057         argp: fix test failure
77058         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
77059         that are not upper-case.  Pass correct range to tolower.
77061 2009-09-27  Jim Meyering  <meyering@redhat.com>
77063         test-yesno: work around sparc-dash here-document infelicity
77064         Without this change, the literal \177 byte in a here document
77065         would make dash 0.5.5.1-3 access uninitialized memory.
77066         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
77067         Instead, use a marker, "@", and filter through tr to create the desired
77068         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
77070 2009-09-27  Bruno Haible  <bruno@clisp.org>
77072         Disable untested support for new flavours of ACLs on AIX.
77073         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
77074         progress.
77075         * lib/set-mode-acl.c (qset_acl): Likewise.
77077 2008-12-07  Bruno Haible  <bruno@clisp.org>
77079         Add support for new flavours of ACLs on AIX. (Untested.)
77080         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
77081         (file_has_acl): Add support for newer AIX.
77082         * lib/set-mode-acl.c (qset_acl): Likewise.
77083         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
77084         Rainer Tammer <tammer@tammer.net>.
77086 2009-09-26  Eric Blake  <ebb9@byu.net>
77088         argp: fix compilation of getopt
77089         * lib/getopt.in.h (includes): Use different guard than glibc.
77090         Reported by Sergey Poznyakoff.
77092         doc: mention more cygwin 1.7 status
77093         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
77094         bug.
77095         * doc/posix-functions/execl.texi (execl): Likewise.
77096         * doc/posix-functions/execle.texi (execle): Likewise.
77097         * doc/posix-functions/execlp.texi (execlp): Likewise.
77098         * doc/posix-functions/execv.texi (execv): Likewise.
77099         * doc/posix-functions/execve.texi (execve): Likewise.
77100         * doc/posix-functions/execvp.texi (execvp): Likewise.
77101         * doc/glibc-functions/canonicalize_file_name.texi
77102         (canonicalize_file_name): Cygwin 1.7 now provides this.
77103         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
77104         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
77105         on AT_SYMLINK_NOFOLLOW.
77107 2009-09-24  Eric Blake  <ebb9@byu.net>
77109         test-linkat: make test more robust
77110         * tests/test-linkat.c (main): Avoid collision with EEXIST.
77112         getopt: fix inclusion guards for cygwin
77113         * modules/getopt-posix (Depends-on): Add include-next.
77114         (Makefile.am): Substitute more items in replacement header.
77115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
77116         <getopt.h>.
77117         * lib/getopt.in.h (includes): Use split inclusion guard, and
77118         prefer <getopt.h> over include <unistd.h> when one is present.
77119         (option): Also override name of 'struct option'.
77121         same-inode: revert prior change; it is not yet ready
77122         * NEWS: Undo mention of this change.
77123         * lib/same-inode.h (same-inode.h): Undo tri-state change.
77124         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
77125         * lib/cycle-check.c (cycle_check): Likewise.
77126         * lib/same.c (same_name): Likewise.
77127         * lib/at-func2.c (at_func2): Likewise.
77129 2009-09-23  Eric Blake  <ebb9@byu.net>
77131         linkat: new module
77132         * modules/linkat: New file.
77133         * lib/at-func2.c (at_func2): Likewise.
77134         * lib/linkat.c (linkat): Likewise.
77135         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
77136         * lib/openat-priv.h (at_func2): Add declaration.
77137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77138         * modules/unistd (Makefile.am): Substitute them.
77139         * lib/unistd.in.h (linkat): Declare it.
77140         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77141         * doc/posix-functions/linkat.texi (linkat): Likewise.
77142         * doc/posix-functions/link.texi (link): Tweak wording.
77143         * tests/test-link.c (main): Move guts...
77144         * tests/test-link.h (test_link): ...into new file.
77145         * modules/linkat-tests: New test.
77146         * tests/test-linkat.c: Likewise.
77147         * modules/link-tests (Files): Ship new file.
77148         (Depends-on): Add stdbool.
77150         dirname: add library-safe mdir_name
77151         * lib/dirname.h (mdir_name): New prototype.
77152         * lib/dirname.c (dir_name): Move guts...
77153         (mdir_name): ...to new function that avoids xalloc_die.
77155         fchdir: another mingw fix
77156         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
77157         * lib/fchdir.c (get_name): New helper method; skips canonicalize
77158         on mingw (where it has not yet been ported), and make it optional
77159         elsewhere.
77160         (_gl_register_fd): Use it.
77162         same-inode: make SAME_INODE tri-state, to port to mingw
77163         * NEWS: Mention this change.
77164         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
77165         st_ino always being 0.
77166         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
77167         * lib/cycle-check.c (cycle_check): Likewise.
77168         * lib/same.c (same_name): Likewise.
77170         lstat: avoid mingw compilation error
77171         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
77172         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
77173         lstat ourselves.
77174         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
77175         was adequate.
77176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
77177         the checks for lstat.
77178         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
77180         link: fix test failure on Solaris 9
77181         * lib/link.c (rpl_link): Don't assume link will catch bogus
77182         trailing slash on source.
77184         test-symlinkat: enhance test
77185         * tests/test-readlink.c (main): Move guts...
77186         * tests/test-readlink.h (test_readlink): ...into new file.
77187         * tests/test-symlink.c (main): Move guts...
77188         * tests/test-symlink.h (test_symlink): ...into new file.
77189         * tests/test-symlinkat.c (main): Use new files for further
77190         coverage.
77191         (do_symlink, do_readlink): New helper functions.
77192         * modules/symlink-tests (Files): Ship new file.
77193         (Depends-on): Add stdbool.
77194         * modules/readlink-tests (Files): Ship new file.
77195         (Depends-on): Add stdbool.
77196         * modules/symlinkat-tests (Files): Use new files.
77198 2009-09-23  Eric Blake  <ebb9@byu.net>
77200         readlink: document portability issue with symlink length
77201         * doc/posix-functions/lstat.texi (lstat): Mention that some file
77202         systems have bogus st_size on symlinks, and mention the
77203         areadlink-with-size module.
77204         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
77205         * doc/posix-functions/readlink.texi (readlink): Mention the
77206         areadlink module, and ERANGE failure.
77207         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77208         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
77210         readlink: fix Solaris 9 bug with trailing slash
77211         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
77212         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
77213         * doc/posix-functions/readlink.texi (readlink): Document this.
77214         * modules/readlink-tests: New test.
77215         * tests/test-readlink.c: Likewise.
77217         readlink: fix cygwin 1.5.x bug with return type
77218         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
77219         * lib/unistd.in.h (readlink): Use ssize_t.
77220         * lib/readlink.c (readlink): Likewise.
77221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77222         * modules/unistd (Makefile.am): Substitute it.
77223         * lib/unistd.in.h (readlink): Declare replacement.
77224         * doc/posix-functions/readlink.texi (readlink): Document this.
77226         symlink: use throughout gnulib
77227         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
77228         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
77229         symlink is not used.
77230         * modules/symlinkat (Depends-on): Add symlink.
77231         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
77232         * modules/canonicalize-tests (Depends-on): Likewise.
77233         * modules/lstat-tests (Depends-on): Likewise.
77234         * modules/openat-tests (Depends-on): Likewise.
77235         * modules/remove-tests (Depends-on): Likewise.
77236         * modules/rmdir-tests (Depends-on): Likewise.
77237         * modules/unlink-tests (Depends-on): Likewise.
77238         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
77239         * tests/test-canonicalize.c (symlink): Likewise.
77240         * tests/test-fstatat.c (symlink): Likewise.
77241         * tests/test-lstat.c (symlink): Likewise.
77242         * tests/test-remove.c (symlink): Likewise.
77243         * tests/test-rmdir.c (symlink): Likewise.
77244         * tests/test-unlink.c (symlink): Likewise.
77245         * tests/test-unlinkat.c (symlink): Likewise.
77247         symlink: new module, for Solaris 9 bug
77248         * modules/symlink: New file.
77249         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
77250         * lib/symlink.c: Likewise.
77251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77252         * modules/unistd (Makefile.am): Substitute them.
77253         * lib/unistd.in.h (symlink): Declare replacement.
77254         * MODULES.html.sh (File system functions): Mention it.
77255         * doc/posix-functions/symlink.texi (symlink): Likewise.
77256         * modules/symlink-tests: New test.
77257         * tests/test-symlink.c: Likewise.
77259 2009-09-23  Bruno Haible  <bruno@clisp.org>
77261         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
77262         when needed.
77263         Test case: gnulib-tool --import --with-tests atexit inttypes.
77264         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
77266 2009-09-23  Bruno Haible  <bruno@clisp.org>
77268         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
77269         subcommand, not in a subshell.
77271 2009-09-22  Eric Blake  <ebb9@byu.net>
77273         unistd: sort replacement declarations
77274         * lib/unistd.in.h: Sort declarations.
77276         open, openat: minor optimization
77277         * lib/open.c (open): If open succeeded, len is non-zero.
77278         * lib/openat.c (rpl_openat): Likewise.
77280         link-follow: ensure correct result
77281         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
77282         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
77283         distinguish between possible failures.
77285 2009-09-21  Eric Blake  <ebb9@byu.net>
77287         fts: avoid compiler warning
77288         * lib/fts.c (dirent_inode_sort_may_be_useful)
77289         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
77291 2009-09-19  Bruno Haible  <bruno@clisp.org>
77293         * lib/progreloc.c (canonicalize_file_name): New declaration.
77295 2009-09-19  Eric Blake  <ebb9@byu.net>
77297         link: fix quoting
77298         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
77300         openat: fix openat bugs on Solaris 9
77301         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
77302         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
77303         * modules/openat (Depends-on): Add open.
77304         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
77305         * modules/fcntl-h (Makefile.am): Substitute it.
77306         * lib/fcntl.in.h (openat): Declare replacement.
77307         * doc/posix-functions/openat.texi (openat): Document this.
77309         openat: move fstatat and unlinkat into correct files
77310         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
77311         compiled.
77312         * lib/openat.c (fstatat, unlinkat): Move...
77313         * lib/fstatat.c (fstatat): ...into correct files.
77314         * lib/unlinkat.c (unlinkat): Likewise.
77316         openat: fix unlinkat bugs on Solaris 9
77317         * lib/unlinkat.c (unlinkat): New file.
77318         * modules/openat (Depends-on): Add unlink.
77319         (Files): Distribute it.
77320         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
77321         trailing slash behavior is broken.
77322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77323         * modules/unistd (Makefile.am): Substitute it.
77324         * lib/unistd.in.h (unlinkat): Declare replacement.
77325         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
77327         openat: fix fstatat bugs on Solaris 9
77328         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
77329         stat.
77330         * doc/posix-functions/fstatat.texi (fstatat): Document this.
77332         test-unlinkat: enhance test, to expose Solaris 9 bug
77333         * tests/test-unlink.c (main): Factor guts...
77334         * tests/test-unlink.h (test_rmdir_func): ...into new file.
77335         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
77336         * tests/test-rmdir.c (main): Adjust caller.
77337         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
77338         (unlinker): New helper function.
77339         (rmdirat): Enhance check.
77340         * modules/rmdir-tests (Depends-on): Add stdbool.
77341         * modules/unlink-tests (Depends-on): Likewise.
77342         (Files): Add test-unlink.h.
77343         * modules/openat-tests (Files): Likewise.
77344         (Depends-on): Add unlinkdir.
77346         test-fstatat: new test, to expose Solaris 9 bugs
77347         * tests/test-stat.c (main): Factor guts...
77348         * tests/test-stat.h (test_stat_func): ...into new file.
77349         * tests/test-lstat.c (main): Factor guts...
77350         * tests/test-lstat.h (test_lstat_func): ...into new file.
77351         * tests/test-fstatat.c: New file.
77352         * modules/stat-tests (Files): Add test-stat.h.
77353         * modules/lstat-tests (Files): Add test-lstat.h.
77354         (Depends-on): Add stdbool.
77355         * modules/openat-tests (Depends-on): Add pathmax.
77356         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
77357         (Makefile.am): Run new test.
77359         remove: new module, for mingw and Solaris 9 bugs
77360         * modules/remove: New file.
77361         * lib/remove.c: Likewise.
77362         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
77363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
77364         * modules/stdio (Makefile.am): Use them.
77365         * lib/stdio.in.h (remove): Declare replacement.
77366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77367         * doc/posix-functions/remove.texi (remove): Likewise.
77368         * modules/remove-tests: New test.
77369         * tests/test-remove.c: Likewise.
77371         unlink: new module, for Solaris 9 bug
77372         * modules/unlink: New file.
77373         * lib/unlink.c: Likewise.
77374         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
77375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77376         * modules/unistd (Makefile.am): Use them.
77377         * lib/unistd.in.h (stat): Declare replacement.
77378         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77379         * doc/posix-functions/unlink.texi (unlink): Likewise.
77380         * modules/unlink-tests: New test.
77381         * tests/test-unlink.c: Likewise.
77383         lstat: fix Solaris 9 bug
77384         * lib/lstat.c (lstat): Also check for trailing slash on
77385         non-symlink, non-directories.  Use stat module to simplify logic.
77386         * doc/posix-functions/lstat.texi (lstat): Document it.
77387         * modules/lstat-tests (Depends-on): Add errno, same-inode.
77388         (configure.ac): Check for symlink.
77389         * tests/test-lstat.c (main): Add more tests.
77391         stat: add as dependency to other modules
77392         * modules/chown (Depends-on): Add stat.
77393         * modules/euidaccess (Depends-on): Likewise.
77394         * modules/fchdir (Depends-on): Likewise.
77395         * modules/isdir (Depends-on): Likewise.
77396         * modules/link (Depends-on): Likewise.
77397         * modules/lstat (Depends-on): Likewise.
77398         * modules/mkdir-p (Depends-on): Likewise.
77399         * modules/modechange (Depends-on): Likewise.
77400         * modules/open (Depends-on): Likewise.
77401         * modules/readlink (Depends-on): Likewise.
77402         * modules/same (Depends-on): Likewise.
77404         stat: fix Solaris 9 bug
77405         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
77406         slash.
77407         * lib/stat.c (rpl_stat): Work around it.
77408         * doc/posix-functions/stat.texi (stat): Update documentation.
77410         stat: new module, for mingw bug
77411         * modules/stat: New file.
77412         * lib/stat.c: Likewise.
77413         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
77414         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77415         * modules/sys_stat (Makefile.am): Use them.
77416         * lib/sys_stat.in.h (stat): Declare replacement.
77417         * lib/openat.c (fstatat): Deal with lstat and stat being function
77418         macros.
77419         * modules/openat (Depends-on): Add inline.
77420         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77421         * doc/posix-functions/stat.texi (stat): Likewise.
77422         * modules/stat-tests: New test.
77423         * tests/test-stat.c: Likewise.
77425 2009-09-19  Jim Meyering  <meyering@redhat.com>
77427         syntax-check: detect unnecessary inclusion of canonicalize.h
77428         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
77430 2009-09-19  Eric Blake  <ebb9@byu.net>
77432         canonicalize-lgpl: adjust clients to use correct header
77433         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77434         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
77435         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
77436         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
77437         * lib/progreloc.c (includes): Likewise.
77439 2009-09-19  Jim Meyering  <meyering@redhat.com>
77441         test-posixtm.c: correct a comment
77442         * tests/test-posixtm.c: Correct first-line comment.
77443         Spotted by Eric Blake.
77445 2009-09-16  Jim Meyering  <meyering@redhat.com>
77447         posixtm-tests: make T const-correct; add a test case
77448         * tests/test-posixtm.c (T): Declare const.
77449         Add a test for -(2^31+1).
77450         Remove useless can-succeed-only-in-2002 test.
77452         posixtm-tests: adjust the sole failing test
77453         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
77454         expected output matches what mktime now produces.  Cross-checked via
77455         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
77457         posixtm: move #ifdef'd tests into a new module
77458         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
77459         * tests/test-posixtm.c: ... this new file.
77460         * modules/posixtm-tests: New module.
77462 2009-09-19  Eric Blake  <ebb9@byu.net>
77464         openat: simplify use of at-func.c
77465         * lib/at-func.c (includes): Include prerequisites here, to
77466         simplify requirements on client files.
77467         * lib/openat-priv.h: Add double-inclusion guard.
77468         * lib/faccessat.c (includes): Simplify.
77469         * lib/fchmodat.c (includes): Likewise.
77470         * lib/fchownat.c (includes): Likewise.
77471         * lib/mkdirat.c (includes): Likewise.
77472         * lib/mkfifoat.c (includes): Likewise.
77473         * lib/symlinkat.c (includes): Likewise.
77475         openat: allow return of fd 0
77476         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
77477         * modules/save-cwd (Depends-on): Replace fcntl-safer with
77478         unistd-safer.
77479         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
77480         <fcntl.h>; this module does not leak fds.
77481         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
77482         must be allowed to return 0, leaving openat_safer to add the
77483         safety.
77484         (openat_permissive): Avoid writing to just-opened fd 2 if
77485         restoring the current directory fails.
77486         * lib/openat-die.c (openat_restore_fail): Add comment.
77487         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
77488         (save_cwd): Guarantee safe fd, but without use of open_safer.
77489         * tests/test-openat.c: New test.
77490         * modules/openat-tests (Files, Makefile.am): Distribute and build
77491         new file.
77493         relocatable-prog-wrapper: fix build
77494         * modules/relocatable-prog-wrapper (Files): Update name of
77495         canonicalize m4 file, broken on 2009-09-17.
77496         Reported by emad hajjar <aleppos@hotmail.com>.
77498 2009-09-19  Bruno Haible  <bruno@clisp.org>
77500         * lib/safe-alloc.h: Use the standard header with GPL copyright.
77501         * lib/safe-alloc.c: Likewise.
77502         Reported by Ian Beckwith <ianb@erislabs.net>.
77504 2009-09-18  Bruno Haible  <bruno@clisp.org>
77506         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
77507         Reported by <erobles@sensacd.com.mx>.
77509 2009-09-17  Eric Blake  <ebb9@byu.net>
77511         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
77512         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
77513         slashes when checking if last component is missing.
77514         * tests/test-canonicalize.c (main): Test this.
77516         canonicalize, canonicalize-lgpl: honor // if distinct from /
77517         * modules/canonicalize (Files): Add double-slash-root.m4.
77518         * modules/canonicalize-lgpl (Files): Likewise.
77519         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77520         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
77521         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
77522         fallback definition.
77523         (canonicalize_filename_mode): Use it to protect //.
77524         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
77525         (__realpath): Likewise.
77526         * tests/test-canonicalize.c (main): Test this.
77527         * tests/test-canonicalize-lgpl.c (main): Likewise.
77528         * modules/canonicalize-tests (Depends-on): Add same-inode.
77529         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
77531         canonicalize-lgpl: fix glibc bug with trailing slash
77532         * m4/canonicalize-lgpl.m4: Move contents...
77533         * m4/canonicalize.m4: ...here.
77534         (gl_CANONICALIZE_LGPL): Factor realpath check...
77535         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
77536         glibc 2.3.5 bug, fixed 2005-04-27.
77537         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
77538         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
77539         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
77540         * modules/canonicalize-lgpl (Files): Manage file rename.
77541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77542         * modules/stdlib (Makefile.am): Substitute witness.
77543         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
77544         is needed.
77545         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
77546         replacement is required.
77547         * lib/canonicalize.c (canonicalize_file_name): Likewise.
77548         * doc/glibc-functions/canonicalize_file_name.texi
77549         (canonicalize_file_name): Document this.
77550         * doc/posix-functions/realpath.texi (realpath): Likewise.
77552         canonicalize-lgpl: reject non-directory with trailing slash
77553         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
77554         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
77555         catches failures in glibc 2.3.5.
77556         * tests/test-canonicalize.c (main): Likewise.
77558         canonicalize-lgpl: use native realpath if it works
77559         * lib/canonicalize-lgpl.c (realpath): Guard with
77560         FUNC_REALPATH_WORKS.
77561         * lib/stdlib.in.h (realpath): Make declaration optional based on
77562         HAVE_REALPATH.
77563         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
77564         native realpath works.
77565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77566         * modules/stdlib (Makefile.am): Substitute witness.
77568         canonicalize, canonicalize-lgpl: use <stdlib.h>
77569         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
77570         (Include): Mention <stdlib.h>.
77571         (configure.ac): Mention functions we provide.
77572         * modules/canonicalize (configure.ac): Likewise.
77573         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
77574         realpath if canonicalize_file_name is missing.
77575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
77576         * modules/stdlib (Makefile.am): Substitute witnesses.
77577         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
77578         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
77579         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
77580         * NEWS: Document this.
77581         * doc/glibc-functions/canonicalize_file_name.texi
77582         (canonicalize_file_name): Likewise.
77583         * doc/posix-functions/realpath.texi (realpath): Likewise.
77584         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
77586         test-canonicalize: consolidate into single C program
77587         * tests/test-canonicalize.sh: Delete; move setup into...
77588         * tests/test-canonicalize.c (main): ...the program, making it
77589         easier to run in debugger.  Add some tests.
77590         * modules/canonicalize-tests (Files): Remove unused file.
77591         (Depends-on): Add progname.
77592         (configure.ac, Makefile.am): Simplify.
77594         test-canonicalize-lgpl: consolidate into single C program
77595         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
77596         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
77597         easier to run in debugger.  Add some tests.
77598         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
77599         (configure.ac, Makefile.am): Simplify.
77601         canonicalize: avoid resolvepath
77602         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
77603         unnecessary checks.
77604         * lib/canonicalize.c (includes): Simplify.
77605         (canonicalize_file_name): Drop resolvepath implementation.
77606         * modules/canonicalize (Depends-on): Drop filenamecat.
77608         canonicalize: don't lose errno
77609         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
77610         over calls to free.
77612         canonicalize: simplify errno handling
77613         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
77614         assignment.
77616         canonicalize, canonicalize-lgpl: update module dependencies
77617         * modules/canonicalize (Depends-on): Add extensions, lstat,
77618         pathmax, stdlib.
77619         (Files): Drop pathmax.h.
77620         (configure.ac): Adjust macro name.
77621         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
77622         lstat, stdlib, sys_stat.
77623         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
77624         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
77625         extensions.
77626         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
77627         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
77628         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
77629         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
77630         declaration, if available.
77631         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
77632         we can rely on the readlink module.
77633         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
77634         (includes): Use <unistd.h> unconditionally.
77636 2009-09-17  Eric Blake  <ebb9@byu.net>
77638         maint: make Include sections of modules consistent
77639         * modules/alloca: Use only header name; no need to list #include.
77640         * modules/alloca-opt: Likewise.
77641         * modules/arpa_inet: Likewise.
77642         * modules/canon-host: Likewise.
77643         * modules/configmake: Likewise.
77644         * modules/dirent: Likewise.
77645         * modules/eealloc: Likewise.
77646         * modules/environ: Likewise.
77647         * modules/fchdir: Likewise.
77648         * modules/fcntl: Likewise.
77649         * modules/fcntl-h: Likewise.
77650         * modules/gethrxtime: Likewise.
77651         * modules/gettime: Likewise.
77652         * modules/ignore-value: Likewise.
77653         * modules/inet_ntop: Likewise.
77654         * modules/inet_pton: Likewise.
77655         * modules/inttypes: Likewise.
77656         * modules/isnand-nolibm: Likewise.
77657         * modules/isnanf-nolibm: Likewise.
77658         * modules/mbchar: Likewise.
77659         * modules/mbfile: Likewise.
77660         * modules/mbiter: Likewise.
77661         * modules/mbuiter: Likewise.
77662         * modules/netdb: Likewise.
77663         * modules/netinet_in: Likewise.
77664         * modules/nproc: Likewise.
77665         * modules/pagealign_alloc: Likewise.
77666         * modules/poll: Likewise.
77667         * modules/printf-frexp: Likewise.
77668         * modules/pthread: Likewise.
77669         * modules/putenv: Likewise.
77670         * modules/random_r: Likewise.
77671         * modules/relocatable-prog: Likewise.
77672         * modules/search: Likewise.
77673         * modules/select: Likewise.
77674         * modules/selinux-h: Likewise.
77675         * modules/settime: Likewise.
77676         * modules/signal: Likewise.
77677         * modules/size_max: Likewise.
77678         * modules/socklen: Likewise.
77679         * modules/ssize_t: Likewise.
77680         * modules/stdarg: Likewise.
77681         * modules/stdbool: Likewise.
77682         * modules/stddef: Likewise.
77683         * modules/stdint: Likewise.
77684         * modules/stdio: Likewise.
77685         * modules/stdlib: Likewise.
77686         * modules/string: Likewise.
77687         * modules/strings: Likewise.
77688         * modules/sys_file: Likewise.
77689         * modules/sys_ioctl: Likewise.
77690         * modules/sys_select: Likewise.
77691         * modules/sys_socket: Likewise.
77692         * modules/sys_stat: Likewise.
77693         * modules/sys_time: Likewise.
77694         * modules/sys_times: Likewise.
77695         * modules/sys_utsname: Likewise.
77696         * modules/sys_wait: Likewise.
77697         * modules/sysexits: Likewise.
77698         * modules/time: Likewise.
77699         * modules/times: Likewise.
77700         * modules/tmpfile: Likewise.
77701         * modules/trim: Likewise.
77702         * modules/unistd: Likewise.
77703         * modules/wchar: Likewise.
77704         * modules/wctype: Likewise.
77706 2009-09-17  Bruno Haible  <bruno@clisp.org>
77708         Make getdate.y compile on QNX and NetBSD 5 / i386.
77709         * m4/getdate.m4 (gl_GETDATE): Conditionally define
77710         TIME_T_FITS_IN_LONG_INT.
77711         * lib/getdate.y (long_time_t): New type.
77712         (relative_time): Change type of 'seconds' field to long_time_t.
77713         (get_date): Update types of local variables. Check against overflow
77714         during conversion from long_time_t to time_t.
77715         Reported by Matt Kraai <kraai@ftbfs.org>
77716         and Hasso Tepper <hasso@netbsd.org>.
77718 2009-09-17  Bruno Haible  <bruno@clisp.org>
77720         * modules/COPYING: Update copyright years.
77721         * modules/README: Likeiwse.
77722         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
77723         Reported by Ian Beckwith <ianb@erislabs.net>.
77725 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77727         * users.txt: Update references for gnuit package.
77729 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77731         * m4/getdelim.m4: Fix typo in copyright line.
77733 2009-09-17  Bruno Haible  <bruno@clisp.org>
77735         * lib/atoll.c: Use the standard header with GPL copyright.
77736         * lib/argz.in.h: Likewise.
77737         * lib/glob.c: Likewise.
77738         * lib/glob-libc.h: Likewise.
77739         * lib/random_r.c: Likewise.
77740         * lib/siglist.h: Likewise.
77741         * lib/strsignal.c: Likewise.
77742         Reported by Ian Beckwith <ianb@erislabs.net>.
77744 2009-09-17  Eric Blake  <ebb9@byu.net>
77746         rmdir: ensure correct dependency order
77747         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
77749 2009-09-17  Bruno Haible  <bruno@clisp.org>
77751         Disable assertion that fails on NetBSD 5 / i386.
77752         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
77753         Reported by Sam Steingold <sds@gnu.org>
77754         and Hasso Tepper <hasso@netbsd.org>.
77756 2009-09-16  Eric Blake  <ebb9@byu.net>
77758         unlinkdir: port to mingw
77759         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
77760         on which no one can unlink a directory.
77762         stdlib: sort witness names
77763         * modules/stdlib (Makefile.am): Sort replacements.
77764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77765         * lib/stdlib.in.h: Likewise.
77767         parse-duration-tests: avoid link failure
77768         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
77769         LIBINTL.
77770         Reported by Tom G. Christensen.
77772         openat-tests: ensure unlinkat behaves like rmdir
77773         * tests/test-rmdir.c (main): Factor guts...
77774         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
77775         * modules/rmdir-tests (Files): Ship new file.
77776         * modules/openat-tests: New test.
77777         * tests/test-unlinkat.c: Likewise.
77779         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
77780         * modules/rmdir-errno (Status, Notice): Now obsolete.
77782         rmdir: work around cygwin 1.5.x and mingw bugs
77783         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
77784         * lib/rmdir.c (rmdir): Work around it.
77785         * modules/rmdir (Status, Notice): No longer obsolete.
77786         (Files): Add dos.m4.
77787         (Depends-on): Add unistd.
77788         (configure.ac): Set witnesses.
77789         (License): Relax to LGPLv2+.
77790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
77791         * modules/unistd (Makefile.am): Substitute witnesses.
77792         * lib/unistd.in.h (rmdir): Declare replacement.
77793         * doc/posix-functions/rmdir.texi (rmdir): Document this.
77794         * modules/rmdir-tests: New tests.
77795         * tests/test-rmdir.c: Likewise.
77797 2009-09-15  Eric Blake  <ebb9@byu.net>
77799         fchdir: improve use of replacement functions
77800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
77801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
77802         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
77803         REPLACE_CLOSEDIR.
77804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
77805         * modules/sys_stat (Makefile.am): Substitute correct witness.
77806         * modules/dirent (Makefile.am): Likewise.
77807         * modules/unistd (Makefile.am): Likewise.
77808         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
77809         * lib/unistd.in.h (dup): Likewise.
77810         * lib/sys_stat.in.h (fstat): Likewise.
77812         maint: ignore gnulib-tool temp files
77813         * .gitignore: Ignore files created during gnulib-tool --test.
77815 2009-09-13  Jim Meyering  <meyering@redhat.com>
77817         posixtm: don't reject a time that specify "60" as the number of seconds
77818         * lib/posixtm.c (posixtime): The code to reject invalid dates
77819         would also reject a time specified with the .60 suffix.
77820         But POSIX allows that, in order to accommodate leap seconds.
77821         So don't reject it.
77822         (main): Adjust tests accordingly.
77823         * modules/posixtm (Depends-on): Add stpcpy.
77825 2009-09-11  Jim Meyering  <meyering@redhat.com>
77827         announce-gen: include [$release_type] in emitted Subject:
77828         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
77829         e.g., [stable] in the emitted Subject: line.
77831 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77833         Remove obsolete macros from several modules.
77834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
77835         obsolete Autoconf macros with their modern counterparts.
77836         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
77837         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
77838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
77839         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
77841         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77843         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
77844         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
77845         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
77846         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
77847         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
77848         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
77849         * m4/sockets.m4 (gl_SOCKETS): Likewise.
77850         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
77851         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
77852         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
77853         * m4/time_r.m4 (gl_TIME_R): Likewise.
77854         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
77855         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
77856         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
77858         Fix copyright header in build-aux scripts.
77859         * build-aux/git-version-gen: Fix copyright header to match GPLv3
77860         recommendation.
77861         * build-aux/ncftpput-ftp: Likewise.
77862         * build-aux/update-copyright: Likewise.
77864 2009-09-09  Eric Blake  <ebb9@byu.net>
77866         test-link: allow Linux choice of errno
77867         * tests/test-link.c (main): Relax test for alternate error.
77869         strndup: fix improper m4 caching
77870         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
77871         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
77872         (gl_PREREQ_STRNDUP): Delete.
77873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
77874         * modules/string (Makefile.am): Substitute it.
77875         * lib/string.in.h (strndup): Modernize prototype.
77877         getcwd: port to mingw
77878         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
77879         different from the POSIX assumptions made throughout the getcwd
77880         module; fortunately, the mingw getcwd does not need replacement.
77881         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
77882         * modules/getcwd-tests: New test.
77883         * tests/test-getcwd.c: Likewise.
77885         link: fix platform bugs
77886         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
77887         * lib/link.c (link): Work around them.  Fix related mingw bug.
77888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
77889         * modules/unistd (Makefile.am): Substitute it.
77890         * lib/unistd.in.h (link): Declare replacement.
77891         * doc/posix-functions/link.texi (link): Document this.
77892         * modules/link (Depends-on): Add strdup-posix, sys_stat.
77894         test-link: consolidate into single C program, test more cases
77895         * tests/test-link.sh: Delete.
77896         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77897         at least Cygwin and Solaris.
77898         * modules/link-tests (Files): Remove unused file.
77899         (Depends-on): Add errno, sys_stat.
77900         (Makefile.am): Simplify.
77902 2009-09-08  Bruno Haible  <bruno@clisp.org>
77904         Work around towlower, towupper bug on mingw.
77905         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77906         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77907         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77908         * doc/posix-functions/towupper.texi: Likewise.
77909         Reported by Eric Blake.
77911 2009-09-08  Jim Meyering  <meyering@redhat.com>
77913         build: don't try to run autoheader if we don't use it
77914         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77915         is not used in configure.ac.
77917 2009-09-08  Eric Blake  <ebb9@byu.net>
77919         euidaccess: fix compilation error
77920         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77922         rawmemchr: relax license
77923         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77924         okay.
77925         Reported by Jim Meyering.
77927         mkfifoat: new module
77928         * modules/mkfifoat: New file.
77929         * lib/mkfifoat.c: Likewise.
77930         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77931         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77932         * modules/sys_stat (Makefile.am): Use them.
77933         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77934         * MODULES.html.sh (File system functions): Mention module.
77935         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77936         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77937         * modules/mkfifoat-tests: New test.
77938         * tests/test-mkfifoat.c: Likewise.
77940         strchrnul: relax license
77941         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77942         okay.
77943         Reported by Jim Meyering.
77945 2009-09-08  Eric Blake  <ebb9@byu.net>
77947         fstatat: fix compilation on Solaris
77948         * lib/fstatat.c (includes): Add fcntl.h.
77949         Reported by Pádraig Brady.
77951 2009-09-07  Eric Blake  <ebb9@byu.net>
77953         rename: modernize replacement
77954         * modules/rename (Depends-on): Add stdio.
77955         (configure.ac): Declare witness.
77956         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77957         stdio take care of replacement.
77958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77959         * modules/stdio (Makefile.am): Substitute them.
77960         * lib/stdio.in.h (rename): Declare replacement.
77961         * lib/rename.c (includes): Allow cross-compilation to non-windows
77962         machines.
77963         * doc/posix-functions/rename.texi (rename): Improve
77964         documentation.
77966         stdio: sort witness names
77967         * modules/stdio (Makefile.am): Sort replacements.
77968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77969         * lib/stdio.in.h: Likewise.
77971         getcwd: minor cleanups
77972         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77973         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77975         openat: provide more convenience names
77976         * modules/faccessat (configure.ac): Add C witness.
77977         * lib/unistd.in.h (readlinkat): Fix typo.
77978         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77979         convenience wrappers.
77980         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77981         wrappers in syntax checks.
77983 2009-09-06  Eric Blake  <ebb9@byu.net>
77985         doc: fix comments in recent patches
77986         * lib/faccessat.c: Mention correct function.
77987         * lib/fchmodat.c: Likewise.
77988         * lib/fchownat.c: Likewise.
77989         * lib/symlinkat.c: Likewise.
77990         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77991         constants.
77993         faccessat, symlinkat: continue cleanup of previous patch
77994         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77995         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77996         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77998         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77999         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
78000         set.
78002 2009-09-06  Bruno Haible  <bruno@clisp.org>
78004         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
78005         (fstatat): Declare if GNULIB_FSTATAT is set.
78006         (mkdirat): Declare if GNULIB_MKDIRAT is set.
78007         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
78008         (unlinkat): Declare if GNULIB_UNLINKAT is set.
78009         * modules/fcntl-h (Files): Remove m4/openat.m4.
78010         * modules/sys_stat (Files): Remove m4/openat.m4.
78011         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
78012         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
78013         * modules/unistd (Files): Remove m4/openat.m4.
78014         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
78015         GNULIB_OPENAT.
78016         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
78017         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
78018         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
78019         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
78020         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
78021         gl_OPENAT_DEFAULTS.
78022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
78023         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
78024         Don't require gl_OPENAT_DEFAULTS.
78025         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
78026         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
78027         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
78028         (gl_OPENAT_DEFAULTS): Remove macro.
78030 2009-09-06  Bruno Haible  <bruno@clisp.org>
78032         * modules/openat (configure.ac): Remove unneeded witness.
78034 2009-09-06  Bruno Haible  <bruno@clisp.org>
78036         Set errno to ENOSYS when a function is entirely unsupported.
78037         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
78038         EOPNOTSUPP.
78039         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
78040         * modules/chown (Depends-on): Remove errno.
78042 2009-09-06  Bruno Haible  <bruno@clisp.org>
78044         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
78046 2009-09-06  Bruno Haible  <bruno@clisp.org>
78048         * lib/sys_stat.in.h: Fix preprocessor command indentation.
78050 2009-09-06  Ben Pfaff  <blp@gnu.org>
78051             Bruno Haible  <bruno@clisp.org>
78053         Work around a glibc bug in strtok_r.
78054         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
78055         Undefine if UNDEFINE_STRTOK_R is set.
78056         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
78057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
78058         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
78059         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
78060         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
78061         UNDEFINE_STRTOK_R.
78062         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
78064 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
78066         exclude: minor fix
78067         * lib/exclude.c: Include wctype.h
78069 2009-09-06  Akim Demaille  <demaille@gostai.com>
78071         bootstrap: improve error message
78072         * build-aux/bootstrap (find_tool): Upon failure, report the list
78073         of candidates.
78074         Honor the initial value of the envvar.
78076 2009-09-05  Eric Blake  <ebb9@byu.net>
78078         symlinkat: new module
78079         * modules/symlinkat: New file.
78080         * lib/symlinkat.c: Likewise.
78081         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
78082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78083         * modules/unistd (Makefile.am): Use them.
78084         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
78085         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
78086         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
78087         * MODULES.html.sh (File system functions): Mention module.
78088         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78089         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78090         * modules/symlinkat-tests: New test.
78091         * tests/test-symlinkat.c: Likewise.
78093         test-openat-safer: add more checks
78094         * tests/test-openat-safer.c (main): Check more code paths.
78096 2009-09-05  Jim Meyering  <meyering@redhat.com>
78098         syntax-check: detect unnecessary inclusion of openat.h
78099         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
78101 2009-09-05  Bruno Haible  <bruno@clisp.org>
78103         Support towlower, towupper.
78104         * doc/posix-functions/towlower.texi: Mention module wctype.
78105         * doc/posix-functions/towupper.texi: Likewise.
78106         * lib/wctype.in.h (towlower, towupper): New functions.
78107         * tests/test-wctype.c: Include stdio.h, stdlib.h.
78108         (ASSERT): New macro.
78109         (e): New variable.
78110         (main): Test also towlower, towupper. Test WEOF argument.
78111         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
78113 2009-09-05  Bruno Haible  <bruno@clisp.org>
78115         Fix conversion behaviour when the input is invalid.
78116         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
78117         mark occurring in first pass of indirect conversion.
78118         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
78119         input.
78120         Found by clang's static analyzer.
78122 2009-09-05  Bruno Haible  <bruno@clisp.org>
78124         * tests/test-striconveh.c (main): Test indirect conversion on platforms
78125         where direct conversion is possible.
78127 2009-09-04  Eric Blake  <ebb9@byu.net>
78129         openat: fail with ENOENT on empty name
78130         * lib/openat-proc.c (openat_proc_name): Special-case the empty
78131         buffer.
78133         link-follow: fix logic bug in prior patch
78134         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
78135         reversed sense of yes and no in prior patch.  Avoid confusing
78136         compilation failure with desired semantics.
78138         link-follow: accommodate mingw and cross-compilation
78139         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
78140         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
78141         cross-compilation results to -1, to make linkat easier to
78142         implement when cross-compiling.  Trivially support mingw.
78143         * modules/link-follow (configure.ac): Call new name.
78144         * NEWS: Mention this.
78146 2009-09-03  Eric Blake  <ebb9@byu.net>
78148         faccessat: compile replacement
78149         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
78150         needed.
78152         fts: fix compilation error
78153         * lib/fts.c (includes): Re-add "openat.h", for
78154         openat_needs_fchdir.
78156         faccessat: new module
78157         * modules/faccessat: New file.
78158         * lib/faccessat.c: Likewise.
78159         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
78160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78161         * modules/unistd (Makefile.am): Use it.
78162         * lib/unistd.in.h (faccessat): Declare it.
78163         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
78164         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
78165         * MODULES.html.sh (File system functions): Mention it.
78166         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
78167         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
78169         euidaccess: prefer POSIX over non-standard implementation
78170         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
78171         * lib/euidaccess.c (euidaccess): Use it if available.
78173         openat: make template easier to use
78174         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
78175         AT_FUNC_F2 to be undefined.
78176         (VALIDATE_FLAG): New macro; use it to reject bad flags.
78177         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
78178         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
78179         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
78180         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
78181         Likewise.
78182         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
78183         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
78184         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
78185         Likewise.
78187         openat: declare in POSIX headers
78188         * NEWS: Mention this.
78189         * modules/openat (configure.ac): Declare witnesses.
78190         (Depends-on): Add fcntl-h, sys_stat, unistd.
78191         (Include): Mention correct headers.
78192         * modules/fcntl-h (Depends-on): Add link-warning.
78193         (Files): Add openat.m4.
78194         (Makefile.am): Substitute witnesses.
78195         * modules/sys_stat (Files, Makefile.am): Likewise.
78196         * modules/unistd (Files, Makefile.am): Likewise.
78197         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
78198         (gl_OPENAT_DEFAULTS): New macro.
78199         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
78200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
78201         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
78202         (SYS_STAT_H): Remove unused variable.
78203         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
78204         * lib/fcntl--.h (includes): Remove unneeded header.
78205         * lib/openat-safer.c (includes): Likewise.
78206         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
78207         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
78208         appropriate headers.
78209         (__OPENAT_PREFIX): Delete.
78210         * lib/fcntl.in.h (openat): Provide declaration.
78211         (AT_FDCWD): Fix Solaris bug.
78212         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
78213         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
78214         * lib/fchmodat.c (includes):  Adjust to find declaration.
78215         * lib/fchownat.c (includes): Likewise.
78216         * lib/mkdirat.c (includes): Likewise.
78217         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
78218         still visible.
78220 2009-09-02  Eric Blake  <ebb9@byu.net>
78222         errno: use consistently
78223         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
78224         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
78225         * lib/canonicalize.c (ELOOP): Likewise.
78226         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
78227         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
78228         * lib/lchown.c (EOPNOTSUPP): Likewise.
78229         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
78230         * lib/savewd.c (ESTALE): Likewise.
78231         * lib/settime.c (ENOSYS): Likewise.
78232         * lib/utimens.c (ENOSYS): Likewise.
78233         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
78234         * lib/chdir-safer.c (ELOOP): Likewise.
78235         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
78236         * modules/c-stack (Depends-on): Add errno.
78237         * modules/canonicalize (Depends-on): Likewise.
78238         * modules/chdir-safer (Depends-on): Likewise.
78239         * modules/fdopendir (Depends-on): Likewise.
78240         * modules/inet_ntop (Depends-on): Likewise.
78241         * modules/inet_pton (Depends-on): Likewise.
78242         * modules/lchown (Depends-on): Likewise.
78243         * modules/openat (Depends-on): Likewise.
78244         * modules/savewd (Depends-on): Likewise.
78245         * modules/settime (Depends-on): Likewise.
78246         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
78248         fts: avoid leaking fds
78249         * modules/fts (Depends-on): Add cloexec.
78250         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
78251         flag.
78253         fts: make directory fds more robust
78254         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
78255         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
78257         backupfile, chdir-long, fts, savedir: make safer
78258         * lib/backupfile.c (includes): Use "dirent--.h", since
78259         numbered_backup can write to stderr during readdir.
78260         * lib/savedir.c (includes): Likewise.
78261         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
78262         emulation can write to stderr on failure.
78263         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
78264         * lib/getcwd.c: Document why opendir_safer is unused.
78265         * lib/glob.c: Likewise.
78266         * lib/scandir.c: Likewise.
78267         * lib/openat-proc.c: Likewise, for open_safer.
78268         * modules/backupfile (Depends-on): Add dirent-safer.
78269         * modules/savedir (Depends-on): Likewise.
78270         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
78271         * modules/chdir-long (Depends-on): Add openat-safer.
78273         openat-safer: new module
78274         * modules/openat-safer: New file.
78275         * lib/openat-safer.c: Likewise.
78276         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
78277         * lib/fcntl-safer.h (openat_safer): Declare.
78278         * lib/fcntl--.h (openat): Override.
78279         * MODULES.html.sh (File descriptor based I/O): Mention it.
78280         * lib/openat.h: Add double-inclusion guards.
78281         * lib/openat.c (includes): Only include "fcntl-safer.h", not
78282         "fcntl--.h", so we can implement openat.
78283         * modules/openat-safer-tests: New test.
78284         * tests/test-openat-safer.c: New file.
78286         dirent-safer: new module
78287         * modules/dirent-safer: New file.
78288         * lib/dirent--.h: Likewise.
78289         * lib/dirent-safer.h: Likewise.
78290         * lib/opendir-safer.c: Likewise.
78291         * m4/dirent-safer.m4: Likewise.
78292         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
78293         * modules/dirent-safer-tests: New test.
78294         * tests/test-dirent-safer.c: New file.
78295         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
78297         fdopendir: optimize on mingw
78298         * lib/unistd.in.h (_gl_directory_name): New prototype.
78299         * lib/fchdir.c (_gl_directory_name): Implement it.
78300         (fchdir): Use it to simplify implementation.
78301         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
78302         fchdir, when available, to avoid calling [f]chdir().
78304         fdopendir: split into its own module
78305         * lib/openat.c (fdopendir): Move...
78306         * lib/fdopendir.c: ...into new file.
78307         * modules/fdopendir: New module.
78308         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
78309         * modules/openat (Depends-on): Add fdopendir.
78310         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
78311         fdopendir here.
78312         * modules/savedir (Depends-on): Only need fdopendir, not full
78313         openat.
78314         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
78315         * lib/openat.h (fdopendir): Drop prototype.
78316         * lib/dirent.in.h (fdopendir): Provide prototype.
78317         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
78318         * modules/dirent (Makefile.am): Substitute them.
78319         * MODULES.html.sh (File system functions): Mention it.
78320         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
78321         * modules/fdopendir-tests: New file.
78322         * tests/test-fdopendir.c: Likewise.
78324         fchdir: use more consistent macro convention
78325         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
78326         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
78327         REPLACE_FCHDIR, rather than relying on config.h macros.
78328         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
78329         inside a single make-time REPLACE_FCHDIR block, rather than using
78330         the config.h FCHDIR_REPLACEMENT.
78331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
78332         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
78333         Manage fstat replacement.
78334         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
78335         REPLACE_FCHDIR.
78336         * modules/sys_stat (Files): Add m4/unistd_h.m4.
78337         (Makefile.am): Substitute REPLACE_FCHDIR.
78338         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
78339         FCHDIR_REPLACEMENT.
78340         * lib/dup-safer.c (dup_safer): Likewise.
78341         * lib/dup2.c (rpl_dup2): Likewise.
78342         * lib/dup3.c (rpl_dup3): Likewise.
78343         * lib/open.c (rpl_open): Likewise.
78345         fchdir: simplify error handling, and support dup3
78346         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
78347         stdbool, malloc-posix, realloc-posix.
78348         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
78349         (ensure_dirs_slot): Return false on allocation failure.
78350         (rpl_dup2): Delete.
78351         (_gl_register_dup): New function.
78352         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
78353         (_gl_register_fd): Close fd on allocation failure.
78354         * lib/fcntl.in.h (_gl_register_fd): Update signature.
78355         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
78356         prototype.
78357         (rpl_dup2_fchdir): Delete prototype.
78358         * lib/open.c (open): Update caller.
78359         * lib/dup2.c (dup2): Track fchdir metadata.
78360         * lib/dup3.c (dup3): Likewise.
78361         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
78362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
78364 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78366         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
78367         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
78368         don't pass arguments to AC_OUTPUT.
78370 2009-09-02  Bruno Haible  <bruno@clisp.org>
78372         * modules/mkdtemp (License): Relicense under LGPLv2+.
78373         Reported by Paolo Bonzini.
78375 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78377         Replace uses of obsolete autoconf macros in Jim's modules.
78378         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
78379         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
78380         can evoke a warning from autoconf when run with -Wobsolete
78381         enabled.  They were declared obsolete for good reasons (see
78382         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
78383         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
78384         should not continue using the deprecated macros.
78385         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
78386         obsolete Autoconf macros with modern counterparts.
78387         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78388         * m4/dos.m4 (gl_AC_DOS): Likewise.
78389         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
78390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
78391         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
78392         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
78393         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
78394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
78395         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
78396         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
78397         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78398         Likewise.
78399         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
78400         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78401         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
78402         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
78403         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
78404         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78406 2009-09-01  Eric Blake  <ebb9@byu.net>
78408         fchdir: fix off-by-one bug in previous patch
78409         * lib/fchdir.c (rpl_fstat): Use correct bounds.
78410         (_gl_unregister_fd): Delete useless if.
78412 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
78414         maint.mk: sort the list of syntax-check rules
78415         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
78416         easier to get a sense of progress when the rules are run sequentially
78417         and take a long time.
78419 2009-09-01  Simon Josefsson  <simon@josefsson.org>
78421         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
78422         * modules/netinet_in: Likewise.
78423         * modules/sys_file: Likewise.
78424         * modules/sys_ioctl: Likewise.
78425         * modules/sys_select: Likewise.
78426         * modules/sys_socket: Likewise.
78427         * modules/sys_stat: Likewise.
78428         * modules/sys_time: Likewise.
78429         * modules/sys_times: Likewise.
78430         * modules/sys_utsname: Likewise.
78431         * modules/sys_wait: Likewise.
78433 2009-09-01  Jim Meyering  <meyering@redhat.com>
78435         fts: help ensure that return values are not ignored
78436         * lib/fts_.h (__GNUC_PREREQ): Define.
78437         (__attribute_warn_unused_result__): Define.
78438         (fts_children, fts_close, fts_open, fts_read): Declare with
78439         __attribute_warn_unused_result__.
78441         fts: fts_close now fails also when closing a dir file descriptor fails
78442         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
78443         and propagate to caller, along with errno.
78445         announce-gen: correct formatting in --help output
78446         * build-aux/announce-gen (usage): Move the one-line description in
78447         --help output "up", to where it belongs, just after Usage:.
78449 2009-08-31  Eric Blake  <ebb9@byu.net>
78451         fchdir: port to mingw
78452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
78453         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
78454         opened, then use a substitute.
78455         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
78456         replacement.
78457         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
78458         (_gl_register_fd): No need to check stat if open already filters
78459         all directories.
78460         (fchdir): Fix error condition to match POSIX.
78461         * modules/fchdir (Depends-on): Add sys_stat.
78462         * doc/posix-functions/open.texi (open): Document the limitation.
78463         * modules/fchdir-tests: New file.
78464         * tests/test-fchdir.c: Likewise.
78466         canonicalize: allow cross-testing from cygwin to mingw
78467         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
78468         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
78469         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
78470         Likewise.
78471         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
78472         target does not support symlinks.
78473         * tests/test-canonicalize-lgpl.sh: Likewise.
78475         chown: avoid compilation warning on mingw
78476         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
78477         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
78478         mingw.
78479         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
78480         * modules/chown (Depends-on): Add errno.
78482 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
78484         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
78485         command.
78487 2009-08-31  Jim Meyering  <meyering@redhat.com>
78489         canonicalize: remove useless initialization
78490         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
78491         initialization of local, "end".
78493 2009-08-30  Bruno Haible  <bruno@clisp.org>
78495         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
78496         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
78497         ENOSYS.
78499 2009-08-30  Bruno Haible  <bruno@clisp.org>
78501         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
78502         /usr/xpg4/bin/tr when it exists.
78503         * tests/test-pipe-filter-gi1.sh: Likewise.
78505 2009-08-30  Bruno Haible  <bruno@clisp.org>
78507         Work around deficient /usr/bin/id program on Solaris.
78508         * tests/test-file-has-acl.sh (ID): New variable.
78509         * tests/test-set-mode-acl.sh (ID): Likewise.
78510         * tests/test-copy-acl.sh (ID): Likewise.
78511         * tests/test-copy-file.sh (ID): Likewise.
78513 2009-08-30  Bruno Haible  <bruno@clisp.org>
78515         New module 'xstriconveh'.
78516         * lib/xstriconveh.h: New file.
78517         * lib/xstriconveh.c: New file.
78518         * modules/xstriconveh: New file.
78520 2009-08-30  Bruno Haible  <bruno@clisp.org>
78522         Make it easier to use mem_cd_iconveh.
78523         * lib/striconveh.h (iconveh_t): New type.
78524         (iconveh_open, iconveh_close): New declarations.
78525         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78526         with a single 'const iconveh_t *' argument.
78527         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
78528         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78529         with a single 'const iconveh_t *' argument.
78530         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
78531         * tests/test-striconveh.c (main): Update.
78532         * NEWS: Mention the change.
78534 2009-08-30  Bruno Haible  <bruno@clisp.org>
78536         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
78537         problem.
78539 2009-08-30  Bruno Haible  <bruno@clisp.org>
78541         Work around iconv_open problem on Solaris.
78542         * lib/iconv_open-solaris.gperf: New file.
78543         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
78544         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
78545         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
78546         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
78547         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
78548         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
78550 2009-08-29  Jim Meyering  <meyering@redhat.com>
78552         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
78553         * top/maint.mk (cvs-check): Remove target; it was just an alias
78554         to the better-named vc-diff-check.
78555         (maintainer-distcheck): Remove rule.  It was used only from
78556         the (alpha/beta/major) target, and all of its commands but one
78557         were coreutils-specific.
78558         (vc-dist): Remove rule.
78559         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
78560         Run vc-diff-check, not vc-dist.
78561         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
78563 2009-08-27  Bruno Haible  <bruno@clisp.org>
78565         * tests/test-bitrotate.c (main): Remove test that uses a shift count
78566         of 0.
78568 2009-08-27  Bruno Haible  <bruno@clisp.org>
78570         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
78571         compilers.
78572         * doc/func.texi: Document the SunPRO C bug.
78574 2009-08-27  Bruno Haible  <bruno@clisp.org>
78576         Fix link error on Solaris.
78577         * tests/test-parse-duration.c (xstrdup): Remove function.
78579 2009-08-26  Pádraig Brady  <P@draigbrady.com>
78581         ignore-value: handle pointer types, too
78582         * lib/ignore-value.h (__attribute__): Remove definition.
78583         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
78584         of a more concise and more-often effective "(void) i" statement.
78585         (ignore_ptr): New function to suppress warnings from functions that
78586         return pointers, and to make it explicit that one function doesn't
78587         handle all cases.
78589 2009-08-25  Bruno Haible  <bruno@clisp.org>
78591         dup2: work around a Linux bug.
78592         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
78593         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
78594         * doc/posix-functions/dup2.texi: Mention the Linux bug.
78595         Reported by Simon Josefsson.
78597 2009-08-25  Jim Meyering  <meyering@redhat.com>
78599         libguestfs uses gnulib
78600         * users.txt: Add libguestfs.
78602 2009-08-24  Eric Blake  <ebb9@byu.net>
78604         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
78605         * lib/pipe2.c (includes): Add binary-io.h.
78606         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
78608 2009-08-24  Bruno Haible  <bruno@clisp.org>
78610         Tolerate declared but missing accept4 syscall.
78611         * lib/accept4.c (accept4): Invoke original accept4 function first, if
78612         available.
78613         * lib/sys_socket.in.h (accept4): If the function is already present,
78614         override it.
78615         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
78616         * modules/accept4 (Makefile.am): Compile accept4.c always.
78617         Reported by Paolo Bonzini and Eric Blake.
78619 2009-08-23  Bruno Haible  <bruno@clisp.org>
78621         New module 'accept4'.
78622         * lib/sys_socket.in.h (accept4): New declaration.
78623         * lib/accept4.c: New file.
78624         * m4/accept4.m4: New file.
78625         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
78626         GNULIB_ACCEPT4, HAVE_ACCEPT4.
78627         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
78628         HAVE_ACCEPT4.
78629         * modules/accept4: New file.
78630         * doc/glibc-functions/accept4.texi: Mention the new module.
78632 2009-08-24  Jim Meyering  <meyering@redhat.com>
78634         progname: also set global program_invocation_name, when possible
78635         Before this change, a libtool-enabled program that calls glibc's
78636         error function would report the program name as
78637         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
78638         * modules/progname (configure.ac): Check for a declaration of
78639         program_invocation_name.
78640         * lib/progname.c:  Include <errno.h>.
78641         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
78642         Set program_invocation_name.
78644 2009-08-23  Bruno Haible  <bruno@clisp.org>
78646         * lib/dup3.c: Include <string.h>.
78648 2009-08-23  Bruno Haible  <bruno@clisp.org>
78650         * lib/dup3.c (dup3): Test only once whether the system actually exists.
78651         * lib/pipe2.c (pipe2): Likewise.
78652         Suggested by Eric Blake.
78654 2009-08-23  Bruno Haible  <bruno@clisp.org>
78656         Tolerate declared but missing dup3 syscall.
78657         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
78658         * lib/unistd.in.h (dup3): If the function is already present,
78659         override it.
78660         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
78661         * modules/dup3 (Makefile.am): Compile dup3.c always.
78662         Reported by Paolo Bonzini.
78664 2009-08-23  Bruno Haible  <bruno@clisp.org>
78666         Tolerate declared but missing pipe2 syscall.
78667         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
78668         available.
78669         * lib/unistd.in.h (pipe2): If the function is already present,
78670         override it.
78671         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
78672         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
78673         Reported by Paolo Bonzini.
78675 2009-08-23  Bruno Haible  <bruno@clisp.org>
78677         * lib/pipe2.c (pipe2): Move #ifs inside function.
78679 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78681         quotearg: document limitations of quote_these_too
78682         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
78683         those limitations are created.
78684         * lib/quotearg.h (set_char_quoting): Document that digits and
78685         letters that are special after backslash are not permitted.
78686         (quotearg_char): Cross-reference set_char_quoting documentation.
78688 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
78690         quotearg: implement custom_quoting_style
78691         * lib/quotearg.c: (struct quoting_options): Add left_quote and
78692         right_quote fields.
78693         (set_custom_quoting): New public function.
78694         (quotearg_buffer_restyled): Add left_quote and right_quote
78695         arguments, handle them very much like locale quoting, and update
78696         all uses.
78697         (quotearg_n_custom): New public function.
78698         (quotearg_n_custom_mem): New public function.
78699         (quotearg_custom): New public function.
78700         (quotearg_custom_mem): New public function.
78701         * lib/quotearg.h: Prototype and document new public functions.
78702         (enum quoting_style): For escape_quoting_style and
78703         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
78704         ignored even though they're otherwise like c_quoting_style.
78705         Add custom_quoting_style member and document with comparison to
78706         clocale_quoting_style.
78707         * tests/test-quotearg.c (custom_quotes): New array.
78708         (custom_results): New array.
78709         (main): Extend to test custom quoting.
78711 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78713         quotearg: fix right quote escaping when it's in quote_these_too
78714         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
78715         quote, be sure to prepend only one backslash.
78716         * tests/test-quotearg.c (use_quote_double_quotes): New function.
78717         (main): Test it.
78719 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78721         quotearg-tests: test escaping of embedded locale quotes
78722         * tests/test-quotearg.c (struct result_strings): Add member for
78723         new input.
78724         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
78725         (inputs): Add new input.
78726         (results_g): Add expected results.
78727         (flag_results): Likewise.
78728         (locale_results): Likewise.
78729         (compare_strings): Check those.
78731 2009-08-23  Bruno Haible  <bruno@clisp.org>
78733         Tests for module 'dup3'.
78734         * modules/dup3-tests: New file.
78735         * tests/test-dup3.c: New file.
78737         New module 'dup3'.
78738         * lib/unistd.in.h (dup3): New declaration.
78739         * lib/dup3.c: New file.
78740         * m4/dup3.m4: New file.
78741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
78742         HAVE_DUP3.
78743         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
78744         * modules/dup3: New file.
78745         * doc/glibc-functions/dup3.texi: Mention the new module.
78747 2009-08-23  Bruno Haible  <bruno@clisp.org>
78749         Tweak the dup2 test.
78750         * tests/test-dup2.c (main): Create the test file empty. Verify that an
78751         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
78752         the test file is still empty. Fix argument order of lseek.
78754 2009-08-23  Bruno Haible  <bruno@clisp.org>
78756         Avoid test link errors when the modules getopt-gnu, gettext are used.
78757         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
78758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78760 2009-08-23  Bruno Haible  <bruno@clisp.org>
78762         Fix getdtablesize() on mingw.
78763         * lib/getdtablesize.c (getdtablesize): Implement differently.
78764         * lib/unistd.in.h (getdtablesize): Improve comment.
78766 2009-08-23  Bruno Haible  <bruno@clisp.org>
78768         New module 'mkostemp'.
78769         Based on Ulrich Drepper's 2007-08-10 change in glibc.
78770         * lib/stdlib.in.h (mksotemp): New declaration.
78771         * lib/mkostemp.c: New file, from glibc with modifications.
78772         * lib/tempname.h (GT_FILE): Remove outdated comment.
78773         (gen_tempname): Add flags argument.
78774         * lib/tempname.c (__GT_BIGFILE): Remove macro.
78775         (__GT_FILE): Map to 1.
78776         (small_open, large_open): Remove macros.
78777         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
78778         * lib/mkstemp.c (mkstemp): Update.
78779         * lib/mkdtemp.c (mkdtemp): Likewise.
78780         * m4/mkostemp.m4: New file.
78781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
78782         HAVE_MKOSTEMP.
78783         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
78784         HAVE_MKOSTEMP.
78785         * modules/mkostemp: New file, based on modules/mkstemp.
78786         * doc/glibc-functions/mkostemp.texi: Mention the new module.
78787         * NEWS: Mention the change.
78789 2009-08-23  Bruno Haible  <bruno@clisp.org>
78791         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
78792         Reported by Eric Blake.
78794 2009-08-23  Bruno Haible  <bruno@clisp.org>
78796         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
78797         Reported by Eric Blake.
78799 2009-08-23  Bruno Haible  <bruno@clisp.org>
78801         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
78802         * modules/pipe2 (Depends-on): Likewise.
78804 2009-08-23  Eric Blake  <ebb9@byu.net>
78806         fcntl-h: add O_TTY_INIT support
78807         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
78808         * tests/test-fcntl-h.c (o): Test it.
78809         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78811         fcntl-h: rename from fcntl, in preparation for fcntl(2)
78812         * modules/fcntl: Move <fcntl.h> header replacement...
78813         * modules/fcntl-h: ...to new name, so as not to collide with
78814         like-named function.
78815         * tests/test-fcntl.c: Rename...
78816         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
78817         * modules/fcntl-tests: Rename...
78818         * modules/fcntl-h-tests: ...to this.  Update test file name.
78819         * modules/chdir-long (Depends-on): Update clients.
78820         * modules/chdir-safer (Depends-on): Likewise.
78821         * modules/fcntl-safer (Depends-on): Likewise.
78822         * modules/fts (Depends-on): Likewise.
78823         * modules/mkancesdirs (Depends-on): Likewise.
78824         * modules/mkdir-p (Depends-on): Likewise.
78825         * modules/open (Depends-on): Likewise.
78826         * modules/savewd (Depends-on): Likewise.
78827         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
78828         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78830 2009-08-22  Bruno Haible  <bruno@clisp.org>
78832         * modules/binary-io (License): Relicense under LGPL.
78833         * modules/pipe2 (License): Likewise.
78835 2009-08-22  Bruno Haible  <bruno@clisp.org>
78837         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
78838         return value.
78839         * lib/pipe-filter-gi.c (filter_init): Likewise.
78840         Reported by Eric Blake.
78842 2009-08-22  Bruno Haible  <bruno@clisp.org>
78844         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
78845         * modules/pipe (Depends-on): Add pipe2.
78847 2009-08-22  Bruno Haible  <bruno@clisp.org>
78849         Tests for module 'pipe2'.
78850         * modules/pipe2-tests: New file.
78851         * tests/test-pipe2.c: New file.
78853         New module 'pipe2'.
78854         * lib/unistd.in.h (pipe2): New declaration.
78855         * lib/pipe2.c: New file.
78856         * m4/pipe2.m4: New file.
78857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
78858         HAVE_PIPE2.
78859         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
78860         * modules/pipe2: New file.
78861         * doc/glibc-functions/pipe2.texi: Mention the new module.
78863 2009-08-22  Bruno Haible  <bruno@clisp.org>
78865         Reference some new glibc functions.
78866         * doc/glibc-functions/accept4.texi: New file.
78867         * doc/glibc-functions/dup3.texi: New file.
78868         * doc/glibc-functions/mkostemp.texi: New file.
78869         * doc/glibc-functions/pipe2.texi: New file.
78870         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
78871         (Glibc sys/socket.h): Refer to accept4.
78872         (Glibc unistd.h): Refer to dup3, pipe2.
78873         Reported by Eric Blake.
78875 2009-08-22  Jim Meyering  <meyering@redhat.com>
78876             Bruno Haible  <bruno@clisp.org>
78878         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
78879         This makes it so packages using automake-1.11's silent-rules option
78880         can print e.g., a single "GEN    configmake.h" line, rather than
78881         the 30+ statements that perform the job.  If you want to see the
78882         actual commands, you can still run "make V=1".
78883         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
78884         so that make output is abbreviated when those variables are defined
78885         appropriately.
78886         * modules/argz: Likewise.
78887         * modules/arpa_inet: Likewise.
78888         * modules/byteswap: Likewise.
78889         * modules/configmake: Likewise.
78890         * modules/dirent: Likewise.
78891         * modules/errno: Likewise.
78892         * modules/fcntl: Likewise.
78893         * modules/float: Likewise.
78894         * modules/fnmatch: Likewise.
78895         * modules/getopt-posix: Likewise.
78896         * modules/glob: Likewise.
78897         * modules/iconv_open: Likewise.
78898         * modules/inttypes: Likewise.
78899         * modules/localcharset: Likewise.
78900         * modules/locale: Likewise.
78901         * modules/math: Likewise.
78902         * modules/netdb: Likewise.
78903         * modules/netinet_in: Likewise.
78904         * modules/poll: Likewise.
78905         * modules/posix_spawnp-tests: Likewise.
78906         * modules/sched: Likewise.
78907         * modules/search: Likewise.
78908         * modules/selinux-h: Likewise.
78909         * modules/signal: Likewise.
78910         * modules/spawn: Likewise.
78911         * modules/stdarg: Likewise.
78912         * modules/stdbool: Likewise.
78913         * modules/stddef: Likewise.
78914         * modules/stdint: Likewise.
78915         * modules/stdio: Likewise.
78916         * modules/stdlib: Likewise.
78917         * modules/string: Likewise.
78918         * modules/strings: Likewise.
78919         * modules/sys_file: Likewise.
78920         * modules/sys_ioctl: Likewise.
78921         * modules/sys_select: Likewise.
78922         * modules/sys_socket: Likewise.
78923         * modules/sys_stat: Likewise.
78924         * modules/sys_time: Likewise.
78925         * modules/sys_times: Likewise.
78926         * modules/sys_utsname: Likewise.
78927         * modules/sys_wait: Likewise.
78928         * modules/sysexits: Likewise.
78929         * modules/time: Likewise.
78930         * modules/unistd: Likewise.
78931         * modules/wchar: Likewise.
78932         * modules/wctype: Likewise.
78934 2009-08-22  Jim Meyering  <meyering@redhat.com>
78936         announce-gen: detect write failure
78937         * build-aux/announce-gen: Add Coda at end.
78938         Remove equivalent-but-more-verbose block at top.
78940 2009-08-19  Akim Demaille  <demaille@gostai.com>
78942         bootstrap: --help to stdout.
78943         * bootstrap (usage): Don't send --help to stderr.
78944         Use a here doc instead of a long string.
78946 2009-08-21  Eric Blake  <ebb9@byu.net>
78948         test-popen-safer: split from test-popen
78949         * tests/test-popen.c (main): Move...
78950         * tests/test-popen.h: ...into new file.
78951         * tests/test-popen-safer2.c: New file.
78952         * modules/popen-tests (Files): Add test-popen.h.
78953         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78954         Suggested by Bruno Haible.
78956         test-fcntl-safer: split from test-open
78957         * tests/test-open.c (main): Move...
78958         * tests/test-open.h: ...into new file.
78959         * tests/test-fcntl-safer.c: New file.
78960         * modules/open-tests (Files): Add test-open.h.
78961         * modules/fcntl-safer-tests: New file.
78962         Suggested by Bruno Haible.
78964         test-fopen-safer: split from test-fopen
78965         * tests/test-fopen.c (main): Move...
78966         * tests/test-fopen.h: ...into new file.
78967         * tests/test-fopen-safer.c: New file.
78968         * modules/fopen-tests (Files): Add test-fopen.h.
78969         * modules/fopen-safer-tests: New file.
78970         Suggested by Bruno Haible.
78972 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78974         popen-safer: test O_CLOEXEC at run-time.
78975         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78977 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78979         fcntl: move more flags to the header
78980         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78981         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78982         * lib/fcntl.in.h: Do both things here.
78984 2009-08-21  Jim Meyering  <meyering@redhat.com>
78986         consistently remove $@-t before redirecting to it
78987         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78988         * modules/alloca-opt: Likewise.
78989         * modules/byteswap: Likewise.
78990         * modules/fnmatch: Likewise.
78991         * modules/getopt-posix: Likewise.
78992         * modules/glob: Likewise.
78993         * modules/poll: Likewise.
78994         * modules/posix_spawnp-tests: Likewise.
78995         * modules/sys_socket: Likewise.
78996         * modules/sysexits: Likewise.
78998 2009-08-21  Eric Blake  <ebb9@byu.net>
79000         popen: simplify access to original popen
79001         * lib/popen.c (rpl_popen): No need to worry about popen being a
79002         macro.
79003         Reported by Bruno Haible.
79005 2009-08-20  Eric Blake  <ebb9@byu.net>
79007         build: avoid some compiler warnings
79008         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
79009         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
79010         type.
79011         (new_exclude_segment, excluded_file_pattern_p)
79012         (excluded_file_name_p): Reduce scope.
79013         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
79014         old-style declaration.
79016 2009-08-20  Simon Josefsson  <simon@josefsson.org>
79018         * tests/test-exclude1.sh: Handle Windows EOL.
79019         * tests/test-exclude2.sh: Likewise.
79020         * tests/test-exclude3.sh: Likewise.
79021         * tests/test-exclude4.sh: Likewise.
79022         * tests/test-exclude5.sh: Likewise.
79023         * tests/test-exclude6.sh: Likewise.
79024         * tests/test-exclude7.sh: Likewise.
79026 2009-08-19  Akim Demaille  <demaille@gostai.com>
79028         bootstrap: find sha1sum when named gsha1sum.
79029         * bootstrap (find_tool): New.
79030         ($SHA1SUM): New.
79031         Use it.
79033 2009-08-20  Jim Meyering  <meyering@redhat.com>
79035         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
79036         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
79037         expression that converts "." in a file name to "\." in the resulting
79038         regexp.  Start with a dummy statement, so that prior shell variable
79039         definitions are expanded portably.  Reported by Simon Josefsson.
79041 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
79043         Fix polling for writeability of a screen buffer.
79044         * lib/poll.c: Distinguish input and screen buffers for the
79045         Win32 implementation.
79046         * lib/select.c: Likewise.
79048 2009-08-19  Eric Blake  <ebb9@byu.net>
79050         popen-safer: prevent popen from clobbering std descriptors
79051         * modules/popen-safer: New file.
79052         * lib/popen-safer.c: Likewise.
79053         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
79054         * lib/stdio--.h (popen): Provide override.
79055         * lib/stdio-safer.h (popen_safer): Provide declaration.
79056         * tests/test-popen.c (includes): Partially test this.
79057         * modules/popen-safer-tests: New file, for more tests.
79058         * tests/test-popen-safer.c: Likewise.
79059         * MODULES.html.sh (file stream based Input/Output): Mention it.
79061         tests: test some of the *-safer modules
79062         * modules/fopen-safer (Depends-on): Add fopen.
79063         * modules/fcntl-safer (Depends-on): Add fcntl.
79064         * modules/stdlib-safer (Depends-on): Add stdlib.
79065         (configure.ac): Set indicator.
79066         * modules/unistd-safer (configure.ac): Likewise.
79067         * modules/tmpfile-safer (configure.ac): Likewise.
79068         (Depends-on): Add tmpfile.
79069         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
79070         active.
79071         * tests/test-fopen.c (includes): Test safer versions when they are
79072         in use.
79073         * tests/test-open.c (includes): Likewise.
79075         popen: fix cygwin 1.5 bug when stdin closed
79076         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
79077         * modules/popen: New file.
79078         * modules/popen-tests: Likewise.
79079         * tests/test-popen.c: Likewise.
79080         * m4/popen.m4: Likewise.
79081         * lib/popen.c: Likewise.
79082         * lib/stdio.in.h (popen): New declaration.
79083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
79084         * modules/stdio (Makefile.am): Likewise.
79085         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
79087 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
79089         maint.mk: give full control over update-copyright exclusions
79090         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
79091         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
79092         (update-copyright): Don't force inclusion of top-level
79093         ChangeLog.  Don't force exclusion of all COPYING files, but make
79094         them the default exclusion instead.
79096 2009-08-16  Bruno Haible  <bruno@clisp.org>
79098         Fix test failures on Solaris 10.
79099         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
79100         tests when Solaris iconv() is used.
79101         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
79102         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
79103         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
79104         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
79105         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
79107 2009-08-16  Bruno Haible  <bruno@clisp.org>
79109         Fix test failures on Solaris 10.
79110         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
79111         'tr' program and pass it as first argument.
79112         * tests/test-pipe-filter-gi1.sh: Likewise.
79113         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
79114         program as first argument.
79115         * tests/test-pipe-filter-gi1.c (main): Likewise.
79117 2009-08-16  Eric Blake  <ebb9@byu.net>
79119         fpurge: fix previous commits
79120         * modules/fpurge (Makefile.am): Make replacement conditional,
79121         partially reverting 2007-04-29 change; missed in previous
79122         attempt.
79123         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
79124         is missing.
79126 2009-08-16  Bruno Haible  <bruno@clisp.org>
79128         Clarify fpurge's effect on the file position.
79129         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
79130         * tests/test-fpurge.c (main): Make a second pass for checking the file
79131         position.
79133 2009-08-16  Bruno Haible  <bruno@clisp.org>
79135         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
79136         declaration of fpurge is missing.
79137         * tests/test-fpurge.c (main): Check that the file has not more contents
79138         than expected. Close the file before removing it.
79140 2009-08-15  Eric Blake  <ebb9@byu.net>
79142         fpurge: don't wrap working cygwin implementation
79143         * lib/fpurge.c (fpurge): Fix comment typo.
79144         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
79145         1.7 to avoid replacement.
79146         * tests/test-fpurge.c (main): Enhance test.
79148 2009-08-15  Eric Blake  <ebb9@byu.net>
79149         and Jim Meyering  <meyering@redhat.com>
79151         test-update-copyright: skip if perl is insufficient
79152         * tests/test-update-copyright.sh: Failure to run maintainer tool
79153         should not cause testsuite failure on cygwin 1.5.
79155 2009-08-14  Eric Blake  <ebb9@byu.net>
79157         doc: mention more functions added in cygwin 1.7.0
79158         * doc/posix-headers/limits.texi (limits.h): Update for recent
79159         cygwin additions.
79160         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
79161         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
79162         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
79163         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
79164         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
79166 2009-08-14  Eric Blake  <ebb9@byu.net>
79168         maint.mk: simplify update-copyright rule
79169         * top/maint.mk (update-copyright-local): Delete, and document how
79170         to do it in cfg.mk instead.
79171         (update-copyright-exclude-regexp): Delete, and document how to do
79172         it in .x-update-copyright instead.
79173         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
79174         exclude ChangeLog.
79176 2009-08-14  Bruno Haible  <bruno@clisp.org>
79178         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
79180 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
79182         maint.mk: support update-copyright-env
79183         * top/maint.mk (update-copyright-env): Define place-holder.
79184         (update-copyright): Expand $(update-copyright-env) before
79185         invoking update-copyright.
79187 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
79189         update-copyright: implement forced reformatting
79190         * build-aux/update-copyright: Implement and document
79191         UPDATE_COPYRIGHT_FORCE.
79192         * tests/test-update-copyright.sh: Test it.
79194 2009-08-14  Eric Blake  <ebb9@byu.net>
79195         and Bruno Haible  <bruno@clisp.org>
79197         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
79198         * tests/test-locale.c: Revert previous patch related to NULL.
79199         * tests/test-stdio.c: Likewise.
79200         * tests/test-stdlib.c: Likewise.
79201         * tests/test-string.c: Likewise.
79202         * tests/test-unistd.c: Likewise.
79203         * modules/time-tests (Depends-on): Add verify.
79204         * modules/wchar-tests (Depends-on): Likewise.
79205         * tests/test-time.c: Test for NULL compliance.
79206         * tests/test-wchar.c: Likewise.
79207         * modules/locale (Depends-on): Add stddef.
79208         * modules/stdio (Depends-on): Likewise.
79209         * modules/stdlib (Depends-on): Likewise.
79210         * modules/string (Depends-on): Likewise.
79211         * modules/time (Depends-on): Likewise.
79212         * modules/unistd (Depends-on): Likewise.
79213         * modules/wchar (Depends-on): Likewise.
79214         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
79215         * lib/stdlib.in.h (includes): Likewise.
79216         * lib/string.in.h (includes): Likewise.
79217         * lib/time.in.h (includes): Likewise.
79218         * lib/unistd.in.h (includes): Likewise.
79219         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
79220         replaced.
79221         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
79222         * m4/stddef_h.m4: New file.
79223         * modules/stddef: Likewise.
79224         * lib/stddef.in.h: Likewise.
79225         * modules/stddef-tests: Likewise.
79226         * tests/test-stddef.c: Likewise.
79227         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
79228         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
79229         * doc/posix-headers/locale.texi (locale.h): Likewise.
79230         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
79231         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
79232         * doc/posix-headers/string.texi (string.h): Likewise.
79233         * doc/posix-headers/time.texi (time.h): Likewise.
79234         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
79235         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
79237 2009-08-14  Eric Blake  <ebb9@byu.net>
79239         doc: improve git diff of texinfo files
79240         * .gitattributes: Add rule for *.texi files, with hint on how to
79241         use it.
79242         Copied from m4, and based on a report by Bruno Haible.
79244 2009-08-14  Bruno Haible  <bruno@clisp.org>
79246         Disable multithread support by default on Cygwin 1.5.x for real.
79247         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
79249 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
79251         update-copyright: much ado about intervals
79252         * build-aux/update-copyright: Implement and document
79253         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
79254         of copyright year intervals.
79255         Also, document UPDATE_COPYRIGHT_YEAR.
79256         * tests/test-update-copyright.sh: Test it.
79258         update-copyright: convert 2-digit to 4-digit years
79259         * build-aux/update-copyright: Implement and document.
79260         * tests/test-update-copyright.sh: Update.
79262 2009-08-14  Jim Meyering  <meyering@redhat.com>
79264         test-exclude: avoid coreutils "make check" failure
79265         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
79266         just as in test-argmatch.c.
79268 2009-08-13  Eric Blake  <ebb9@byu.net>
79270         test-dup2: fix bad assumption
79271         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
79272         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
79274         test-version-etc: fix CRLF portability issue
79275         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
79276         recognize \r.
79277         * tests/test-argp-version-etc-1.sh: Likewise.
79279         getopt: update client modules
79280         * modules/argp (Depends-on): Use getopt-gnu.
79281         * modules/git-merge-changelog (Depends-on): Likewise.
79282         * modules/long-options (Depends-on): Likewise.
79283         * modules/xstrtol (Depends-on): Likewise.
79285 2009-08-13  Simon Josefsson  <simon@josefsson.org>
79287         * tests/test-version-etc.sh: Don't fail on different
79288         project/version.  Don't fail on CRLF differences.  Rewrite to use
79289         multiple -e instead of multiple sed forks, suggested by Eric Blake
79290         <ebb9@byu.net>.
79291         * tests/test-argp-version-etc-1.sh: Likewise.
79293 2009-08-13  Simon Josefsson  <simon@josefsson.org>
79295         * tests/test-version-etc.sh: Don't fail on different
79296         project/version.
79298 2009-08-12  Bruno Haible  <bruno@clisp.org>
79300         Tests for modules 'getopt-posix', 'getopt-gnu'.
79301         * modules/getopt-posix-tests: New file.
79302         * tests/test-getopt.c: New file.
79303         * tests/test-getopt.h: New file.
79304         * tests/test-getopt_long.h: New file.
79306         New modules 'getopt-posix', 'getopt-gnu'.
79307         * modules/getopt-gnu: New file, renamed from modules/getopt.
79308         * modules/getopt-posix: New file.
79309         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
79310         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
79311         (gl_GETOPT): Remove macro.
79312         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
79313         Disable the test against BSD systems that declare optreset. Test
79314         against mingw bug. Test against lack of support of optional arguments
79315         on many platforms.
79316         * doc/glibc-headers/getopt.texi: Update module name and list of
79317         relevant platforms.
79318         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
79319         'getopt-gnu' and more portability problems.
79320         * NEWS: Mention the changes.
79322 2009-08-12  Bruno Haible  <bruno@clisp.org>
79324         Ensure that optarg etc. get declared by <unistd.h>.
79325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
79326         AC_USE_SYSTEM_EXTENSIONS.
79327         * modules/getopt (Depends-on): Add 'extensions'.
79329 2009-08-12  Bruno Haible  <bruno@clisp.org>
79331         Avoid test link errors.
79332         * modules/pipe-filter-ii-tests (Makefile.am): Define
79333         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
79334         * modules/pipe-filter-gi-tests (Makefile.am): Define
79335         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
79336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79338 2009-08-12  Bruno Haible  <bruno@clisp.org>
79340         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
79341         gl_GETOPT_SUBSTITUTE before.
79342         (gl_GETOPT): Use it.
79343         * m4/argp.m4 (gl_ARGP): Update.
79344         Reported by Sergey Poznyakoff.
79346         * m4/getopt.m4: Reorder macros.
79347         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
79348         (gl_GETOPT_SUBSTITUTE): Remove macro.
79350 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79352         Minor improvement in gitlog-to-changelog
79354         * build-aux/gitlog-to-changelog: New option `--format' makes
79355         output format string configurable.
79357 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79359         Optimize exclude: use hash tables for non-wildcard patterns.
79361         * lib/exclude.c: Include hash.h and mbuiter.h
79362         (struct exclude_pattern, exclude_segment): New data types.
79363         (struct exclude): Rewrite.
79364         (fnmatch_pattern_has_wildcards): New function.
79365         (new_exclude_segment, free_exclude_segment): New functions.
79366         (excluded_file_pattern_p, excluded_file_name_p): New functions.
79367         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
79368         * lib/exclude.h (is_fnmatch_pattern): New prototype.
79369         * modules/exclude: Depend on hash and mbuiter.
79371         * modules/exclude-tests: New file.
79372         * tests/test-exclude.c: New file.
79373         * tests/test-exclude1.sh: New file.
79374         * tests/test-exclude2.sh: New file.
79375         * tests/test-exclude3.sh: New file.
79376         * tests/test-exclude4.sh: New file.
79377         * tests/test-exclude5.sh: New file.
79378         * tests/test-exclude6.sh: New file.
79379         * tests/test-exclude7.sh: New file.
79381 2009-08-12  Bruno Haible  <bruno@clisp.org>
79383         Ensure that getopt() gets declared by <unistd.h>.
79384         * lib/unistd.in.h: Conditionally include getopt.h.
79385         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
79386         Set GNULIB_UNISTD_H_GETOPT.
79387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79388         GNULIB_UNISTD_H_GETOPT.
79389         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
79391 2009-08-12  Bruno Haible  <bruno@clisp.org>
79393         Clarify logic.
79394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
79395         gl_replace_getopt instead of GETOPT_H.
79397 2009-08-12  Bruno Haible  <bruno@clisp.org>
79399         * m4/getopt.m4: Add comments.
79401 2009-08-12  Bruno Haible  <bruno@clisp.org>
79403         Disable multithread support by default on Cygwin 1.5.x.
79404         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
79405         set gl_use_threads=no if not specified otherwise.
79407 2009-08-11  Bruno Haible  <bruno@clisp.org>
79409         Avoid compilation error on NetBSD 5.0.
79410         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
79411         * tests/test-stdio.c: Likewise.
79412         * tests/test-stdlib.c: Likewise.
79413         * tests/test-string.c: Likewise.
79414         * tests/test-unistd.c: Likewise.
79415         Reported by Greg Troxel <gdt@ir.bbn.com>
79416         at <https://savannah.gnu.org/support/?106973>.
79418 2009-08-11  Bruno Haible  <bruno@clisp.org>
79420         * modules/dup2-tests (Depends-on): Remove close.
79422         Undo 2009-07-19 commit.
79423         * modules/acl-tests (Depends-on): Remove close.
79424         * modules/binary-io-tests (Depends-on): Likewise.
79425         * modules/closein-tests (Depends-on): Likewise.
79426         * modules/flock-tests (Depends-on): Likewise.
79427         * modules/fsync-tests (Depends-on): Likewise.
79428         * modules/lseek-tests (Depends-on): Likewise.
79429         * modules/pipe-tests (Depends-on): Likewise.
79430         * modules/posix_spawn-tests (Depends-on): Likewise.
79431         * modules/posix_spawnp-tests (Depends-on): Likewise.
79432         * modules/stat-time-tests (Depends-on): Likewise.
79433         * modules/yesno-tests (Depends-on): Likewise.
79435 2009-08-10  Bruno Haible  <bruno@clisp.org>
79437         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
79439 2009-08-10  Bruno Haible  <bruno@clisp.org>
79441         Fix a gcc warning.
79442         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
79444 2009-08-10  Bruno Haible  <bruno@clisp.org>
79446         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
79447         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
79448         not only the first time.
79449         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
79450         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
79451         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
79452         is 1, not only the first time.
79454 2009-08-10  Bruno Haible  <bruno@clisp.org>
79456         Make it possible to use module 'gethostname' without module 'close'.
79457         * lib/unistd.in.h (close): Evoke a link error only if
79458         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
79459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79460         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79461         * modules/unistd (Makefile.am): Substitute
79462         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79463         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
79464         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
79465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
79466         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79467         * modules/sys_ioctl (Makefile.am): Substitute
79468         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79469         * modules/socket (configure.ac): On native Windows, set
79470         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
79471         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79472         Reported by Sam Steingold <sds@gnu.org>.
79474 2009-08-10  Bruno Haible  <bruno@clisp.org>
79476         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
79477         * modules/ioctl (configure.ac): Likewise.
79479 2009-08-10  Bruno Haible  <bruno@clisp.org>
79481         Avoid collision between gnulib wrapper and libintl wrapper.
79482         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
79483         already defined in intl/printf.c.
79484         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
79485         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
79487 2009-08-09  Bruno Haible  <bruno@clisp.org>
79489         Make <sys/select.h> really self-contained, also on Solaris 10.
79490         * lib/sys_select.in.h: Include <string.h>.
79491         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
79492         Solaris 10 problem.
79493         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
79494         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
79495         Reported by Jim Meyering.
79497 2009-08-09  Bruno Haible  <bruno@clisp.org>
79499         Avoid warnings from 'aclocal' that are due to a use of macro name
79500         AM_XGETTEXT_OPTION that is not defined in automake.
79501         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
79502         automake.
79503         * modules/error (configure.ac): Likewise.
79504         * modules/propername (configure.ac): Likewise.
79505         * modules/vasprintf (configure.ac): Likewise.
79506         * modules/verror (configure.ac): Likewise.
79507         * modules/xprintf (configure.ac): Likewise.
79508         * modules/xvasprintf (configure.ac): Likewise.
79510 2009-08-08  Bruno Haible  <bruno@clisp.org>
79512         Avoid compilation error in C++ mode.
79513         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
79514         Reported by Sam Steingold <sds@gnu.org>.
79516 2009-08-08  Bruno Haible  <bruno@clisp.org>
79518         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
79519         for the various Unix platforms.
79520         * doc/posix-headers/limits.texi: Update platforms list regarding
79521         HOST_NAME_MAX.
79522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79524 2009-08-07  Jim Meyering  <meyering@redhat.com>
79526         selinux-at: fix typo in a comment
79527         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
79528         Spotted by Paolo Bonzini.
79530         selinux-at: remove redundant m4 code, add documentation
79531         * modules/selinux-at (configure.ac): Remove redundant code.
79532         LIB_SELINUX is already set via the dependent module, selinux-h.
79533         (Include): Add quotes around selinux-at.h.
79534         * lib/selinux-at.h: Add documentation.
79535         Reported by Bruno Haible in
79536         http://marc.info/?l=gnulib-bug&m=124958988300749
79538 2009-08-07  Bruno Haible  <bruno@clisp.org>
79540         Avoid link error on MacOS X 10.3 and 10.4.
79541         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
79542         on non-ELF systems.
79543         * lib/argp-pv.c (argp_program_version): Likewise.
79544         Reported by Simon Josefsson.
79546 2009-08-07  Simon Josefsson  <simon@josefsson.org>
79548         * tests/test-version-etc.sh: Use $EXEEXT.
79550 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
79552         update-copyright: update documentation to point to maint.mk
79553         * build-aux/update-copyright: Here.
79555 2009-08-06  Jim Meyering  <meyering@redhat.com>
79557         maint.mk: support update-copyright-local
79558         * top/maint.mk (update-copyright-local): Define place-holder.
79559         (update-copyright): Depend on $(update-copyright-local).
79561 2009-08-06  Jim Meyering  <meyering@redhat.com>
79563         selinux-at: new module
79564         Initially written for coreutils, this module will soon be
79565         used by findutils, too.
79566         * MODULES.html.sh [Misc]: Add selinux-at.
79567         * lib/selinux-at.h: New file, from coreutils.
79568         * lib/selinux-at.c: Likewise.
79569         * modules/selinux-at: Likewise.
79570         (License): Change from LGPL to GPL, since it depends
79571         on the GPL'd openat module.
79573         doc: update README
79574         * README: Remove references to cogito.
79575         Remove cvs-repo-updating instructions from 2007.
79576         Don't imply that CVS is better if you have limited disk space.
79578 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79580         update-copyright: support C-style comments
79581         * build-aux/update-copyright: Implement and document.
79582         * tests/test-update-copyright.sh: Test.
79584 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79586         update-copyright: support omitted "(C)"
79587         * build-aux/update-copyright: Implement and document.  Also,
79588         allow variable whitespace before "(C)".
79589         * tests/test-update-copyright.sh: Test.
79591 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79593         update-copyright: don't trip on non-FSF copyright statements
79594         * build-aux/update-copyright: Fix so that the first correctly
79595         formatted FSF copyright statement is recognized no matter what
79596         appears before it.  Update documentation.
79597         * tests/test-update-copyright.sh: Test that.
79599 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79601         update-copyright: clean up code a little
79602         * build-aux/update-copyright: Append "_re" to the name of any
79603         variable holding a regular expression.
79604         Replace "old" and "new" with "stmt" in variable names.
79605         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
79606         handled correctly.
79607         Format code more consistently.
79609 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79611         update-copyright-tests: improve portability
79612         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
79613         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
79615 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79617         update-copyright: support @copyright{} and &copy;
79618         * build-aux/update-copyright: Implement and document.
79619         * tests/test-update-copyright.sh: Test.
79621 2009-08-04  Jim Meyering  <meyering@redhat.com>
79623         update-copyright-tests: correctly test EOL=\r\n handling
79624         * tests/test-update-copyright.sh: Put \r at the end of some lines
79625         for the dos-eol tests.  Based on a patch by Joel E. Denny.
79627         maint.mk: make update-copyright exclusion list more configurable
79628         * top/maint.mk (update-copyright): Default to excluding COPYING,
79629         but allow an override, in case someone does want to update that file.
79631         maint.mk: don't update copyright date in COPYING
79632         * top/maint.mk (update-copyright): Exclude COPYING.
79634         maint.mk: add a copyright-updating rule
79635         * top/maint.mk (update-copyright): New rule.
79636         Derived from coreutils/Makefile.am.
79638         update-copyright: rename some variables
79639         * build-aux/update-copyright: Rename a few variables for clarity.
79640         Tweak syntax.  List Joel E. Denny as coauthor.
79642 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79644         update-copyright: fix bug for 2-digit last year and add tests
79645         * build-aux/update-copyright: Fix bug.
79646         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
79647         specified.
79648         * modules/update-copyright-tests: New
79649         * tests/test-update-copyright.sh: New.
79651 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79653         update-copyright: handle leading tabs in line prefix
79654         * build-aux/update-copyright: Count leading tabs as 8 spaces
79655         when computing margin.  This helps with the formatting of
79656         ChangeLogs, for example.
79657         Fix documentation a little.
79659 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79661         update-copyright: support EOL=\r\n
79662         * build-aux/update-copyright: Implement that.
79664 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79666         update-copyright: automatically format copyright statements
79667         * build-aux/update-copyright: Implement that.
79668         Also, be a little more predictable and safer by always failing
79669         when the full copyright format is not perfectly recognized as an
79670         unbroken whole.  Discussed at
79671         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
79672         Rewrite documentation.
79674 2009-08-03  Bruno Haible  <bruno@clisp.org>
79676         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
79678 2009-08-02  Bruno Haible  <bruno@clisp.org>
79680         Tests for module 'uname'.
79681         * modules/uname-tests: New file.
79682         * tests/test-uname.c: New file.
79684         New module 'uname'.
79685         * lib/uname.c: New file.
79686         * m4/uname.m4: New file.
79687         * modules/uname: New file.
79688         * doc/posix-functions/uname.texi: Mention the new module.
79690 2009-08-02  Bruno Haible  <bruno@clisp.org>
79692         Tests for module 'sys_utsname'.
79693         * modules/sys_utsname-tests: New file.
79694         * tests/test-sys_utsname.c: New file.
79696         New module 'sys_utsname'.
79697         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
79698         * m4/sys_utsname_h.m4: New file.
79699         * modules/sys_utsname: New file.
79700         * doc/posix-headers/sys_utsname.texi: Mention the new module.
79702 2009-08-02  Bruno Haible  <bruno@clisp.org>
79704         Implicitly initialize the sockets library.
79705         * lib/gethostname.c: Include sockets.h.
79706         (rpl_gethostname): Invoke gl_sockets_startup.
79707         * lib/socket.c: Include sockets.h.
79708         (rpl_socket): Invoke gl_sockets_startup.
79709         * modules/gethostname (Depends-on): Add sockets.
79710         * modules/socket (Depends-on): Likewise.
79711         * tests/test-poll.c: Don't include sockets.h.
79712         (main): Don't invoke gl_sockets_startup.
79713         * tests/test-select.c: Don't include sockets.h.
79714         (main): Don't invoke gl_sockets_startup.
79716 2009-08-02  Bruno Haible  <bruno@clisp.org>
79718         Allow multiple calls to gl_sockets_startup.
79719         * lib/sockets.c (initialized_sockets_version): New variable.
79720         (gl_sockets_startup): Do nothing if already called for this or a higher
79721         version.
79722         (gl_sockets_cleanup): Reset initialized_sockets_version.
79724 2009-08-03  Simon Josefsson  <simon@josefsson.org>
79726         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
79727         different project/version.
79729 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
79730             Bruno Haible  <bruno@clisp.org>
79732         Tests for module 'pipe-filter-gi'.
79733         * modules/pipe-filter-gi-tests: New file.
79734         * tests/test-pipe-filter-gi1.sh: New file.
79735         * tests/test-pipe-filter-gi1.c: New file.
79736         * tests/test-pipe-filter-gi2.sh: New file.
79737         * tests/test-pipe-filter-gi2-main.c: New file.
79738         * tests/test-pipe-filter-gi2-child.c: New file.
79740         New module 'pipe-filter-gi'.
79741         * lib/pipe-filter-gi.c: New file.
79742         * modules/pipe-filter-gi: New file.
79744 2009-08-02  Bruno Haible  <bruno@clisp.org>
79745             Paolo Bonzini  <bonzini@gnu.org>
79747         Tests for module 'pipe-filter-ii'.
79748         * modules/pipe-filter-ii-tests: New file.
79749         * tests/test-pipe-filter-ii1.sh: New file.
79750         * tests/test-pipe-filter-ii1.c: New file.
79751         * tests/test-pipe-filter-ii2.sh: New file.
79752         * tests/test-pipe-filter-ii2-main.c: New file.
79753         * tests/test-pipe-filter-ii2-child.c: New file.
79755         New module 'pipe-filter-ii'.
79756         * lib/pipe-filter.h: New file.
79757         * lib/pipe-filter-ii.c: New file.
79758         * lib/pipe-filter-aux.h: New file.
79759         * modules/pipe-filter-ii: New file.
79761 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79763         * lib/gc-libgcrypt.c: Change copyright to FSF.
79764         * lib/gc-gnulib.c: Likewise.
79766 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
79768         * lib/gethostname.c: Include limits.h.
79770 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79771             Bruno Haible  <bruno@clisp.org>
79773         Ensure HOST_NAME_MAX as part of the gethostname module.
79774         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
79775         define also HOST_NAME_MAX.
79776         * tests/test-gethostname.c: Include <limits.h>.
79777         (main): Check also HOST_NAME_MAX.
79778         * doc/posix-headers/limits.texi: Document the mingw problem.
79780 2009-08-02  Bruno Haible  <bruno@clisp.org>
79782         * lib/gethostname.c (gethostname): Fix handling of large len argument.
79783         Add comments.
79785 2009-03-31  Simon Josefsson  <simon@josefsson.org>
79787         * lib/gethostname.c: Add Windows wrapper.
79788         * m4/gethostname.m4: Look for gethostname in -lws2_32.
79789         * modules/gethostname: Depend on sys_socket & errno, for also
79790         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
79791         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
79793 2009-07-31  Jim Meyering  <meyering@redhat.com>
79795         getloadavg: fix symbol name in comment
79796         * lib/getloadavg.c: Correct a typo I introduced when adding
79797         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
79798         Matt Kraai spotted the problem.
79800 2009-07-29  Matt Kraai  <mkraai@beckman.com>
79802         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
79803         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
79804         code also if ! defined N_NAME_POINTER.
79805         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
79806         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
79807         but the n_name member is a 12-byte array.
79809 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
79811         update-copyright: generalize comment handling
79812         * build-aux/update-copyright: Handle copyright statements
79813         within more comment styles.
79814         Document usage.
79815         Report any file with an external copyright holder or parse failure.
79817 2009-07-29  Jim Meyering  <meyering@redhat.com>
79819         mktime: correct setting of REPLACE_MKTIME
79820         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
79822         update-copyright: new module
79823         * modules/update-copyright: New file.
79824         * build-aux/update-copyright: New file.
79825         * MODULES.html.sh (maint+release support): Add update-copyright.
79827 2009-07-27  Bruno Haible  <bruno@clisp.org>
79829         Fix compilation error when <ctime> is used and mktime is replaced.
79830         * lib/time.in.h (mktime): New declaration.
79831         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
79832         REPLACE_MKTIME instead of defining mktime in config.h.
79833         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
79834         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
79835         Reported by Ross McFarland <rwmcfa1@neces.com>.
79837 2009-07-27  Bruno Haible  <bruno@clisp.org>
79839         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
79840         Reported by Matt Kraai <mkraai@beckman.com>.
79842 2009-07-25  Jim Meyering  <meyering@redhat.com>
79844         maint.mk: avoid warnings about missing files
79845         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
79846         diagnostic when .prev-version does not exist.
79847         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
79848         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
79849         nonexistent cfg.mk.
79850         Suggestions from Simon Josefsson.
79852 2009-07-25  Bruno Haible  <bruno@clisp.org>
79854         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
79855         defined as macros. Needed on QNX 6.4.1.
79856         Reported by Matt Kraai <mkraai@beckman.com>.
79858 2009-07-23  Jim Meyering  <meyering@redhat.com>
79860         maint.mk: invoke "make dist" with a working value of XZ_OPT
79861         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
79863 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
79865         Make fseeko.c compile on QNX.
79866         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
79868 2009-07-22  Peter Simons  <simons@cryp.to>
79870         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
79871         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
79872         * lib/md4.h: Likewise.
79873         * lib/md5.h: Likewise.
79874         * lib/sha1.h: Likewise.
79875         * lib/sha256.h: Likewise.
79876         * lib/sha512.h: Likewise.
79878         tests-sha1: don't assign literal string to 'char *' variable
79879         * tests/test-sha1.c (main): Declare locals with "const" to match
79880         attributes of the right hand side.
79882 2009-07-21  Eric Blake  <ebb9@byu.net>
79884         dup2: fix more mingw problems
79885         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
79886         fd to itself.
79887         * doc/posix-functions/dup2.texi (dup2): Document the bug.
79888         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
79889         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
79890         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
79891         care of mingw bugs.
79893 2009-07-21  Jim Meyering  <meyering@redhat.com>
79895         vc-list-files: avoid failure when /bin/sh is dash
79896         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79897         On some Debian based systems, /bin/sh is a symlink to dash, and running
79898         this command would omit the "/" following each 'tests' prefix:
79899           dash -x build-aux/vc-list-files -C . tests
79900         That is because bash and dash work differently:
79901           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79902           bash ok
79903           dash odd
79905 2009-07-21  Eric Blake  <ebb9@byu.net>
79907         dup2-tests: test previous patch
79908         * modules/dup2-tests: New file.
79909         * tests/test-dup2.c: Likewise.
79910         * tests/test-open.c (main): Avoid unspecified behavior.
79911         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79912         test.
79914         dup2: work around mingw and cygwin 1.5 bug
79915         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79917         * modules/unistd (Makefile.am): Substitute it.
79918         * lib/unistd.in.h (dup2): Declare the replacement.
79919         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79920         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79921         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79922         * modules/execute (Depends-on): Add dup2.
79923         * modules/fseterr (Depends-on): Likewise.
79924         * modules/pipe (Depends-on): Likewise.
79925         * modules/posix_spawn-internal (Depends-on): Likewise.
79927 2009-07-21  Bruno Haible  <bruno@clisp.org>
79929         * modules/.gitattributes: New file.
79931 2009-07-20  Bruno Haible  <bruno@clisp.org>
79933         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79934         (main): Use it.
79936 2009-07-20  Eric Blake  <ebb9@byu.net>
79938         test-pipe: make a bit more robust.
79939         * tests/test-pipe.c (myerr): Allow error messages regardless of
79940         what we do to stderr.
79941         (test_pipe): Rearrange to avoid deadlock.
79942         (child_main): Try a larger read, to ensure we avoided deadlock.
79943         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79944         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79945         if misused.
79947 2009-07-19  Jim Meyering  <meyering@redhat.com>
79949         fts: avoid false-positive cycle-detection
79950         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79951         for each new command line argument.
79953 2009-07-19  Bruno Haible  <bruno@clisp.org>
79955         Fix build error on mingw with the modules sys_select and unistd.
79956         * modules/acl-tests (Depends-on): Add close.
79957         * modules/binary-io-tests (Depends-on): Likewise.
79958         * modules/closein-tests (Depends-on): Likewise.
79959         * modules/flock-tests (Depends-on): Likewise.
79960         * modules/fsync-tests (Depends-on): Likewise.
79961         * modules/lseek-tests (Depends-on): Likewise.
79962         * modules/pipe-tests (Depends-on): Likewise.
79963         * modules/posix_spawn-tests (Depends-on): Likewise.
79964         * modules/posix_spawnp-tests (Depends-on): Likewise.
79965         * modules/stat-time-tests (Depends-on): Likewise.
79966         * modules/yesno-tests (Depends-on): Likewise.
79968 2009-07-19  Bruno Haible  <bruno@clisp.org>
79970         Unify conditionals.
79971         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79972         macros, not at the compiler macros.
79973         * lib/pipe.c: Likewise.
79974         * lib/execute.c: Likewise.
79975         * lib/spawni.c: Likewise.
79977 2009-07-19  Bruno Haible  <bruno@clisp.org>
79979         Fix handling of closed stdin/stdout/stderr on mingw.
79980         * lib/w32spawn.h: Include unistd.h.
79981         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79982         file descriptor with O_NOINHERIT flag.
79983         (fd_safer_noinherit): New function, based on fd-safer.c.
79984         (dup_safer_noinherit): New function, based on dup-safer.c.
79985         (undup_safer_noinherit): New function.
79986         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79987         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79988         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79989         instead of fd_safer.
79990         * tests/test-pipe.c: Include <windows.h>.
79991         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79992         result.
79994         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79995         from main.
79996         (test_pipe): Pass an extra argument for disambiguation.
79997         (main): Invoke parent_main or child_main.
79999         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
80000         consistently.
80002 2009-07-18  Eric Blake  <ebb9@byu.net>
80004         test-pipe: fix mingw build
80005         * tests/test-pipe.c (main): Avoid fcntl on mingw.
80007 2009-07-18  Bruno Haible  <bruno@clisp.org>
80009         * modules/pipe-tests (Makefile.am): Fix typo.
80011 2009-07-18  Eric Blake  <ebb9@byu.net>
80013         error: fix mingw build
80014         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
80015         Reported by Bruno Haible.
80017         error: avoid undefined use of stdout
80018         * lib/error.c (error, error_at_line): Check that fd 1 is open
80019         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
80020         is handling faults and the close_stdout module wants to report the
80021         detection of closed stdout as an error.
80023 2009-07-17  Eric Blake  <ebb9@byu.net>
80025         pipe: be robust in face of closed fds
80026         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
80027         should cause child to misbehave.
80028         * modules/pipe-tests: New module.
80029         * tests/test-pipe.c: New file.
80030         * tests/test-pipe.sh: New file.
80031         Reported by Akim Demaille.
80033 2009-07-14  Bruno Haible  <bruno@clisp.org>
80035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
80036         Reported by anonymous kc.
80038 2009-07-07  Jim Meyering  <meyering@redhat.com>
80040         maint.mk: don't look for translatable strings in *.m4 or *.mk
80041         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
80042         when searching for translatable strings.
80044 2009-07-05  Jim Meyering  <meyering@redhat.com>
80046         remove superfluous parentheses in STREQ definition
80047         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
80048         * lib/getugroups.c (STREQ): Likewise.
80049         * lib/fnmatch.c (STREQ): Likewise.
80050         Spotted by Bruno Haible.
80052 2009-07-04  Jim Meyering  <meyering@redhat.com>
80054         argv-iter: new module
80055         * MODULES.html.sh: Add argv-iter.
80056         * lib/argv-iter.c, lib/argv-iter.h: New files.
80057         * modules/argv-iter: New file.
80058         * modules/argv-iter-tests: New file.
80059         * tests/test-argv-iter.c: Test it.
80061 2009-07-04  Bruno Haible  <bruno@clisp.org>
80063         Fix assertion.
80064         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
80065         contains more exact copies of a given entry than file2, leave the extra
80066         copies unpaired rather than aborting.
80067         Reported by Eric Blake.
80069 2009-07-02  Bruno Haible  <bruno@clisp.org>
80071         Speedup git-merge-changelog for git cherry-pick.
80072         * lib/git-merge-changelog.c (struct entries_mapping): New type.
80073         (entries_mapping_get): New function, extracted from compute_mapping.
80074         (entries_mapping_reverse_get): New function.
80075         (compute_mapping): Add a 'full' argument. Return the result in a
80076         'struct entries_mapping'.
80077         (main): Update. Access the mappings through entries_mapping_get.
80078         Reported by Eric Blake.
80080 2009-07-02  Bruno Haible  <bruno@clisp.org>
80082         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
80083         best_i.
80085 2009-07-02  Bruno Haible  <bruno@clisp.org>
80087         Speed up approximate search for matching ChangeLog entries.
80088         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
80089         argument. Call fstrcmp_bounded instead of fstrcmp.
80090         (compute_mapping, try_split_merged_entry, main): Update callers.
80092 2009-07-02  Bruno Haible  <bruno@clisp.org>
80094         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
80096 2009-06-30  Bruno Haible  <bruno@clisp.org>
80098         Reduce the number of uc_is_cased calls.
80099         * lib/unicase.h (casing_suffix_context_t): Add
80100         'first_char_except_ignorable' field.
80101         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
80102         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
80103         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
80104         Update initializer.
80105         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
80106         case-ignorable characters.
80107         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
80108         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
80109         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
80110         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
80111         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
80113 2009-06-30  Bruno Haible  <bruno@clisp.org>
80115         Tests for module 'unicase/ignorable'.
80116         * modules/unicase/ignorable-tests: New file.
80117         * tests/unicase/test-ignorable.c: New file, generated by
80118         gen-uni-tables.
80120         Tests for module 'unicase/cased'.
80121         * modules/unicase/cased-tests: New file.
80122         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
80123         * tests/unicase/test-predicate-part1.h: New file, derived from
80124         tests/unictype/test-predicate-part1.h.
80125         * tests/unicase/test-predicate-part2.h: New file, same as
80126         tests/unictype/test-predicate-part2.h.
80128         Fix evaluation of "Before C" condition of FINAL_SIGMA.
80129         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
80130         (output_casing_properties): New function.
80131         (main): Call it.
80132         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
80133         * lib/unicase/cased.c: Include unictype/bitmap.h.
80134         (uc_is_cased): Define through a bitmap lookup.
80135         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
80136         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
80137         (uc_is_case_ignorable): Define through a bitmap lookup.
80138         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
80139         lib/unictype/bitmap.h.
80140         (Depends-on): Add inline. Clean up.
80141         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
80142         lib/unictype/bitmap.h.
80143         (Depends-on): Add inline. Clean up.
80144         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
80145         recognition.
80146         * tests/unicase/test-u16-tolower.c (main): Likewise.
80147         * tests/unicase/test-u32-tolower.c (main): Likewise.
80149 2009-06-30  Bruno Haible  <bruno@clisp.org>
80151         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
80152         * lib/unicase/u16-casemap.c: Likewise.
80153         * lib/unicase/u32-casemap.c: Likewise.
80155 2009-06-29  Bruno Haible  <bruno@clisp.org>
80157         Define u32_casefold as a wrapper around u32_ct_casefold.
80158         * lib/unicase/u32-casefold.c: Update.
80159         * modules/unicase/u32-casefold (Depends-on): Add
80160         unicase/u32-ct-casefold, unicase/empty-prefix-context,
80161         unicase/empty-suffix-context. Clean up.
80163         Define u16_casefold as a wrapper around u16_ct_casefold.
80164         * lib/unicase/u16-casefold.c: Update.
80165         * modules/unicase/u16-casefold (Depends-on): Add
80166         unicase/u16-ct-casefold, unicase/empty-prefix-context,
80167         unicase/empty-suffix-context. Clean up.
80169         Define u8_casefold as a wrapper around u8_ct_casefold.
80170         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
80171         * lib/unicase/u8-casefold.c: Update.
80172         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
80173         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
80175         Define u32_totitle as a wrapper around u32_ct_totitle.
80176         * lib/unicase/u32-totitle.c: Update.
80177         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
80178         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
80180         Define u16_totitle as a wrapper around u16_ct_totitle.
80181         * lib/unicase/u16-totitle.c: Update.
80182         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
80183         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
80185         Define u8_totitle as a wrapper around u8_ct_totitle.
80186         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
80187         functions.
80188         (FUNC): Delegate to U_CT_TOTITLE.
80189         * lib/unicase/u8-totitle.c: Update.
80190         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
80191         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
80193         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
80194         invocation.
80195         * modules/unicase/u32-tolower (Depends-on): Add
80196         unicase/empty-prefix-context, unicase/empty-suffix-context.
80198         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
80199         invocation.
80200         * modules/unicase/u16-tolower (Depends-on): Add
80201         unicase/empty-prefix-context, unicase/empty-suffix-context.
80203         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
80204         * modules/unicase/u8-tolower (Depends-on): Add
80205         unicase/empty-prefix-context, unicase/empty-suffix-context.
80207         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
80208         invocation.
80209         * modules/unicase/u32-toupper (Depends-on): Add
80210         unicase/empty-prefix-context, unicase/empty-suffix-context.
80212         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
80213         invocation.
80214         * modules/unicase/u16-toupper (Depends-on): Add
80215         unicase/empty-prefix-context, unicase/empty-suffix-context.
80217         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
80218         * modules/unicase/u8-toupper (Depends-on): Add
80219         unicase/empty-prefix-context, unicase/empty-suffix-context.
80221         New module 'unicase/u32-ct-casefold'.
80222         * lib/unicase/u32-ct-casefold.c: New file.
80223         * modules/unicase/u32-ct-casefold: New file.
80225         New module 'unicase/u16-ct-casefold'.
80226         * lib/unicase/u16-ct-casefold.c: New file.
80227         * modules/unicase/u16-ct-casefold: New file.
80229         New module 'unicase/u8-ct-casefold'.
80230         * lib/unicase/u8-ct-casefold.c: New file.
80231         * lib/unicase/u-ct-casefold.h: New file, derived from
80232         lib/unicase/u-casefold.h.
80233         * modules/unicase/u8-ct-casefold: New file.
80235         New module 'unicase/u32-ct-totitle'.
80236         * lib/unicase/u32-ct-totitle.c: New file.
80237         * modules/unicase/u32-ct-totitle: New file.
80239         New module 'unicase/u16-ct-totitle'.
80240         * lib/unicase/u16-ct-totitle.c: New file.
80241         * modules/unicase/u16-ct-totitle: New file.
80243         New module 'unicase/u8-ct-totitle'.
80244         * lib/unicase/u8-ct-totitle.c: New file.
80245         * lib/unicase/u-ct-totitle.h: New file, derived from
80246         lib/unicase/u-totitle.h.
80247         * modules/unicase/u8-ct-totitle: New file.
80249         New module 'unicase/u32-ct-tolower'.
80250         * lib/unicase/u32-ct-tolower.c: New file.
80251         * modules/unicase/u32-ct-tolower: New file.
80253         New module 'unicase/u16-ct-tolower'.
80254         * lib/unicase/u16-ct-tolower.c: New file.
80255         * modules/unicase/u16-ct-tolower: New file.
80257         New module 'unicase/u8-ct-tolower'.
80258         * lib/unicase/u8-ct-tolower.c: New file.
80259         * modules/unicase/u8-ct-tolower: New file.
80261         New module 'unicase/u32-ct-toupper'.
80262         * lib/unicase/u32-ct-toupper.c: New file.
80263         * modules/unicase/u32-ct-toupper: New file.
80265         New module 'unicase/u16-ct-toupper'.
80266         * lib/unicase/u16-ct-toupper.c: New file.
80267         * modules/unicase/u16-ct-toupper: New file.
80269         New module 'unicase/u8-ct-toupper'.
80270         * lib/unicase/u8-ct-toupper.c: New file.
80271         * modules/unicase/u8-ct-toupper: New file.
80273         Add context arguments to u*_casemap functions.
80274         * lib/unicase/unicasemap.h: Include unicase.h.
80275         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
80276         suffix_context arguments.
80277         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
80278         functions.
80279         (FUNC): Add prefix_context and suffix_context arguments. Use
80280         uc_is_cased and uc_is_case_ignorable.
80281         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
80282         * lib/unicase/u16-casemap.c: Likewise.
80283         * lib/unicase/u32-casemap.c: Likewise.
80284         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
80285         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
80286         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
80287         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
80288         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
80289         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
80291         New module 'unicase/u32-suffix-context'.
80292         * lib/unicase/u32-suffix-context.c: New file.
80293         * modules/unicase/u32-suffix-context: New file.
80295         New module 'unicase/u16-suffix-context'.
80296         * lib/unicase/u16-suffix-context.c: New file.
80297         * modules/unicase/u16-suffix-context: New file.
80299         New module 'unicase/u8-suffix-context'.
80300         * lib/unicase/u8-suffix-context.c: New file.
80301         * lib/unicase/u-suffix-context.h: New file.
80302         * modules/unicase/u8-suffix-context: New file.
80304         New module 'unicase/empty-suffix-context'.
80305         * lib/unicase/empty-suffix-context.c: New file.
80306         * modules/unicase/empty-suffix-context: New file.
80308         New module 'unicase/u32-prefix-context'.
80309         * lib/unicase/u32-prefix-context.c: New file.
80310         * modules/unicase/u32-prefix-context: New file.
80312         New module 'unicase/u16-prefix-context'.
80313         * lib/unicase/u16-prefix-context.c: New file.
80314         * modules/unicase/u16-prefix-context: New file.
80316         New module 'unicase/u8-prefix-context'.
80317         * lib/unicase/u8-prefix-context.c: New file.
80318         * lib/unicase/u-prefix-context.h: New file.
80319         * lib/unicase/context.h: New file.
80320         * modules/unicase/u8-prefix-context: New file.
80322         New module 'unicase/empty-prefix-context'.
80323         * lib/unicase/empty-prefix-context.c: New file.
80324         * modules/unicase/empty-prefix-context: New file.
80326         New module 'unicase/ignorable'.
80327         * lib/unicase/ignorable.c: New file.
80328         * modules/unicase/ignorable: New file.
80330         New module 'unicase/cased'.
80331         * lib/unicase/caseprop.h: New file.
80332         * lib/unicase/cased.c: New file.
80333         * modules/unicase/cased: New file.
80335         New functions for case mapping of substrings.
80336         * lib/unicase.h (casing_prefix_context_t): New type.
80337         (unicase_empty_prefix_context): New variable.
80338         (u8_casing_prefix_context, u16_casing_prefix_context,
80339         u32_casing_prefix_context, u8_casing_prefixes_context,
80340         u16_casing_prefixes_context, u32_casing_prefixes_context): New
80341         declarations.
80342         (casing_suffix_context_t): New type.
80343         (unicase_empty_suffix_context): New variable.
80344         (u8_casing_suffix_context, u16_casing_suffix_context,
80345         u32_casing_suffix_context, u8_casing_suffixes_context,
80346         u16_casing_suffixes_context, u32_casing_suffixes_context,
80347         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
80348         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
80349         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
80350         declarations.
80352 2009-06-28  Jim Meyering  <meyering@redhat.com>
80354         boostrap: indent only with spaces
80355         * build-aux/bootstrap: Indent only with spaces, never TABs.
80357         bootstrap: split long lines
80358         * build-aux/bootstrap: Keep line length < 80.
80360         bootstrap: sync from coreutils
80361         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
80362         just as autoreconf does.  Verify a list of prerequisite
80363         package-name,version-number pairs if defined in bootstrap.conf.
80364         Refer to README-prereq, if prerequisites are not satisfied.
80366 2009-06-27  Eric Blake  <ebb9@byu.net>
80368         tests: add test for bogus NULL definition
80369         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
80370         * tests/test-stdlib.c: Likewise.
80371         * tests/test-string.c: Likewise.
80372         * tests/test-locale.c: Likewise.
80373         * tests/test-unistd.c: Likewise.
80374         * modules/stdio-tests (Depends-on): Add verify.
80375         * modules/stdlib-tests (Depends-on): Likewise.
80376         * modules/string-tests (Depends-on): Likewise.
80377         * modules/locale-tests (Depends-on): Likewise.
80378         * modules/unistd-tests (Depends-on): Likewise.
80380 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
80382         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
80383         self-explaining comment.
80384         * m4/selinux-selinux-h: Update serial.
80385         (gl_LIBSELINUX): New macro, adding a warning for missing development
80386         packages to code extracted from...
80387         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
80388         Add warning for missing development packages here, too.
80390 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
80392         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
80394 2009-06-25  Eric Blake  <ebb9@byu.net>
80396         version-etc: fix regression
80397         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
80398         gcc.
80399         (version_etc): Use it, to catch bugs with trailing NULL.
80400         * lib/version-etc.c (version_etc_arn): Delete unused argument.
80401         (version_etc_va): Fix logic bug.
80402         * modules/version-etc-tests: Add test.
80403         * tests/test-version-etc.c: New file.
80404         * tests/test-version-etc.sh: Likewise.
80406 2009-06-25  Sam Steingold  <sds@gnu.org>
80408         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
80409         mbtowc declaration.
80411 2009-06-25  Eric Blake  <ebb9@byu.net>
80413         fpurge: migrate into <stdio.h>
80414         * lib/fpurge.h: Delete...
80415         * lib/stdio.in.h (fpurge): ...and declare here, instead.
80416         * lib/fpurge.c (fpurge): Change declaring header.
80417         * modules/fpurge (Files): Drop deleted file.
80418         (Depends-on): Add stdio.
80419         (configure.ac): Set witness.
80420         * modules/stdio (Makefile.am): Support fpurge macros.
80421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80422         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
80423         * lib/fflush.c: Update client.
80424         * tests/test-fpurge.c: Likewise.
80425         * NEWS: Mention the change.
80427 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80429         * lib/argp-version-etc.c (program_authors): Add const
80430         qualifier.
80431         * lib/version-etc.c: Fix typos in the comments.
80432         * modules/argp-version-etc: Depends on version-etc.
80434 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80436         argp-version-etc: new module.
80438         * lib/argp-version-etc.c: New file.
80439         * lib/argp-version-etc.h: New file.
80440         * modules/argp-version-etc: New file.
80441         * modules/argp-version-etc-tests: New file.
80442         * tests/test-argp-version-etc.c: New test.
80443         * tests/test-argp-version-etc-1.sh: New test.
80445 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80447         Provide additional interfaces and documentation for version-etc
80448         module.
80450         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
80451         interfaces.
80452         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
80453         prototypes.
80455 2009-06-24  Bruno Haible  <bruno@clisp.org>
80457         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
80458         HAVE_LIB${NAME} macro.
80459         Reported by Sam Steingold <sds@gnu.org>.
80461 2009-06-23  Simon Josefsson  <simon@josefsson.org>
80463         * modules/hash-tests (test_hash_LDADD): Link to libintl when
80464         needed.
80466 2009-06-21  Bruno Haible  <bruno@clisp.org>
80468         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
80469         work.
80470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
80471         together with LIB${NAME}, LTLIB${NAME}.
80472         Reported by Sam Steingold <sds@gnu.org>.
80474 2009-06-20  Jim Meyering  <meyering@redhat.com>
80476         tests: make sc_require_test_exit_idiom more generic
80477         * top/maint.mk (Exit_witness_file): New overridable variable.
80478         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
80479         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
80481 2009-06-19  Jim Meyering  <meyering@redhat.com>
80483         hash: reverse order of src/dst parameters in an internal interface
80484         * lib/hash.c (transfer_entries): Reverse order of parameters to
80485         put DST before SRC.  Adjust callers.
80487         tests: test-hash: avoid wholesale duplication
80488         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
80489         Instead, use a loop and add a single conditional.
80491         tests: test-hash: allow seed selection via a command line argument
80492         * tests/test-hash.c (get_seed): New function.
80493         (main): Use it.
80495 2009-06-19  Eric Blake  <ebb9@byu.net>
80497         hash: avoid memory leak on allocation failure
80498         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
80499         failure.  Factor repeated algorithm...
80500         (transfer_entries): ...into new helper routine.
80501         (hash_delete): React to hash_rehash return value.
80503         hash: reduce memory pressure in hash_rehash no-op case
80504         * lib/hash.c (next_prime): Avoid overflow.
80505         (hash_initialize): Factor bucket size computation...
80506         (compute_bucket_size): ...into new helper function.
80507         (hash_rehash): Use new function and open coding to reduce memory
80508         pressure, and avoid a memory leak in USE_OBSTACK code.
80509         Reported by Jim Meyering.
80511 2009-06-18  Eric Blake  <ebb9@byu.net>
80513         hash: make rotation more obvious
80514         * modules/hash (Depends-on): Add bitrotate and stdint.
80515         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
80516         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
80517         (SIZE_MAX): Rely on headers for definition.
80518         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
80519         (raw_hasher): Use rotr_sz.
80520         Suggested by Jim Meyering.
80522         hash: fix memory leak in last patch
80523         * lib/hash.c (hash_rehash): Avoid memory leak.
80525         hash: avoid no-op rehashing
80526         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
80528         hash: provide default callback functions
80529         * lib/hash.c (raw_hasher, raw_comparator): New functions.
80530         (hash_initialize): Use them as defaults.
80531         * tests/test-hash.c (main): Test this.
80533         hash: minor optimization
80534         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
80535         when possible.
80536         (hash_initialize): Document this promise.
80537         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
80538         * tests/test-hash.c (hash_compare_strings): Test this.
80540 2009-06-18  Bruno Haible  <bruno@clisp.org>
80542         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
80543         going to be replaced anyway.
80545 2009-06-18  Bruno Haible  <bruno@clisp.org>
80547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
80548         in one place.
80549         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
80550         be replaced anyway.
80552 2009-06-18  Eric Blake  <ebb9@byu.net>
80554         hash: check for resize before insertion
80555         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
80556         threshold before insertion, so that a pathological hash_rehash
80557         that fills every bucket can still trigger another rehash.
80559 2009-06-18  Jim Meyering  <meyering@redhat.com>
80561         hash-tests: add a loop around the small tests
80562         * tests/test-hash.c (main): Repeat small tests with selected
80563         small initial table sizes.
80565 2009-06-17  Eric Blake  <ebb9@byu.net>
80567         hash: minor cleanups
80568         * lib/hash.h (hash_entry): Make opaque, by moving...
80569         * lib/hash.c (hash_entry): ...here.
80570         (hash_insert): Clarify restrictions on what can be inserted.
80571         (hash_get_next): Clarify when it is safe to remove an element
80572         during traversal.
80573         (check_tuning): Skip verification when tuning is known safe.
80574         (hash_initialize): Clarify restrictions on tuning.
80576 2009-06-17  Jim Meyering  <jim@meyering.net>
80577         and Eric Blake  <ebb9@byu.net>
80579         hash-tests: new module
80580         * modules/hash-tests: New file.
80581         * tests/test-hash.c: New file.
80583 2009-06-17  Eric Blake  <ebb9@byu.net>
80585         strstr-simple: document new module
80586         * MODULES.html.sh: Document new module.
80588         strstr, strcasestr: replace on platforms with broken memchr
80589         * modules/strstr: Split into...
80590         * modules/strstr-simple: ...new module that does not care about
80591         performance, but does care about glibc bug.
80592         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
80593         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
80594         if platform memchr is broken, per Debian bug 521737.
80595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
80596         memchr.
80597         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
80598         * doc/posix-functions/strstr.texi (strstr): Document the fix.
80599         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
80600         * modules/mountlist (Depends-on): Add strstr-simple.
80601         * modules/gen-uni-tables (Depends-on): Likewise.
80602         * modules/argz (Depends-on): Add strstr.
80604 2009-06-17  Bruno Haible  <bruno@clisp.org>
80606         * modules/posix_spawn-internal (Depends-on): Add errno.
80608 2009-06-17  Bruno Haible  <bruno@clisp.org>
80610         Define missing ESTALE on Interix 3.5.
80611         * lib/errno.in.h (ESTALE): Assign a value if missing.
80612         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
80613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
80614         missing.
80615         * doc/posix-headers/errno.texi: Mention the Interix bug.
80616         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
80618 2009-06-15  Eric Blake  <ebb9@byu.net>
80620         memchr, memchr2: add valgrind exception
80621         * lib/memchr.valgrind: New file.
80622         * lib/memchr2.valgrind: New file.
80623         * modules/memchr (Files): Distribute valgrind file.
80624         * modules/memchr2 (Files): Likewise.
80626         docs: memchr is no longer obsolete
80627         * MODULES.html.sh: Move memchr from obsolete to string.h section.
80628         * lib/string.in.h (memchr): Simplify logic.
80630 2009-06-14  Jim Meyering  <meyering@redhat.com>
80632         link-follow: fix the "checking..." message to not mention trailing slash
80633         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
80634         never considered trailing slashes.
80636 2009-06-14  Bruno Haible  <bruno@clisp.org>
80638         * m4/memchr.m4: Mention also the bug on IA-64.
80639         * doc/posix-functions/memchr.texi: Likewise.
80641 2009-06-12  Eric Blake  <ebb9@byu.net>
80643         memchr: detect broken x86_64 and alpha implementations
80644         * modules/memchr-tests (Depends-on): Move mmap detection...
80645         * modules/memchr (Depends-on): ...here.
80646         (configure.ac): Set indicator.
80647         * lib/string.in.h (memchr): Declare replacement.
80648         * modules/string (Makefile.am): Trigger replacement.
80649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
80650         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
80651         bugs.
80652         * doc/posix-functions/memchr.texi (memchr): Document the bug.
80653         * modules/getpagesize (License): Relax license.
80655 2009-06-11  Bruno Haible  <bruno@clisp.org>
80657         * lib/idpriv.h: Add more references.
80659 2009-06-08  Bruno Haible  <bruno@clisp.org>
80661         Tests for module 'idpriv-droptemp'.
80662         * modules/idpriv-droptemp-tests: New file.
80663         * tests/test-idpriv-droptemp.sh: New file.
80664         * tests/test-idpriv-droptemp.su.sh: New file.
80665         * tests/test-idpriv-droptemp.c: New file.
80667         New module 'idpriv-droptemp'.
80668         * lib/idpriv-droptemp.c: New file.
80669         * modules/idpriv-droptemp: New file.
80671 2009-06-08  Bruno Haible  <bruno@clisp.org>
80673         Tests for module 'idpriv-drop'.
80674         * modules/idpriv-drop-tests: New file.
80675         * tests/test-idpriv-drop.sh: New file.
80676         * tests/test-idpriv-drop.su.sh: New file.
80677         * tests/test-idpriv-drop.c: New file.
80679         New module 'idpriv-drop'.
80680         * lib/idpriv.h: New file.
80681         * lib-idpriv-drop.c: New file.
80682         * m4/idpriv.m4: New file.
80683         * modules/idpriv-drop: New file.
80685 2009-06-08  Bruno Haible  <bruno@clisp.org>
80687         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
80688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80695 2009-06-08  Eric Blake  <ebb9@byu.net>
80697         test-strstr: use memory fence, when possible
80698         * tests/test-strstr.c (main): Use memory fence, in order to be
80699         more likely to trigger Debian bug 521737.
80700         * modules/strstr-tests (Files): Pull in additional files.
80702         memchr: no longer obsolete, for wider field testing
80703         * modules/memchr (Status, Notice): Delete, this module is no
80704         longer obsolete.
80705         * modules/vasnprintf (Depends-on): Add memchr.
80707 2009-06-07  Jim Meyering  <meyering@redhat.com>
80709         hash: declare some functions with the warn_unused_result attribute
80710         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
80712 2009-06-07  Bruno Haible  <bruno@clisp.org>
80714         * tests/test-alignof.c: Don't test int64_t if it does not exist.
80715         Reported by Eric Blake.
80717 2009-06-06  Eric Blake  <ebb9@byu.net>
80719         test-alignof: fix typo with long double
80720         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
80721         compiler error.
80723 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
80725         Escape non-texinfo { and }s.
80726         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
80727         markup error.
80729 2009-06-04  Jim Meyering  <meyering@redhat.com>
80731         gitlog-to-changelog: don't infloop on an empty commit log
80732         * build-aux/gitlog-to-changelog: Warn about an empty log message.
80733         Reported by Boris Petersen <transacid@centerim.org>.
80735 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
80737         version-etc: extend for packagers
80738         Add three new configure options, intended for packagers:
80739           --with-packager="packager name"
80740           --with-packager-version="packager-specific version"
80741           --with-packager-bug-reports="packager bug reporting"
80742         An example with coreutils:
80743           $ ./configure \
80744             --with-packager=Gentoo \
80745             --with-packager-bug-report=http://bugs.gentoo.org/ \
80746             --with-packager-version="patchset 1.6"
80747           $ ./src/ls --version | head -n2
80748           ls (GNU coreutils) 7.1-dirty
80749           Packaged by Gentoo (patchset 1.6)
80750         Note that the bug reporting info via --help doesn't show up because
80751         coreutils uses its own custom emit_bug_reporting_address() implementation
80752         in src/system.h.  If it didn't, it'd look like:
80753           $ ./src/ls --help | tail -n4
80754           Report bugs to <bug-coreutils@gnu.org>.
80755           Report Gentoo bugs to <http://bugs.gentoo.org/>.
80756           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
80757           General help using GNU software: <http://www.gnu.org/gethelp/>.
80758         * lib/version-etc.c: Print new information, if provided.
80759         * m4/version-etc.m4: New file.
80760         * modules/version-etc (Files): Add m4/version-etc.m4.
80761         (configure.ac): Add gl_VERSION_ETC.
80763 2009-05-31  Bruno Haible  <bruno@clisp.org>
80765         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
80766         and 'int64_t'.
80767         * modules/alignof-tests (Dependencies): Add stdint.
80768         Reported by Eric Blake.
80770 2009-05-31  Bruno Haible  <bruno@clisp.org>
80772         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
80773         restriction due to compiler bugs.
80774         Reported by Eric Blake.
80776 2009-05-31  Simon Josefsson  <simon@josefsson.org>
80777             Bruno Haible  <bruno@clisp.org>
80779         Fix test-alignof failure.
80780         * lib/alignof.h (alignof_slot): New macro.
80781         (alignof_type): New macro, with the same semantics as the previous
80782         'alignof'.
80783         (alignof): Alias to alignof_slot.
80784         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
80785         check that the results are usable as constant expressions.
80787 2009-05-31  Bruno Haible  <bruno@clisp.org>
80789         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
80790         * tests/test-memchr.c (main): Check that memchr does not read past the
80791         first occurrence of the byte.
80792         * tests/test-strstr.c (main): Update comment.
80793         Suggested by Eric Blake.
80795 2009-05-30  Bruno Haible  <bruno@clisp.org>
80797         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
80798         detail how to use dumpbin.
80799         Reported by David Byron <dbyron@dbyron.com>.
80801 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80803         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
80805 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80807         * m4/manywarnings.m4: Add GCC 4.4 warnings.
80809 2009-05-28  Bruno Haible  <bruno@clisp.org>
80811         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
80812         build-aux/ files.
80814 2009-05-28  Simon Josefsson  <simon@josefsson.org>
80816         * gnulib-tool (func_import): Transform license on build-aux/ files too.
80818 2009-05-27  Simon Josefsson  <simon@josefsson.org>
80820         * gnulib-tool (sed_transform_main_lib_file)
80821         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
80822         regexps.
80824 2009-05-26  Simon Josefsson  <simon@josefsson.org>
80826         * tests/test-strstr.c: Add another self-test.
80827         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
80828         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
80830 2009-05-23  Bruno Haible  <bruno@clisp.org>
80832         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
80833         change.
80835 2009-05-21  Bruno Haible  <bruno@clisp.org>
80837         Simplify use of mode_t varargs.
80838         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
80839         uses 'mode_t' or 'int'.
80840         * lib/openat.c (openat): Likewise.
80841         * lib/open-safer.c (open_safer): Likewise.
80842         * m4/mode_t.m4: New file.
80843         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
80844         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
80845         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
80846         * modules/open (Files): Add m4/mode_t.m4.
80847         * modules/openat (Files): Likewise.
80848         * modules/fcntl-safer (Files): Likewise.
80849         Suggested by Eric Blake.
80851 2009-05-21  Pádraig Brady  <P@draigbrady.com>
80853         * doc/glibc-functions/fallocate.texi: New file.
80854         * doc/gnulib.texi: Include it.
80856 2009-05-21  Eric Blake  <ebb9@byu.net>
80857             Bruno Haible  <bruno@clisp.org>
80859         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
80860         invocations.
80861         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80863 2009-05-21  Eric Blake  <ebb9@byu.net>
80864             Bruno Haible  <bruno@clisp.org>
80866         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
80867         include_next. Fix of 2008-11-20 commit.
80868         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
80869         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
80870         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
80871         NEXT_MATH_H.
80872         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
80873         instead of NEXT_MATH_H.
80875 2009-05-21  Bruno Haible  <bruno@clisp.org>
80877         Avoid redefinition warnings for SIZE_MAX.
80878         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
80879         Reported by Simon Josefsson.
80881 2009-05-21  Bruno Haible  <bruno@clisp.org>
80883         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
80884         AC_CACHE_VAL.
80886 2009-05-20  Bruno Haible  <bruno@clisp.org>
80888         Make zeroptr.h work on mingw.
80889         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
80890         mprotect.
80891         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
80892         * modules/memchr2-tests (configure.ac): Likewise.
80893         * modules/memcmp-tests (configure.ac): Likewise.
80894         * modules/memmem-tests (configure.ac): Likewise.
80895         * modules/memrchr-tests (configure.ac): Likewise.
80896         Reported by Simon Josefsson.
80898 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80900         * tests/test-glob.c: Include string.h for strcmp prototype.
80902 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80904         * modules/getdelim (Depends-on): Add explicit stdint, although it
80905         was implicitly already pulled in via realloc-posix.
80906         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80908 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80910         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80911         G. Christensen" <tgc@jupiterrise.com>.
80912         * m4/sys_socket_h.m4: Check for sa_family_t.
80913         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80914         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80915         * tests/test-sys_socket.c: Check that sa_family_t works.
80917 2009-05-18  Eric Blake  <ebb9@byu.net>
80919         maint.mk: allow gnulib_dir in VPATH build
80920         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80922 2009-05-15  Jim Meyering  <meyering@redhat.com>
80924         maint.mk: Give gnulib_dir a default definition.
80925         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80926         Thus, most packages no longer need to specify this variable in cfg.mk
80928 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80930         rename.m4: fix typos that would make non-mingw cross-configure fail
80931         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80933 2009-05-13  Eric Blake  <ebb9@byu.net>
80935         mmap-anon: avoid out-of-order autoconf expansion
80936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80937         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80938         * modules/memchr-tests (Depends-on): Add extensions.
80939         * modules/memchr2-tests (Depends-on): Add extensions.
80940         * modules/memcmp-tests (Depends-on): Add extensions.
80941         * modules/memmem-tests (Depends-on): Add extensions.
80942         * modules/memrchr-tests (Depends-on): Add extensions.
80944 2009-05-13  Bruno Haible  <bruno@clisp.org>
80946         Make some tests ISO C 99 compliant.
80947         * tests/zerosize-ptr.h: New file.
80948         * tests/test-memchr.c: Include zerosize-ptr.h.
80949         (main): Use a zero-size object pointer instead of NULL.
80950         * tests/test-memchr2.c: Include zerosize-ptr.h.
80951         (main): Use a zero-size object pointer instead of NULL.
80952         * tests/test-memcmp.c: Include zerosize-ptr.h.
80953         (main): Use a zero-size object pointer instead of NULL.
80954         * tests/test-memmem.c: Include zerosize-ptr.h.
80955         (main): Use a zero-size object pointer instead of NULL.
80956         * tests/test-memrchr.c: Include zerosize-ptr.h.
80957         (main): Use a zero-size object pointer instead of NULL.
80958         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80959         m4/mmap-anon.m4.
80960         (Depends-on): Add getpagesize.
80961         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80962         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80963         m4/mmap-anon.m4.
80964         (Depends-on): Add getpagesize.
80965         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80966         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80967         m4/mmap-anon.m4.
80968         (Depends-on): Add getpagesize.
80969         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80970         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80971         m4/mmap-anon.m4.
80972         (Depends-on): Add getpagesize.
80973         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80974         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80975         m4/mmap-anon.m4.
80976         (Depends-on): Add getpagesize.
80977         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80979 2009-05-12  Bruno Haible  <bruno@clisp.org>
80981         Tests for module 'alignof'.
80982         * modules/alignof-tests: New file.
80983         * tests/test-alignof.c: New file.
80985 2009-05-12  Bruno Haible  <bruno@clisp.org>
80987         Fix alignof macro.
80988         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80989         vendor compilers that are always correct.
80991 2009-05-12  Bruno Haible  <bruno@clisp.org>
80993         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80994         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80995         not whether its fully works.
80997 2009-05-12  Bruno Haible  <bruno@clisp.org>
80999         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
81001 2009-05-12  Jim Meyering  <meyering@redhat.com>
81003         * top/maint.mk: Adjust backslash alignment.
81005 2009-05-11  Simon Josefsson  <simon@josefsson.org>
81007         * top/maint.mk: Make $(srcdir)/build-aux configurable.
81009 2009-05-11  Eric Blake  <ebb9@byu.net>
81011         argp: avoid undefined behavior
81012         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
81013         macros.
81015 2009-05-08  Simon Josefsson  <simon@josefsson.org>
81017         * tests/test-vc-list-files-git.sh: Do git config of user.email and
81018         user.name to prevent git commit from complaining.
81020 2009-05-10  Bruno Haible  <bruno@clisp.org>
81022         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
81023         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
81024         it rewrites every file name only once.
81025         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
81027 2009-05-08  Bruno Haible  <bruno@clisp.org>
81029         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
81030         instead of 'max'.
81032 2009-05-08  Simon Josefsson  <simon@josefsson.org>
81034         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
81035         sockaddr_storage test.
81037 2009-05-07  Simon Josefsson  <simon@josefsson.org>
81039         * modules/sys_socket (Makefile.am): Substitute
81040         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
81041         * m4/sys_socket_h.m4: Check for sockaddr_storage.
81042         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
81043         * tests/test-sys_socket.c: Check sockaddr_storage.
81045 2009-05-08  Bruno Haible  <bruno@clisp.org>
81047         New module 'alignof'.
81048         * lib/alignof.h: New file.
81049         * modules/alignof: New file.
81051 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81052             Bruno Haible  <bruno@clisp.org>
81054         Fix test-file-has-acl on FreeBSD.
81055         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
81056         mask is implicitly added.
81057         * tests/test-file-has-acl.c: Include <signal.h>.
81058         (main): Terminate the test after 5 seconds.
81059         * modules/acl-tests (configure.ac): Check for alarm function.
81061 2009-05-04  Bruno Haible  <bruno@clisp.org>
81063         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
81064         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
81065         * modules/errno (configure.ac): Drop AC_REQUIRE.
81066         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
81067         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
81069 2009-05-04  Simon Josefsson  <simon@josefsson.org>
81071         * modules/glob-tests: New module.
81072         * tests/test-glob.c: Add.
81074 2009-05-04  Simon Josefsson  <simon@josefsson.org>
81076         * modules/fnmatch-tests: New module.
81077         * tests/test-fnmatch.c: Add.
81079 2009-05-04  Eric Blake  <ebb9@byu.net>
81081         maint: make the new no-submodule-changes rule VPATH-safe
81082         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
81084 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81085             Bruno Haible  <bruno@clisp.org>
81087         acl: Fix infinite loop on FreeBSD.
81088         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
81089         of return value from acl_get_entry.
81090         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
81091         Likewise.
81093 2009-05-03  Bruno Haible  <bruno@clisp.org>
81095         * lib/acl-internal.h (acl_entries): Clarify return value.
81096         * lib/acl_entries.c (acl_entries): Likewise.
81098 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81100         Bug fix in acl module.
81101         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
81103 2009-05-03  Bruno Haible  <bruno@clisp.org>
81105         Create gperf-generated file in the source dir, not in the build dir.
81106         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
81107         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
81108         * modules/unicase/locale-language (unicase/locale-languages.h):
81109         Likewise.
81110         * modules/unicase/special-casing (unicase/special-casing-table.h):
81111         Likewise.
81112         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
81113         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
81114         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
81115         Reported by Ralf Wildenhues.
81117 2009-05-03  Bruno Haible  <bruno@clisp.org>
81119         * modules/fnmatch (Description, configure.ac): Taken from
81120         fnmatch-posix.
81121         * modules/fnmatch-posix: Turn into a symbolic reference to the
81122         'fnmatch' module, and deprecate.
81123         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
81125 2009-05-03  Bruno Haible  <bruno@clisp.org>
81127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
81128         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
81129         Reported by Ralf Wildenhues.
81131 2009-05-04  Simon Josefsson  <simon@josefsson.org>
81133         * m4/fnmatch.m4: Fix fnmatch re-define.
81135 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
81137         priv-set: new module and tests; adapt write-any-file
81138         * lib/priv-set.c: New file.
81139         * lib/priv-set.h: New file.
81140         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
81141         * lib/write-any-file.c: Simplify by using priv-set module.
81142         * m4/priv-set.m4: New file.
81143         * modules/priv-set: New file.
81144         * modules/unlinkdir: Add dependency on priv-set module.
81145         * modules/write-any-file: Likewise.
81147         Tests for module 'priv-set'.
81148         * modules/priv-set-tests: New file.
81149         * tests/test-priv-set.c: New file.
81151 2009-05-03  Jim Meyering  <meyering@redhat.com>
81152             Bruno Haible  <bruno@clisp.org>
81154         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
81155         use the converted UTF-8 variant of the name instead.
81157 2009-05-03  Jim Meyering  <meyering@redhat.com>
81159         tests: tighten some getdate tests
81160         * tests/test-getdate.c (main): Tighten tests: require equality,
81161         not just greater than.  Set TZ envvar to UTC0.
81163 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
81165         getdate: correctly interpret "next monday" when run on a Monday
81166         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
81167         that e.g., "next tues" (when run on a tuesday) results in a date
81168         that is one week in the future, and not today's date.
81169         I.e., add a week when the wday is the same as the current one.
81170         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
81171         and earlier by Martin Bernreuther and Jan Minář.
81172         * tests/test-getdate.c (main): Check that "next DAY" is always in
81173         the future and that "last DAY" is always in the past.
81175 2009-05-02  Jim Meyering  <meyering@redhat.com>
81177         build: ensure that a release build fails when a submodule is unclean
81178         * top/maint.mk (no-submodule-changes): New rule.
81179         (alpha beta major): Depend on it.
81181 2009-05-02  Bruno Haible  <bruno@clisp.org>
81183         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
81184         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
81185         shell variable gl_fnmatch_required to detect which variant is
81186         requested.
81187         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
81188         gl_FUNC_FNMATCH_POSIX.
81189         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
81190         exclude fnmatch-posix.
81192 2009-05-02  Bruno Haible  <bruno@clisp.org>
81194         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
81195         * modules/mbsrtowcs (License): Change to LGPLv2+.
81196         * modules/strnlen1 (License): Likewise.
81197         Reported by Simon Josefsson.
81199 2009-05-02  Bruno Haible  <bruno@clisp.org>
81201         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
81202         "cross".
81203         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
81204         gnulib-tool was called with option --source-base=lib.
81206 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81208         Use automake *-local hooks without commands, for extensibility.
81209         * modules/localcharset (Makefile.am): Rename install-exec-local
81210         rule to install-exec-localcharset, and make it a prerequisite of
81211         install-exec-local.  Likewise, rename the uninstall-local rule to
81212         uninstall-localcharset, and make it a prerequisite of the former.
81214 2009-05-01  Bruno Haible  <bruno@clisp.org>
81216         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
81217         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
81218         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
81219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
81220         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
81221         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
81222         m4/locale-zh.m4, m4/codeset.m4.
81224         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
81225         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
81226         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
81227         m4/locale-zh.m4.
81229         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
81230         REPLACE_WCRTOMB if mbstate_t must be replaced.
81231         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
81232         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
81234 2009-05-01  Bruno Haible  <bruno@clisp.org>
81236         Avoid compiler warnings when redefining macros defined by <libintl.h>.
81237         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
81238         dngettext, dcngettext, textdomain, bindtextdomain,
81239         bind_textdomain_codeset): Undefine before redefining.
81241 2009-04-30  Bruno Haible  <bruno@clisp.org>
81243         Fix bug introduced on 2009-04-25.
81244         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
81245         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
81246         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
81247         is defined.
81248         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
81249         is defined.
81250         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
81251         is defined.
81252         Reported by Elbert_Pol <elbert.pol@gmail.com>.
81254 2009-04-28  Bruno Haible  <bruno@clisp.org>
81256         Comment tweaks.
81257         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
81258         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
81259         * lib/unicase.h (u*_casexfrm): Likewise.
81260         Reported by Paolo Bonzini.
81262 2009-04-28  Bruno Haible  <bruno@clisp.org>
81264         Fix a compilation error.
81265         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
81266         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
81267         Reported by Jim Meyering.
81269 2009-04-27  Bruno Haible  <bruno@clisp.org>
81271         New module 'libunistring'.
81272         * modules/libunistring: New file.
81273         * m4/libunistring.m4: New file.
81274         * MODULES.html.sh (Unicode string functions): Add it.
81276 2009-04-27  Eric Blake  <ebb9@byu.net>
81278         maint.mk: allow package-specific header to provide <config.h>
81279         * top/maint.mk (sc_require_config_h): New variable.
81280         (sc_require_config_h, sc_require_config_h_first): Use it.
81282 2009-04-27  Simon Josefsson  <simon@josefsson.org>
81284         * top/maint.mk (sc_avoid_if_before_free): Except
81285         useless-if-before-free script.
81287 2009-04-27  Eric Blake  <ebb9@byu.net>
81289         maintainer-makefile: depend on all required helper scripts
81290         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
81291         useless-if-before-free.
81292         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
81293         version, rather than assuming gnulib checkout is available.
81294         Reported by Simen Josefsson.
81296 2009-04-26  Bruno Haible  <bruno@clisp.org>
81298         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
81299         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
81300         "../" or "..".
81302 2009-04-26  Bruno Haible  <bruno@clisp.org>
81304         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
81305         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
81306         AC_LIB_HAVE_LINKFLAGS.
81308 2009-04-26  Bruno Haible  <bruno@clisp.org>
81310         Simplify calling convention of u*_conv_from_encoding.
81311         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
81312         u32_conv_from_encoding): Expect a resultbuf argument and return the
81313         result directly as a pointer.
81314         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
81315         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
81316         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
81317         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
81318         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
81319         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
81320         Update.
81321         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
81322         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
81323         * lib/vasnprintf.c (VASNPRINTF): Update.
81324         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
81325         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
81326         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
81327         * NEWS: Mention the change.
81329 2009-04-26  Bruno Haible  <bruno@clisp.org>
81331         Simplify calling convention of u*_conv_to_encoding.
81332         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
81333         u32_conv_to_encoding): Expect a resultbuf argument and return the
81334         result directly as a pointer.
81335         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
81336         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
81337         freeing scaled_offsets if mem_iconveha failed.
81338         * lib/unicase/u-casexfrm.h (FUNC): Update.
81339         * lib/uninorm/u-normxfrm.h (FUNC): Update.
81340         * lib/vasnprintf.c (VASNPRINTF): Update.
81341         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
81342         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
81343         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
81344         * NEWS: Mention the change.
81346 2009-04-26  Bruno Haible  <bruno@clisp.org>
81348         Avoid test failures on AIX and OSF/1.
81349         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
81350         malloc(0).
81351         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
81352         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
81353         Likewise.
81354         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
81355         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
81356         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
81357         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
81358         * doc/posix-functions/malloc.texi: Document the portability problem
81359         related to malloc(0).
81361 2009-04-26  Bruno Haible  <bruno@clisp.org>
81363         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
81364         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
81365         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
81367 2009-04-25  Bruno Haible  <bruno@clisp.org>
81369         Avoid link error when creating a namespace clean library.
81370         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
81371         as macro with arguments if already defined as an alias.
81372         * lib/signbitf.c (gl_signbitf): Don't undefine.
81373         * lib/signbitd.c (gl_signbitd): Don't undefine.
81374         * lib/signbitl.c (gl_signbitl): Don't undefine.
81376 2009-04-25  Jim Meyering  <meyering@redhat.com>
81378         vc-list-files: fix another quoting bug
81379         * build-aux/vc-list-files: Avoid sed backslash expansion
81380         of pathological directory names.
81382 2009-04-25  Eric Blake  <ebb9@byu.net>
81384         vc-list-files: fix shell quoting error
81385         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
81386         timestamp.
81388 2009-04-25  Jim Meyering  <meyering@redhat.com>
81390         vc-list-files: restore lost functionality with subdir argument
81391         * build-aux/vc-list-files: When given a non-"." sub-directory
81392         argument, substitute the $dir/ prefix back onto each resulting name.
81393         Otherwise, coreutils' root_tests check would fail.
81395 2009-04-24  Eric Blake  <ebb9@byu.net>
81397         vc-list-files: ignore git symlinks
81398         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
81399         than ls-files, to ignore git symlinks.
81401         maint.mk: import improvements from m4
81402         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
81403         (move_if_change): Delete unused macro.
81404         (news-date-check, vc-diff-check): Support VPATH builds.
81405         (announcement): Likewise.  Split --bootstrap-tools list...
81406         (boostrap-tools): ...into separate list, which can be overridden
81407         in cfg.mk.
81408         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
81409         requiring dependency on useless-if-before-free module.
81410         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
81411         Support VPATH builds.
81413 2009-04-24  Jim Meyering  <meyering@redhat.com>
81415         maint.mk: remove coreutils-specific rules and variables
81416         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
81417         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
81418         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
81420         maint.mk: remove obsolete rule
81421         * top/maint.mk (rel-check): Remove rule.
81422         (WGET, WGETFLAGS): Remove now-unused variables.
81424 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81426         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
81427         consistency.
81429         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
81430         '$(PATH_SEPARATOR)' instead of ':'.
81432 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81434         * lib/getopt1.c (main): Use 'const' for static array.
81436 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81438         * top/maint.mk: Sync with coreutils.
81439         * NEWS: Explain incompatibilities.
81441 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81442             Bruno Haible  <bruno@clisp.org>
81444         Fix cross-compilation results.
81445         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
81446         statement, as third argument of AC_TRY_RUN.
81447         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
81448         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
81449         Likewise.
81450         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
81451         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
81452         Likewise.
81453         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
81454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
81455         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
81457 2009-04-20  Bruno Haible  <bruno@clisp.org>
81459         Avoid test failure on mingw.
81460         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
81462 2009-04-20  Bruno Haible  <bruno@clisp.org>
81464         Avoid compilation error on mingw.
81465         * modules/localename-tests (Depends-on): Add locale.
81467 2009-04-19  Bruno Haible  <bruno@clisp.org>
81469         Support for building a shared library on Windows platforms.
81470         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
81471         (main): Test the presence of UNINORM_NFC here.
81472         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
81473         (main): Test the presence of UNINORM_NFD here.
81474         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
81475         (main): Test the presence of UNINORM_NFKC here.
81476         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
81477         (main): Test the presence of UNINORM_NFKD here.
81479 2009-04-19  Bruno Haible  <bruno@clisp.org>
81481         Avoid a compiler warning.
81482         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
81483         Change type of variable 'sequence'.
81485 2009-04-19  Bruno Haible  <bruno@clisp.org>
81487         * modules/configmake (Makefile.am): When the contents of configmake.h
81488         does not change, arrange to preserve its modification time.
81490 2009-04-17  Simon Josefsson  <simon@josefsson.org>
81492         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
81493         gettext domain.
81495 2009-04-16  Jim Meyering  <meyering@redhat.com>
81497         useless-if-before-free: improve conversion code
81498         * build-aux/useless-if-before-free: Adjust code-in-comment to match
81499         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
81501 2009-04-14  Bruno Haible  <bruno@clisp.org>
81503         * modules/fcntl (Depends-on): Add extensions.
81504         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
81506 2009-04-12  Ben Pfaff  <blp@gnu.org>
81508         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
81509         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
81511 2009-03-20  Ben Pfaff  <blp@gnu.org>
81513         Make rename replace existing destinations on Windows.
81514         * m4/rename.m4: Add test for Mingw.
81515         * lib/rename.c: Add rename replacement that uses MoveFileEx with
81516         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
81517         * doc/posix-functions/rename.texi: Document.
81519 2009-04-10  Bruno Haible  <bruno@clisp.org>
81521         New include file "iconveh.h".
81522         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
81523         * lib/striconveh.h: Include it.
81524         (enum iconv_ilseq_handler): Remove definition.
81525         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
81526         striconveh.h.
81527         * lib/striconveha.c: Include striconveh.h.
81528         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
81529         * modules/striconveh (Files): Add lib/iconveh.h.
81530         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
81531         lib/striconveh.h.
81533 2009-04-10  Bruno Haible  <bruno@clisp.org>
81535         * lib/uniconv.h: Update comment.
81537 2009-04-10  Bruno Haible  <bruno@clisp.org>
81539         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
81540         always.
81541         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81542         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81543         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81544         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
81545         "unistring-notinline.h", so that the function gets defined always.
81546         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81547         * lib/unistr/u8-uctomb.c: Likewise.
81548         * lib/unistr/u16-mbtouc.c: Likewise.
81549         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81550         * lib/unistr/u16-uctomb.c: Likewise.
81551         * lib/unistr/u32-mbtouc.c: Likewise.
81552         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81553         * lib/unistr/u32-uctomb.c: Likewise.
81555 2009-04-10  Bruno Haible  <bruno@clisp.org>
81557         Mark 'utime' obsolete.
81558         * modules/utime (Status, Notice): New sections.
81559         Suggested by Jim Meyering.
81561         Fix cross-compile guess for utime test.
81562         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
81563         autoconf.
81564         * doc/posix-functions/utime.texi: Give more precisions.
81565         Reported by Jan <ipif@ymail.com>.
81567 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
81569         filevercmp: correct today's change
81570         * lib/filevercmp.c: Also handle coreutils' test inputs.
81571         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
81573         Fix regression in 'filevercmp' module. Thanks Sven Joachim
81574         for reporting it.
81575         * lib/filevercmp.c: Special handle for "", "." and "..".
81576         * tests/test-filevercmp.c: Enlarge the set suite.
81578 2009-04-07  Jim Meyering  <meyering@redhat.com>
81580         useless-if-before-free: show how to remove braced useless free, too
81581         * build-aux/useless-if-before-free: still only in a comment, though.
81583 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
81585         maint.mk: import changes to syntax-check macros from coreutils
81586         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
81587         Use them in the relevant macros.
81589 2009-04-06  Bruno Haible  <bruno@clisp.org>
81591         Fix unportable use of bit-fields.
81592         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
81593         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
81594         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
81596 2009-04-06  Bruno Haible  <bruno@clisp.org>
81598         Avoid test failures on AIX and OSF/1.
81599         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
81600         that malloc(0) = NULL.
81601         * tests/unicase/test-u8-tolower.c (check): Likewise.
81602         * tests/unicase/test-u8-totitle.c (check): Likewise.
81603         * tests/unicase/test-u8-toupper.c (check): Likewise.
81604         * tests/unicase/test-u16-casefold.c (check): Likewise.
81605         * tests/unicase/test-u16-tolower.c (check): Likewise.
81606         * tests/unicase/test-u16-totitle.c (check): Likewise.
81607         * tests/unicase/test-u16-toupper.c (check): Likewise.
81608         * tests/unicase/test-u32-casefold.c (check): Likewise.
81609         * tests/unicase/test-u32-tolower.c (check): Likewise.
81610         * tests/unicase/test-u32-totitle.c (check): Likewise.
81611         * tests/unicase/test-u32-toupper.c (check): Likewise.
81612         * tests/uninorm/test-u8-nfc.c (check): Likewise.
81613         * tests/uninorm/test-u8-nfd.c (check): Likewise.
81614         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
81615         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
81616         * tests/uninorm/test-u16-nfc.c (check): Likewise.
81617         * tests/uninorm/test-u16-nfd.c (check): Likewise.
81618         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
81619         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
81620         * tests/uninorm/test-u32-nfc.c (check): Likewise.
81621         * tests/uninorm/test-u32-nfd.c (check): Likewise.
81622         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
81623         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
81625 2009-04-05  Bruno Haible  <bruno@clisp.org>
81627         Work around an autoconf limitation.
81628         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
81629         comment line if it would be longer than 3 KB.
81631 2009-04-05  Bruno Haible  <bruno@clisp.org>
81633         Avoid test failure with libiconv-1.13.
81634         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
81635         of the expected test results.
81637 2009-04-05  Bruno Haible  <bruno@clisp.org>
81639         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
81640         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
81641         that it should be installed.
81643 2009-04-05  Bruno Haible  <bruno@clisp.org>
81645         * gnulib-tool: New option --copy-file.
81646         (func_usage): Document it.
81647         (func_dest_tmpfilename): Moved out of func_import.
81648         (func_add_file, func_update_file): New functions, extracted from
81649         func_import.
81650         (func_import): Update.
81652 2009-04-05  Karl Berry  <karl@gnu.org>
81654         * README: prominently mention gnulib-tool.
81655         Rearrange sections so getting the code is near the top.
81657 2009-04-05  Bruno Haible  <bruno@clisp.org>
81659         * lib/unicase.h: Mention u*_cmp2.
81660         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81661         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
81662         * lib/unicase/ulc-casecmp.c: Likewise.
81663         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
81664         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
81665         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
81666         unistr/u8-cmp.
81667         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
81668         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
81669         unistr/u16-cmp.
81670         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
81671         unistr/u32-cmp.
81673         * lib/uninorm.h: Mention u*_cmp2.
81674         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81675         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
81676         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
81677         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
81678         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
81679         unistr/u8-cmp.
81680         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
81681         unistr/u16-cmp.
81682         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
81683         unistr/u32-cmp.
81685         New module 'unistr/u32-cmp2'.
81686         * lib/unistr/u32-cmp2.c: New file.
81687         * modules/unistr/u32-cmp2: New file.
81689         New module 'unistr/u16-cmp2'.
81690         * lib/unistr/u16-cmp2.c: New file.
81691         * modules/unistr/u16-cmp2: New file.
81693         New module 'unistr/u8-cmp2'.
81694         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
81695         * lib/unistr/u8-cmp2.c: New file.
81696         * lib/unistr/u-cmp2.h: New file.
81697         * modules/unistr/u8-cmp2: New file.
81699 2009-04-05  Bruno Haible  <bruno@clisp.org>
81701         * lib/unictype.h (uc_property_is_valid): New macro.
81702         * tests/unictype/test-pr_byname.c (main): Use it.
81704         * lib/unistr.h: Doc fixes.
81705         * lib/uniconv.h: Doc fixes.
81706         * lib/unictype.h: Doc fixes.
81708 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
81710         Port coreutils 7.2 to Solaris 8.
81712         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
81713         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
81714         for Solaris 8.  This is a bit of a hack, as it means it's the
81715         caller's responsibility to add -lnsl if needed, but most likely it
81716         won't be needed since only getaddrinfo uses this and getaddrinfo
81717         isn't needed on Solaris 8.
81719         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
81720         problem to Solaris 8 encountered with coreutils 7.2, which
81721         resulted in a message "fnmatch.c:292: warning: passing argument 4
81722         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
81723         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
81725 2009-04-03  Simon Josefsson  <simon@josefsson.org>
81727         * m4/ld-version-script.m4: Add FIXME comment.
81729 2009-04-02  Simon Josefsson  <simon@josefsson.org>
81731         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
81732         SOVERSION variable.
81734 2009-04-02  Bruno Haible  <bruno@clisp.org>
81736         * Makefile (info, html, dvi, pdf): Combine the rules.
81737         Suggested by Jim Meyering.
81739 2009-04-01  Bruno Haible  <bruno@clisp.org>
81741         * Makefile (info, html, dvi, pdf): New targets.
81742         Reported by Reuben Thomas <rrt@sc3d.org>.
81744 2009-04-01  Bruno Haible  <bruno@clisp.org>
81746         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
81747         can be put into PATH.
81748         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
81750 2009-04-01  Bruno Haible  <bruno@clisp.org>
81752         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
81754 2009-04-01  Bruno Haible  <bruno@clisp.org>
81756         Rename module 'visibility'.
81757         * modules/lib-symbol-visibility: Renamed from modules/visibility.
81758         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
81759         * doc/gnulib.texi: Update.
81760         * MODULES.html.sh (Misc): Update.
81761         * NEWS: Mention the change.
81763 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81765         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
81766         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
81767         Eric Blake <ebb9@byu.net> for review.
81768         * MODULES.html.sh: Add lib-msvc-compat.
81769         * doc/gnulib.texi: Link to new section.
81770         * m4/ld-output-def.m4: New file.
81771         * doc/ld-output-def.texi: New file.
81773 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81775         Rename ld-version-script to lib-symbol-versions.  Suggested by
81776         Bruno Haible <bruno@clisp.org>.
81777         * modules/ld-version-script: Renamed to lib-symbol-versions.
81778         * doc/ld-version-script.texi: Fix module name.
81779         * MODULES.html.sh: Add lib-symbol-versions.
81781 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81783         * modules/u64-tests: New file.
81784         * tests/test-u64.c: New file.
81786 2009-03-04  Simon Josefsson  <simon@josefsson.org>
81788         * MODULES.html.sh: Mention u64.
81789         * modules/u64: New module.
81790         * modules/crypto/sha512: Depend on u64 module instead of providing
81791         u64.h.
81793 2009-03-27  Eric Blake  <ebb9@byu.net>
81795         test-strerror: make debugging EAI_SYSTEM easier
81796         * modules/getaddrinfo-tests (Depends-on): Add strerror.
81797         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
81798         failure was EAI_SYSTEM.
81800 2009-03-25  Bruno Haible  <bruno@clisp.org>
81802         Fix a problem with --enable-relocatable on Solaris 7.
81803         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
81804         since 2008-02-24.
81806 2009-03-25  Eric Blake  <ebb9@byu.net>
81808         test-sockets: avoid gcc warning
81809         * tests/test-sockets.c (main): Silence compiler warning.
81811 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81813         New modules nproc, pthread, contributed by Glen Lenker.
81815         * MODULES.html.sh: Add pthread, nproc.
81816         * lib/nproc.c: New file.
81817         * lib/nproc.h: New file.
81818         * lib/pthread.in.h: New file.
81819         * m4/pthread.m4: New file.
81820         * modules/nproc: New file.
81821         * modules/pthread: New file.
81823 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81825         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
81826         New variable.
81828 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
81830         filevercmp: handle simple~ and numbered.~3~ backup suffixes
81831         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
81832         * tests/test-filevercmp.c: Add tests for backup suffixes.
81834 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81836         * modules/stdlib (Depends-on): Add stdint, needed when defining
81837         struct random_data on, for example, HP-UX 10.20.  Reported by
81838         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81842         * lib/readline.c (readline): Call fflush on stdout after printing
81843         prompt.
81845 2009-03-20  Bruno Haible  <bruno@clisp.org>
81847         Remove dependency from 'close' module to -lws2_32 on native Windows.
81848         * lib/close-hook.h: New file.
81849         * lib/close-hook.c: New file.
81850         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
81851         w32sock.h.
81852         (_gl_close_fd_maybe_socket): Remove function.
81853         (rpl_close): Invoke execute_all_close_hooks instead of
81854         _gl_close_fd_maybe_socket.
81855         * lib/sockets.c: Include close-hook.h, w32sock.h.
81856         (close_fd_maybe_socket): New function, essentially from lib/close.c.
81857         (close_sockets_hook): New variable.
81858         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
81859         (gl_sockets_cleanup): Unregister it.
81860         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
81861         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
81862         * modules/close-hook: New file.
81863         * modules/close (Files): Remove lib/w32sock.h.
81864         (Depends-on): Add close-hook.
81865         (Link): Remove section.
81866         * modules/sockets (Files): Add lib/w32sock.h.
81867         (Depends-on): Add close-hook.
81868         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
81869         invocation.
81870         * NEWS: Mention that LIB_CLOSE is gone.
81872 2009-03-23  Eric Blake  <ebb9@byu.net>
81874         signal-tests: test previous patch
81875         * tests/test-signal.c: New file.
81876         * modules/signal-tests: Likewise.
81878         signal.h: always support 'volatile sig_atomic_t'
81879         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
81880         (gl_SIGNAL_H_DEFAULTS): Add a default.
81881         * modules/signal (Makefile.am): Substitute if needed.
81882         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
81883         users can blindly add volatile.
81884         * doc/posix-headers/signal.texi (signal.h): Document it.
81885         Reported by Matthew Woehlke.
81887 2009-03-23  Jim Meyering  <meyering@redhat.com>
81889         pathmax: PATH_MAX: use pathconf only when available
81890         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
81891         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
81892         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
81893         This avoids a link failure in a PSP cross-compilation environment
81894         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81896         * lib/vasnprintf.c (divide): Fix typo in comment.
81898 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81900         * gnulib-tool (func_filter_filelist): Fix comment.
81902 2009-03-20  Bruno Haible  <bruno@clisp.org>
81904         Make sockets.h self-contained.
81905         * lib/sockets.c: Include sockets.h first.
81906         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81908 2009-03-19  Eric Blake  <ebb9@byu.net>
81910         doc: mention more functions added in cygwin 1.7.0
81911         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81912         addition.
81913         * doc/posix-functions/log2f.texi: Likewise.
81915 2009-03-19  Jim Meyering  <meyering@redhat.com>
81917         fsusage: avoid syntax error due to statement-before-declaration
81918         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81919         after all declarations.  Reported by Matthew Woehlke in
81920         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81922 2009-03-18  Eric Blake  <ebb9@byu.net>
81924         build-aux/compile: sync from automake
81925         * build-aux/compile: New file, from automake.
81926         * config/srclist.txt: Mention build-aux/compile.
81928 2009-03-17  Bruno Haible  <bruno@clisp.org>
81930         * lib/git-merge-changelog.c: Fix typo in comment.
81931         Reported by Reuben Thomas <rrt@sc3d.org>.
81933 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81935         * m4/regex.m4: update and improve help for
81936         --without-included-regex.
81938 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81940         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81941         failure on missing include files.
81943 2009-03-17  Eric Blake  <ebb9@byu.net>
81945         doc: mention more functions added in cygwin 1.7.0
81946         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81947         addition.
81948         * doc/posix-functions/fwscanf.texi: Likewise.
81949         * doc/posix-functions/swprintf.texi: Likewise.
81950         * doc/posix-functions/swscanf.texi: Likewise.
81951         * doc/posix-functions/vfwprintf.texi: Likewise.
81952         * doc/posix-functions/vfwscanf.texi: Likewise.
81953         * doc/posix-functions/vswprintf.texi: Likewise.
81954         * doc/posix-functions/vswscanf.texi: Likewise.
81955         * doc/posix-functions/vwprintf.texi: Likewise.
81956         * doc/posix-functions/vwscanf.texi: Likewise.
81957         * doc/posix-functions/wcscasecmp.texi: Likewise.
81958         * doc/posix-functions/wcsdup.texi: Likewise.
81959         * doc/posix-functions/wcsftime.texi: Likewise.
81960         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81961         * doc/posix-functions/wprintf.texi: Likewise.
81962         * doc/posix-functions/wscanf.texi: Likewise.
81963         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81965 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81967         maint.mk: really add $(AM_MAKEFLAGS)
81968         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81969         was inadvertently omitted in the last commit.
81970         Spotted by Bruno Haible.
81972         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81973         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81974         $(AM_MAKEFLAGS)' rather than plain `make'.
81976         gnulib-tool: execute $MAKE not make
81977         * gnulib-tool: Default $MAKE to 'make'.
81978         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81979         than make.  Initialize $MAKE in the do-autobuild script.
81981         gnulib-tool: use $MAKE not make in generated files
81982         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81983         make, in generated files.  Initialize $MAKE in the do-autobuild
81984         script.
81986         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81988         GNUmakefile: disable parallelism only for multiple, recursive targets
81989         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81990         additions in the Makefile.
81991         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81992         by Automake.
81993         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81994         are listed on the command line and at least one of them is
81995         listed in $(ALL_RECURSIVE_TARGETS).
81997 2009-03-14  Bruno Haible  <bruno@clisp.org>
81999         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
82000         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
82001         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
82002         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
82003         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
82004         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
82005         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
82006         unistr/u8-uctomb.
82007         * modules/unistr/u8-strchr (Depends-on): Likewise.
82008         * modules/unistr/u8-strrchr (Depends-on): Likewise.
82009         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
82010         unistr/u16-uctomb.
82011         * modules/unistr/u16-strchr (Depends-on): Likewise.
82012         * modules/unistr/u16-strrchr (Depends-on): Likewise.
82014 2009-03-12  Bruno Haible  <bruno@clisp.org>
82016         Work around select() bug on Interix 3.5.
82017         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
82018         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
82019         * m4/select.m4: New file.
82020         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
82021         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
82022         * modules/select (Files): Add m4/select.m4.
82023         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
82024         * modules/nanosleep (Depends-on): Add select.
82025         * modules/poll (Depends-on): Likewise.
82026         * doc/posix-functions/select.texi: Mention the Interix bug.
82027         Reported by Markus Duft <mduft@gentoo.org>.
82029         * lib/select.c: Renamed from lib/winsock-select.c.
82030         * modules/select (Files): Add lib/select.c, remove
82031         lib/winsock-select.c.
82032         (configure.ac): Update.
82034 2009-03-12  Jim Meyering  <meyering@redhat.com>
82036         avoid gcc warnings about unused macro definitions
82037         * lib/readtokens.c (STREQ): Remove unused definition.
82038         * lib/xmalloc.c (SIZE_MAX): Likewise.
82039         * lib/openat-die.c (N_): Likewise.
82040         * lib/mountlist.c (SIZE_MAX): Remove definition.
82041         Instead, include <stdint.h>.
82042         * lib/readutmp.c: Likewise.
82043         * modules/readutmp (Depends-on): Add stdint.
82044         * modules/mountlist (Depends-on): Add stdint.
82045         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
82047 2009-03-10  Bruno Haible  <bruno@clisp.org>
82049         Tests for module 'mbmemcasecoll'.
82050         * modules/mbmemcasecoll-tests: New file.
82051         * tests/test-mbmemcasecoll1.sh: New file.
82052         * tests/test-mbmemcasecoll2.sh: New file.
82053         * tests/test-mbmemcasecoll3.sh: New file.
82054         * tests/test-mbmemcasecoll.c: New file.
82056         New module 'mbmemcasecoll'.
82057         * lib/mbmemcasecoll.h: New file.
82058         * lib/mbmemcasecoll.c: New file.
82059         * modules/mbmemcasecoll: New file.
82061         * tests/test-mbmemcasecmp.h: New file, extracted from
82062         tests/test-mbmemcasecmp.c.
82063         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
82064         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
82065         (main): Update.
82066         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
82068 2009-03-09  Bruno Haible  <bruno@clisp.org>
82070         Tests for module 'mbmemcasecmp'.
82071         * modules/mbmemcasecmp-tests: New file.
82072         * tests/test-mbmemcasecmp1.sh: New file.
82073         * tests/test-mbmemcasecmp2.sh: New file.
82074         * tests/test-mbmemcasecmp3.sh: New file.
82075         * tests/test-mbmemcasecmp.c: New file.
82077         New module 'mbmemcasecmp'.
82078         * lib/mbmemcasecmp.h: New file.
82079         * lib/mbmemcasecmp.c: New file.
82080         * modules/mbmemcasecmp: New file.
82082 2009-03-09  Bruno Haible  <bruno@clisp.org>
82084         Tests for module 'unicase/ulc-casecoll'.
82085         * modules/unicase/ulc-casecoll-tests: New file.
82086         * tests/unicase/test-ulc-casecoll1.sh: New file.
82087         * tests/unicase/test-ulc-casecoll2.sh: New file.
82088         * tests/unicase/test-ulc-casecoll.c: New file.
82090         New module 'unicase/ulc-casecoll'.
82091         * lib/unicase.h (ulc_casecoll): New declaration.
82092         * lib/unicase/ulc-casecoll.c: New file.
82093         * modules/unicase/ulc-casecoll: New file.
82095         New module 'unicase/ulc-casexfrm'.
82096         * lib/unicase.h (ulc_casexfrm): New declaration.
82097         * lib/unicase/ulc-casexfrm.c: New file.
82098         * modules/unicase/ulc-casexfrm: New file.
82100 2009-03-09  Bruno Haible  <bruno@clisp.org>
82102         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
82103         invocations.
82105         * m4/mbscasecmp.m4: Remove file.
82106         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
82107         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
82109         * m4/mbscasestr.m4: Remove file.
82110         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
82111         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
82113         * m4/mbschr.m4: Remove file.
82114         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
82115         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
82117         * m4/mbscspn.m4: Remove file.
82118         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
82119         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
82121         * m4/mbslen.m4: Remove file.
82122         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
82123         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
82125         * m4/mbsncasecmp.m4: Remove file.
82126         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
82127         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
82129         * m4/mbsnlen.m4: Remove file.
82130         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
82131         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
82133         * m4/mbspbrk.m4: Remove file.
82134         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
82135         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
82137         * m4/mbspcasecmp.m4: Remove file.
82138         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
82139         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
82141         * m4/mbsrchr.m4: Remove file.
82142         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
82143         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
82145         * m4/mbssep.m4: Remove file.
82146         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
82147         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
82149         * m4/mbsspn.m4: Remove file.
82150         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
82151         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
82153         * m4/mbsstr.m4: Remove file.
82154         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
82155         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
82157         * m4/mbstok_r.m4: Remove file.
82158         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
82159         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
82161         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
82163         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
82164         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
82166         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
82168 2009-03-08  Bruno Haible  <bruno@clisp.org>
82170         Tests for module 'unicase/ulc-casecmp'.
82171         * modules/unicase/ulc-casecmp-tests: New file.
82172         * tests/unicase/test-ulc-casecmp1.sh: New file.
82173         * tests/unicase/test-ulc-casecmp2.sh: New file.
82174         * tests/unicase/test-ulc-casecmp.c: New file.
82176         New module 'unicase/ulc-casecmp'.
82177         * lib/unicase.h (ulc_casecmp): New declaration.
82178         * lib/unicase/ulc-casecmp.c: New file.
82179         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
82180         'const SRC_UNIT *'.
82181         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
82182         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
82183         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
82184         * modules/unicase/ulc-casecmp: New file.
82186         Tests for module 'unicase/u32-is-cased'.
82187         * modules/unicase/u32-is-cased-tests: New file.
82188         * tests/unicase/test-u32-is-cased.c: New file.
82190         Tests for module 'unicase/u16-is-cased'.
82191         * modules/unicase/u16-is-cased-tests: New file.
82192         * tests/unicase/test-u16-is-cased.c: New file.
82194         Tests for module 'unicase/u8-is-cased'.
82195         * modules/unicase/u8-is-cased-tests: New file.
82196         * tests/unicase/test-u8-is-cased.c: New file.
82197         * tests/unicase/test-is-cased.h: New file.
82199         New module 'unicase/u32-is-cased'.
82200         * lib/unicase/u32-is-cased.c: New file.
82201         * modules/unicase/u32-is-cased: New file.
82203         New module 'unicase/u16-is-cased'.
82204         * lib/unicase/u16-is-cased.c: New file.
82205         * modules/unicase/u16-is-cased: New file.
82207         New module 'unicase/u8-is-cased'.
82208         * lib/unicase/u8-is-cased.c: New file.
82209         * lib/unicase/u-is-cased.h: New file.
82210         * modules/unicase/u8-is-cased: New file.
82212         Tests for module 'unicase/u32-is-casefolded'.
82213         * modules/unicase/u32-is-casefolded-tests: New file.
82214         * tests/unicase/test-u32-is-casefolded.c: New file.
82216         Tests for module 'unicase/u16-is-casefolded'.
82217         * modules/unicase/u16-is-casefolded-tests: New file.
82218         * tests/unicase/test-u16-is-casefolded.c: New file.
82220         Tests for module 'unicase/u8-is-casefolded'.
82221         * modules/unicase/u8-is-casefolded-tests: New file.
82222         * tests/unicase/test-u8-is-casefolded.c: New file.
82223         * tests/unicase/test-is-casefolded.h: New file.
82225         New module 'unicase/u32-is-casefolded'.
82226         * lib/unicase/u32-is-casefolded.c: New file.
82227         * modules/unicase/u32-is-casefolded: New file.
82229         New module 'unicase/u16-is-casefolded'.
82230         * lib/unicase/u16-is-casefolded.c: New file.
82231         * modules/unicase/u16-is-casefolded: New file.
82233         New module 'unicase/u8-is-casefolded'.
82234         * lib/unicase/u8-is-casefolded.c: New file.
82235         * modules/unicase/u8-is-casefolded: New file.
82237         Tests for module 'unicase/u32-is-titlecase'.
82238         * modules/unicase/u32-is-titlecase-tests: New file.
82239         * tests/unicase/test-u32-is-titlecase.c: New file.
82241         Tests for module 'unicase/u16-is-titlecase'.
82242         * modules/unicase/u16-is-titlecase-tests: New file.
82243         * tests/unicase/test-u16-is-titlecase.c: New file.
82245         Tests for module 'unicase/u8-is-titlecase'.
82246         * modules/unicase/u8-is-titlecase-tests: New file.
82247         * tests/unicase/test-u8-is-titlecase.c: New file.
82248         * tests/unicase/test-is-titlecase.h: New file.
82250         New module 'unicase/u32-is-titlecase'.
82251         * lib/unicase/u32-is-titlecase.c: New file.
82252         * modules/unicase/u32-is-titlecase: New file.
82254         New module 'unicase/u16-is-titlecase'.
82255         * lib/unicase/u16-is-titlecase.c: New file.
82256         * modules/unicase/u16-is-titlecase: New file.
82258         New module 'unicase/u8-is-titlecase'.
82259         * lib/unicase/u8-is-titlecase.c: New file.
82260         * modules/unicase/u8-is-titlecase: New file.
82262         Tests for module 'unicase/u32-is-lowercase'.
82263         * modules/unicase/u32-is-lowercase-tests: New file.
82264         * tests/unicase/test-u32-is-lowercase.c: New file.
82266         Tests for module 'unicase/u16-is-lowercase'.
82267         * modules/unicase/u16-is-lowercase-tests: New file.
82268         * tests/unicase/test-u16-is-lowercase.c: New file.
82270         Tests for module 'unicase/u8-is-lowercase'.
82271         * modules/unicase/u8-is-lowercase-tests: New file.
82272         * tests/unicase/test-u8-is-lowercase.c: New file.
82273         * tests/unicase/test-is-lowercase.h: New file.
82275         New module 'unicase/u32-is-lowercase'.
82276         * lib/unicase/u32-is-lowercase.c: New file.
82277         * modules/unicase/u32-is-lowercase: New file.
82279         New module 'unicase/u16-is-lowercase'.
82280         * lib/unicase/u16-is-lowercase.c: New file.
82281         * modules/unicase/u16-is-lowercase: New file.
82283         New module 'unicase/u8-is-lowercase'.
82284         * lib/unicase/u8-is-lowercase.c: New file.
82285         * modules/unicase/u8-is-lowercase: New file.
82287         Tests for module 'unicase/u32-is-uppercase'.
82288         * modules/unicase/u32-is-uppercase-tests: New file.
82289         * tests/unicase/test-u32-is-uppercase.c: New file.
82291         Tests for module 'unicase/u16-is-uppercase'.
82292         * modules/unicase/u16-is-uppercase-tests: New file.
82293         * tests/unicase/test-u16-is-uppercase.c: New file.
82295         Tests for module 'unicase/u8-is-uppercase'.
82296         * modules/unicase/u8-is-uppercase-tests: New file.
82297         * tests/unicase/test-u8-is-uppercase.c: New file.
82298         * tests/unicase/test-is-uppercase.h: New file.
82300         New module 'unicase/u32-is-uppercase'.
82301         * lib/unicase/u32-is-uppercase.c: New file.
82302         * modules/unicase/u32-is-uppercase: New file.
82304         New module 'unicase/u16-is-uppercase'.
82305         * lib/unicase/u16-is-uppercase.c: New file.
82306         * modules/unicase/u16-is-uppercase: New file.
82308         New module 'unicase/u8-is-uppercase'.
82309         * lib/unicase/u8-is-uppercase.c: New file.
82310         * modules/unicase/u8-is-uppercase: New file.
82312         New module 'unicase/u32-is-invariant'.
82313         * lib/unicase/u32-is-invariant.c: New file.
82314         * modules/unicase/u32-is-invariant: New file.
82316         New module 'unicase/u16-is-invariant'.
82317         * lib/unicase/u16-is-invariant.c: New file.
82318         * modules/unicase/u16-is-invariant: New file.
82320         New module 'unicase/u8-is-invariant'.
82321         * lib/unicase/u8-is-invariant.c: New file.
82322         * lib/unicase/invariant.h: New file.
82323         * lib/unicase/u-is-invariant.h: New file.
82324         * modules/unicase/u8-is-invariant: New file.
82326         Tests for module 'unicase/u32-casecoll'.
82327         * modules/unicase/u32-casecoll-tests: New file.
82328         * tests/unicase/test-u32-casecoll.c: New file.
82330         Tests for module 'unicase/u16-casecoll'.
82331         * modules/unicase/u16-casecoll-tests: New file.
82332         * tests/unicase/test-u16-casecoll.c: New file.
82334         Tests for module 'unicase/u8-casecoll'.
82335         * modules/unicase/u8-casecoll-tests: New file.
82336         * tests/unicase/test-u8-casecoll.c: New file.
82338         New module 'unicase/u32-casecoll'.
82339         * lib/unicase/u32-casecoll.c: New file.
82340         * modules/unicase/u32-casecoll: New file.
82342         New module 'unicase/u16-casecoll'.
82343         * lib/unicase/u16-casecoll.c: New file.
82344         * modules/unicase/u16-casecoll: New file.
82346         New module 'unicase/u8-casecoll'.
82347         * lib/unicase/u8-casecoll.c: New file.
82348         * lib/unicase/u-casecoll.h: New file.
82349         * modules/unicase/u8-casecoll: New file.
82351         New module 'unicase/u32-casexfrm'.
82352         * lib/unicase/u32-casexfrm.c: New file.
82353         * modules/unicase/u32-casexfrm: New file.
82355         New module 'unicase/u16-casexfrm'.
82356         * lib/unicase/u16-casexfrm.c: New file.
82357         * modules/unicase/u16-casexfrm: New file.
82359         New module 'unicase/u8-casexfrm'.
82360         * lib/unicase/u8-casexfrm.c: New file.
82361         * lib/unicase/u-casexfrm.h: New file.
82362         * modules/unicase/u8-casexfrm: New file.
82364         Tests for module 'unicase/u32-casecmp'.
82365         * modules/unicase/u32-casecmp-tests: New file.
82366         * tests/unicase/test-u32-casecmp.c: New file.
82368         Tests for module 'unicase/u16-casecmp'.
82369         * modules/unicase/u16-casecmp-tests: New file.
82370         * tests/unicase/test-u16-casecmp.c: New file.
82372         Tests for module 'unicase/u8-casecmp'.
82373         * modules/unicase/u8-casecmp-tests: New file.
82374         * tests/unicase/test-u8-casecmp.c: New file.
82375         * tests/unicase/test-casecmp.h: New file.
82377         New module 'unicase/u32-casecmp'.
82378         * lib/unicase/u32-casecmp.c: New file.
82379         * modules/unicase/u32-casecmp: New file.
82381         New module 'unicase/u16-casecmp'.
82382         * lib/unicase/u16-casecmp.c: New file.
82383         * modules/unicase/u16-casecmp: New file.
82385         New module 'unicase/u8-casecmp'.
82386         * lib/unicase/u8-casecmp.c: New file.
82387         * lib/unicase/u-casecmp.h: New file.
82388         * modules/unicase/u8-casecmp: New file.
82390         Tests for module 'unicase/u32-casefold'.
82391         * modules/unicase/u32-casefold-tests: New file.
82392         * tests/unicase/test-u32-casefold.c: New file.
82394         Tests for module 'unicase/u16-casefold'.
82395         * modules/unicase/u16-casefold-tests: New file.
82396         * tests/unicase/test-u16-casefold.c: New file.
82398         Tests for module 'unicase/u8-casefold'.
82399         * modules/unicase/u8-casefold-tests: New file.
82400         * tests/unicase/test-u8-casefold.c: New file.
82402         New module 'unicase/u32-casefold'.
82403         * lib/unicase/u32-casefold.c: New file.
82404         * modules/unicase/u32-casefold: New file.
82406         New module 'unicase/u16-casefold'.
82407         * lib/unicase/u16-casefold.c: New file.
82408         * modules/unicase/u16-casefold: New file.
82410         New module 'unicase/u8-casefold'.
82411         * lib/unicase/u8-casefold.c: New file.
82412         * lib/unicase/u-casefold.h: New file.
82413         * modules/unicase/u8-casefold: New file.
82415         New module 'unicase/tocasefold'.
82416         * lib/unicase/casefold.h: New file.
82417         * lib/unicase/tocasefold.c: New file.
82418         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
82419         * modules/unicase/tocasefold: New file.
82421         Tests for module 'unicase/u32-totitle'.
82422         * modules/unicase/u32-totitle-tests: New file.
82423         * tests/unicase/test-u32-totitle.c: New file.
82425         Tests for module 'unicase/u16-totitle'.
82426         * modules/unicase/u16-totitle-tests: New file.
82427         * tests/unicase/test-u16-totitle.c: New file.
82429         Tests for module 'unicase/u8-totitle'.
82430         * modules/unicase/u8-totitle-tests: New file.
82431         * tests/unicase/test-u8-totitle.c: New file.
82433         New module 'unicase/u32-totitle'.
82434         * lib/unicase/u32-totitle.c: New file.
82435         * modules/unicase/u32-totitle: New file.
82437         New module 'unicase/u16-totitle'.
82438         * lib/unicase/u16-totitle.c: New file.
82439         * modules/unicase/u16-totitle: New file.
82441         New module 'unicase/u8-totitle'.
82442         * lib/unicase/u8-totitle.c: New file.
82443         * lib/unicase/u-totitle.h: New file.
82444         * modules/unicase/u8-totitle: New file.
82446         Tests for module 'unicase/u32-tolower'.
82447         * modules/unicase/u32-tolower-tests: New file.
82448         * tests/unicase/test-u32-tolower.c: New file.
82450         Tests for module 'unicase/u16-tolower'.
82451         * modules/unicase/u16-tolower-tests: New file.
82452         * tests/unicase/test-u16-tolower.c: New file.
82454         Tests for module 'unicase/u8-tolower'.
82455         * modules/unicase/u8-tolower-tests: New file.
82456         * tests/unicase/test-u8-tolower.c: New file.
82458         New module 'unicase/u32-tolower'.
82459         * lib/unicase/u32-tolower.c: New file.
82460         * modules/unicase/u32-tolower: New file.
82462         New module 'unicase/u16-tolower'.
82463         * lib/unicase/u16-tolower.c: New file.
82464         * modules/unicase/u16-tolower: New file.
82466         New module 'unicase/u8-tolower'.
82467         * lib/unicase/u8-tolower.c: New file.
82468         * modules/unicase/u8-tolower: New file.
82470         Tests for module 'unicase/u32-toupper'.
82471         * modules/unicase/u32-toupper-tests: New file.
82472         * tests/unicase/test-u32-toupper.c: New file.
82474         Tests for module 'unicase/u16-toupper'.
82475         * modules/unicase/u16-toupper-tests: New file.
82476         * tests/unicase/test-u16-toupper.c: New file.
82478         Tests for module 'unicase/u8-toupper'.
82479         * modules/unicase/u8-toupper-tests: New file.
82480         * tests/unicase/test-u8-toupper.c: New file.
82482         New module 'unicase/u32-toupper'.
82483         * lib/unicase/u32-toupper.c: New file.
82484         * modules/unicase/u32-toupper: New file.
82486         New module 'unicase/u16-toupper'.
82487         * lib/unicase/u16-toupper.c: New file.
82488         * modules/unicase/u16-toupper: New file.
82490         New module 'unicase/u8-toupper'.
82491         * lib/unicase/u8-toupper.c: New file.
82492         * modules/unicase/u8-toupper: New file.
82494         New module 'unicase/u32-casemap'.
82495         * lib/unicase/u32-casemap.c: New file.
82496         * modules/unicase/u32-casemap: New file.
82498         New module 'unicase/u16-casemap'.
82499         * lib/unicase/u16-casemap.c: New file.
82500         * modules/unicase/u16-casemap: New file.
82502         New module 'unicase/u8-casemap'.
82503         * lib/unicase/unicasemap.h: New file.
82504         * lib/unicase/u8-casemap.c: New file.
82505         * lib/unicase/u-casemap.h: New file.
82506         * modules/unicase/u8-casemap: New file.
82508         New module 'unicase/special-casing'.
82509         * lib/unicase/special-casing.h: New file.
82510         * lib/unicase/special-casing.c: New file.
82511         * lib/unicase/special-casing-table.gperf: New file, generated by
82512         gen-uni-tables.c.
82513         * modules/unicase/special-casing: New file.
82515         Tests for module 'unicase/locale-language'.
82516         * modules/unicase/locale-language-tests: New file.
82517         * tests/unicase/test-locale-language.sh: New file.
82518         * tests/unicase/test-locale-language.c: New file.
82520         New module 'unicase/locale-language'.
82521         * lib/unicase/locale-language.c: New file.
82522         * lib/unicase/locale-languages.gperf: New file.
82523         * modules/unicase/locale-language: New file.
82525         Generate more tables for case conversion and case folding.
82526         * lib/gen-uni-tables.c (SCC_*): New enum items.
82527         (struct special_casing_rule): New type.
82528         (casing_rules, num_casing_rules, allocated_casing_rules): New
82529         variables.
82530         (add_casing_rule, fill_casing_rules): New functions.
82531         (struct casefold_rule): New type.
82532         (casefolding_rules, num_casefolding_rules,
82533         allocated_casefolding_rules): New variables.
82534         (fill_casefolding_rules): New function.
82535         (unicode_casefold): New variable.
82536         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
82537         sort_casing_rules, output_casing_rules): New functions.
82538         (main): Accept to more arguments: SpecialCasing.txt and
82539         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
82540         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
82541         Output mapping for casefolding.
82543         * lib/unicase.h: Include stdbool.h, uninorm.h.
82544         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
82545         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
82546         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
82547         arguments.
82548         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
82549         resultp arguments.
82550         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
82551         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
82552         resultp arguments.
82553         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
82554         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
82555         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
82556         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
82557         declarations.
82558         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
82560 2009-03-08  Bruno Haible  <bruno@clisp.org>
82562         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82563         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
82564         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
82565         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82567 2009-03-07  Bruno Haible  <bruno@clisp.org>
82569         Adjust u*_normcmp, u*_normcoll API.
82570         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82571         u16_normcoll, u32_normcoll): Change failure conventions.
82572         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
82573         errno and return -1.
82574         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82576 2009-03-07  Bruno Haible  <bruno@clisp.org>
82578         Tests for module 'uninorm/u32-normcoll'.
82579         * modules/uninorm/u32-normcoll-tests: New file.
82580         * tests/uninorm/test-u32-normcoll.c: New file.
82582         Tests for module 'uninorm/u16-normcoll'.
82583         * modules/uninorm/u16-normcoll-tests: New file.
82584         * tests/uninorm/test-u16-normcoll.c: New file.
82586         Tests for module 'uninorm/u8-normcoll'.
82587         * modules/uninorm/u8-normcoll-tests: New file.
82588         * tests/uninorm/test-u8-normcoll.c: New file.
82590 2009-03-07  Bruno Haible  <bruno@clisp.org>
82592         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
82593         tests/uninorm/test-u32-normcmp.c.
82594         * tests/uninorm/test-u32-normcmp.c: Include it.
82595         (test_nonascii): New function, extracted from main. Add some more
82596         tests.
82597         (main): Invoke test_ascii and test_nonascii.
82598         * modules/uninorm/u32-normcmp-tests (Files): Add
82599         tests/uninorm/test-u32-normcmp.h.
82600         (Depends-on): Remove uninorm/u32-normcmp.
82602         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
82603         tests/uninorm/test-u16-normcmp.c.
82604         * tests/uninorm/test-u16-normcmp.c: Include it.
82605         (test_nonascii): New function, extracted from main. Add some more
82606         tests.
82607         (main): Invoke test_ascii and test_nonascii.
82608         * modules/uninorm/u16-normcmp-tests (Files): Add
82609         tests/uninorm/test-u16-normcmp.h.
82610         (Depends-on): Remove uninorm/u16-normcmp.
82612         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
82613         tests/uninorm/test-u8-normcmp.c.
82614         * tests/uninorm/test-u8-normcmp.c: Include it.
82615         (test_nonascii): New function, extracted from main. Add some more
82616         tests.
82617         (main): Invoke test_ascii and test_nonascii.
82618         * modules/uninorm/u8-normcmp-tests (Files): Add
82619         tests/uninorm/test-u8-normcmp.h.
82620         (Depends-on): Remove uninorm/u8-normcmp.
82622 2009-03-07  Bruno Haible  <bruno@clisp.org>
82624         New module 'uninorm/u32-normcoll'.
82625         * lib/uninorm/u32-normcoll.c: New file.
82626         * modules/uninorm/u32-normcoll: New file.
82628         New module 'uninorm/u16-normcoll'.
82629         * lib/uninorm/u16-normcoll.c: New file.
82630         * modules/uninorm/u16-normcoll: New file.
82632         New module 'uninorm/u8-normcoll'.
82633         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
82634         declarations.
82635         * lib/uninorm/u8-normcoll.c: New file.
82636         * lib/uninorm/u-normcoll.h: New file.
82637         * modules/uninorm/u8-normcoll: New file.
82639         New module 'uninorm/u32-normxfrm'.
82640         * lib/uninorm/u32-normxfrm.c: New file.
82641         * modules/uninorm/u32-normxfrm: New file.
82643         New module 'uninorm/u16-normxfrm'.
82644         * lib/uninorm/u16-normxfrm.c: New file.
82645         * modules/uninorm/u16-normxfrm: New file.
82647         New module 'uninorm/u8-normxfrm'.
82648         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
82649         declarations.
82650         * lib/uninorm/u8-normxfrm.c: New file.
82651         * lib/uninorm/u-normxfrm.h: New file.
82652         * modules/uninorm/u8-normxfrm: New file.
82654 2009-03-07  Bruno Haible  <bruno@clisp.org>
82656         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
82657         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
82658         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
82660 2009-03-07  Bruno Haible  <bruno@clisp.org>
82662         New module 'memxfrm'.
82663         * lib/memxfrm.h: New file.
82664         * lib/memxfrm.c: New file.
82665         * modules/memxfrm: New file.
82667 2009-03-07  Bruno Haible  <bruno@clisp.org>
82669         New module 'memcmp2'.
82670         * lib/memcmp2.h: New file.
82671         * lib/memcmp2.c: New file.
82672         * modules/memcmp2: New file.
82674 2009-03-07  Bruno Haible  <bruno@clisp.org>
82676         Tests for module 'uninorm/decomposing-form'.
82677         * modules/uninorm/decomposing-form-tests: New file.
82678         * tests/uninorm/test-decomposing-form.c: New file.
82680         New module 'uninorm/decomposing-form'.
82681         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
82682         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
82683         Add 'decomposing_variant' field.
82684         * lib/uninorm/decomposing-form.c: New file.
82685         * lib/uninorm/nfc.c (uninorm_nfc): Update.
82686         * lib/uninorm/nfd.c (uninorm_nfd): Update.
82687         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
82688         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
82689         * modules/uninorm/decomposing-form: New file.
82690         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
82691         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
82693 2009-03-07  Bruno Haible  <bruno@clisp.org>
82695         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
82696         strings.
82698 2009-03-06  Bruno Haible  <bruno@clisp.org>
82700         Tests for module 'uninorm/u32-normcmp'.
82701         * tests/uninorm/test-u32-normcmp.c: New file.
82702         * modules/uninorm/u32-normcmp-tests: New file.
82704         Tests for module 'uninorm/u16-normcmp'.
82705         * tests/uninorm/test-u16-normcmp.c: New file.
82706         * modules/uninorm/u16-normcmp-tests: New file.
82708         Tests for module 'uninorm/u8-normcmp'.
82709         * tests/uninorm/test-u8-normcmp.c: New file.
82710         * modules/uninorm/u8-normcmp-tests: New file.
82712         New module 'uninorm/u32-normcmp'.
82713         * lib/uninorm/u32-normcmp.c: New file.
82714         * modules/uninorm/u32-normcmp: New file.
82716         New module 'uninorm/u16-normcmp'.
82717         * lib/uninorm/u16-normcmp.c: New file.
82718         * modules/uninorm/u16-normcmp: New file.
82720         New module 'uninorm/u8-normcmp'.
82721         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
82722         declarations.
82723         * lib/uninorm/u8-normcmp.c: New file.
82724         * lib/uninorm/u-normcmp.h: New file.
82725         * modules/uninorm/u8-normcmp: New file.
82727 2009-03-06  Bruno Haible  <bruno@clisp.org>
82729         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
82730         Reported by Eric Blake.
82732 2009-03-06  Eric Blake  <ebb9@byu.net>
82733             Bruno Haible  <bruno@clisp.org>
82735         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
82736         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
82737         condition.
82738         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82739         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
82740         condition.
82741         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82743 2009-03-06  Eric Blake  <ebb9@byu.net>
82745         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
82746         to avoid compiler warnings.
82747         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
82749 2009-03-05  Bruno Haible  <bruno@clisp.org>
82751         * tests/test-ftell.c (main): Disable test beyond end of file on
82752         FreeMiNT.
82753         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82755 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
82757         * lib/filevercmp.c: Move hidden files up in ordering.
82758         * tests/test-filevercmp.c: Add tests for hidden files.
82760 2009-03-04  Bruno Haible  <bruno@clisp.org>
82762         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
82763         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
82764         AM_CFLAGS.
82765         Reported by Simon Josefsson.
82767 2009-03-03  Bruno Haible  <bruno@clisp.org>
82769         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
82770         Reported by Simon Josefsson.
82772         * doc/ld-version-script.texi: Update node reference.
82774 2009-03-03  Bruno Haible  <bruno@clisp.org>
82776         * modules/visibility (License): Change to 'unlimited'.
82777         Suggested by Simon Josefsson.
82779 2009-03-03  Jim Meyering  <meyering@redhat.com>
82781         unlinkdir: cannot_unlink_dir may modify process state
82782         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
82783         it's neither thread-safe nor appropriate for use in a library.
82785 2009-03-03  Eric Blake  <ebb9@byu.net>
82787         test-closein: silence test under Darwin
82788         * tests/test-closein.sh: Ignore stderr from cat, since we don't
82789         care if it dies from EPIPE or EBADF.
82791 2009-03-03  Bruno Haible  <bruno@clisp.org>
82793         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
82794         earlier.
82795         * doc/visibility.texi: Fix @node and @section.
82797 2009-03-03  Simon Josefsson  <simon@josefsson.org>
82799         * doc/gnulib.texi: Link to sections for ld version script and
82800         visibility.
82801         * doc/visibility.texi: Add @node and @section.
82802         * modules/ld-version-script: New module.
82803         * m4/ld-version-script.m4: New file.
82804         * doc/ld-version-script.texi: New file.
82806 2009-03-02  David Lutterkort  <lutter@redhat.com>
82808         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
82809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82811 2009-03-02  Bruno Haible  <bruno@clisp.org>
82813         * doc/visibility.texi: Mention libtool's -export-symbols option.
82815 2009-03-02  Jim Meyering  <meyering@redhat.com>
82817         announce-gen: new option: --no-print-checksums
82818         * build-aux/announce-gen (usage): Describe it.
82819         (print_checksums): Print a newline here, not in the [*] footnote.
82820         (main): Honor it.
82822 2009-03-01  Bruno Haible  <bruno@clisp.org>
82824         Use socklen_t in the native Windows replacements prototypes.
82825         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
82826         instead of 'int'.
82827         * lib/getsockopt.c (rpl_getsockopt): Likewise.
82828         * lib/setsockopt.c (rpl_setsockopt): Likewise.
82829         * modules/getsockopt (Depends-on): Add socklen.
82830         * modules/setsockopt (Depends-on): Add socklen.
82832 2009-03-01  Bruno Haible  <bruno@clisp.org>
82834         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
82835         least 4.2.
82837 2009-03-01  Eric Blake  <ebb9@byu.net>
82838             Bruno Haible  <bruno@clisp.org>
82840         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
82841         error messages.
82842         * lib/wait-process.c (wait_subprocess): Omit error message about
82843         deadly signal sent to the child of termsigp != NULL.
82845 2009-03-01  Eric Blake  <ebb9@byu.net>
82847         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
82849 2009-03-01  Bruno Haible  <bruno@clisp.org>
82851         Avoid a gcc warning.
82852         * tests/test-sched.c (b): Make global.
82853         Reported by Eric Blake.
82855 2009-01-19  Martin Lambers  <marlam@marlam.de>
82857         Provide POSIX semantics for socket timeout options on W32.
82858         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
82859         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
82860         * modules/setsockopt: Depend on sys_time module for struct timeval.
82861         * modules/getsockopt: Depend on sys_time module for struct timeval.
82863 2009-03-01  Simon Josefsson  <simon@josefsson.org>
82865         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
82866         __USE_GNU, for consistency with netdb.in.h.
82867         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82869 2009-03-01  Bruno Haible  <bruno@clisp.org>
82871         More support for FreeMiNT.
82872         * lib/fseeko.c (rpl_fseeko): Complete last commit.
82873         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82875 2009-03-01  Bruno Haible  <bruno@clisp.org>
82877         More support for FreeMiNT.
82878         * lib/fpurge.c (fpurge): Correct last commit.
82879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82881 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82883         Fix unportable awk script in vc-list-files.
82884         * build-aux/vc-list-files: In the replacement awk script, use
82885         substr with a second argument of 1, not zero.
82886         Report by Simon Josefsson.
82888 2009-02-28  Bruno Haible  <bruno@clisp.org>
82890         More support for FreeMiNT.
82891         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
82892         to FreeMiNT today.
82893         * lib/fwriting.c (fwriting): Likewise.
82894         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82896 2009-02-28  Bruno Haible  <bruno@clisp.org>
82898         * tests/test-freadseek.c (main): Disable test beyond end of file on
82899         FreeMiNT.
82900         * tests/test-ftello.c (main): Likewise.
82901         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82903 2009-02-28  Bruno Haible  <bruno@clisp.org>
82905         Add tentative support for FreeMiNT.
82906         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82907         * lib/fpurge.c (fpurge): Likewise.
82908         * lib/freadable.c (freadable): Likewise.
82909         * lib/freading.c (freading): Likewise.
82910         * lib/freadptr.c (freadptr): Likewise.
82911         * lib/freadseek.c (freadptrinc): Likewise.
82912         * lib/fseeko.c (rpl_fseeko): Likewise.
82913         * lib/fseterr.c (fseterr): Likewise.
82914         * lib/fwritable.c (fwritable): Likewise.
82915         * lib/fwriting.c (fwriting): Likewise.
82916         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82917         Hourihane.
82918         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82920 2009-02-28  Bruno Haible  <bruno@clisp.org>
82922         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82923         SIGCHLD.
82924         Reported by Jim Meyering.
82926 2009-02-28  Bruno Haible  <bruno@clisp.org>
82928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82929         Mention the results of these tests on various platforms.
82930         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82931         order.
82932         * doc/posix-functions/printf.texi: Likewise.
82933         * doc/posix-functions/snprintf.texi: Likewise.
82934         * doc/posix-functions/sprintf.texi: Likewise.
82935         * doc/posix-functions/vfprintf.texi: Likewise.
82936         * doc/posix-functions/vprintf.texi: Likewise.
82937         * doc/posix-functions/vsnprintf.texi: Likewise.
82938         * doc/posix-functions/vsprintf.texi: Likewise.
82939         * doc/glibc-functions/obstack_printf.texi: Likewise.
82940         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82942 2009-02-28  Bruno Haible  <bruno@clisp.org>
82944         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82945         Reported by Loïc Minier <lool@dooz.org>.
82947 2009-02-27  Bruno Haible  <bruno@clisp.org>
82949         * gnulib-tool (func_import): Make the sed expression used to create the
82950         sed script for updating the .gitignore file POSIX compliant.
82951         Reported by Eric Blake.
82953 2009-02-27  Bruno Haible  <bruno@clisp.org>
82955         * gnulib-tool (sed): Don't alias as "sed --posix".
82956         Reported by Eric Blake.
82958 2009-02-27  Bruno Haible  <bruno@clisp.org>
82960         Avoid test link errors.
82961         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82962         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82963         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82964         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82967 2009-02-27  Bruno Haible  <bruno@clisp.org>
82969         Avoid spurious "(cached)" in configure output.
82970         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82971         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82972         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82973         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82974         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82975         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82976         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82977         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82978         Reported by Eric Blake.
82980 2009-02-27  Eric Blake  <ebb9@byu.net>
82982         printf: fix regression in previous patch
82983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82985 2009-02-27  Bruno Haible  <bruno@clisp.org>
82987         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82988         value.
82989         * lib/stdint.in.h: Likewise.
82990         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82992 2009-02-27  Eric Blake  <ebb9@byu.net>
82994         doc: mention more functions added in cygwin 1.7.0
82995         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82996         addition.
82997         * doc/posix-functions/open_wmemstream.texi: Likewise.
82998         * doc/posix-functions/wcsnlen.texi: Likewise.
82999         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83000         * doc/posix-functions/wcstod.texi: Likewise.
83001         * doc/posix-functions/wcstof.texi: Likewise.
83002         * doc/posix-functions/wcstoimax.texi: Likewise.
83003         * doc/posix-functions/wcstok.texi: Likewise.
83004         * doc/posix-functions/wcstoumax.texi: Likewise.
83006         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
83007         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
83008         * doc/posix-functions/fprintf.texi: Update.
83009         * doc/posix-functions/printf.texi: Update.
83010         * doc/posix-functions/snprintf.texi: Update.
83011         * doc/posix-functions/sprintf.texi: Update.
83012         * doc/posix-functions/vfprintf.texi: Update.
83013         * doc/posix-functions/vprintf.texi: Update.
83014         * doc/posix-functions/vsnprintf.texi: Update.
83015         * doc/posix-functions/vsprintf.texi: Update.
83016         * doc/glibc-functions/obstack_printf.texi: Update.
83017         * doc/glibc-functions/obstack_vprintf.texi: Update.
83019 2009-02-26  Eric Blake  <ebb9@byu.net>
83021         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
83022         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
83023         compilation bug by using runtime conversion.
83024         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
83025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
83026         * modules/ceill-tests (Files): Use nan.h.
83027         * modules/floorl-tests (Files): Likewise.
83028         * modules/frexpl-tests (Files): Likewise.
83029         * modules/isnanl-tests (Files): Likewise.
83030         * modules/ldexpl-tests (Files): Likewise.
83031         * modules/roundl-tests (Files): Likewise.
83032         * modules/truncl-tests (Files): Likewise.
83033         * tests/test-ceill.c (main): Use a working NaN.
83034         * tests/test-floorl.c (main): Likewise.
83035         * tests/test-frexpl.c (main): Likewise.
83036         * tests/test-isnan.c (test_long_double): Likewise.
83037         * tests/test-isnanl.h (main): Likewise.
83038         * tests/test-ldexpl.h (main): Likewise.
83039         * tests/test-roundl.h (main): Likewise.
83040         * tests/test-truncl.h (main): Likewise.
83041         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
83043 2009-02-26  Eric Blake  <ebb9@byu.net>
83044             Bruno Haible  <bruno@clisp.org>
83046         Work around a *printf bug with %ls on Solaris.
83047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
83048         precision is specified, sprintf stops converting the wide string
83049         argument when the number of bytes that have been produced by this
83050         conversion equals or exceeds the precision.
83051         * doc/posix-functions/fprintf.texi: Update.
83052         * doc/posix-functions/printf.texi: Update.
83053         * doc/posix-functions/snprintf.texi: Update.
83054         * doc/posix-functions/sprintf.texi: Update.
83055         * doc/posix-functions/vfprintf.texi: Update.
83056         * doc/posix-functions/vprintf.texi: Update.
83057         * doc/posix-functions/vsnprintf.texi: Update.
83058         * doc/posix-functions/vsprintf.texi: Update.
83059         * doc/glibc-functions/obstack_printf.texi: Update.
83060         * doc/glibc-functions/obstack_vprintf.texi: Update.
83062 2009-02-26  Eric Blake  <ebb9@byu.net>
83064         stdlib: favor compiler check of random.h
83065         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
83066         to avoid an ObjC random.h installed by Swarm.
83068 2009-02-26  Bruno Haible  <bruno@clisp.org>
83070         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
83071         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
83072         Reported by Gary V. Vaughan <gary@gnu.org>.
83074 2009-02-26  Bruno Haible  <bruno@clisp.org>
83076         Fix *printf behaviour regarding the %ls directive.
83077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
83078         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
83079         NEED_PRINTF_DIRECTIVE_LS.
83080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
83081         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83083         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
83084         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
83085         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
83086         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
83087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83091         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
83092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83095         * doc/posix-functions/fprintf.texi: Update.
83096         * doc/posix-functions/printf.texi: Update.
83097         * doc/posix-functions/snprintf.texi: Update.
83098         * doc/posix-functions/sprintf.texi: Update.
83099         * doc/posix-functions/vfprintf.texi: Update.
83100         * doc/posix-functions/vprintf.texi: Update.
83101         * doc/posix-functions/vsnprintf.texi: Update.
83102         * doc/posix-functions/vsprintf.texi: Update.
83103         * doc/glibc-functions/obstack_printf.texi: Update.
83104         * doc/glibc-functions/obstack_vprintf.texi: Update.
83105         Reported by Eric Blake.
83107 2009-02-25  Bruno Haible  <bruno@clisp.org>
83109         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
83110         with known value.
83111         Reported by Gary V. Vaughan <gary@gnu.org>.
83113 2009-02-25  Bruno Haible  <bruno@clisp.org>
83115         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
83116         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
83117         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
83118         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
83119         Reported by Gary V. Vaughan <gary@gnu.org>.
83121 2009-02-25  Bruno Haible  <bruno@clisp.org>
83123         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
83124         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
83125         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
83126         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
83127         Reported by Gary V. Vaughan <gary@gnu.org>.
83129 2009-02-25  Eric Blake  <ebb9@byu.net>
83131         tests: skip fseek/ftell tests if ungetc is broken
83132         * m4/ungetc.m4: New file.
83133         * modules/fseek-tests: Split test, so ungetc dependency is
83134         separate from rest of test.
83135         * modules/fseeko-tests: Likewise.
83136         * modules/ftell-tests: Likewise.
83137         * modules/ftello-tests: Likewise.
83138         * tests/test-fseek.c (main): Isolate ungetc dependency.
83139         * tests/test-fseeko.c (main): Likewise.
83140         * tests/test-ftell.c (main): Likewise.
83141         * tests/test-ftello.c (main): Likewise.
83142         * tests/test-fseek2.sh: New file.
83143         * tests/test-fseeko2.sh: Likewise.
83144         * tests/test-ftell2.sh: Likewise.
83145         * tests/test-ftello2.sh: Likewise.
83147 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
83149         test-getaddrinfo: fix usage of skip return code 77
83150         * tests/test-gettaddrinfo.c: Return skip code 77 only
83151         for first occurrence of skip (4x77 is not 77)
83153 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
83155         strtod: avoid C99 decl-after-statement
83156         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
83158 2009-02-24  Eric Blake  <ebb9@byu.net>
83160         strtod: detect HP-UX 11.31 bug
83161         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
83162         Reported by Gary V. Vaughan.
83164 2009-02-23  Bruno Haible  <bruno@clisp.org>
83166         Fix invalid read past end of memory block.
83167         * lib/vasnprintf.c (DCHAR_SET): Define.
83168         (local_wcslen): Define only when needed.
83169         (local_strnlen, local_wcsnlen): New functions.
83170         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
83171         directives that involve a conversion ourselves.
83172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
83173         wcsnlen, mbrtowc, wcrtomb.
83174         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
83175         * tests/test-vasprintf-posix.c (test_function): Likewise.
83176         * tests/test-snprintf-posix.h (test_function): Likewise.
83177         * tests/test-sprintf-posix.h (test_function): Likewise.
83178         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83180 2009-02-22  Bruno Haible  <bruno@clisp.org>
83182         Implement new clarified decomposition of Hangul syllables.
83183         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
83184         of type LTV, return only a pairwise decomposition.
83185         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
83186         Likewise.
83187         * tests/uninorm/test-decomposition.c (main): Updated expected result.
83188         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
83189         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
83191 2009-02-22  Bruno Haible  <bruno@clisp.org>
83193         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
83194         zero-length results and shrink excess allocated memory.
83195         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
83196         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
83197         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
83198         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
83199         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
83200         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
83201         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
83202         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
83203         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
83204         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
83205         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
83206         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
83208 2009-02-21  Bruno Haible  <bruno@clisp.org>
83210         * doc/gnulib.texi: Include safe-alloc.texi earlier.
83211         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
83212         spaces after a period. Put a space between a macro name and its
83213         argument list. Trivial rewordings.
83214         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
83215         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
83216         (main): Return 0 explicitly.
83218 2009-02-21  Bruno Haible  <bruno@clisp.org>
83220         Tests for module 'uninorm/filter'.
83221         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
83222         * modules/uninorm/filter-tests: New file.
83224         New module 'uninorm/filter'.
83225         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
83226         uninorm_filter_flush, uninorm_filter_free): New declarations.
83227         * lib/uninorm/uninorm-filter.c: New file.
83228         * modules/uninorm/filter: New file.
83230 2009-02-21  Bruno Haible  <bruno@clisp.org>
83232         Tests for module 'uninorm/nfkc'.
83233         * tests/uninorm/test-nfkc.c: New file.
83234         * tests/uninorm/test-u8-nfkc.c: New file.
83235         * tests/uninorm/test-u16-nfkc.c: New file.
83236         * tests/uninorm/test-u32-nfkc.c: New file.
83237         * tests/uninorm/test-u32-nfkc-big.sh: New file.
83238         * tests/uninorm/test-u32-nfkc-big.c: New file.
83239         * modules/uninorm/nfkc-tests: New file.
83241         New module 'uninorm/nfkc'.
83242         * lib/uninorm/nfkc.c: New file.
83243         * modules/uninorm/nfkc: New file.
83245         Tests for module 'uninorm/nfkd'.
83246         * tests/uninorm/test-nfkd.c: New file.
83247         * tests/uninorm/test-u8-nfkd.c: New file.
83248         * tests/uninorm/test-u16-nfkd.c: New file.
83249         * tests/uninorm/test-u32-nfkd.c: New file.
83250         * tests/uninorm/test-u32-nfkd-big.sh: New file.
83251         * tests/uninorm/test-u32-nfkd-big.c: New file.
83252         * modules/uninorm/nfkd-tests: New file.
83254         New module 'uninorm/nfkd'.
83255         * lib/uninorm/nfkd.c: New file.
83256         * modules/uninorm/nfkd: New file.
83258         Tests for module 'uninorm/nfc'.
83259         * tests/uninorm/test-nfc.c: New file.
83260         * tests/uninorm/test-u8-nfc.c: New file.
83261         * tests/uninorm/test-u16-nfc.c: New file.
83262         * tests/uninorm/test-u32-nfc.c: New file.
83263         * tests/uninorm/test-u32-nfc-big.sh: New file.
83264         * tests/uninorm/test-u32-nfc-big.c: New file.
83265         * modules/uninorm/nfc-tests: New file.
83267         New module 'uninorm/nfc'.
83268         * lib/uninorm/nfc.c: New file.
83269         * modules/uninorm/nfc: New file.
83271         Tests for module 'uninorm/nfd'.
83272         * tests/uninorm/test-nfd.c: New file.
83273         * tests/uninorm/test-u8-nfd.c: New file.
83274         * tests/uninorm/test-u16-nfd.c: New file.
83275         * tests/uninorm/test-u32-nfd.c: New file.
83276         * tests/uninorm/test-u32-nfd-big.sh: New file.
83277         * tests/uninorm/test-u32-nfd-big.c: New file.
83278         * tests/uninorm/test-u32-normalize-big.h: New file.
83279         * tests/uninorm/test-u32-normalize-big.c: New file.
83280         * tests/uninorm/NormalizationTest.txt: New file, created from
83281         Unicode 5.1.0 NormalizationTest.txt.
83282         * modules/uninorm/nfd-tests: New file.
83284         New module 'uninorm/nfd'.
83285         * lib/uninorm/nfd.c: New file.
83286         * modules/uninorm/nfd: New file.
83288         New module 'uninorm/u32-normalize'.
83289         * lib/uninorm/u32-normalize.c: New file.
83290         * modules/uninorm/u32-normalize: New file.
83292         New module 'uninorm/u16-normalize'.
83293         * lib/uninorm/u16-normalize.c: New file.
83294         * modules/uninorm/u16-normalize: New file.
83296         New module 'uninorm/u8-normalize'.
83297         * lib/uninorm/u8-normalize.c: New file.
83298         * lib/uninorm/normalize-internal.h: New file.
83299         * lib/uninorm/u-normalize-internal.h: New file.
83300         * modules/uninorm/u8-normalize: New file.
83302         New module 'uninorm/decompose-internal'.
83303         * lib/uninorm/decompose-internal.c: New file.
83304         * modules/uninorm/decompose-internal: New file.
83306         Tests for module 'uninorm/composition'.
83307         * tests/uninorm/test-composition.c: New file.
83308         * modules/uninorm/composition-tests: New file.
83310         New module 'uninorm/composition'.
83311         * lib/uninorm/composition.c: New file.
83312         * lib/uninorm/composition-table.gperf: New file, generated by
83313         gen-uni-tables.
83314         * modules/uninorm/composition: New file.
83316         Tests for module 'uninorm/compat-decomposition'.
83317         * tests/uninorm/test-compat-decomposition.c: New file.
83318         * modules/uninorm/compat-decomposition-tests: New file.
83320         New module 'uninorm/compat-decomposition'.
83321         * lib/uninorm/decompose-internal.h: New file.
83322         * lib/uninorm/compat-decomposition.c: New file.
83323         * modules/uninorm/compat-decomposition: New file.
83325         Tests for module 'uninorm/canonical-decomposition'.
83326         * tests/uninorm/test-canonical-decomposition.c: New file.
83327         * modules/uninorm/canonical-decomposition-tests: New file.
83329         New module 'uninorm/canonical-decomposition'.
83330         * lib/uninorm/canonical-decomposition.c: New file.
83331         * modules/uninorm/canonical-decomposition: New file.
83333         Tests for module 'uninorm/decomposition'.
83334         * tests/uninorm/test-decomposition.c: New file.
83335         * modules/uninorm/decomposition-tests: New file.
83337         New module 'uninorm/decomposition'.
83338         * lib/uninorm/decomposition.c: New file.
83339         * modules/uninorm/decomposition: New file.
83341         New module 'uninorm/decomposition-table'.
83342         * lib/uninorm/decomposition-table.h: New file.
83343         * lib/uninorm/decomposition-table.c: New file.
83344         * lib/uninorm/decomposition-table1.h: New file, generated by
83345         gen-uni-tables.
83346         * lib/uninorm/decomposition-table2.h: New file, generated by
83347         gen-uni-tables.
83348         * modules/uninorm/decomposition-table: New file.
83350         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
83351         (UC_DECOMP_*): New enumeration items.
83352         (get_decomposition): New function.
83353         (struct decomp_table): New type.
83354         (output_decomposition, output_decomposition_tables): New functions.
83355         (unicode_composition_exclusions): New variable.
83356         (fill_composition_exclusions, debug_output_composition_tables): New
83357         functions.
83358         (main): Accept one more argument. Invoke fill_composition_exclusions.
83359         Output decomposition and composition tables.
83361         New module 'uninorm/base'.
83362         * lib/uninorm.h: New file.
83363         * lib/unictype.h: Update comment.
83364         * modules/uninorm/base: New file.
83366 2009-02-21  David Lutterkort  <lutter@redhat.com>
83368         Tests for module 'safe-alloc'.
83369         * tests/test-safe-alloc.c: New file.
83370         * modules/safe-alloc-tests: New file.
83372         New module 'safe-alloc'.
83373         * lib/safe-alloc.h: New file.
83374         * lib/safe-alloc.c: New file.
83375         * m4/safe-alloc.m4: New file.
83376         * modules/safe-alloc: New file.
83377         * doc/safe-alloc.texi: New file.
83378         * doc/gnulib.texi: Include it.
83379         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
83380         safe-alloc.
83382 2009-02-18  Bruno Haible  <bruno@clisp.org>
83384         Fix link error on non-glibc systems.
83385         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
83386         variable.
83387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83389 2009-02-18  Jim Meyering  <meyering@redhat.com>
83391         fts: avoid used-uninitialized error due to recent change
83392         * lib/fts.c (fts_read): Guard uses of the new member,
83393         parent->fts_n_dirs_remaining, since it's not relevant for
83394         the parent of a directory specified on the command-line.
83396 2009-02-17  James Youngman  <jay@gnu.org>
83397             Bruno Haible  <bruno@clisp.org>
83399         * m4/include_next.m4: Reformulate comment.
83401 2009-02-16  Jim Meyering  <meyering@redhat.com>
83403         fts: add #if guards so that the fts_lgpl module still builds
83404         * lib/fts.c: Guard just-added hash-table-using parts with
83405         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
83406         Reported by Simon Josefsson.
83408 2009-02-15  Bruno Haible  <bruno@clisp.org>
83410         * modules/array-mergesort-tests: New file.
83411         * tests/test-array-mergesort.c: New file.
83413         New module 'array-mergesort'.
83414         * modules/array-mergesort: New file.
83415         * lib/array-mergesort.h: New file.
83417 2009-02-15  Bruno Haible  <bruno@clisp.org>
83419         Fix 2009-02-07 commit.
83420         * lib/gen-uni-tables.c (output_predicate, output_category,
83421         output_combclass, output_bidi_category, output_decimal_digit,
83422         output_digit, output_numeric, output_mirror, output_scripts,
83423         output_ident_category, output_simple_mapping): Fix format directives.
83424         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
83426 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
83428         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
83429         fixes are available from IBM.
83431 2009-02-13  Jim Meyering  <meyering@redhat.com>
83433         fts: arrange not to stat non-directories in more cases
83434         This makes GNU find (when it doesn't need to stat each file)
83435         *much* more efficient at traversing reiserfs file systems.
83436         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
83437         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
83438         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
83439         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
83440         (leaf_optimization_applies): New function.
83441         (LCO_hash, LCO_compare): New helper functions.
83442         (link_count_optimize_ok): New function.
83443         (fts_stat): Initialize new member (if dir).
83444         (fts_read): Decrement parent's fts_n_dirs_remaining count if
83445         we've just stat'ed a directory.  Skip the stat call when possible.
83446         ---
83447         Note this AFS-related exchange:
83448         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
83449         and note find's pioctl call in find/fstype.c.
83450         But that is necessary only if you want to enable the
83451         optimization for AFS, and for now, I don't.
83453         fts: move a function definition "up" (no semantic change)
83454         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
83455         "up" to precede upcoming use of a related function.
83457 2009-02-11  Jim Meyering  <meyering@redhat.com>
83459         fts: correct internal computation of nlinks (optimization-related)
83460         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
83461         whether the current entry is a directory, so don't test it.
83463 2009-02-10  Bruno Haible  <bruno@clisp.org>
83465         Tests for module 'uniwbrk/ulc-wordbreaks'.
83466         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
83467         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
83468         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
83470         Tests for module 'uniwbrk/u32-wordbreaks'.
83471         * modules/uniwbrk/u32-wordbreaks-tests: New file.
83472         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
83474         Tests for module 'uniwbrk/u16-wordbreaks'.
83475         * modules/uniwbrk/u16-wordbreaks-tests: New file.
83476         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
83478         Tests for module 'uniwbrk/u8-wordbreaks'.
83479         * modules/uniwbrk/u8-wordbreaks-tests: New file.
83480         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
83482 2009-02-10  Bruno Haible  <bruno@clisp.org>
83484         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
83485         property.
83486         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
83487         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
83488         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
83490 2009-02-10  Simon Josefsson  <simon@josefsson.org>
83492         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
83493         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
83495 2009-02-10  Bruno Haible  <bruno@clisp.org>
83497         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
83498         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
83499         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
83500         * lib/unilbrk/u8-possible-linebreaks.c: Update.
83501         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
83502         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
83504 2009-02-09  Simon Josefsson  <simon@josefsson.org>
83506         * lib/sockets.h (gl_fd_to_handle): New function.
83508         * tests/test-sockets.c: Call gl_fd_to_handle.
83510 2009-02-09  Bruno Haible  <bruno@clisp.org>
83512         * doc/havelib.texi: Document the conventions on bi-arch systems.
83514 2009-02-08  Bruno Haible  <bruno@clisp.org>
83516         Document the AC_LIB_LINKFLAGS macro.
83517         * doc/havelib.texi: New file, mostly written on 2005-05-24.
83518         * doc/gnulib.texi: Include it.
83520 2009-02-08  Bruno Haible  <bruno@clisp.org>
83522         Fix wrong order of sections, compared to TOC.
83523         * doc/gnulib.texi: Include relocatable-maint.texi after the
83524         "Regular expressions" node, not before.
83526 2009-02-08  Bruno Haible  <bruno@clisp.org>
83528         Tests for module 'unicase/totitle'.
83529         * modules/unicase/totitle-tests: New file.
83531         Tests for module 'unicase/tolower'.
83532         * modules/unicase/tolower-tests: New file.
83534         Tests for module 'unicase/toupper'.
83535         * modules/unicase/toupper-tests: New file.
83536         * tests/unicase/test-mapping-part1.h: New file.
83537         * tests/unicase/test-mapping-part2.h: New file.
83539         New module 'unicase/totitle'.
83540         * modules/unicase/totitle: New file.
83541         * lib/unicase/totitle.c: New file.
83543         New module 'unicase/tolower'.
83544         * modules/unicase/tolower: New file.
83545         * lib/unicase/tolower.c: New file.
83547         New module 'unicase/toupper'.
83548         * modules/unicase/toupper: New file.
83549         * lib/unicase/toupper.c: New file.
83550         * lib/unicase/simple-mapping.h: New file.
83552         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
83553         (mapping_table): New structure.
83554         (output_simple_mapping): New function.
83555         (main): Invoke output_simple_mapping_test and output_simple_mapping.
83556         * modules/gen-uni-tables (Description): Update.
83557         * lib/unicase/toupper.h: New file, automatically generated by
83558         gen-uni-tables.
83559         * lib/unicase/tolower.h: New file, automatically generated by
83560         gen-uni-tables.
83561         * lib/unicase/totitle.h: New file, automatically generated by
83562         gen-uni-tables.
83563         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
83564         gen-uni-tables.
83565         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
83566         gen-uni-tables.
83567         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
83568         gen-uni-tables.
83570         New module 'unicase/base'.
83571         * modules/unicase/base: New file.
83572         * lib/unicase.h: New file.
83574 2009-02-08  Bruno Haible  <bruno@clisp.org>
83576         New module 'uniwbrk/ulc-wordbreaks'.
83577         * modules/uniwbrk/ulc-wordbreaks: New file.
83578         * lib/uniwbrk/ulc-wordbreaks.c: New file.
83580         New module 'uniwbrk/u32-wordbreaks'.
83581         * modules/uniwbrk/u32-wordbreaks: New file.
83582         * lib/uniwbrk/u32-wordbreaks.c: New file.
83584         New module 'uniwbrk/u16-wordbreaks'.
83585         * modules/uniwbrk/u16-wordbreaks: New file.
83586         * lib/uniwbrk/u16-wordbreaks.c: New file.
83588         New module 'uniwbrk/u8-wordbreaks'.
83589         * modules/uniwbrk/u8-wordbreaks: New file.
83590         * lib/uniwbrk/u8-wordbreaks.c: New file.
83591         * lib/uniwbrk/u-wordbreaks.h: New file.
83593         New module 'uniwbrk/table'.
83594         * modules/uniwbrk/table: New file.
83595         * lib/uniwbrk/wbrktable.h: New file.
83596         * lib/uniwbrk/wbrktable.c: New file.
83598         New module 'uniwbrk/wordbreak-property'.
83599         * modules/uniwbrk/wordbreak-property: New file.
83600         * lib/uniwbrk/wordbreak-property.c: New file.
83602         * lib/gen-uni-tables.c (WBP_*): New enum items.
83603         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
83604         (unicode_org_wbp): New variable.
83605         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
83606         New functions.
83607         (wbp_table): New structure.
83608         (output_wbp, output_wbrk_tables): New functions.
83609         (main): Accept additional argument. Invoke fill_org_wbp,
83610         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
83611         output_wbrk_tables.
83612         * modules/gen-uni-tables (Description): Update.
83613         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
83614         gen-uni-tables.
83616         New module 'uniwbrk/base'.
83617         * modules/uniwbrk/base: New file.
83618         * lib/uniwbrk.h: New file.
83620 2009-02-08  Bruno Haible  <bruno@clisp.org>
83622         Update to Unicode 5.1.0.
83623         * lib/gen-uni-tables.c (is_property_alphabetic): Include
83624         U+2185..U+2188.
83625         (is_property_default_ignorable_code_point): Don't include characters
83626         of category Cc or Cs and not-a-characters.
83627         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
83628         U+0D79, U+109E, U+109F, U+A60C.
83629         * lib/unictype/bidi_of.h: Regenerated.
83630         * lib/unictype/blocks.h: Regenerated.
83631         * lib/unictype/categ_C.h: Regenerated.
83632         * lib/unictype/categ_Cf.h: Regenerated.
83633         * lib/unictype/categ_Cn.h: Regenerated.
83634         * lib/unictype/categ_L.h: Regenerated.
83635         * lib/unictype/categ_Ll.h: Regenerated.
83636         * lib/unictype/categ_Lm.h: Regenerated.
83637         * lib/unictype/categ_Lo.h: Regenerated.
83638         * lib/unictype/categ_Lu.h: Regenerated.
83639         * lib/unictype/categ_M.h: Regenerated.
83640         * lib/unictype/categ_Mc.h: Regenerated.
83641         * lib/unictype/categ_Me.h: Regenerated.
83642         * lib/unictype/categ_Mn.h: Regenerated.
83643         * lib/unictype/categ_N.h: Regenerated.
83644         * lib/unictype/categ_Nd.h: Regenerated.
83645         * lib/unictype/categ_Nl.h: Regenerated.
83646         * lib/unictype/categ_No.h: Regenerated.
83647         * lib/unictype/categ_P.h: Regenerated.
83648         * lib/unictype/categ_Pd.h: Regenerated.
83649         * lib/unictype/categ_Pe.h: Regenerated.
83650         * lib/unictype/categ_Pf.h: Regenerated.
83651         * lib/unictype/categ_Pi.h: Regenerated.
83652         * lib/unictype/categ_Po.h: Regenerated.
83653         * lib/unictype/categ_Ps.h: Regenerated.
83654         * lib/unictype/categ_S.h: Regenerated.
83655         * lib/unictype/categ_Sk.h: Regenerated.
83656         * lib/unictype/categ_Sm.h: Regenerated.
83657         * lib/unictype/categ_So.h: Regenerated.
83658         * lib/unictype/categ_of.h: Regenerated.
83659         * lib/unictype/combining.h: Regenerated.
83660         * lib/unictype/ctype_alnum.h: Regenerated.
83661         * lib/unictype/ctype_alpha.h: Regenerated.
83662         * lib/unictype/ctype_graph.h: Regenerated.
83663         * lib/unictype/ctype_lower.h: Regenerated.
83664         * lib/unictype/ctype_print.h: Regenerated.
83665         * lib/unictype/ctype_punct.h: Regenerated.
83666         * lib/unictype/ctype_upper.h: Regenerated.
83667         * lib/unictype/decdigit.h: Regenerated.
83668         * lib/unictype/digit.h: Regenerated.
83669         * lib/unictype/mirror.h: Regenerated.
83670         * lib/unictype/numeric.h: Regenerated.
83671         * lib/unictype/pr_alphabetic.h: Regenerated.
83672         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
83673         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
83674         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
83675         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
83676         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
83677         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
83678         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
83679         * lib/unictype/pr_combining.h: Regenerated.
83680         * lib/unictype/pr_dash.h: Regenerated.
83681         * lib/unictype/pr_decimal_digit.h: Regenerated.
83682         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
83683         * lib/unictype/pr_deprecated.h: Regenerated.
83684         * lib/unictype/pr_diacritic.h: Regenerated.
83685         * lib/unictype/pr_extender.h: Regenerated.
83686         * lib/unictype/pr_format_control.h: Regenerated.
83687         * lib/unictype/pr_grapheme_base.h: Regenerated.
83688         * lib/unictype/pr_grapheme_extend.h: Regenerated.
83689         * lib/unictype/pr_grapheme_link.h: Regenerated.
83690         * lib/unictype/pr_id_continue.h: Regenerated.
83691         * lib/unictype/pr_id_start.h: Regenerated.
83692         * lib/unictype/pr_ideographic.h: Regenerated.
83693         * lib/unictype/pr_ignorable_control.h: Regenerated.
83694         * lib/unictype/pr_lowercase.h: Regenerated.
83695         * lib/unictype/pr_math.h: Regenerated.
83696         * lib/unictype/pr_numeric.h: Regenerated.
83697         * lib/unictype/pr_other_alphabetic.h: Regenerated.
83698         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
83699         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
83700         * lib/unictype/pr_other_id_continue.h: Regenerated.
83701         * lib/unictype/pr_other_lowercase.h: Regenerated.
83702         * lib/unictype/pr_other_math.h: Regenerated.
83703         * lib/unictype/pr_punctuation.h: Regenerated.
83704         * lib/unictype/pr_sentence_terminal.h: Regenerated.
83705         * lib/unictype/pr_soft_dotted.h: Regenerated.
83706         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
83707         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
83708         * lib/unictype/pr_unified_ideograph.h: Regenerated.
83709         * lib/unictype/pr_uppercase.h: Regenerated.
83710         * lib/unictype/pr_xid_continue.h: Regenerated.
83711         * lib/unictype/pr_xid_start.h: Regenerated.
83712         * lib/unictype/pr_zero_width.h: Regenerated.
83713         * lib/unictype/scripts.h: Regenerated.
83714         * lib/unictype/scripts_byname.gperf: Regenerated.
83715         * lib/unictype/sy_java_ident.h: Regenerated.
83716         * lib/unilbrk/lbrkprop1.h: Regenerated.
83717         * lib/unilbrk/lbrkprop2.h: Regenerated.
83718         * tests/unictype/test-categ_C.c: Regenerated.
83719         * tests/unictype/test-categ_Cf.c: Regenerated.
83720         * tests/unictype/test-categ_Cn.c: Regenerated.
83721         * tests/unictype/test-categ_L.c: Regenerated.
83722         * tests/unictype/test-categ_Ll.c: Regenerated.
83723         * tests/unictype/test-categ_Lm.c: Regenerated.
83724         * tests/unictype/test-categ_Lo.c: Regenerated.
83725         * tests/unictype/test-categ_Lu.c: Regenerated.
83726         * tests/unictype/test-categ_M.c: Regenerated.
83727         * tests/unictype/test-categ_Mc.c: Regenerated.
83728         * tests/unictype/test-categ_Me.c: Regenerated.
83729         * tests/unictype/test-categ_Mn.c: Regenerated.
83730         * tests/unictype/test-categ_N.c: Regenerated.
83731         * tests/unictype/test-categ_Nd.c: Regenerated.
83732         * tests/unictype/test-categ_Nl.c: Regenerated.
83733         * tests/unictype/test-categ_No.c: Regenerated.
83734         * tests/unictype/test-categ_P.c: Regenerated.
83735         * tests/unictype/test-categ_Pd.c: Regenerated.
83736         * tests/unictype/test-categ_Pe.c: Regenerated.
83737         * tests/unictype/test-categ_Pf.c: Regenerated.
83738         * tests/unictype/test-categ_Pi.c: Regenerated.
83739         * tests/unictype/test-categ_Po.c: Regenerated.
83740         * tests/unictype/test-categ_Ps.c: Regenerated.
83741         * tests/unictype/test-categ_S.c: Regenerated.
83742         * tests/unictype/test-categ_Sk.c: Regenerated.
83743         * tests/unictype/test-categ_Sm.c: Regenerated.
83744         * tests/unictype/test-categ_So.c: Regenerated.
83745         * tests/unictype/test-ctype_alnum.c: Regenerated.
83746         * tests/unictype/test-ctype_alpha.c: Regenerated.
83747         * tests/unictype/test-ctype_graph.c: Regenerated.
83748         * tests/unictype/test-ctype_lower.c: Regenerated.
83749         * tests/unictype/test-ctype_print.c: Regenerated.
83750         * tests/unictype/test-ctype_punct.c: Regenerated.
83751         * tests/unictype/test-ctype_upper.c: Regenerated.
83752         * tests/unictype/test-decdigit.h: Regenerated.
83753         * tests/unictype/test-digit.h: Regenerated.
83754         * tests/unictype/test-numeric.h: Regenerated.
83755         * tests/unictype/test-pr_alphabetic.c: Regenerated.
83756         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
83757         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
83758         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
83759         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
83760         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
83761         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
83762         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
83763         * tests/unictype/test-pr_combining.c: Regenerated.
83764         * tests/unictype/test-pr_dash.c: Regenerated.
83765         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
83766         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
83767         * tests/unictype/test-pr_deprecated.c: Regenerated.
83768         * tests/unictype/test-pr_diacritic.c: Regenerated.
83769         * tests/unictype/test-pr_extender.c: Regenerated.
83770         * tests/unictype/test-pr_format_control.c: Regenerated.
83771         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
83772         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
83773         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
83774         * tests/unictype/test-pr_id_continue.c: Regenerated.
83775         * tests/unictype/test-pr_id_start.c: Regenerated.
83776         * tests/unictype/test-pr_ideographic.c: Regenerated.
83777         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
83778         * tests/unictype/test-pr_lowercase.c: Regenerated.
83779         * tests/unictype/test-pr_math.c: Regenerated.
83780         * tests/unictype/test-pr_numeric.c: Regenerated.
83781         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
83782         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
83783         Regenerated.
83784         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
83785         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
83786         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
83787         * tests/unictype/test-pr_other_math.c: Regenerated.
83788         * tests/unictype/test-pr_punctuation.c: Regenerated.
83789         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
83790         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
83791         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
83792         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
83793         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
83794         * tests/unictype/test-pr_uppercase.c: Regenerated.
83795         * tests/unictype/test-pr_xid_continue.c: Regenerated.
83796         * tests/unictype/test-pr_xid_start.c: Regenerated.
83797         * tests/unictype/test-pr_zero_width.c: Regenerated.
83799         Update to Unicode 5.1.0.
83800         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
83801         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
83802         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
83803         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
83804         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
83805         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
83806         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
83807         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
83808         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
83809         (nonspacing_table_ind): Update.
83810         * tests/uniwidth/test-uc_width2.sh: Update expected result.
83812         Update to Unicode 5.1.0.
83813         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
83814         code transform.
83815         * lib/uniname/uniname.c (unicode_character_name,
83816         unicode_name_character): Add the range 0x1Fxxx to the code transform.
83817         * lib/uniname/uninames.h: Regenerated.
83818         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
83820 2009-02-07  Bruno Haible  <bruno@clisp.org>
83822         Merge gen-ctype and gen-lbrk into a single program.
83823         * lib/gen-uni-tables.c: New file, incorporating
83824         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
83825         Add directory prefixes to the names of the generated files.
83826         * lib/unictype/gen-ctype.c: Remove file.
83827         * lib/unilbrk/gen-lbrk.c: Remove file.
83828         * modules/gen-uni-tables: New file.
83829         * modules/unictype/gen-ctype: Remove file.
83830         * modules/unilbrk/gen-lbrk: Remove file.
83832 2009-02-07  Bruno Haible  <bruno@clisp.org>
83834         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
83836         New module 'unistr/u32-strcoll'.
83837         * modules/unistr/u32-strcoll: New file.
83838         * lib/unistr/u32-strcoll.c: New file.
83840         New module 'unistr/u16-strcoll'.
83841         * modules/unistr/u16-strcoll: New file.
83842         * lib/unistr/u16-strcoll.c: New file.
83844         New module 'unistr/u8-strcoll'.
83845         * modules/unistr/u8-strcoll: New file.
83846         * lib/unistr/u8-strcoll.c: New file.
83847         * lib/unistr/u-strcoll.h: New file.
83849 2009-02-07  Bruno Haible  <bruno@clisp.org>
83851         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
83852         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83853         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83854         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
83855         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
83856         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
83858 2009-02-07  Bruno Haible  <bruno@clisp.org>
83860         Make 64-bit clean.
83861         * lib/unictype/gen-ctype.c (output_predicate, output_category,
83862         output_combclass, output_bidi_category, output_decimal_digit,
83863         output_digit, output_numeric, output_mirror, output_scripts,
83864         output_ident_category): Use proper width specifier in format strings.
83866 2009-02-07  Bruno Haible  <bruno@clisp.org>
83868         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
83869         failure behaviour.
83871 2009-02-07  Jim Meyering  <meyering@redhat.com>
83873         regex: avoid compilation failure with upcoming gcc-4.4
83874         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
83875         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
83876         "... error: integer overflow in preprocessor expression".
83878 2009-02-05  Ben Pfaff  <blp@gnu.org>
83880         Fix link errors on Windows when close module is used.
83881         * modules/close: Add $(LIB_CLOSE) to Link section.
83882         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
83883         $(LIB_CLOSE) on Windows.
83885 2009-02-05  Jim Meyering  <meyering@redhat.com>
83887         still avoid unused-parameter warnings, but do it cleanly
83888         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
83889         (get_fs_usage): Cast to void instead.
83890         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
83891         (dev_from_mount_options, read_file_system_list): Cast to void.
83892         Prompted by Bruno Haible.
83894 2009-02-04  Jim Meyering  <meyering@redhat.com>
83896         fsusage.c: correct copyright year
83897         * lib/fsusage.c: Reflect year in which the change is pushed into
83899         avoid misc. warnings
83900         * lib/fsusage.c (UNUSED_PARAM): Define.
83901         (get_fs_usage): Mark parameter "disk" as unused.
83902         * lib/getugroups.c (getgrent): Use "void" in prototype.
83903         * lib/mountlist.c: Mark unused parameters.
83904         (read_file_system_list): Declare a local with "const".
83905         * lib/nanosleep.c (getnow): Declare static.
83906         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83908         dirfd: set errno upon failure
83909         * lib/dirfd.c: Include <errno.h>.
83910         Set errno to ENOTSUP when returning -1.
83911         * modules/dirfd (Depends-on): Add errno.
83912         Suggested by John Kodis <kodis@comcast.net>.
83914 2009-02-01  Bruno Haible  <bruno@clisp.org>
83916         Don't assume sizeof (long) >= sizeof (void *).
83917         * lib/memcmp.c: Include stdint.h.
83918         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83919         srcp2 to 'const byte *'.
83920         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83921         types to uintptr_t.
83922         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83923         * modules/memcmp (Depends-on): Add stdint.
83924         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83926 2009-01-30  Eric Blake  <ebb9@byu.net>
83928         fix more require-before-expand issues
83929         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83930         expand, AC_PROG_AWK.
83931         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83933 2009-01-28  Eric Blake  <ebb9@byu.net>
83935         version-etc: use consistent URL formatting
83936         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83937         Improve formatting.  Use fputs for string without %.
83939 2009-01-28  Jim Meyering  <meyering@redhat.com>
83941         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83942         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83943         "underquoted definition of NAME" from autoconf-2.59.
83945 2009-01-28  Bruno Haible  <bruno@clisp.org>
83947         * doc/gnulib.texi: Add "Obsolete modules" to index.
83949 2009-01-28  Jim Meyering  <meyering@redhat.com>
83951         useless-if-before-free: recognize more variants
83952         * build-aux/useless-if-before-free: Also recognize e.g.,
83953         if (NULL != p) free (p);
83955 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83957         test-getaddrinfo: skip (don't fail) this test when there's no network
83958         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83959         on the presumption that it means you lack network access.
83961 2009-01-26  Jim Meyering  <meyering@redhat.com>
83963         fflush: avoid warnings on modern systems
83964         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83965         pos and result, into scopes where they're used.
83967 2009-01-26  Eric Blake  <ebb9@byu.net>
83969         Silence warning reintroduced by recent extensions patch.
83970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83971         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83972         autoconf.
83974         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83975         * m4/00gnulib.m4: New file.
83976         * gnulib-tool (func_get_filelist): Always use it.
83977         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83978         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83980 2009-01-25  Bruno Haible  <bruno@clisp.org>
83982         Make test-quotearg work on MacOS X and AIX.
83983         * tests/test-quotearg.sh: New file.
83984         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83985         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83986         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83987         include <libintl.h>.
83988         (fake_locale): Remove variable.
83989         (gettext, dgettext, dcgettext): Remove functions.
83990         (main): Instead of setting a fake locale, set a real locale. Call
83991         textdomain and bindtextdomain.
83992         * modules/quotearg-tests (Files): Add the new files.
83993         (Depends-on): Add gettext, setenv, unsetenv.
83994         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83995         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83996         Augment TESTS_ENVIRONMENT.
83998 2009-01-25  Bruno Haible  <bruno@clisp.org>
84000         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
84001         fr_FR.ISO8859-1 locale on MacOS X.
84002         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
84003         ja_JP.eucJP locale on MacOS X.
84004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
84005         zh_CN.GB18030 locale on MacOS X.
84007 2009-01-25  Bruno Haible  <bruno@clisp.org>
84009         Avoid link errors on MacOS X 10.3.
84010         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
84011         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84013 2009-01-25  Bruno Haible  <bruno@clisp.org>
84015         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
84016         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
84017         * modules/pipe (Files): Remove m4/posix_spawn.m4.
84018         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
84019         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
84020         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
84021         posix_spawnattr_init, posix_spawnattr_setsigmask,
84022         posix_spawnattr_setflags, posix_spawnattr_destroy.
84024         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
84025         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
84026         * modules/execute (Files): Remove m4/posix_spawn.m4.
84027         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
84028         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
84029         posix_spawnattr_init, posix_spawnattr_setsigmask,
84030         posix_spawnattr_setflags, posix_spawnattr_destroy.
84032 2009-01-25  Bruno Haible  <bruno@clisp.org>
84034         * lib/glthread/threadlib.c: Include <stdlib.h>.
84036 2009-01-25  Bruno Haible  <bruno@clisp.org>
84038         * lib/glthread/threadlib.c (dummy): New declaration.
84040 2009-01-25  Bruno Haible  <bruno@clisp.org>
84042         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
84043         multibyte characters also for the GB18030 encoding. Don't crash when
84044         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
84046 2009-01-25  Bruno Haible  <bruno@clisp.org>
84048         Avoid redefining 'struct random_data' on OSF/1 5.1.
84049         * lib/stdlib.in.h: Include <random.h> if it exists.
84050         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
84051         HAVE_RANDOM_H. Include <random.h> when testing whether
84052         'struct random_data' exists.
84053         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
84055 2009-01-25  Bruno Haible  <bruno@clisp.org>
84057         Don't install charset.alias on MacOS X >= 10.3.
84058         * lib/localcharset.c (DARWIN7): New macro.
84059         (get_charset_aliases): Hardcode the result for Darwin7.
84060         * modules/localcharset (install-exec-local): Don't install
84061         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
84063 2009-01-25  Bruno Haible  <bruno@clisp.org>
84065         Don't install charset.alias on mingw and Cygwin.
84066         * modules/localcharset (install-exec-local): Don't install
84067         charset.alias on mingw and Cygwin, if the file does not yet exist.
84068         The result for these platforms is hardcoded in localcharset.c.
84070 2009-01-25  Bruno Haible  <bruno@clisp.org>
84072         Make it possible again to use AC_GNU_SOURCE together with gnulib.
84073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
84074         before requiring AC_USE_SYSTEM_EXTENSIONS.
84076 2009-01-25  Jim Meyering  <meyering@redhat.com>
84078         c-strtod: avoid warnings
84079         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
84080         "assignment discards qualifiers from pointer target type" warnings.
84082 2009-01-24  Bruno Haible  <bruno@clisp.org>
84084         Add support for non-UTF-8 locales on MacOS X.
84085         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
84086         canonical encodings. For Darwin 7 and newer, don't map traditional
84087         encodings to UTF-8.
84088         Reported by Vincent Lefevre <vincent@vinc17.org>
84089         at <http://savannah.gnu.org/bugs/?25235>.
84091 2009-01-24  Bruno Haible  <bruno@clisp.org>
84093         * doc/gnulib.texi (Obsolete modules): New section.
84094         Reported by Mike Frysinger <vapier@gentoo.org>.
84096 2009-01-24  Bruno Haible  <bruno@clisp.org>
84098         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
84099         (%.dvi): New rule.
84101 2009-01-24  Bruno Haible  <bruno@clisp.org>
84103         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
84104         Reported by Eric Blake.
84106 2009-01-24  Bruno Haible  <bruno@clisp.org>
84108         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
84109         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
84110         Reported by Gary V. Vaughan <gary@gnu.org>.
84112 2009-01-24  Bruno Haible  <bruno@clisp.org>
84114         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
84116 2009-01-23  Bruno Haible  <bruno@clisp.org>
84118         Make c-strtod, c-strtold usable in libraries.
84119         * lib/c-strtod.c: Include string.h instead of xalloc.h.
84120         (C_STRTOD): Call strdup instead of xstrdup.
84121         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
84122         * modules/c-strtold (Depends-on): Likewise.
84123         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
84124         * NEWS: Mention the change.
84125         Reported by Michael Gold <mgold@ncf.ca>.
84127 2009-01-23  Jim Meyering  <meyering@redhat.com>
84129         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
84130         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
84131         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
84133 2009-01-23  Simon Josefsson  <simon@josefsson.org>
84135         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
84136         GNU CoreUtils.
84137         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
84138         * modules/version-etc (Description): Update.
84140 2009-01-22  Bruno Haible  <bruno@clisp.org>
84142         Cache the C locale object.
84143         * lib/c-strtod.c (c_locale_cache): New variable.
84144         (c_locale): New function.
84145         (C_STRTOD): Use it, and don't call freelocale.
84146         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
84147         Suggested by Paolo Bonzini.
84149 2009-01-21  Bruno Haible  <bruno@clisp.org>
84151         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
84152         conditions other than overflow.
84154 2009-01-21  Bruno Haible  <bruno@clisp.org>
84156         * lib/c-strtod.c: Include errno.h.
84157         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
84158         value from STRTOD_L and STRTOD.
84160 2009-01-21  Bruno Haible  <bruno@clisp.org>
84161         and Jim Meyering  <meyering@redhat.com>
84163         nanosleep: skip configure test (fail it) for apple universal builds
84164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
84165         universal builds, assume that nanosleep does not work.
84166         * modules/nanosleep (Depends-on): Add multiarch.
84168         mktime: skip configure test (fail it) for apple universal builds
84169         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
84170         universal builds, assume that mktime does not work.
84171         * modules/mktime (Depends-on): Add multiarch.
84173 2009-01-21  Eric Blake  <ebb9@byu.net>
84175         multiarch: avoid expand-before-require warning
84176         * modules/multiarch (configure.ac): Require, rather than expand,
84177         gl_MULTIARCH.
84178         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
84179         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
84180         enforce that all clients require it.  Partial reversion of
84181         2008-12-29 patch.
84183         error: avoid expand-before-require warning
84184         * modules/errno (configure.ac): Require, rather than expand,
84185         gl_HEADER_ERRNO_H.
84186         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
84187         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
84188         enforce that all clients require it.
84190         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
84191         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
84192         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
84193         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
84195 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
84197         Revert:
84198         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
84200         regex: do not depend on obsolete modules.
84201         * modules/regex: Remove memcmp and memmove.
84203 2009-01-20  Bruno Haible  <bruno@clisp.org>
84205         Make the 'link' module link on Windows NT 4.
84206         * lib/link.c (_WIN32_WINNT): Don't define.
84207         (CreateHardLinkFuncType): New type.
84208         (CreateHardLinkFunc, initialized): New variables.
84209         (initialize): New function.
84210         (link): Invoke CreateHardLink indirectly through the function pointer.
84212 2009-01-20  Bruno Haible  <bruno@clisp.org>
84214         Fix compilation failure on mingw.
84215         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
84217 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
84219         * doc/c-strtod.texi: Mention a couple of restrictions.
84221 2009-01-20  Jim Meyering  <meyering@redhat.com>
84223         gettimeofday: move more declarations out of functions
84224         * lib/gettimeofday.c: Move extern declarations of tzset and
84225         gmtime out of containing functions.  Prompted by Bruno Haible.
84227 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
84229         regex: do not depend on obsolete modules.
84230         * modules/regex: Remove memcmp and memmove.
84232 2009-01-19  Bruno Haible  <bruno@clisp.org>
84234         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
84235         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
84236         gl_BIGENDIAN, not AC_C_BIGENDIAN.
84237         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
84238         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
84240 2009-01-19  Bruno Haible  <bruno@clisp.org>
84242         * tests/test-link.c: Include <errno.h>.
84243         (main): Exit with code 77 when a hard link cannot be created due to
84244         the file system.
84245         * tests/test-link.sh: Skip test when a hard link cannot be created due
84246         to the file system.
84247         Suggested by Eric Blake.
84249 2009-01-19  Martin Lambers  <marlam@marlam.de>
84251         * modules/link-tests: New file.
84252         * tests/test-link.sh: New file.
84253         * tests/test-link.c: New file.
84255 2009-01-19  Eric Blake  <ebb9@byu.net>
84257         doc: mention another function added in cygwin 1.7.0
84258         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
84259         Another new function in cygwin 1.7.
84261 2009-01-19  Bruno Haible  <bruno@clisp.org>
84263         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
84264         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
84265         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
84266         gl_BIGENDIAN, not AC_C_BIGENDIAN.
84267         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
84268         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
84269         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
84270         * m4/md4.m4 (gl_MD4): Likewise.
84271         * m4/md5.m4 (gl_MD5): Likewise.
84272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
84273         * m4/sha1.m4 (gl_SHA1): Likewise.
84274         * m4/sha256.m4 (gl_SHA256): Likewise.
84275         * m4/sha512.m4 (gl_SHA512): Likewise.
84277 2009-01-19  Bruno Haible  <bruno@clisp.org>
84279         * modules/uniname/uniname-tests (Depends-on): Add progname.
84280         * tests/uniname/test-uninames.c: Include progname.h.
84281         (main): Call set_program_name.
84283         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
84284         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
84285         (main): Call set_program_name.
84287         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
84288         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
84289         (main): Call set_program_name.
84291         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
84292         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
84293         (main): Call set_program_name.
84295         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
84296         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
84297         (main): Call set_program_name.
84299         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
84300         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
84301         (main): Call set_program_name.
84303         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
84304         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
84305         (main): Call set_program_name.
84307         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
84308         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
84309         (main): Call set_program_name.
84311         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
84312         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
84313         (main): Call set_program_name.
84315 2009-01-19  Eric Blake  <ebb9@byu.net>
84317         test-unistd: test previous patch
84318         * tests/test-unistd.c: Test *_FILENO macros.
84320         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
84321         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
84322         Guarantee a definition.
84323         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
84324         * modules/unistd-safer (Depends-on): Add dependency on unistd.
84325         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
84326         * lib/dup-safer.c (STDERR_FILENO): Likewise.
84327         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
84328         Likewise.
84329         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
84330         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
84331         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
84332         Likewise.
84333         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
84334         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
84335         (STDERR_FILENO): Likewise.
84336         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
84337         (STDERR_FILENO): Likewise.
84338         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
84339         (STDERR_FILENO): Likewise.
84340         Reported by Elbert Pol.
84342 2009-01-19  Eric Blake  <ebb9@byu.net>
84344         doc: mention more functions added in cygwin 1.7.0
84345         * doc/posix-functions/abort.texi (abort): Update wording related
84346         to cygwin.
84347         * doc/posix-functions/daylight.texi (daylight): Likewise.
84348         * doc/posix-functions/optarg.texi (optarg): Likewise.
84349         * doc/posix-functions/optarg.texi (opterr): Likewise.
84350         * doc/posix-functions/optarg.texi (optind): Likewise.
84351         * doc/posix-functions/optarg.texi (optopt): Likewise.
84352         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
84353         worked in 1.5.x, and was withdrawn in 1.7.
84354         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
84355         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
84356         cygwin versions.
84357         * doc/posix-functions/perror.texi (perror): Likewise.
84358         * doc/posix-functions/printf.texi (printf): Likewise.
84359         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
84360         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
84361         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
84362         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
84363         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
84364         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
84365         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
84366         Likewise.
84367         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
84368         Likewise.
84369         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
84370         this function.
84371         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
84372         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
84373         Likewise.
84374         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
84375         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
84376         * doc/posix-functions/confstr.texi (confstr): Likewise.
84377         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
84378         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
84379         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
84380         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
84381         * doc/posix-functions/fputws.texi (fputws): Likewise.
84382         * doc/posix-functions/fwide.texi (fwide): Likewise.
84383         * doc/posix-functions/getwc.texi (getwc): Likewise.
84384         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
84385         * doc/posix-functions/putwc.texi (putwc): Likewise.
84386         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
84387         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
84388         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
84389         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
84390         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
84391         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
84392         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
84393         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
84394         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
84395         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
84396         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
84398 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
84400         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
84401         * lib/ioctl.c: Include <sys/ioctl.h>.
84403 2009-01-19  Simon Josefsson  <simon@josefsson.org>
84405         * modules/getdate-tests (Depends-on): Add progname.
84406         * tests/test-getdate.c: Use progname module, to avoid link errors
84407         on non-glibc systems.
84409 2009-01-18  Simon Josefsson  <simon@josefsson.org>
84411         * modules/filenamecat-tests (Depends-on): Add progname.
84412         * modules/fstrcmp-tests (Depends-on): Likewise.
84414         * tests/test-filenamecat.c: Use progname module, to avoid link
84415         errors on non-glibc systems.
84416         * tests/test-fstrcmp.c: Likewise.
84418 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
84420         gettimeofday: avoid warning: nested extern declaration of 'localtime'
84421         * lib/gettimeofday.c: Move extern declaration out of function.
84423 2009-01-18  Bruno Haible  <bruno@clisp.org>
84425         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
84426         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
84427         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
84429 2009-01-18  Bruno Haible  <bruno@clisp.org>
84431         * lib/strftime.c (MEMPCPY): Remove unused macro.
84432         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
84434 2009-01-18  Martin Lambers  <marlam@marlam.de>
84436         New module 'link'.
84437         * lib/unistd.in.h (link): New declaration.
84438         * lib/link.c: New file.
84439         * m4/link.m4: New file.
84440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
84441         HAVE_LINK.
84442         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
84443         * modules/link: New file.
84444         * doc/posix-functions/link.texi: Mention the new module.
84446 2009-01-18  Bruno Haible  <bruno@clisp.org>
84448         * tests/test-avltree_list.c (main): Call set_program_name.
84449         * tests/test-avltree_oset.c (main): Likewise.
84450         * tests/test-obstack-printf.c: Include progname.h.
84451         (main): Call set_program_name.
84452         * tests/test-quotearg.c: Include progname.h.
84453         (main): Call set_program_name.
84454         * tests/test-xmemdup0.c: Include progname.h.
84455         (main): Call set_program_name.
84457 2009-01-18  Bruno Haible  <bruno@clisp.org>
84459         New module 'alphasort'.
84460         * lib/dirent.in.h (alphasort): New declaration.
84461         * lib/alphasort.c: New file, from glibc with modifications.
84462         * m4/alphasort.m4: New file.
84463         * modules/alphasort: New file.
84464         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
84465         HAVE_ALPHASORT.
84466         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
84467         HAVE_ALPHASORT.
84468         * doc/posix-functions/alphasort.texi: Mention the new module and the
84469         portability problems.
84471 2009-01-18  Bruno Haible  <bruno@clisp.org>
84473         New module 'scandir'.
84474         * lib/dirent.in.h (scandir): New declaration.
84475         * lib/scandir.c: New file, from glibc with modifications.
84476         * m4/scandir.m4: New file.
84477         * modules/scandir: New file.
84478         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
84479         HAVE_SCANDIR.
84480         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
84481         HAVE_SCANDIR.
84482         * doc/posix-functions/scandir.texi: Mention the new module and the
84483         portability problems.
84485 2009-01-17  Bruno Haible  <bruno@clisp.org>
84487         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
84488         Update documentation.
84489         (func_remove_suffix): Escape all dots in the suffix. Update
84490         documentation.
84491         (func_filter_filelist): Update documentation.
84492         Reported by Ralf Wildenhues.
84494 2009-01-17  Bruno Haible  <bruno@clisp.org>
84496         * modules/dprintf-posix-tests: New file.
84497         * tests/test-dprintf-posix.sh: New file.
84498         * tests/test-dprintf-posix.c: New file.
84500         New modules 'dprintf', 'dprintf-posix'.
84501         * lib/stdio.in.h (dprintf): New declaration.
84502         * lib/dprintf.c: New file.
84503         * m4/dprintf.m4: New file.
84504         * m4/dprintf-posix.m4: New file.
84505         * modules/dprintf: New file.
84506         * modules/dprintf-posix: New file.
84507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
84508         HAVE_DPRINTF, REPLACE_DPRINTF.
84509         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
84510         HAVE_DPRINTF, REPLACE_DPRINTF.
84511         * doc/posix-functions/dprintf.texi: Mention the new modules.
84513 2009-01-17  Bruno Haible  <bruno@clisp.org>
84515         * modules/vdprintf-posix-tests: New file.
84516         * tests/test-vdprintf-posix.sh: New file.
84517         * tests/test-vdprintf-posix.c: New file.
84519         New modules 'vdprintf', 'vdprintf-posix'.
84520         * lib/stdio.in.h (vdprintf): New declaration.
84521         * lib/vdprintf.c: New file.
84522         * m4/vdprintf.m4: New file.
84523         * m4/vdprintf-posix.m4: New file.
84524         * modules/vdprintf: New file.
84525         * modules/vdprintf-posix: New file.
84526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
84527         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84528         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
84529         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84530         * doc/posix-functions/vdprintf.texi: Mention the new modules.
84532 2009-01-17  Bruno Haible  <bruno@clisp.org>
84534         Fix replacement of fopen on mingw.
84535         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
84536         mingw.
84538 2009-01-17  Bruno Haible  <bruno@clisp.org>
84540         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
84541         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
84543 2009-01-17  Bruno Haible  <bruno@clisp.org>
84545         Avoid test-fflush2.sh failure on mingw.
84546         * tests/test-fflush2.c: Include binary-io.h.
84547         (main): Put standard input into binary mode.
84548         * modules/fflush-tests (Depends-on): Add binary-io.
84550 2009-01-17  Bruno Haible  <bruno@clisp.org>
84552         * lib/wchar.in.h: In another particular situation, include only the
84553         system's <wchar.h> file.
84554         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
84555         Reported by Albert Chin-A-Young <china@thewrittenword.com>
84556         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
84558 2009-01-17  Bruno Haible  <bruno@clisp.org>
84560         Support for stripping executables in --enable-relocatable.
84561         * build-aux/install-reloc: Expect one more argument, or an environment
84562         variable RELOC_STRIP_PROG. If set, strip the destination program and
84563         its wrapper.
84564         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
84565         RELOC_STRIP_PROG.
84566         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
84567         to set RELOCATABLE_STRIP.
84568         * NEWS: Mention the new Makefile requirement.
84570 2009-01-17  Bruno Haible  <bruno@clisp.org>
84572         * build-aux/install-reloc: Remove debugging information left over by
84573         C compiler on MacOS X.
84575 2009-01-17  Bruno Haible  <bruno@clisp.org>
84577         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
84578         * lib/progreloc.c (find_executable): Fix type of pointer passed to
84579         _NSGetExecutablePath.
84581 2009-01-16  Jim Meyering  <meyering@redhat.com>
84583         strerror: avoid warnings about discarding "const"
84584         * lib/strerror.c (rpl_strerror): Instead of returning a const
84585         string from each and every "case", use a variable, and add a single
84586         cast after the switch.
84588 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
84590         * lib/arpa_inet.in.h: Add extern "C" block for C++.
84592 2009-01-16  Bruno Haible  <bruno@clisp.org>
84594         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
84595         array initializer syntax that also works in C++ mode.
84596         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84598 2009-01-16  Jim Meyering  <meyering@redhat.com>
84600         poll: suppress a warning
84601         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
84602         to ignore "...unsigned expression < 0 is always false" warnings.
84604 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
84606         poll: remove declarations of unused variables
84607         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
84608         sockbuf and optlen.
84610 2009-01-15  Bruno Haible  <bruno@clisp.org>
84612         Make fflush-after-ungetc POSIX compliant on BSD systems.
84613         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
84614         (clear_ungetc_buffer): Implement also for other systems.
84615         (rpl_fflush): On glibc systems, invoke
84616         clear_ungetc_buffer_preserving_position. Otherwise, invoke
84617         clear_ungetc_buffer after fetching the stream's position, not before.
84619 2009-01-15  Bruno Haible  <bruno@clisp.org>
84621         Make fflush-after-ungetc POSIX compliant on glibc systems.
84622         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
84623         after ungetc.
84624         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
84625         (rpl_fflush): On glibc systems, simply call the system's fflush
84626         function after clearing the ungetc buffer.
84627         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
84628         Instead, lseek only to the end of file, then use the system's fseeko
84629         for the rest. On glibc systems, reset the EOF indicator bit.
84631 2009-01-15  Jim Meyering  <meyering@redhat.com>
84633         openmp.m4: revert quote-adding change, for portability to older autoconf
84634         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
84635         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
84636         Simon Josefsson noticed the problem when using autoconf-2.61.
84638 2009-01-15  Bruno Haible  <bruno@clisp.org>
84640         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
84641         * tests/test-fflush2.c (ASSERT): Always fail.
84642         (main): Add two tests for fflush() after ungetc(), taking into account
84643         the Austin Group's clarification.
84644         Suggested by Eric Blake.
84646 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
84648         mktime.m4: remove K&R-style function prototypes
84649         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
84650         for the Sun C++ compiler.
84652 2009-01-14  Bruno Haible  <bruno@clisp.org>
84654         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
84655         while including <wchar.h>.
84656         * lib/wchar.in.h: In two particular situations on HP-UX, include only
84657         the system's <wchar.h> file.
84658         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84660 2009-01-14  Bruno Haible  <bruno@clisp.org>
84662         * m4/csharp.m4: Don't mention gettext on the serial number line.
84663         * m4/csharpexec.m4: Likewise.
84664         * m4/eaccess.m4: Likewise.
84665         * m4/javaexec.m4: Likewise.
84666         * m4/sig_atomic_t.m4: Likewise.
84667         * m4/tmpdir.m4: Likewise.
84668         * m4/intldir.m4: Bump gettext version.
84669         * m4/lib-ld.m4: Likewise.
84671 2009-01-14  Bruno Haible  <bruno@clisp.org>
84673         * lib/progname.c (set_program_name): Add more comments.
84674         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
84676 2009-01-14  Simon Josefsson  <simon@josefsson.org>
84678         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
84679         were sys/stat.h does not define it.
84681 2009-01-14  Jim Meyering  <meyering@redhat.com>
84683         many *.m4 files: improve m4 quoting
84684         99% of this change was performed by running the following commands:
84685         git ls-files | grep '\.m4$' | xargs perl -pi \
84686           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
84687           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84688           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84689           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
84690         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
84691         The remainder were to add Copyright dates, increment serial numbers,
84692         undo some changes in comments, exclude m4/intl.m4, and add quotes
84693         around the "1" in ",1" where the unusual spacing prohibited the
84694         above regexps from doing the job.  For more details, see
84695         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
84696         * m4/acl.m4: Modified.
84697         * m4/afs.m4: Likewise.
84698         * m4/alloca.m4: Likewise.
84699         * m4/argp.m4: Likewise.
84700         * m4/argz.m4: Likewise.
84701         * m4/atexit.m4: Likewise.
84702         * m4/bison-i18n.m4: Likewise.
84703         * m4/bison.m4: Likewise.
84704         * m4/byteswap.m4: Likewise.
84705         * m4/c-stack.m4: Likewise.
84706         * m4/c-strtod.m4: Likewise.
84707         * m4/calloc.m4: Likewise.
84708         * m4/canonicalize-lgpl.m4: Likewise.
84709         * m4/chown.m4: Likewise.
84710         * m4/clock_time.m4: Likewise.
84711         * m4/codeset.m4: Likewise.
84712         * m4/copy-file.m4: Likewise.
84713         * m4/csharp.m4: Likewise.
84714         * m4/csharpcomp.m4: Likewise.
84715         * m4/csharpexec.m4: Likewise.
84716         * m4/d-ino.m4: Likewise.
84717         * m4/d-type.m4: Likewise.
84718         * m4/dirfd.m4: Likewise.
84719         * m4/double-slash-root.m4: Likewise.
84720         * m4/eaccess.m4: Likewise.
84721         * m4/eealloc.m4: Likewise.
84722         * m4/environ.m4: Likewise.
84723         * m4/errno_h.m4: Likewise.
84724         * m4/euidaccess.m4: Likewise.
84725         * m4/execute.m4: Likewise.
84726         * m4/fatal-signal.m4: Likewise.
84727         * m4/fchdir.m4: Likewise.
84728         * m4/fcntl_h.m4: Likewise.
84729         * m4/fileblocks.m4: Likewise.
84730         * m4/filenamecat.m4: Likewise.
84731         * m4/findprog.m4: Likewise.
84732         * m4/flexmember.m4: Likewise.
84733         * m4/fnmatch.m4: Likewise.
84734         * m4/fopen.m4: Likewise.
84735         * m4/fpending.m4: Likewise.
84736         * m4/fprintf-posix.m4: Likewise.
84737         * m4/free.m4: Likewise.
84738         * m4/frexp.m4: Likewise.
84739         * m4/frexpl.m4: Likewise.
84740         * m4/fsusage.m4: Likewise.
84741         * m4/ftruncate.m4: Likewise.
84742         * m4/gc-camellia.m4: Likewise.
84743         * m4/gc-random.m4: Likewise.
84744         * m4/gc.m4: Likewise.
84745         * m4/getaddrinfo.m4: Likewise.
84746         * m4/getcwd-abort-bug.m4: Likewise.
84747         * m4/getcwd-path-max.m4: Likewise.
84748         * m4/getdate.m4: Likewise.
84749         * m4/getdomainname.m4: Likewise.
84750         * m4/getgroups.m4: Likewise.
84751         * m4/gethostname.m4: Likewise.
84752         * m4/gethrxtime.m4: Likewise.
84753         * m4/getline.m4: Likewise.
84754         * m4/getloadavg.m4: Likewise.
84755         * m4/getndelim2.m4: Likewise.
84756         * m4/getpass.m4: Likewise.
84757         * m4/gettext.m4: Likewise.
84758         * m4/gettime.m4: Likewise.
84759         * m4/gettimeofday.m4: Likewise.
84760         * m4/gnulib-common.m4: Likewise.
84761         * m4/group-member.m4: Likewise.
84762         * m4/host-os.m4: Likewise.
84763         * m4/iconv.m4: Likewise.
84764         * m4/iconv_open.m4: Likewise.
84765         * m4/inet_ntop.m4: Likewise.
84766         * m4/inet_pton.m4: Likewise.
84767         * m4/inline.m4: Likewise.
84768         * m4/intldir.m4: Likewise.
84769         * m4/intlmacosx.m4: Likewise.
84770         * m4/intmax.m4: Likewise.
84771         * m4/intmax_t.m4: Likewise.
84772         * m4/inttypes.m4: Likewise.
84773         * m4/inttypes_h.m4: Likewise.
84774         * m4/inttypes-pri.m4: Likewise.
84775         * m4/isapipe.m4: Likewise.
84776         * m4/isnand.m4: Likewise.
84777         * m4/isnanf.m4: Likewise.
84778         * m4/isnanl.m4: Likewise.
84779         * m4/javacomp.m4: Likewise.
84780         * m4/javaexec.m4: Likewise.
84781         * m4/jm-winsz1.m4: Likewise.
84782         * m4/jm-winsz2.m4: Likewise.
84783         * m4/lchown.m4: Likewise.
84784         * m4/lcmessage.m4: Likewise.
84785         * m4/ldexpl.m4: Likewise.
84786         * m4/lib-ld.m4: Likewise.
84787         * m4/lib-link.m4: Likewise.
84788         * m4/libsigsegv.m4: Likewise.
84789         * m4/link-follow.m4: Likewise.
84790         * m4/localcharset.m4: Likewise.
84791         * m4/locale-fr.m4: Likewise.
84792         * m4/locale-ja.m4: Likewise.
84793         * m4/locale-tr.m4: Likewise.
84794         * m4/locale-zh.m4: Likewise.
84795         * m4/lock.m4: Likewise.
84796         * m4/longlong.m4: Likewise.
84797         * m4/ls-mntd-fs.m4: Likewise.
84798         * m4/lstat.m4: Likewise.
84799         * m4/malloc.m4: Likewise.
84800         * m4/mathl.m4: Likewise.
84801         * m4/mbrtowc.m4: Likewise.
84802         * m4/mbstate_t.m4: Likewise.
84803         * m4/mbswidth.m4: Likewise.
84804         * m4/memchr.m4: Likewise.
84805         * m4/memcmp.m4: Likewise.
84806         * m4/memcpy.m4: Likewise.
84807         * m4/memmem.m4: Likewise.
84808         * m4/memmove.m4: Likewise.
84809         * m4/mempcpy.m4: Likewise.
84810         * m4/memrchr.m4: Likewise.
84811         * m4/memset.m4: Likewise.
84812         * m4/minmax.m4: Likewise.
84813         * m4/mkdir-slash.m4: Likewise.
84814         * m4/mkdtemp.m4: Likewise.
84815         * m4/mktime.m4: Likewise.
84816         * m4/mmap-anon.m4: Likewise.
84817         * m4/mountlist.m4: Likewise.
84818         * m4/nanosleep.m4: Likewise.
84819         * m4/nls.m4: Likewise.
84820         * m4/nocrash.m4: Likewise.
84821         * m4/open.m4: Likewise.
84822         * m4/openat.m4: Likewise.
84823         * m4/openmp.m4: Likewise.
84824         * m4/pathmax.m4: Likewise.
84825         * m4/perl.m4: Likewise.
84826         * m4/physmem.m4: Likewise.
84827         * m4/pipe.m4: Likewise.
84828         * m4/po.m4: Likewise.
84829         * m4/poll.m4: Likewise.
84830         * m4/posixtm.m4: Likewise.
84831         * m4/posixver.m4: Likewise.
84832         * m4/printf-frexp.m4: Likewise.
84833         * m4/printf-frexpl.m4: Likewise.
84834         * m4/printf-posix.m4: Likewise.
84835         * m4/printf-posix-rpl.m4: Likewise.
84836         * m4/printf.m4: Likewise.
84837         * m4/progtest.m4: Likewise.
84838         * m4/putenv.m4: Likewise.
84839         * m4/readline.m4: Likewise.
84840         * m4/readlink.m4: Likewise.
84841         * m4/readutmp.m4: Likewise.
84842         * m4/realloc.m4: Likewise.
84843         * m4/regex.m4: Likewise.
84844         * m4/relocatable.m4: Likewise.
84845         * m4/relocatable-lib.m4: Likewise.
84846         * m4/rename-dest-slash.m4: Likewise.
84847         * m4/rename.m4: Likewise.
84848         * m4/rmdir-errno.m4: Likewise.
84849         * m4/rmdir.m4: Likewise.
84850         * m4/roundf.m4: Likewise.
84851         * m4/roundl.m4: Likewise.
84852         * m4/rpmatch.m4: Likewise.
84853         * m4/save-cwd.m4: Likewise.
84854         * m4/selinux-selinux-h.m4: Likewise.
84855         * m4/setenv.m4: Likewise.
84856         * m4/settime.m4: Likewise.
84857         * m4/sig2str.m4: Likewise.
84858         * m4/sig_atomic_t.m4: Likewise.
84859         * m4/signalblocking.m4: Likewise.
84860         * m4/signbit.m4: Likewise.
84861         * m4/sigpipe.m4: Likewise.
84862         * m4/sockets.m4: Likewise.
84863         * m4/sockpfaf.m4: Likewise.
84864         * m4/st_dm_mode.m4: Likewise.
84865         * m4/stat-time.m4: Likewise.
84866         * m4/stdbool.m4: Likewise.
84867         * m4/stdint.m4: Likewise.
84868         * m4/stdint_h.m4: Likewise.
84869         * m4/stpcpy.m4: Likewise.
84870         * m4/stpncpy.m4: Likewise.
84871         * m4/strcase.m4: Likewise.
84872         * m4/strchrnul.m4: Likewise.
84873         * m4/strcspn.m4: Likewise.
84874         * m4/strdup.m4: Likewise.
84875         * m4/strftime.m4: Likewise.
84876         * m4/strndup.m4: Likewise.
84877         * m4/strnlen.m4: Likewise.
84878         * m4/strpbrk.m4: Likewise.
84879         * m4/strptime.m4: Likewise.
84880         * m4/strsep.m4: Likewise.
84881         * m4/strtod.m4: Likewise.
84882         * m4/strtoimax.m4: Likewise.
84883         * m4/strtok_r.m4: Likewise.
84884         * m4/strtol.m4: Likewise.
84885         * m4/strtoll.m4: Likewise.
84886         * m4/strtoul.m4: Likewise.
84887         * m4/strtoull.m4: Likewise.
84888         * m4/strtoumax.m4: Likewise.
84889         * m4/strverscmp.m4: Likewise.
84890         * m4/threadlib.m4: Likewise.
84891         * m4/timegm.m4: Likewise.
84892         * m4/tm_gmtoff.m4: Likewise.
84893         * m4/tmpdir.m4: Likewise.
84894         * m4/tmpfile.m4: Likewise.
84895         * m4/tzset.m4: Likewise.
84896         * m4/uintmax_t.m4: Likewise.
84897         * m4/unlinkdir.m4: Likewise.
84898         * m4/unlocked-io.m4: Likewise.
84899         * m4/uptime.m4: Likewise.
84900         * m4/userspec.m4: Likewise.
84901         * m4/utimbuf.m4: Likewise.
84902         * m4/utime.m4: Likewise.
84903         * m4/utimes-null.m4: Likewise.
84904         * m4/utimes.m4: Likewise.
84905         * m4/vararrays.m4: Likewise.
84906         * m4/vasnprintf.m4: Likewise.
84907         * m4/vfprintf-posix.m4: Likewise.
84908         * m4/vprintf-posix.m4: Likewise.
84909         * m4/wait-process.m4: Likewise.
84910         * m4/wchar_t.m4: Likewise.
84911         * m4/wint_t.m4: Likewise.
84912         * m4/write-any-file.m4: Likewise.
84913         * m4/yield.m4: Likewise.
84915 2009-01-13  Bruno Haible  <bruno@clisp.org>
84917         Avoid test-copy-file.sh failures when ACL support insufficient.
84918         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84919         TESTS_ENVIRONMENT.
84920         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84921         Reported by Jim Meyering.
84923 2009-01-13  Bruno Haible  <bruno@clisp.org>
84925         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84926         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84927         * modules/unistdio/u8-printf-parse (Files): Likewise.
84928         * modules/unistdio/u32-printf-parse (Files): Likewise.
84929         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84931 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84933         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84934         and m4/inttypes_h.m4 too.
84936 2009-01-12  Eric Blake  <ebb9@byu.net>
84938         tests: IRIX 6.2 cc can't compile -0.0 into .data
84939         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84940         rather than at compile-time.
84941         * tests/test-floorl.c (minus_zero): Likewise.
84942         * tests/test-frexpl.c (minus_zero): Likewise.
84943         * tests/test-isnan.c (minus_zerol): Likewise.
84944         * tests/test-isnanl.h (minus_zero): Likewise.
84945         * tests/test-ldexpl.c (minus_zero): Likewise.
84946         * tests/test-roundl.c (minus_zero): Likewise.
84947         * tests/test-signbit.c (minus_zerol): Likewise.
84948         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84949         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84950         * tests/test-truncl.c (minus_zero): Likewise.
84951         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84952         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84953         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84955 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84957         regex: fix glibc bug 9697
84958         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84959         handling.
84961 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84963         regex: fix glibc bug 697
84964         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84965         being NULL also if there are no backreferences.
84967 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84969         regex: merge glibc changes
84970         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84971         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84972         re_string_skip_chars, re_string_reconstruct): Likewise.
84973         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84975 2009-01-07  Jim Meyering  <meyering@redhat.com>
84977         poll: filter through cppi
84978         * lib/poll.c: Indent cpp directives to reflect nesting.
84980 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84982         poll: don't return uninitialized
84983         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84985 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84987         avoid compile failure on AIX 6.1
84988         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84989         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84991 2009-01-04  Jim Meyering  <meyering@redhat.com>
84993         remove duplicate inclusion of <stdio.h>
84994         * tests/test-fprintf-posix.c: Likewise.
84995         * tests/test-printf-posix.c: Likewise.
84996         * tests/test-snprintf-posix.c: Likewise.
84997         * tests/test-sprintf-posix.c: Likewise.
84998         * tests/test-vasprintf-posix.c: Likewise.
84999         * tests/test-vfprintf-posix.c: Likewise.
85000         * tests/test-vprintf-posix.c: Likewise.
85001         * tests/test-vsnprintf-posix.c: Likewise.
85002         * tests/test-vsprintf-posix.c: Likewise.
85004 2009-01-03  Jim Meyering  <meyering@redhat.com>
85006         gnulib-tool: fix sed-based filtering
85007         * gnulib-tool (func_filter_filelist): Remove extra backslash
85008         in sed_fff_filter definition.
85010 2009-01-02  Jim Meyering  <meyering@redhat.com>
85012         strftime: avoid compilation failure on Solaris 2.6
85013         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
85014         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
85015         Don't #define mbrlen or mbsinit, since now they're guaranteed to
85016         be available.  Reported by Tom G. Christensen.  Details in
85017         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
85019 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85020             Bruno Haible  <bruno@clisp.org>
85022         Speed up gnulib-tool by doing more string processing through shell
85023         built-ins.
85024         * gnulib-tool (fast_func_append): New variable.
85025         (func_remove_prefix, func_remove_suffix): New functions.
85026         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
85027         (func_filter_filelist): New function.
85028         (func_get_dependencies): Use func_remove_suffix instead of sed.
85029         (func_get_automake_snippet): Use func_filter_filelist instead of a
85030         subshell and sed invocation.
85032 2009-01-01  Bruno Haible  <bruno@clisp.org>
85034         Fix a security bug.
85035         * gnulib-tool (func_import, import, update): Don't allow the characters
85036         '"', '$', '`', '\' in macro arguments that become part of commands that
85037         are evaluated.
85039 2009-01-01  Bruno Haible  <bruno@clisp.org>
85041         * gnulib-tool (func_reset_sigpipe): Add more comments.
85043 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85045         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
85046         func_emit_tests_Makefile_am, func_import): Abort loops early if we
85047         already know the answer.
85049 2009-01-01  Jim Meyering  <meyering@redhat.com>
85051         * lib/version-etc.c (version_etc_va): Update copyright year.
85053 2008-12-30  Bruno Haible  <bruno@clisp.org>
85055         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
85056         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
85057         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
85059 2008-12-29  Eric Blake  <ebb9@byu.net>
85061         multiarch: avoid autoconf AC_REQUIRE bug
85062         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
85063         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
85064         2.63 and older.
85065         Reported by Bruno Haible, and analyzed in
85066         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
85068 2008-12-29  Bruno Haible  <bruno@clisp.org>
85070         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
85071         files in subdirectories correctly.
85072         Reported by Ralf Wildenhues.
85074 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85076         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
85077         rather than 'join FILE -', for Solaris join.
85079 2008-12-29  Bruno Haible  <bruno@clisp.org>
85081         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
85082         quoting.
85083         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85084         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
85085         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
85086         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
85087         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
85088         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
85089         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
85090         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
85091         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
85092         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
85093         * m4/nls.m4 (AM_NLS): Likewise.
85094         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
85095         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
85096         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85097         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
85098         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
85099         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
85100         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
85101         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
85102         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
85103         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
85104         * m4/xsize.m4 (gl_XSIZE): Likewise.
85105         Suggested by Jim Meyering.
85107 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85109         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
85110         * lib/parse-duration.c: use a switch instead of cascading if's.
85112 2008-12-29  Eric Blake  <ebb9@byu.net>
85114         wchar.h: supply WEOF on Irix 5.3
85115         * lib/wchar.in.h (wint_t): Also supply WEOF.
85116         * lib/wctype.in.h (wint_t): Likewise.
85117         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
85118         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
85119         Reported by Tom G. Christensen.
85121 2008-12-26  Bruno Haible  <bruno@clisp.org>
85123         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
85124         i486, i586, i686.
85126 2008-12-26  Bruno Haible  <bruno@clisp.org>
85128         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
85130 2008-12-26  Bruno Haible  <bruno@clisp.org>
85132         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
85133         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
85134         not __STDC_CONSTANT_MACROS.
85135         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
85137 2008-12-25  Bruno Haible  <bruno@clisp.org>
85139         Add support for universal builds to vasnprintf.
85140         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
85141         universal builds, guess no.
85142         * modules/vasnprintf-posix (Depends-on): Add multiarch.
85143         * modules/vasprintf-posix (Depends-on): Likewise.
85144         * modules/fprintf-posix (Depends-on): Likewise.
85145         * modules/vfprintf-posix (Depends-on): Likewise.
85146         * modules/snprintf-posix (Depends-on): Likewise.
85147         * modules/vsnprintf-posix (Depends-on): Likewise.
85148         * modules/sprintf-posix (Depends-on): Likewise.
85149         * modules/vsprintf-posix (Depends-on): Likewise.
85150         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
85151         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
85152         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
85153         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
85154         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
85155         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
85156         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
85158         Add support for universal builds to <inttypes.h>.
85159         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
85160         _SCNu64_PREFIX): In Apple
85161         universal builds, define directly, using _LP64.
85162         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
85163         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
85164         * modules/inttypes (Depends-on): Add multiarch.
85165         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
85167         Add support for universal builds to <stdint.h>.
85168         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
85169         universal builds, define directly, using _LP64.
85170         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
85171         Apple universal builds, don't test for the size and suffix of ptrdiff_t
85172         and size_t.
85173         * modules/stdint (Depends-on): Add multiarch.
85174         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
85176         New module 'multiarch'.
85177         * modules/multiarch: New file.
85178         * m4/multiarch.m4: New file.
85180 2008-12-25  Bruno Haible  <bruno@clisp.org>
85182         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
85184 2008-12-25  Bruno Haible  <bruno@clisp.org>
85186         * modules/btowc (License): Relicense under LGPLv2+.
85187         * modules/mbsinit (License): Likewise.
85188         * modules/mbrtowc (License): Likewise.
85189         * modules/wcrtomb (License): Likewise.
85190         * modules/streq (License): Likewise.
85191         Reported by David Lutterkort <lutter@redhat.com>.
85193 2008-12-23  Bruno Haible  <bruno@clisp.org>
85195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
85197 2008-12-23  Bruno Haible  <bruno@clisp.org>
85199         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
85200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
85201         GETADDRINFO_LIB, not in LIBS.
85202         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
85203         * modules/canon-host (Link): Likewise.
85204         * NEWS: Mention the change.
85205         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
85206         GETADDRINFO_LIB.
85208 2008-12-22  Bruno Haible  <bruno@clisp.org>
85210         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
85211         * doc/posix-functions/iswalpha_l.texi: Likewise.
85212         * doc/posix-functions/iswblank_l.texi: Likewise.
85213         * doc/posix-functions/iswcntrl_l.texi: Likewise.
85214         * doc/posix-functions/iswctype_l.texi: Likewise.
85215         * doc/posix-functions/iswdigit_l.texi: Likewise.
85216         * doc/posix-functions/iswgraph_l.texi: Likewise.
85217         * doc/posix-functions/iswlower_l.texi: Likewise.
85218         * doc/posix-functions/iswprint_l.texi: Likewise.
85219         * doc/posix-functions/iswpunct_l.texi: Likewise.
85220         * doc/posix-functions/iswspace_l.texi: Likewise.
85221         * doc/posix-functions/iswupper_l.texi: Likewise.
85222         * doc/posix-functions/iswxdigit_l.texi: Likewise.
85223         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
85224         * doc/posix-functions/open_wmemstream.texi: Likewise.
85225         * doc/posix-functions/swscanf.texi: Likewise.
85226         * doc/posix-functions/towctrans_l.texi: Likewise.
85227         * doc/posix-functions/towlower.texi: Likewise.
85228         * doc/posix-functions/towlower_l.texi: Likewise.
85229         * doc/posix-functions/towupper.texi: Likewise.
85230         * doc/posix-functions/towupper_l.texi: Likewise.
85231         * doc/posix-functions/vfwprintf.texi: Likewise.
85232         * doc/posix-functions/vfwscanf.texi: Likewise.
85233         * doc/posix-functions/vswscanf.texi: Likewise.
85234         * doc/posix-functions/vwprintf.texi: Likewise.
85235         * doc/posix-functions/vwscanf.texi: Likewise.
85236         * doc/posix-functions/wcpcpy.texi: Likewise.
85237         * doc/posix-functions/wcpncpy.texi: Likewise.
85238         * doc/posix-functions/wcscasecmp.texi: Likewise.
85239         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
85240         * doc/posix-functions/wcscoll_l.texi: Likewise.
85241         * doc/posix-functions/wcsdup.texi: Likewise.
85242         * doc/posix-functions/wcsncasecmp.texi: Likewise.
85243         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
85244         * doc/posix-functions/wcsnlen.texi: Likewise.
85245         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85246         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
85247         * doc/posix-functions/wctrans_l.texi: Likewise.
85248         * doc/posix-functions/wctype_l.texi: Likewise.
85249         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
85250         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
85251         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
85252         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
85253         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
85254         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
85255         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
85256         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
85257         * doc/glibc-functions/wcschrnul.texi: Likewise.
85258         * doc/glibc-functions/wcsftime_l.texi: Likewise.
85259         * doc/glibc-functions/wcstod_l.texi: Likewise.
85260         * doc/glibc-functions/wcstof_l.texi: Likewise.
85261         * doc/glibc-functions/wcstol_l.texi: Likewise.
85262         * doc/glibc-functions/wcstold_l.texi: Likewise.
85263         * doc/glibc-functions/wcstoll_l.texi: Likewise.
85264         * doc/glibc-functions/wcstoq.texi: Likewise.
85265         * doc/glibc-functions/wcstoul_l.texi: Likewise.
85266         * doc/glibc-functions/wcstoull_l.texi: Likewise.
85267         * doc/glibc-functions/wcstouq.texi: Likewise.
85268         * doc/glibc-functions/wmempcpy.texi: Likewise.
85270 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
85271             Eric Blake  <ebb9@byu.net>
85272             Paolo Bonzini  <bonzini@gnu.org>
85273             Bruno Haible  <bruno@clisp.org>
85275         Make c-stack work on Haiku.
85276         * lib/c-stack.c (SA_ONSTACK): Define fallback.
85277         (c_stack_action): Use SA_ONSTACK flag.
85279 2008-12-22  Bruno Haible  <bruno@clisp.org>
85281         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
85283 2008-12-22  Bruno Haible  <bruno@clisp.org>
85285         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
85286         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
85287         being overridden.
85288         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
85289         New macros.
85290         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
85291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
85292         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
85293         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
85295 2008-12-22  Bruno Haible  <bruno@clisp.org>
85297         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
85298         from test code.
85300 2008-12-22  Eric Blake  <ebb9@byu.net>
85302         Avoid gcc warnings on cygwin.
85303         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
85304         Avoid unused variable.
85305         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
85306         Likewise.
85308 2008-12-22  Bruno Haible  <bruno@clisp.org>
85310         Remove HAVE_MBRTOWC conditionals.
85311         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
85312         (mbscasecmp): Assume mbrtowc function.
85313         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
85314         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
85315         * lib/mbschr.c: Include mbuiter.h unconditionally.
85316         (mbschr): Assume mbrtowc function.
85317         * lib/mbscspn.c: Include mbuiter.h unconditionally.
85318         (mbscspn): Assume mbrtowc function.
85319         * lib/mbslen.c: Include mbuiter.h unconditionally.
85320         (mbslen): Assume mbrtowc function.
85321         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
85322         (mbsncasecmp): Assume mbrtowc function.
85323         * lib/mbsnlen.c: Include mbiter.h unconditionally.
85324         (mbsnlen): Assume mbrtowc function.
85325         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
85326         (mbspbrk): Assume mbrtowc function.
85327         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
85328         (mbspcasecmp): Assume mbrtowc function.
85329         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
85330         (mbsrchr): Assume mbrtowc function.
85331         * lib/mbssep.c: Include mbuiter.h unconditionally.
85332         (mbssep): Assume mbrtowc function.
85333         * lib/mbsspn.c: Include mbuiter.h unconditionally.
85334         (mbsspn): Assume mbrtowc function.
85335         * lib/mbsstr.c: Include mbuiter.h unconditionally.
85336         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
85337         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
85338         (mbstok_r): Assume mbrtowc function.
85339         * lib/propername.c: Include mbuiter.h unconditionally.
85340         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
85341         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
85342         (trim2): Assume mbrtowc function.
85343         * lib/mbswidth.c (mbsinit): Remove fallback definition.
85344         (mbsnwidth): Assume mbrtowc function.
85345         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
85346         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
85347         fallback definitions.
85348         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
85350 2008-12-22  Bruno Haible  <bruno@clisp.org>
85352         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
85354 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
85356         * modules/regex: Request emulations for the mb*/wc* functions we need.
85357         * m4/regex.m4: Don't look for those functions here.
85358         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
85360 2008-12-22  Bruno Haible  <bruno@clisp.org>
85362         * modules/fnmatch (Depends-on): Remove duplicated dependency.
85364 2008-12-21  Bruno Haible  <bruno@clisp.org>
85366         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
85367         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
85368         (Include): Remove conditionalization.
85369         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
85370         (Include): Remove conditionalization.
85371         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
85372         (Include): Remove conditionalization.
85373         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
85374         * m4/mbfile.m4 (gl_MBFILE): Likewise.
85375         * NEWS: Mention the change.
85376         Reported by Alan Hourihane <alanh@fairlite.co.uk>
85377         via Sergey Poznyakoff <gray@gnu.org.ua>.
85379 2008-12-21  Bruno Haible  <bruno@clisp.org>
85381         * MODULES.html.sh (Extended multibyte and wide character utilities
85382         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
85383         wcrtomb, wcsrtombs.
85384         (Support for systems lacking POSIX:2008): Add accept, bind, close,
85385         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
85386         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
85387         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
85389 2008-12-21  Bruno Haible  <bruno@clisp.org>
85391         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
85393 2008-12-21  Bruno Haible  <bruno@clisp.org>
85395         * modules/wcsnrtombs-tests: New file.
85396         * tests/test-wcsnrtombs1.sh: New file.
85397         * tests/test-wcsnrtombs2.sh: New file.
85398         * tests/test-wcsnrtombs3.sh: New file.
85399         * tests/test-wcsnrtombs4.sh: New file.
85400         * tests/test-wcsnrtombs.c: New file.
85402         New module 'wcsnrtombs'.
85403         * lib/wchar.in.h (wcsnrtombs): New declaration.
85404         * lib/wcsnrtombs.c: New file.
85405         * lib/wcsrtombs-state.c: New file.
85406         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
85407         (internal_state): Remove variable.
85408         * m4/wcsnrtombs.m4: New file.
85409         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
85410         compilation units.
85411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
85412         HAVE_WCSNRTOMBS.
85413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
85414         HAVE_WCSNRTOMBS.
85415         * modules/wcsnrtombs: New file.
85416         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
85417         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
85419 2008-12-21  Bruno Haible  <bruno@clisp.org>
85421         * modules/wcsrtombs-tests: New file.
85422         * tests/test-wcsrtombs1.sh: New file.
85423         * tests/test-wcsrtombs2.sh: New file.
85424         * tests/test-wcsrtombs3.sh: New file.
85425         * tests/test-wcsrtombs4.sh: New file.
85426         * tests/test-wcsrtombs.c: New file.
85428         New module 'wcsrtombs'.
85429         * lib/wchar.in.h (wcsrtombs): New declaration.
85430         * lib/wcsrtombs.c: New file.
85431         * m4/wcsrtombs.m4: New file.
85432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
85433         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
85434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
85435         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
85436         * modules/wcsrtombs: New file.
85437         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
85438         bugs.
85440 2008-12-21  Bruno Haible  <bruno@clisp.org>
85442         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
85443         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
85444         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
85445         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
85446         if not correct.
85447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
85448         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
85449         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85450         m4/locale-zh.m4, m4/codeset.m4.
85451         * doc/posix-functions/wcrtomb.texi: Document the bug.
85453 2008-12-21  Bruno Haible  <bruno@clisp.org>
85455         Work around a btowc() bug on IRIX 6.5.
85456         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
85457         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
85458         REPLACE_WTOBC if not.
85459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
85460         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
85461         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
85463 2008-12-21  Bruno Haible  <bruno@clisp.org>
85465         * modules/wcrtomb-tests: New file.
85466         * tests/test-wcrtomb.sh: New file.
85467         * tests/test-wcrtomb.c: New file.
85469         New module 'wcrtomb'.
85470         * lib/wchar.in.h (wcrtomb): New declaration.
85471         * lib/wcrtomb.c: New file.
85472         * m4/wcrtomb.m4: New file.
85473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
85474         HAVE_WCRTOMB.
85475         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
85476         HAVE_WCRTOMB.
85477         * modules/wcrtomb: New file.
85478         * doc/posix-functions/wcrtomb.texi: Mention the new module.
85480 2008-12-21  Bruno Haible  <bruno@clisp.org>
85482         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
85483         * modules/mbsrtowcs (Files): Likewise.
85484         * modules/wctob (Files): Likewise.
85485         * modules/c-strcase-tests (Files): Likewise.
85486         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
85487         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
85488         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
85489         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
85490         * modules/vasnprintf-posix-tests (Files): Likewise.
85492 2008-12-21  William Pursell  <bill.pursell@gmail.com>
85494         gitlog-to-changelog: pass all command-line arguments to git-log
85495         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
85496         it is sometimes convenient to filter the commits in various ways.
85497         gitlog-to-changelog only allows --since to specify a start date,
85498         but git-log itself supports many other filtering mechanisms.
85499         At the moment, I want to filter by branch name.  Rather than
85500         adding a --branch option to gitlog-to-changelog, it seems more
85501         flexible to simply pass all options directly to git-log and let
85502         git do the work.  Notice that this effectively makes --since a
85503         redundant option for gitlog-to-changelog, but removing it would
85504         require current usage to change since calls would then require
85505         an additional '--'.
85507 2008-12-21  Bruno Haible  <bruno@clisp.org>
85509         * modules/mbsnrtowcs-tests: New file.
85510         * tests/test-mbsnrtowcs1.sh: New file.
85511         * tests/test-mbsnrtowcs2.sh: New file.
85512         * tests/test-mbsnrtowcs3.sh: New file.
85513         * tests/test-mbsnrtowcs4.sh: New file.
85514         * tests/test-mbsnrtowcs.c: New file.
85516         New module 'mbsnrtowcs'.
85517         * lib/wchar.in.h (mbsnrtowcs): New declaration.
85518         * lib/mbsnrtowcs.c: New file.
85519         * lib/mbsrtowcs-state.c: New file.
85520         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
85521         (internal_state): Remove variable.
85522         * m4/mbsnrtowcs.m4: New file.
85523         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
85524         compilation units.
85525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
85526         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85527         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
85528         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85529         * modules/mbsnrtowcs: New file.
85530         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
85531         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
85532         portability problem.
85534 2008-12-21  Bruno Haible  <bruno@clisp.org>
85536         Work around mbsrtowcs bug.
85537         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
85538         (gl_FUNC_MBSRTOWCS): Invoke it.
85539         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85540         m4/locale-zh.m4.
85541         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
85543 2008-12-21  Bruno Haible  <bruno@clisp.org>
85545         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
85547 2008-12-21  Bruno Haible  <bruno@clisp.org>
85549         Update doc for AIX.
85550         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
85551         16-bit wchar_t type.
85552         * doc/posix-functions/btowc.texi: Likewise.
85553         * doc/posix-functions/fgetwc.texi: Likewise.
85554         * doc/posix-functions/fgetws.texi: Likewise.
85555         * doc/posix-functions/fputwc.texi: Likewise.
85556         * doc/posix-functions/fputws.texi: Likewise.
85557         * doc/posix-functions/fwide.texi: Likewise.
85558         * doc/posix-functions/fwprintf.texi: Likewise.
85559         * doc/posix-functions/fwscanf.texi: Likewise.
85560         * doc/posix-functions/getwchar.texi: Likewise.
85561         * doc/posix-functions/getwc.texi: Likewise.
85562         * doc/posix-functions/iswalnum.texi: Likewise.
85563         * doc/posix-functions/iswalpha.texi: Likewise.
85564         * doc/posix-functions/iswblank.texi: Likewise.
85565         * doc/posix-functions/iswcntrl.texi: Likewise.
85566         * doc/posix-functions/iswctype.texi: Likewise.
85567         * doc/posix-functions/iswdigit.texi: Likewise.
85568         * doc/posix-functions/iswgraph.texi: Likewise.
85569         * doc/posix-functions/iswlower.texi: Likewise.
85570         * doc/posix-functions/iswprint.texi: Likewise.
85571         * doc/posix-functions/iswpunct.texi: Likewise.
85572         * doc/posix-functions/iswspace.texi: Likewise.
85573         * doc/posix-functions/iswupper.texi: Likewise.
85574         * doc/posix-functions/iswxdigit.texi: Likewise.
85575         * doc/posix-functions/mbrtowc.texi: Likewise.
85576         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85577         * doc/posix-functions/mbstowcs.texi: Likewise.
85578         * doc/posix-functions/mbtowc.texi: Likewise.
85579         * doc/posix-functions/putwchar.texi: Likewise.
85580         * doc/posix-functions/putwc.texi: Likewise.
85581         * doc/posix-functions/swprintf.texi: Likewise.
85582         * doc/posix-functions/tolower.texi: Likewise.
85583         * doc/posix-functions/toupper.texi: Likewise.
85584         * doc/posix-functions/towctrans.texi: Likewise.
85585         * doc/posix-functions/ungetwc.texi: Likewise.
85586         * doc/posix-functions/vswprintf.texi: Likewise.
85587         * doc/posix-functions/wcrtomb.texi: Likewise.
85588         * doc/posix-functions/wcscat.texi: Likewise.
85589         * doc/posix-functions/wcschr.texi: Likewise.
85590         * doc/posix-functions/wcscmp.texi: Likewise.
85591         * doc/posix-functions/wcscoll.texi: Likewise.
85592         * doc/posix-functions/wcscpy.texi: Likewise.
85593         * doc/posix-functions/wcscspn.texi: Likewise.
85594         * doc/posix-functions/wcsftime.texi: Likewise.
85595         * doc/posix-functions/wcslen.texi: Likewise.
85596         * doc/posix-functions/wcsncat.texi: Likewise.
85597         * doc/posix-functions/wcsncmp.texi: Likewise.
85598         * doc/posix-functions/wcsncpy.texi: Likewise.
85599         * doc/posix-functions/wcspbrk.texi: Likewise.
85600         * doc/posix-functions/wcsrchr.texi: Likewise.
85601         * doc/posix-functions/wcsrtombs.texi: Likewise.
85602         * doc/posix-functions/wcsspn.texi: Likewise.
85603         * doc/posix-functions/wcsstr.texi: Likewise.
85604         * doc/posix-functions/wcstod.texi: Likewise.
85605         * doc/posix-functions/wcstof.texi: Likewise.
85606         * doc/posix-functions/wcstoimax.texi: Likewise.
85607         * doc/posix-functions/wcstok.texi: Likewise.
85608         * doc/posix-functions/wcstold.texi: Likewise.
85609         * doc/posix-functions/wcstoll.texi: Likewise.
85610         * doc/posix-functions/wcstol.texi: Likewise.
85611         * doc/posix-functions/wcstombs.texi: Likewise.
85612         * doc/posix-functions/wcstoull.texi: Likewise.
85613         * doc/posix-functions/wcstoul.texi: Likewise.
85614         * doc/posix-functions/wcstoumax.texi: Likewise.
85615         * doc/posix-functions/wcswidth.texi: Likewise.
85616         * doc/posix-functions/wcsxfrm.texi: Likewise.
85617         * doc/posix-functions/wctob.texi: Likewise.
85618         * doc/posix-functions/wctomb.texi: Likewise.
85619         * doc/posix-functions/wctrans.texi: Likewise.
85620         * doc/posix-functions/wctype.texi: Likewise.
85621         * doc/posix-functions/wcwidth.texi: Likewise.
85622         * doc/posix-functions/wmemchr.texi: Likewise.
85623         * doc/posix-functions/wmemcmp.texi: Likewise.
85624         * doc/posix-functions/wmemcpy.texi: Likewise.
85625         * doc/posix-functions/wmemmove.texi: Likewise.
85626         * doc/posix-functions/wmemset.texi: Likewise.
85627         * doc/posix-functions/wprintf.texi: Likewise.
85628         * doc/posix-functions/wscanf.texi: Likewise.
85630 2008-12-21  Bruno Haible  <bruno@clisp.org>
85632         Update doc for HP-UX 11.11.
85633         * doc/posix-functions/btowc.texi: Clarify that the function is missing
85634         in HP-UX version 11.00, not in all versions of HP-UX 11.
85635         * doc/posix-functions/fwide.texi: Likewise.
85636         * doc/posix-functions/fwprintf.texi: Likewise.
85637         * doc/posix-functions/fwscanf.texi: Likewise.
85638         * doc/posix-functions/inet_ntop.texi: Likewise.
85639         * doc/posix-functions/inet_pton.texi: Likewise.
85640         * doc/posix-functions/mbrlen.texi: Likewise.
85641         * doc/posix-functions/mbrtowc.texi: Likewise.
85642         * doc/posix-functions/mbsinit.texi: Likewise.
85643         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85644         * doc/posix-functions/swprintf.texi: Likewise.
85645         * doc/posix-functions/swscanf.texi: Likewise.
85646         * doc/posix-functions/towctrans.texi: Likewise.
85647         * doc/posix-functions/vfwprintf.texi: Likewise.
85648         * doc/posix-functions/vswprintf.texi: Likewise.
85649         * doc/posix-functions/vwprintf.texi: Likewise.
85650         * doc/posix-functions/wcrtomb.texi: Likewise.
85651         * doc/posix-functions/wcsrtombs.texi: Likewise.
85652         * doc/posix-functions/wcsstr.texi: Likewise.
85653         * doc/posix-functions/wctob.texi: Likewise.
85654         * doc/posix-functions/wctrans.texi: Likewise.
85655         * doc/posix-functions/wmemchr.texi: Likewise.
85656         * doc/posix-functions/wmemcmp.texi: Likewise.
85657         * doc/posix-functions/wmemcpy.texi: Likewise.
85658         * doc/posix-functions/wmemmove.texi: Likewise.
85659         * doc/posix-functions/wmemset.texi: Likewise.
85660         * doc/posix-functions/wprintf.texi: Likewise.
85661         * doc/posix-functions/wscanf.texi: Likewise.
85663 2008-12-21  Bruno Haible  <bruno@clisp.org>
85665         Work around a portability problem.
85666         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
85667         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
85669 2008-12-20  Bruno Haible  <bruno@clisp.org>
85671         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
85672         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
85673         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
85674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
85675         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
85677         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
85678         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
85679         set.
85680         (GNULIB_defined_mbstate_t): New macro.
85681         (mbsinit): Redefine if REPLACE_MBSINIT is set.
85682         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
85683         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
85684         reuses the system's mbrtowc function but works around the bugs.
85685         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
85686         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
85687         macros.
85688         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
85689         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
85690         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
85691         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
85692         REPLACE_MBSINIT if mbsinit needs to be overridden.
85693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
85694         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85695         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
85696         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85697         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85698         m4/locale-zh.m4.
85699         (Depends): Add mbsinit.
85700         * modules/mbsinit (Depends): Add mbrtowc.
85701         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
85703 2008-12-20  Bruno Haible  <bruno@clisp.org>
85705         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
85706         so that there are no conversion errors on AIX.
85707         * tests/test-mbsrtowcs.c (main): LIkewise.
85709 2008-12-20  Bruno Haible  <bruno@clisp.org>
85711         Work around wctob bug on Solaris <= 9.
85712         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
85713         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
85714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
85715         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
85716         * modules/wctob (Files): Add m4/locale-fr.m4.
85717         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
85719 2008-12-20  Bruno Haible  <bruno@clisp.org>
85721         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
85722         /dev/null.
85723         * tests/test-select-in.sh: Likewise.
85724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85726 2008-12-20  Bruno Haible  <bruno@clisp.org>
85728         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
85729         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
85730         Cygwin 1.5.x.
85732 2008-12-20  Bruno Haible  <bruno@clisp.org>
85734         Ensure mbstate_t is defined on HP-UX 11.11.
85735         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
85736         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
85737         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
85738         AC_USE_SYSTEM_EXTENSIONS.
85739         * modules/fnmatch (Depends-on): Add extensions.
85740         * modules/mbrlen (Depends-on): Likewise.
85741         * modules/mbrtowc (Depends-on): Likewise.
85742         * modules/mbsinit (Depends-on): Likewise.
85743         * modules/mbsrtowcs (Depends-on): Likewise.
85744         * modules/mbswidth (Depends-on): Likewise.
85745         * modules/quotearg (Depends-on): Likewise.
85746         * modules/strftime (Depends-on): Likewise.
85748 2008-12-20  Bruno Haible  <bruno@clisp.org>
85750         Ensure wctob is declared on IRIX 6.5.
85751         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
85752         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
85753         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
85754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
85755         of HAVE_WCTOB.
85756         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
85757         HAVE_WCTOB.
85758         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
85760 2008-12-19  Bruno Haible  <bruno@clisp.org>
85762         * modules/mbsrtowcs-tests: New file.
85763         * tests/test-mbsrtowcs1.sh: New file.
85764         * tests/test-mbsrtowcs2.sh: New file.
85765         * tests/test-mbsrtowcs3.sh: New file.
85766         * tests/test-mbsrtowcs4.sh: New file.
85767         * tests/test-mbsrtowcs.c: New file.
85769         New module 'mbsrtowcs'.
85770         * lib/wchar.in.h (mbsrtowcs): New declaration.
85771         * lib/mbsrtowcs.c: New file.
85772         * m4/mbsrtowcs.m4: New file.
85773         * modules/mbsrtowcs: New file.
85774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
85775         HAVE_MBSRTOWCS.
85776         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
85777         HAVE_MBSRTOWCS.
85778         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
85780 2008-12-19  Bruno Haible  <bruno@clisp.org>
85782         New module 'mbrlen'.
85783         * lib/wchar.in.h (mbrlen): New declaration.
85784         * lib/mbrlen.c: New file.
85785         * m4/mbrlen.m4: New file.
85786         * modules/mbrlen: New file.
85787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
85788         HAVE_MBRLEN.
85789         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
85790         HAVE_MBRLEN.
85791         * doc/posix-functions/mbrlen.texi: Document the new module.
85793 2008-12-19  Bruno Haible  <bruno@clisp.org>
85795         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
85796         * modules/mbrtowc (Depends-on): Add verify.
85797         Suggested by Paul Eggert.
85799 2008-12-18  Bruno Haible  <bruno@clisp.org>
85801         * modules/mbsinit-tests: New file.
85802         * tests/test-mbsinit.sh: New file.
85803         * tests/test-mbsinit.c: New file.
85805 2008-12-18  Bruno Haible  <bruno@clisp.org>
85807         * modules/mbrtowc-tests: New file.
85808         * tests/test-mbrtowc1.sh: New file.
85809         * tests/test-mbrtowc2.sh: New file.
85810         * tests/test-mbrtowc3.sh: New file.
85811         * tests/test-mbrtowc4.sh: New file.
85812         * tests/test-mbrtowc.c: New file.
85814         New module 'mbrtowc'.
85815         * lib/wchar.in.h (mbstate_t): Override when the system does not have
85816         mbsinit and mbrtowc.
85817         (mbrtowc): New declaration.
85818         * lib/mbrtowc.c: New file.
85819         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
85820         * modules/mbrtowc: New file.
85821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
85822         HAVE_MBRTOWC.
85823         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
85824         HAVE_MBRTOWC.
85825         * doc/posix-functions/mbrtowc.texi: Document the new module.
85827 2008-12-18  Bruno Haible  <bruno@clisp.org>
85829         New module 'wctob'.
85830         * lib/wchar.in.h (wctob): New declaration.
85831         * lib/wctob.c: New file.
85832         * m4/wctob.m4: New file.
85833         * modules/wctob: New file.
85834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
85835         HAVE_WCTOB.
85836         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
85837         * doc/posix-functions/wctob.texi: Document the new module.
85839 2008-12-18  Bruno Haible  <bruno@clisp.org>
85841         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
85842         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
85844 2008-12-18  Simon Josefsson  <simon@josefsson.org>
85846         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
85847         G. Christensen" <tgc@jupiterrise.com>.
85849         * lib/flock.c: Need to include errno.h.  Reported by "Tom
85850         G. Christensen" <tgc@jupiterrise.com>.
85852         * lib/flock.c: Need to include string.h.  Reported by "Tom
85853         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
85854         <ebb9@byu.net>.
85856 2008-12-18  Bruno Haible  <bruno@clisp.org>
85858         * m4/locale-ja.m4: New file, from GNU gettext.
85860 2008-12-17  Bruno Haible  <bruno@clisp.org>
85862         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
85863         Suggested by Eric Blake.
85865 2008-12-17  Bruno Haible  <bruno@clisp.org>
85867         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
85869 2008-12-17  Bruno Haible  <bruno@clisp.org>
85871         * lib/mbsinit.c: Include verify.h. Verify an assumption.
85872         * modules/mbsinit (Depends-on): Add verify.
85873         Suggested by Paul Eggert.
85875 2008-12-17  Bruno Haible  <bruno@clisp.org>
85877         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
85878         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
85879         gl_FUNC_MBRTOWC.
85880         * m4/mbiter.m4 (gl_MBITER): LIkewise.
85881         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
85882         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
85883         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
85884         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
85885         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
85886         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
85887         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
85888         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
85889         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
85890         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
85891         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
85892         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
85893         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
85894         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85895         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85896         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85897         * modules/trim (configure.ac): Likewise.
85899 2008-12-17  Bruno Haible  <bruno@clisp.org>
85901         * modules/btowc-tests: New file.
85902         * tests/test-btowc1.sh: New file.
85903         * tests/test-btowc2.sh: New file.
85904         * tests/test-btowc.c: New file.
85906         New module 'btowc'.
85907         * lib/wchar.in.h (btowc): New declaration.
85908         * lib/btowc.c: New file.
85909         * m4/btowc.m4: New file.
85910         * modules/btowc: New file.
85911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85912         HAVE_BTOWC.
85913         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85914         * doc/posix-functions/btowc.texi: Document the new module.
85916 2008-12-17  Bruno Haible  <bruno@clisp.org>
85918         New module 'mbsinit'.
85919         * lib/wchar.in.h (mbsinit): New declaration.
85920         * lib/mbsinit.c: New file.
85921         * m4/mbsinit.m4: New file.
85922         * modules/mbsinit: New file.
85923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85924         HAVE_MBSINIT.
85925         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85926         HAVE_MBSINIT.
85927         * doc/posix-functions/mbsinit.texi: Document the new module.
85929 2008-12-16  Bruno Haible  <bruno@clisp.org>
85931         * lib/unistd.in.h: Add comment.
85932         * tests/test-environ.c: Don't include <stdlib.h>.
85934 2008-12-16  Bruno Haible  <bruno@clisp.org>
85936         * lib/parse-duration.h (parse_duration): Document return value
85937         convention.
85938         * lib/parse-duration.c: Include specification header first. Add
85939         comments.
85940         (_): Remove macro.
85941         (parse_year_month_day, parse_hour_minute_second): Move side effects
85942         outside of strchr call.
85943         (parse_non_iso8601): Move side effects outside of isspace call.
85944         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85945         call.
85947 2008-12-16  Bruno Haible  <bruno@clisp.org>
85949         * tests/test-parse-duration.sh: Produce no output when the test
85950         succeeds.
85952 2008-12-16  Bruno Haible  <bruno@clisp.org>
85954         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85955         expressions.
85957 2008-12-15  Bruno Haible  <bruno@clisp.org>
85959         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85960         * doc/glibc-functions/flistxattr.texi: Likewise.
85961         * doc/glibc-functions/fopencookie.texi: Likewise.
85962         * doc/glibc-functions/fremovexattr.texi: Likewise.
85963         * doc/glibc-functions/fsetxattr.texi: Likewise.
85964         * doc/glibc-functions/getxattr.texi: Likewise.
85965         * doc/glibc-functions/lgetxattr.texi: Likewise.
85966         * doc/glibc-functions/listxattr.texi: Likewise.
85967         * doc/glibc-functions/llistxattr.texi: Likewise.
85968         * doc/glibc-functions/lremovexattr.texi: Likewise.
85969         * doc/glibc-functions/lsetxattr.texi: Likewise.
85970         * doc/glibc-functions/removexattr.texi: Likewise.
85971         * doc/glibc-functions/setxattr.texi: Likewise.
85972         * doc/posix-functions/open_memstream.texi: Likewise.
85974 2008-12-15  Eric Blake  <ebb9@byu.net>
85976         Update doc for cygwin 1.7.
85977         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85978         functions.
85979         * doc/posix-functions/fchmodat.texi: Likewise.
85980         * doc/posix-functions/fchownat.texi: Likewise.
85981         * doc/posix-functions/fdopendir.texi: Likewise.
85982         * doc/posix-functions/fmemopen.texi: Likewise.
85983         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85984         * doc/posix-functions/fstatat.texi: Likewise.
85985         * doc/posix-functions/futimens.texi: Likewise.
85986         * doc/posix-functions/gai_strerror.texi: Likewise.
85987         * doc/posix-functions/getaddrinfo.texi: Likewise.
85988         * doc/posix-functions/getnameinfo.texi: Likewise.
85989         * doc/posix-functions/if_freenameindex.texi: Likewise.
85990         * doc/posix-functions/if_indextoname.texi: Likewise.
85991         * doc/posix-functions/if_nameindex.texi: Likewise.
85992         * doc/posix-functions/if_nametoindex.texi: Likewise.
85993         * doc/posix-functions/insque.texi: Likewise.
85994         * doc/posix-functions/linkat.texi: Likewise.
85995         * doc/posix-functions/llrint.texi: Likewise.
85996         * doc/posix-functions/llrintf.texi: Likewise.
85997         * doc/posix-functions/llrintl.texi: Likewise.
85998         * doc/posix-functions/lockf.texi: Likewise.
85999         * doc/posix-functions/lrintl.texi: Likewise.
86000         * doc/posix-functions/mkdirat.texi: Likewise.
86001         * doc/posix-functions/mkfifoat.texi: Likewise.
86002         * doc/posix-functions/mknodat.texi: Likewise.
86003         * doc/posix-functions/mq_close.texi: Likewise.
86004         * doc/posix-functions/mq_getattr.texi: Likewise.
86005         * doc/posix-functions/mq_notify.texi: Likewise.
86006         * doc/posix-functions/mq_open.texi: Likewise.
86007         * doc/posix-functions/mq_receive.texi: Likewise.
86008         * doc/posix-functions/mq_send.texi: Likewise.
86009         * doc/posix-functions/mq_setattr.texi: Likewise.
86010         * doc/posix-functions/mq_timedreceive.texi: Likewise.
86011         * doc/posix-functions/mq_timedsend.texi: Likewise.
86012         * doc/posix-functions/mq_unlink.texi: Likewise.
86013         * doc/posix-functions/open_memstream.texi: Likewise.
86014         * doc/posix-functions/openat.texi: Likewise.
86015         * doc/posix-functions/posix_fadvise.texi: Likewise.
86016         * doc/posix-functions/posix_fallocate.texi: Likewise.
86017         * doc/posix-functions/posix_madvise.texi: Likewise.
86018         * doc/posix-functions/posix_memalign.texi: Likewise.
86019         * doc/posix-functions/posix_openpt.texi: Likewise.
86020         * doc/posix-functions/readlinkat.texi: Likewise.
86021         * doc/posix-functions/remque.texi: Likewise.
86022         * doc/posix-functions/renameat.texi: Likewise.
86023         * doc/posix-functions/rintl.texi: Likewise.
86024         * doc/posix-functions/sem_unlink.texi: Likewise.
86025         * doc/posix-functions/shm_open.texi: Likewise.
86026         * doc/posix-functions/shm_unlink.texi: Likewise.
86027         * doc/posix-functions/signgam.texi: Likewise.
86028         * doc/posix-functions/sigset.texi: Likewise.
86029         * doc/posix-functions/stpcpy.texi: Likewise.
86030         * doc/posix-functions/stpncpy.texi: Likewise.
86031         * doc/posix-functions/strerror.texi: Likewise.
86032         * doc/posix-functions/strtod.texi: Likewise.
86033         * doc/posix-functions/symlinkat.texi: Likewise.
86034         * doc/posix-functions/unlinkat.texi: Likewise.
86035         * doc/posix-functions/utimensat.texi: Likewise.
86036         * doc/glibc-functions/bindresvport.texi: Likewise.
86037         * doc/glibc-functions/dn_expand.texi: Likewise.
86038         * doc/glibc-functions/exp10.texi: Likewise.
86039         * doc/glibc-functions/exp10f.texi: Likewise.
86040         * doc/glibc-functions/fgetxattr.texi: Likewise.
86041         * doc/glibc-functions/flistxattr.texi: Likewise.
86042         * doc/glibc-functions/fopencookie.texi: Likewise.
86043         * doc/glibc-functions/freeifaddrs.texi: Likewise.
86044         * doc/glibc-functions/fremovexattr.texi: Likewise.
86045         * doc/glibc-functions/fsetxattr.texi: Likewise.
86046         * doc/glibc-functions/getifaddrs.texi: Likewise.
86047         * doc/glibc-functions/getxattr.texi: Likewise.
86048         * doc/glibc-functions/lgetxattr.texi: Likewise.
86049         * doc/glibc-functions/listxattr.texi: Likewise.
86050         * doc/glibc-functions/llistxattr.texi: Likewise.
86051         * doc/glibc-functions/lremovexattr.texi: Likewise.
86052         * doc/glibc-functions/lsetxattr.texi: Likewise.
86053         * doc/glibc-functions/pow10.texi: Likewise.
86054         * doc/glibc-functions/pow10f.texi: Likewise.
86055         * doc/glibc-functions/rcmd_af.texi: Likewise.
86056         * doc/glibc-functions/removexattr.texi: Likewise.
86057         * doc/glibc-functions/res_init.texi: Likewise.
86058         * doc/glibc-functions/res_mkquery.texi: Likewise.
86059         * doc/glibc-functions/res_query.texi: Likewise.
86060         * doc/glibc-functions/res_querydomain.texi: Likewise.
86061         * doc/glibc-functions/res_send.texi: Likewise.
86062         * doc/glibc-functions/rresvport_af.texi: Likewise.
86063         * doc/glibc-functions/setxattr.texi: Likewise.
86064         * doc/glibc-functions/strcasestr.texi: Likewise.
86066 2008-12-15  Bruno Haible  <bruno@clisp.org>
86068         Fix compilation error on OSF/1 4.0.
86069         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
86070         <sys/time.h>, simply delegate to the system header.
86071         Reported by Daniel Richard G. <oss@teragram.com>.
86073 2008-12-15  Bruno Haible  <bruno@clisp.org>
86075         * doc/posix-functions/openat.texi: Mention the 'openat' module.
86076         * doc/posix-functions/fchmodat.texi: Likewise.
86077         * doc/posix-functions/fchownat.texi: Likewise.
86078         * doc/posix-functions/fdopendir.texi: Likewise.
86079         * doc/posix-functions/fstatat.texi: Likewise.
86080         * doc/posix-functions/mkdirat.texi: Likewise.
86081         * doc/posix-functions/unlinkat.texi: Likewise.
86083 2008-12-14  Bruno Haible  <bruno@clisp.org>
86085         Update doc for POSIX:2008.
86086         * doc/posix-functions/faccessat.texi: New file.
86087         * doc/posix-functions/fchmodat.texi: New file.
86088         * doc/posix-functions/fchownat.texi: New file.
86089         * doc/posix-functions/fdopendir.texi: New file.
86090         * doc/posix-functions/fstatat.texi: New file.
86091         * doc/posix-functions/futimens.texi: New file.
86092         * doc/posix-functions/linkat.texi: New file.
86093         * doc/posix-functions/mkdirat.texi: New file.
86094         * doc/posix-functions/mkfifoat.texi: New file.
86095         * doc/posix-functions/mknodat.texi: New file.
86096         * doc/posix-functions/open_wmemstream.texi: New file.
86097         * doc/posix-functions/openat.texi: New file.
86098         * doc/posix-functions/psiginfo.texi: New file.
86099         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
86100         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
86101         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
86102         * doc/posix-functions/readlinkat.texi: New file.
86103         * doc/posix-functions/renameat.texi: New file.
86104         * doc/posix-functions/strerror_l.texi: New file.
86105         * doc/posix-functions/symlinkat.texi: New file.
86106         * doc/posix-functions/unlinkat.texi: New file.
86107         * doc/posix-functions/utimensat.texi: New file.
86108         * doc/gnulib.texi (Function Substitutes): Add these subsections.
86110 2008-12-14  Bruno Haible  <bruno@clisp.org>
86112         Update doc for POSIX:2008.
86113         * doc/posix-functions/alphasort.texi: Renamed from
86114         doc/glibc-functions/alphasort.texi.
86115         * doc/posix-functions/dirfd.texi: Renamed from
86116         doc/glibc-functions/dirfd.texi.
86117         * doc/posix-functions/dprintf.texi: Renamed from
86118         doc/glibc-functions/dprintf.texi.
86119         * doc/posix-functions/duplocale.texi: Renamed from
86120         doc/glibc-functions/duplocale.texi.
86121         * doc/posix-functions/fexecve.texi: Renamed from
86122         doc/glibc-functions/fexecve.texi.
86123         * doc/posix-functions/fmemopen.texi: Renamed from
86124         doc/glibc-functions/fmemopen.texi.
86125         * doc/posix-functions/freelocale.texi: Renamed from
86126         doc/glibc-functions/freelocale.texi.
86127         * doc/posix-functions/getdate_err.texi: Renamed from
86128         doc/glibc-functions/getdate_err.texi.
86129         * doc/posix-functions/isalnum_l.texi: Renamed from
86130         doc/glibc-functions/isalnum_l.texi.
86131         * doc/posix-functions/isalpha_l.texi: Renamed from
86132         doc/glibc-functions/isalpha_l.texi.
86133         * doc/posix-functions/isblank_l.texi: Renamed from
86134         doc/glibc-functions/isblank_l.texi.
86135         * doc/posix-functions/iscntrl_l.texi: Renamed from
86136         doc/glibc-functions/iscntrl_l.texi.
86137         * doc/posix-functions/isdigit_l.texi: Renamed from
86138         doc/glibc-functions/isdigit_l.texi.
86139         * doc/posix-functions/isgraph_l.texi: Renamed from
86140         doc/glibc-functions/isgraph_l.texi.
86141         * doc/posix-functions/islower_l.texi: Renamed from
86142         doc/glibc-functions/islower_l.texi.
86143         * doc/posix-functions/isprint_l.texi: Renamed from
86144         doc/glibc-functions/isprint_l.texi.
86145         * doc/posix-functions/ispunct_l.texi: Renamed from
86146         doc/glibc-functions/ispunct_l.texi.
86147         * doc/posix-functions/isspace_l.texi: Renamed from
86148         doc/glibc-functions/isspace_l.texi.
86149         * doc/posix-functions/isupper_l.texi: Renamed from
86150         doc/glibc-functions/isupper_l.texi.
86151         * doc/posix-functions/iswalnum_l.texi: Renamed from
86152         doc/glibc-functions/iswalnum_l.texi.
86153         * doc/posix-functions/iswalpha_l.texi: Renamed from
86154         doc/glibc-functions/iswalpha_l.texi.
86155         * doc/posix-functions/iswblank_l.texi: Renamed from
86156         doc/glibc-functions/iswblank_l.texi.
86157         * doc/posix-functions/iswcntrl_l.texi: Renamed from
86158         doc/glibc-functions/iswcntrl_l.texi.
86159         * doc/posix-functions/iswctype_l.texi: Renamed from
86160         doc/glibc-functions/iswctype_l.texi.
86161         * doc/posix-functions/iswdigit_l.texi: Renamed from
86162         doc/glibc-functions/iswdigit_l.texi.
86163         * doc/posix-functions/iswgraph_l.texi: Renamed from
86164         doc/glibc-functions/iswgraph_l.texi.
86165         * doc/posix-functions/iswlower_l.texi: Renamed from
86166         doc/glibc-functions/iswlower_l.texi.
86167         * doc/posix-functions/iswprint_l.texi: Renamed from
86168         doc/glibc-functions/iswprint_l.texi.
86169         * doc/posix-functions/iswpunct_l.texi: Renamed from
86170         doc/glibc-functions/iswpunct_l.texi.
86171         * doc/posix-functions/iswspace_l.texi: Renamed from
86172         doc/glibc-functions/iswspace_l.texi.
86173         * doc/posix-functions/iswupper_l.texi: Renamed from
86174         doc/glibc-functions/iswupper_l.texi.
86175         * doc/posix-functions/iswxdigit_l.texi: Renamed from
86176         doc/glibc-functions/iswxdigit_l.texi.
86177         * doc/posix-functions/isxdigit_l.texi: Renamed from
86178         doc/glibc-functions/isxdigit_l.texi.
86179         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
86180         doc/glibc-functions/mbsnrtowcs.texi.
86181         * doc/posix-functions/mkdtemp.texi: Renamed from
86182         doc/glibc-functions/mkdtemp.texi.
86183         * doc/posix-functions/newlocale.texi: Renamed from
86184         doc/glibc-functions/newlocale.texi.
86185         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
86186         doc/glibc-functions/nl_langinfo_l.texi.
86187         * doc/posix-functions/open_memstream.texi: Renamed from
86188         doc/glibc-functions/open_memstream.texi.
86189         * doc/posix-functions/opterr.texi: Renamed from
86190         doc/glibc-functions/opterr.texi.
86191         * doc/posix-functions/optind.texi: Renamed from
86192         doc/glibc-functions/optind.texi.
86193         * doc/posix-functions/optopt.texi: Renamed from
86194         doc/glibc-functions/optopt.texi.
86195         * doc/posix-functions/psignal.texi: Renamed from
86196         doc/glibc-functions/psignal.texi.
86197         * doc/posix-functions/scandir.texi: Renamed from
86198         doc/glibc-functions/scandir.texi.
86199         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
86200         doc/glibc-functions/sched_get_priority_min.texi.
86201         * doc/posix-functions/signgam.texi: Renamed from
86202         doc/glibc-functions/signgam.texi.
86203         * doc/posix-functions/stpcpy.texi: Renamed from
86204         doc/glibc-functions/stpcpy.texi.
86205         * doc/posix-functions/stpncpy.texi: Renamed from
86206         doc/glibc-functions/stpncpy.texi.
86207         * doc/posix-functions/strcasecmp_l.texi: Renamed from
86208         doc/glibc-functions/strcasecmp_l.texi.
86209         * doc/posix-functions/strcoll_l.texi: Renamed from
86210         doc/glibc-functions/strcoll_l.texi.
86211         * doc/posix-functions/strfmon_l.texi: Renamed from
86212         doc/glibc-functions/strfmon_l.texi.
86213         * doc/posix-functions/strftime_l.texi: Renamed from
86214         doc/glibc-functions/strftime_l.texi.
86215         * doc/posix-functions/strncasecmp_l.texi: Renamed from
86216         doc/glibc-functions/strncasecmp_l.texi.
86217         * doc/posix-functions/strndup.texi: Renamed from
86218         doc/glibc-functions/strndup.texi.
86219         * doc/posix-functions/strnlen.texi: Renamed from
86220         doc/glibc-functions/strnlen.texi.
86221         * doc/posix-functions/strsignal.texi: Renamed from
86222         doc/glibc-functions/strsignal.texi.
86223         * doc/posix-functions/strxfrm_l.texi: Renamed from
86224         doc/glibc-functions/strxfrm_l.texi.
86225         * doc/posix-functions/timer_gettime.texi: Renamed from
86226         doc/glibc-functions/timer_gettime.texi.
86227         * doc/posix-functions/tolower_l.texi: Renamed from
86228         doc/glibc-functions/tolower_l.texi.
86229         * doc/posix-functions/toupper_l.texi: Renamed from
86230         doc/glibc-functions/toupper_l.texi.
86231         * doc/posix-functions/towctrans_l.texi: Renamed from
86232         doc/glibc-functions/towctrans_l.texi.
86233         * doc/posix-functions/towlower_l.texi: Renamed from
86234         doc/glibc-functions/towlower_l.texi.
86235         * doc/posix-functions/towupper_l.texi: Renamed from
86236         doc/glibc-functions/towupper_l.texi.
86237         * doc/posix-functions/uselocale.texi: Renamed from
86238         doc/glibc-functions/uselocale.texi.
86239         * doc/posix-functions/vdprintf.texi: Renamed from
86240         doc/glibc-functions/vdprintf.texi.
86241         * doc/posix-functions/wcpcpy.texi:
86242         Renamed from doc/glibc-functions/wcpcpy.texi.
86243         * doc/posix-functions/wcpncpy.texi: Renamed from
86244         doc/glibc-functions/wcpncpy.texi.
86245         * doc/posix-functions/wcscasecmp.texi: Renamed from
86246         doc/glibc-functions/wcscasecmp.texi.
86247         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
86248         doc/glibc-functions/wcscasecmp_l.texi.
86249         * doc/posix-functions/wcscoll_l.texi: Renamed from
86250         doc/glibc-functions/wcscoll_l.texi.
86251         * doc/posix-functions/wcsdup.texi: Renamed from
86252         doc/glibc-functions/wcsdup.texi.
86253         * doc/posix-functions/wcsncasecmp.texi: Renamed from
86254         doc/glibc-functions/wcsncasecmp.texi.
86255         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
86256         doc/glibc-functions/wcsncasecmp_l.texi.
86257         * doc/posix-functions/wcsnlen.texi: Renamed from
86258         doc/glibc-functions/wcsnlen.texi.
86259         * doc/posix-functions/wcsnrtombs.texi: Renamed from
86260         doc/glibc-functions/wcsnrtombs.texi.
86261         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
86262         doc/glibc-functions/wcsxfrm_l.texi.
86263         * doc/posix-functions/wctrans_l.texi: Renamed from
86264         doc/glibc-functions/wctrans_l.texi.
86265         * doc/posix-functions/wctype_l.texi: Renamed from
86266         doc/glibc-functions/wctype_l.texi.
86267         * doc/gnulib.texi (Function Substitutes): Add these subsections.
86268         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
86269         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
86270         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
86271         these subsections.
86272         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
86273         Remove sections.
86275 2008-12-14  Bruno Haible  <bruno@clisp.org>
86277         Update doc for POSIX:2008.
86278         * doc/posix-functions/*.texi: Update URL of POSIX specification.
86280 2008-12-14  Bruno Haible  <bruno@clisp.org>
86282         Update doc for POSIX:2008.
86283         * doc/pastposix-functions/bcmp.texi: Renamed from
86284         doc/posix-functions/bcmp.texi.
86285         * doc/pastposix-functions/bcopy.texi: Renamed from
86286         doc/posix-functions/bcopy.texi.
86287         * doc/pastposix-functions/bsd_signal.texi: Renamed from
86288         doc/posix-functions/bsd_signal.texi.
86289         * doc/pastposix-functions/bzero.texi: Renamed from
86290         doc/posix-functions/bzero.texi.
86291         * doc/pastposix-functions/ecvt.texi: Renamed from
86292         doc/posix-functions/ecvt.texi.
86293         * doc/pastposix-functions/fcvt.texi: Renamed from
86294         doc/posix-functions/fcvt.texi.
86295         * doc/pastposix-functions/ftime.texi: Renamed from
86296         doc/posix-functions/ftime.texi.
86297         * doc/pastposix-functions/gcvt.texi: Renamed from
86298         doc/posix-functions/gcvt.texi.
86299         * doc/pastposix-functions/getcontext.texi: Renamed from
86300         doc/posix-functions/getcontext.texi.
86301         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
86302         doc/posix-functions/gethostbyaddr.texi.
86303         * doc/pastposix-functions/gethostbyname.texi: Renamed from
86304         doc/posix-functions/gethostbyname.texi.
86305         * doc/pastposix-functions/getwd.texi: Renamed from
86306         doc/posix-functions/getwd.texi.
86307         * doc/pastposix-functions/h_errno.texi: Renamed from
86308         doc/posix-functions/h_errno.texi.
86309         * doc/pastposix-functions/index.texi: Renamed from
86310         doc/posix-functions/index.texi.
86311         * doc/pastposix-functions/makecontext.texi: Renamed from
86312         doc/posix-functions/makecontext.texi.
86313         * doc/pastposix-functions/mktemp.texi: Renamed from
86314         doc/posix-functions/mktemp.texi.
86315         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
86316         doc/posix-functions/pthread_attr_getstackaddr.texi.
86317         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
86318         doc/posix-functions/pthread_attr_setstackaddr.texi.
86319         * doc/pastposix-functions/rindex.texi: Renamed from
86320         doc/posix-functions/rindex.texi.
86321         * doc/pastposix-functions/scalb.texi: Renamed from
86322         doc/posix-functions/scalb.texi.
86323         * doc/pastposix-functions/setcontext.texi: Renamed from
86324         doc/posix-functions/setcontext.texi.
86325         * doc/pastposix-functions/swapcontext.texi: Renamed from
86326         doc/posix-functions/swapcontext.texi.
86327         * doc/pastposix-functions/ualarm.texi: Renamed from
86328         doc/posix-functions/ualarm.texi.
86329         * doc/pastposix-functions/usleep.texi: Renamed from
86330         doc/posix-functions/usleep.texi.
86331         * doc/pastposix-functions/vfork.texi: Renamed from
86332         doc/posix-functions/vfork.texi.
86333         * doc/pastposix-functions/wcswcs.texi: Renamed from
86334         doc/posix-functions/wcswcs.texi.
86335         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
86336         (Function Substitutes): Update.
86338 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86340         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
86341         m4/strerror.m4.
86343 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86344             Bruno Haible  <bruno@clisp.org>
86346         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
86348 2008-12-13  Bruno Haible  <bruno@clisp.org>
86350         * modules/strtoull (Depends-on): Remove unistd.
86352 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86354         * modules/strtoull (Depends-on): Add stdlib.
86356 2008-12-11  Simon Josefsson  <simon@josefsson.org>
86358         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
86360 2008-12-10  Jim Meyering  <meyering@redhat.com>
86362         gl_ASSERT: don't say assertions are disabled when they're not
86363         * m4/assert.m4 (gl_ASSERT): Do not make configure report
86364         "checking whether to enable assertions... no", when they are in
86365         fact enabled.  This is solely a bug in the output of configure.
86366         In spite of saying "no", NDEBUG was not defined in that case.
86367         Also, as noted by Eric Blake, leave assertions enabled upon
86368         --enable-assert=INVALID.
86370 2008-12-10  Bruno Haible  <bruno@clisp.org>
86372         Change MODULES.html to refer to POSIX:2008 where possible.
86373         * MODULES.html.sh (POSIX2008_URL): New variable.
86374         (posix_headers): Remove sys/timeb, ucontext.
86375         (posix2001_headers): New variable.
86376         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
86377         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
86378         index, makecontext, mktemp, pthread_attr_getstackaddr,
86379         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
86380         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
86381         (posix2001_functions): New variable.
86382         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
86383         otherwise.
86385 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86387         add missing include to parse-duration.c
86388         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
86389         * modules/parse-duration (Depends-on): Add xalloc.
86391         fix sed script reading maint.mk
86392         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
86393         (syntax-check-rules): Use it.
86395 2008-12-09  Bruno Haible  <bruno@clisp.org>
86397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
86398         MacOS X 10.4/PowerPC.
86399         Reported by Simon Josefsson.
86401 2008-12-08  Jim Meyering  <meyering@redhat.com>
86403         work around mingw's lack of some S_IF definitions
86404         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
86405         Reported by Simon Josefsson.
86407 2008-12-08  Bruno Haible  <bruno@clisp.org>
86409         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
86410         applied to variables. Needed on MacOS X 10.4/PowerPC.
86411         Reported by Simon Josefsson.
86413 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
86414         and Eric Blake  <ebb9@byu.net>
86416         assert: honor --enable-assert
86417         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
86418         order to honor --enable-assert, rather than treating it as a
86419         synonym for --disable-assert.
86421 2008-12-08  Jim Meyering  <meyering@redhat.com>
86423         * lib/posixtm.c: Remove now-useless declaration of mktime.
86425         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
86427 2008-12-07  Bruno Haible  <bruno@clisp.org>
86429         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
86430         test_once): Mark functions as static.
86431         * tests/test-tls.c (test_tls): Likewise.
86433 2008-12-07  Bruno Haible  <bruno@clisp.org>
86435         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
86436         iconv_register_autodetect.
86438 2008-12-07  Jim Meyering  <meyering@redhat.com>
86440         posixtm.c: avoid a warning
86441         * lib/posixtm.c (posixtime): Don't initialize tm0.
86442         It's no longer needed to placate gcc4's -Wuninitialized,
86443         and the attempt to placate would elicit a new warning.
86445         unicodeio.c: mark unused parameters
86446         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
86447         (fallback_failure_callback): Likewise.
86449 2008-12-07  Bruno Haible  <bruno@clisp.org>
86451         * gnulib-tool (func_create_testdir): When building the tests
86452         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
86453         Reported by Simon Josefsson.
86455 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86457         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
86459 2008-12-06  Bruno Haible  <bruno@clisp.org>
86461         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
86462         Suggested by Eric Blake.
86464 2008-12-06  Bruno Haible  <bruno@clisp.org>
86466         Fix a c-stack test failure on MacOS X.
86467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
86468         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
86469         handler for SIGBUS as well.
86470         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
86471         install a signal handler for SIGBUS as well.
86472         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
86474 2008-12-06  Bruno Haible  <bruno@clisp.org>
86476         Advocacy documentation.
86477         * doc/gnulib-intro.texi (Benefits): New section.
86478         * doc/gnulib.texi: Update.
86480 2008-12-06  Bruno Haible  <bruno@clisp.org>
86482         Document the 'manywarnings' module.
86483         * doc/manywarnings.texi: New file.
86484         * doc/gnulib.texi: Include it.
86486 2008-12-05  Eric Blake  <ebb9@byu.net>
86488         tests: silence some gcc warnings
86489         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
86490         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
86491         type mismatches.
86493 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86494             Bruno Haible  <bruno@clisp.org>
86496         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
86498 2008-11-29  Jim Meyering  <meyering@redhat.com>
86500         unicodeio.c: mark unused parameters
86501         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
86502         (fallback_failure_callback): Likewise.
86504         fts: fix a thinko
86505         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
86506         (set_stat_type): Return S_IF*-valued "type" directly.
86507         Prompted by James Youngman's spotting a related bug.
86508         Confirmed by further testing through find.
86510         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
86511         * lib/fts.c (D_TYPE): Define.
86512         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
86513         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
86514         (s_ifmt_shift_bits): New function.
86515         (set_stat_type): New function.
86516         (fts_build): When not calling fts_stat, call set_stat_type
86517         to propagate dirent.d_type info to fts_read caller.
86518         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
86519         fts_statp->st_mode type information may be valid.
86521 2008-11-28  Simon Josefsson  <simon@josefsson.org>
86523         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
86524         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
86525         <sds@gnu.org>.
86527 2008-11-20  Bruno Haible  <bruno@clisp.org>
86529         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
86530         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
86531         INCLUDE_NEXT.
86532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
86533         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
86534         * modules/math (Makefile.am): Substitute
86535         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
86536         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86538 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
86539             Bruno Haible  <bruno@clisp.org>
86541         * lib/stdint.in.h: Define all type macros so that their expansion is
86542         a single typedef'ed token. Fixes a compilation failure in Boost which
86543         does "using ::int8_t;".
86545 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86547         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
86548         gl_MANYWARN_ALL_GCC.
86549         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
86550         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
86551         * modules/manywarnings: New file.
86552         * MODULES.html.sh: Mention manywarnings module.
86554 2008-11-18  Bruno Haible  <bruno@clisp.org>
86556         * doc/gnulib-tool.texi (Unit tests): New section.
86558 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86560         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
86561         paths like 'lib/po/foo.po'.
86563 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86565         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
86566         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
86568 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86570         * m4/warnings.m4: Use CPPFLAGS to really check whether the
86571         parameter works.
86573 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86575         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
86577 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86579         * modules/parse-duration-tests: New file.
86580         * tests/test-parse-duration.sh: New file.
86581         * tests/test-parse-duration.c: New file.
86583         New module 'parse-duration'.
86584         * lib/parse-duration.h: New file.
86585         * lib/parse-duration.c: New file.
86586         * modules/parse-duration: New file.
86588 2008-11-17  Bruno Haible  <bruno@clisp.org>
86590         * tests/test-select-out.sh: Comment out the first pipe test.
86591         Reported by Simon Josefsson.
86593 2008-11-17  Bruno Haible  <bruno@clisp.org>
86595         * modules/getaddrinfo (Depends-on): Add servent, hostent.
86596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
86597         gl_HOSTENT.
86599 2008-11-17  Bruno Haible  <bruno@clisp.org>
86601         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
86602         -lnetwork and -lnet. Needed for Haiku and BeOS.
86604 2008-11-16  Bruno Haible  <bruno@clisp.org>
86606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
86608 2008-11-16  Bruno Haible  <bruno@clisp.org>
86610         Avoid test failure on Haiku.
86611         * tests/test-fsync.c: Include <errno.h>.
86612         (main): Don't require that fsync (0) fails.
86614 2008-11-15  Bruno Haible  <bruno@clisp.org>
86616         New module 'hostent'.
86617         * modules/hostent: New file.
86618         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
86620 2008-11-15  Bruno Haible  <bruno@clisp.org>
86622         New module 'servent'.
86623         * modules/servent: New file.
86624         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
86626 2008-11-15  Bruno Haible  <bruno@clisp.org>
86628         Avoid generating same test program with two different rules.
86629         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
86630         test-frexp to test-frexp-nolibm.
86631         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
86632         test-frexpl to test-frexpl-nolibm.
86634 2008-11-15  Bruno Haible  <bruno@clisp.org>
86636         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
86637         $(FREXPL_LIBM).
86639 2008-11-15  Bruno Haible  <bruno@clisp.org>
86641         * lib/netdb.in.h: Activate the definitions also when the system's
86642         <netdb.h> has 'struct addrinfo'.
86643         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
86644         EAI_OVERFLOW or AI_NUMERICSERV.
86645         * doc/posix-headers/netdb.texi: Document the problem.
86647 2008-11-15  Bruno Haible  <bruno@clisp.org>
86649         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
86651         Make the 'sched' module work on platforms where <sched.h> exists but
86652         is incomplete (such as Haiku).
86653         * lib/sched.in.h; Include the system's <sched.h> if it exists.
86654         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
86655         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
86656         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
86657         HAVE_STRUCT_SCHED_PARAM.
86658         * modules/sched (Depends-on): Add include_next.
86659         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
86660         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
86661         * doc/posix-headers/sched.texi: Document the issue.
86663 2008-11-13  Jim Meyering  <meyering@redhat.com>
86665         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
86666         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
86667         test would fail due to the difference in the Report bugs to ...
86668         line.  The expected address is empty, "<>", while the actual
86669         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
86671 2008-11-12  Bruno Haible  <bruno@clisp.org>
86673         lstat: don't compile lstat.c on systems lacking lstat
86674         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
86675         which don't have lstat; this is handled by lib/sys_stat.in.h already.
86676         Reported by Daniel P. Berrange via Jim Meyering.
86678 2008-11-12  Jim Meyering  <meyering@redhat.com>
86680         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
86682 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86684         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
86685         instead.
86687 2008-11-12  Bruno Haible  <bruno@clisp.org>
86689         * lib/unicodeio.c: Include unistr.h.
86690         (utf8_wctomb): Remove function.
86691         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
86693 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86695         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
86696         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
86697         <bruno@clisp.org>.
86698         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
86700 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86702         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
86703         * doc/gnulib.texi: Add section for warnings.
86705 2008-11-11  Bruno Haible  <bruno@clisp.org>
86707         * lib/sockets.h: Add a comment.
86709 2008-11-11  Karl Berry  <karl@gnu.org>
86711         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
86713 2008-11-11  Eric Blake  <ebb9@byu.net>
86715         fdl.texi: avoid git symlinks
86716         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
86718 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86720         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
86722 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86724         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
86725         (gl_WARN_ADD): Substitute $2 if literal.
86727 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86729         * m4/warning.m4: Remove.
86731 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86733         * m4/warnings.m4: Almost complete rewrite. :-)
86735 2008-11-10  Simon Josefsson  <simon@josefsson.org>
86737         * modules/warnings: New module.
86738         * m4/warnings.m4: New file.
86739         * MODULES.html.sh: Mention warnings module.
86740         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
86741         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86743 2008-11-10  Eric Blake  <ebb9@byu.net>
86745         fdl.texi: make a symlink to the latest version
86746         * doc/standards.texi: Revert today's earlier change.
86747         * doc/fdl-1.2.texi: Rename from old fdl.texi...
86748         * doc/fdl.texi: ...and replace this with a symlink to the newer
86749         fdl-1.3.texi.
86751 2008-11-10  Bruno Haible  <bruno@clisp.org>
86753         * tests/test-select-fd.c (main): Accept the result file name as fourth
86754         argument.
86755         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
86756         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
86758 2008-11-10  Bruno Haible  <bruno@clisp.org>
86760         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
86761         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
86762         as autoconf-substituted macros.
86763         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
86764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
86765         gl_NETDB_H_DEFAULTS. Set these variables.
86766         * modules/netdb (Makefile.am): Substitute these variables.
86768 2008-11-10  Eric Blake  <ebb9@byu.net>
86770         standards.texi: include correct file for FDL 1.3
86771         * doc/standards.texi (GNU Free Documentation License): Change
86772         include file to pull in FDL 1.3, not 1.2.
86774         fdl.texi: revert accidental change to license
86775         * doc/fdl.texi: This is FDL 1.2, not 1.3.
86777 2008-11-10  Bruno Haible  <bruno@clisp.org>
86779         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
86780         cross-compiling guesses also when the native compile gives no result.
86782 2008-11-10  Bruno Haible  <bruno@clisp.org>
86784         * lib/spawni.c (__spawni): Force variable into the stack.
86786 2008-11-10  Bruno Haible  <bruno@clisp.org>
86788         Add support for Haiku.
86789         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
86790         glibc and BeOS, but also on Haiku.
86791         * lib/fpurge.c (fpurge): Likewise.
86792         * lib/freadable.c (freadable): Likewise.
86793         * lib/freadahead.c (freadahead): Likewise.
86794         * lib/freading.c (freading): Likewise.
86795         * lib/freadptr.c (freadptr): Likewise.
86796         * lib/freadseek.c (freadptrinc): Likewise.
86797         * lib/fseeko.c (rpl_fseeko): Likewise.
86798         * lib/fseterr.c (fseterr): Likewise.
86799         * lib/fwritable.c (fwritable): Likewise.
86800         * lib/fwriting.c (fwriting): Likewise.
86801         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
86803 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86805         * lib/config.charset: Treat Haiku like BeOS.
86807 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86809         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
86810         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
86812 2008-11-08  Bruno Haible  <bruno@clisp.org>
86814         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
86815         AC_CACHE_CHECK.
86817 2008-11-08  Bruno Haible  <bruno@clisp.org>
86819         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
86821 2008-11-08  Bruno Haible  <bruno@clisp.org>
86823         * tests/test-select-fd.c: New file.
86824         * tests/test-select-in.sh: New file.
86825         * tests/test-select-out.sh: New file.
86826         * tests/test-select-stdin.c: New file.
86827         * modules/select-tests (Files): Add the new files.
86828         (Depends-on): Add gettimeofday.
86829         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
86830         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
86831         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
86833 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
86834             Bruno Haible  <bruno@clisp.org>
86836         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
86838 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
86840         * build-aux/pmccabe2html: Added support for C++ source files.
86842 2008-11-05  Ben Pfaff  <blp@gnu.org>
86844         Fix lib/close.c build on Windows.
86845         * modules/close (Files): Add lib/w32sock.h.
86847 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
86849         Accept Bison's NEWS format.
86850         * build-aux/announce-gen (print_news_deltas): Tweak
86851         $re_prefix.
86853 2008-11-04  Bruno Haible  <bruno@clisp.org>
86855         * modules/random_r (Maintainer): Add glibc.
86857 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86859         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
86860         by karl@freefriends.org (Karl Berry).
86861         * doc/alloca.texi: Likewise.
86862         * doc/c-ctype.texi: Likewise.
86863         * doc/c-strcase.texi: Likewise.
86864         * doc/c-strcaseeq.texi: Likewise.
86865         * doc/c-strcasestr.texi: Likewise.
86866         * doc/c-strstr.texi: Likewise.
86867         * doc/c-strtod.texi: Likewise.
86868         * doc/c-strtold.texi: Likewise.
86869         * doc/ctime.texi: Likewise.
86870         * doc/error.texi: Likewise.
86871         * doc/fdl.texi: Likewise.
86872         * doc/gcd.texi: Likewise.
86873         * doc/getdate.texi: Likewise.
86874         * doc/gnulib-intro.texi: Likewise.
86875         * doc/gnulib-tool.texi: Likewise.
86876         * doc/gnulib.texi: Likewise.
86877         * doc/inet_ntoa.texi: Likewise.
86878         * doc/maintain.texi: Likewise.
86879         * doc/make-stds.texi: Likewise.
86880         * doc/quote.texi: Likewise.
86881         * doc/regexprops-generic.texi: Likewise.
86882         * doc/standards.texi: Likewise.
86883         * doc/verify.texi: Likewise.
86884         * doc/visibility.texi: Likewise.
86885         * doc/gnulib.texi (GNU Free Documentation License): Include
86886         fdl-1.3.texi instead of fdl.texi.
86888 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86890         * doc/fdl-1.3.texi: New file, from
86891         <http://www.gnu.org/licenses/fdl-1.3.texi>.
86892         * modules/fdl-1.3: Add.
86893         * MODULES.html.sh: Add fdl-1.3.
86895 2008-11-03  Bruno Haible  <bruno@clisp.org>
86897         Make determination of absolute name of header file work with AIX xlc.
86898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86899         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86900         preprocessing.
86901         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86902         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86904 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86906         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86907         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86908         <ludo@gnu.org>.
86910 2008-11-02  Bruno Haible  <bruno@clisp.org>
86912         Mark 'strpbrk' obsolete.
86913         * modules/strpbrk (Status, Notice): New sections.
86914         * modules/strtok_r (Depends-on): Add strpbrk.
86916 2008-11-02  Bruno Haible  <bruno@clisp.org>
86918         Mark 'strdup' obsolete.
86919         * modules/strdup (Status, Notice): New sections.
86920         * modules/findprog (Depends-on): Add strdup.
86921         * modules/getaddrinfo (Depends-on): Likewise.
86922         * modules/localename (Depends-on): Likewise.
86923         * modules/relocatable-lib (Depends-on): Likewise.
86924         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86925         * modules/relocatable-prog (Depends-on): Likewise.
86926         * modules/trim (Depends-on): Likewise.
86927         * modules/unictype/gen-ctype (Depends-on): Likewise.
86928         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86930 2008-11-02  Bruno Haible  <bruno@clisp.org>
86932         Mark 'strcspn' obsolete.
86933         * modules/strcspn (Status, Notice): New sections.
86935 2008-11-02  Bruno Haible  <bruno@clisp.org>
86937         Mark 'rmdir' obsolete.
86938         * modules/rmdir (Status, Notice): New sections.
86939         * modules/clean-temp (Depends-on): Add rmdir.
86940         * modules/openat (Depends-on): Likewise.
86942 2008-11-02  Bruno Haible  <bruno@clisp.org>
86944         Mark 'raise' obsolete.
86945         * modules/raise (Status, Notice): New sections.
86946         (Include): Specify <signal.h>.
86947         * modules/stdio (Depends-on): Add raise.
86948         * modules/write (Depends-on): Likewise.
86950 2008-11-02  Bruno Haible  <bruno@clisp.org>
86952         Mark 'memset' obsolete.
86953         * modules/memset (Status, Notice): New sections.
86955 2008-11-02  Bruno Haible  <bruno@clisp.org>
86957         Mark 'memmove' obsolete.
86958         * modules/memmove (Status, Notice): New sections.
86959         * modules/argp (Depends-on): Add memmove.
86960         * modules/argz (Depends-on): Likewise.
86961         * modules/canonicalize (Depends-on): Likewise.
86962         * modules/canonicalize-lgpl (Depends-on): Likewise.
86963         * modules/fts (Depends-on): Likewise.
86964         * modules/getcwd (Depends-on): Likewise.
86965         * modules/human (Depends-on): Likewise.
86966         * modules/regex (Depends-on): Likewise.
86967         * modules/striconveh (Depends-on): Likewise.
86968         * modules/trim (Depends-on): Likewise.
86969         * modules/unistr/u8-move (Depends-on): Likewise.
86970         * modules/unistr/u16-move (Depends-on): Likewise.
86971         * modules/unistr/u32-move (Depends-on): Likewise.
86973 2008-11-02  Bruno Haible  <bruno@clisp.org>
86975         Mark 'memcpy' obsolete.
86976         * modules/memcpy (Status, Notice): New sections.
86978 2008-11-02  Bruno Haible  <bruno@clisp.org>
86980         Mark 'memcmp' obsolete.
86981         * modules/memcmp (Status, Notice): New sections.
86982         * modules/argmatch (Depends-on): Add memchr.
86983         * modules/backupfile (Depends-on): Likewise.
86984         * modules/c-strcasestr (Depends-on): Likewise.
86985         * modules/crypto/des (Depends-on): Likewise.
86986         * modules/csharpcomp (Depends-on): Likewise.
86987         * modules/fnmatch (Depends-on): Likewise.
86988         * modules/git-merge-changelog (Depends-on): Likewise.
86989         * modules/isnand (Depends-on): Likewise.
86990         * modules/isnand-nolibm (Depends-on): Likewise.
86991         * modules/isnanf (Depends-on): Likewise.
86992         * modules/isnanf-nolibm (Depends-on): Likewise.
86993         * modules/isnanl (Depends-on): Likewise.
86994         * modules/isnanl-nolibm (Depends-on): Likewise.
86995         * modules/mbchar (Depends-on): Likewise.
86996         * modules/memcoll (Depends-on): Likewise.
86997         * modules/quotearg (Depends-on): Likewise.
86998         * modules/regex (Depends-on): Likewise.
86999         * modules/relocatable-prog (Depends-on): Likewise.
87000         * modules/same (Depends-on): Likewise.
87001         * modules/signbit (Depends-on): Likewise.
87002         * modules/strcasestr-simple (Depends-on): Likewise.
87003         * modules/unictype/gen-ctype (Depends-on): Likewise.
87004         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
87005         * modules/uniname/uniname (Depends-on): Likewise.
87006         * modules/unistr/u8-cmp (Depends-on): Likewise.
87008 2008-11-02  Bruno Haible  <bruno@clisp.org>
87010         Mark 'memchr' obsolete.
87011         * modules/memchr (Status, Notice): New sections.
87012         * modules/argp (Depends-on): Add memchr.
87013         * modules/base64 (Depends-on): Likewise.
87014         * modules/c-strcasestr (Depends-on): Likewise.
87015         * modules/chdir-long (Depends-on): Likewise.
87016         * modules/fnmatch (Depends-on): Likewise.
87017         * modules/getsubopt (Depends-on): Likewise.
87018         * modules/git-merge-changelog (Depends-on): Likewise.
87019         * modules/glob (Depends-on): Likewise.
87020         * modules/strcasestr-simple (Depends-on): Likewise.
87021         * modules/strnlen (Depends-on): Likewise.
87023 2008-11-02  Bruno Haible  <bruno@clisp.org>
87025         Mark 'atexit' obsolete.
87026         * modules/atexit (Status, Notice): New sections.
87027         * modules/chdir-long (Depends-on): Add atexit.
87028         * modules/wait-process (Depends-on): Likewise.
87030 2008-11-02  Bruno Haible  <bruno@clisp.org>
87032         * gnulib-tool: New option --with-obsolete.
87033         (func_usage): Document it.
87034         (func_modules_transitive_closure): Drop obsolete dependencies if
87035         incobsolete is not true.
87036         (func_import): Read and save the incobsolete variable to the cache.
87038 2008-11-02  Bruno Haible  <bruno@clisp.org>
87040         * modules/TEMPLATE-EXTENDED: New field 'Status'.
87041         * gnulib-tool: New option --extract-status.
87042         (func_usage): Document it.
87043         (sed_extract_prog): Recognize it.
87044         (func_get_status): New function.
87046 2008-10-30  Simon Josefsson  <simon@josefsson.org>
87048         * modules/sockets (License): Change from LGPL to LGPLv2+.
87050 2008-10-28  Simon Josefsson  <simon@josefsson.org>
87052         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
87054 2008-10-28  Simon Josefsson  <simon@josefsson.org>
87056         * MODULES.html.sh (Support for systems lacking POSIX:2001):
87057         Mention times and sys_times.
87058         * modules/sys_times, modules/sys_times-tests: New modules.
87059         * modules/times, modules/times-tests: Likewise
87060         * m4/sys_times_h.m4: New file.
87061         * lib/sys_times.in.h: Likewise
87062         * lib/times.c: Likewise.
87063         * tests/test-sys_times.c: Likewise.
87064         * tests/test-times.c: Likewise.
87065         * doc/posix-headers/sys_times.texi: Update.
87066         * doc/posix-functions/times.texi: Update.
87068 2008-10-28  Jim Meyering  <meyering@redhat.com>
87070         * modules/tempname (Depends-on): Add lstat.
87072         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
87074 2008-10-28  Simon Josefsson  <simon@josefsson.org>
87076         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
87077         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
87078         using idiom used elsewhere in gnulib.
87080 2008-10-27  Jim Meyering  <meyering@redhat.com>
87082         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
87084 2008-10-27  Simon Josefsson  <simon@josefsson.org>
87086         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
87087         TESTS_ENVIRONMENT, for shell scripts that needs to call built
87088         programs.
87089         * tests/test-argp-2.sh: Use $EXEEXT when needed.
87091 2008-10-27  Simon Josefsson  <simon@josefsson.org>
87093         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
87095 2008-10-27  Bruno Haible  <bruno@clisp.org>
87097         * tests/test-lstat.c: Include <stdio.h>.
87099 2008-10-27  Simon Josefsson  <simon@josefsson.org>
87101         * modules/lstat-tests: New module.
87102         * tests/test-lstat.c: New file.
87104 2008-10-26  Jim Meyering  <meyering@redhat.com>
87106         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
87108 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87109             Bruno Haible  <bruno@clisp.org>
87111         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
87112         * modules/configmake (Include): Add a note that the include must come
87113         after all system headers.
87114         * lib/javaversion.c: Include configmake.h after all other includes.
87116 2008-10-26  Bruno Haible  <bruno@clisp.org>
87118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
87119         HAVE_STRUCT_RANDOM_DATA to 1.
87120         (gl_STDLIB_H): Simplify.
87122 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87124         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
87125         substitute HAVE_STRUCT_RANDOM_DATA.
87126         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
87127         random_data.
87128         * modules/stdlib (Makefile.am): Substitute
87129         HAVE_STRUCT_RANDOM_DATA.
87131 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87133         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
87134         * doc/gnulib-intro.texi (Copyright): Likewise.
87136 2008-10-26  Simon Josefsson  <simon@josefsson.org>
87138         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
87139         findings.
87141 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
87142             Bruno Haible  <bruno@clisp.org>
87144         * lib/unistd.in.h: Include <winsock2.h>.
87145         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
87146         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
87147         Provide dummy declarations.
87148         (gethostname): Override.
87149         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
87150         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
87151         gl_PREREQ_SYS_H_WINSOCK2.
87152         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
87153         * doc/posix-functions/gethostname.texi: More details.
87155 2008-10-25  Bruno Haible  <bruno@clisp.org>
87157         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87158         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
87159         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
87161         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
87162         here ...
87163         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
87164         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
87165         gl_UNISTD_H_DEFAULTS.
87167 2008-10-25  Eric Blake  <ebb9@byu.net>
87169         signbit: avoid spurious compiler failure
87170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
87171         declarations inside function.
87173 2008-10-24  Simon Josefsson  <simon@josefsson.org>
87174             Bruno Haible  <bruno@clisp.org>
87176         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
87177         * modules/random_r (Depends-on): Add stdint.
87179 2008-10-24  Bruno Haible  <bruno@clisp.org>
87181         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
87182         Eggert.
87183         * modules/strerror (License): Likewise.
87185 2008-10-24  Jim Meyering  <meyering@redhat.com>
87187         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
87188         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
87190 2008-10-24  Eric Blake  <ebb9@byu.net>
87192         getgroups: fix compilation when getgroups is available
87193         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
87194         but with <config.h> override of getgroups disabled.
87196 2008-10-24  Simon Josefsson  <simon@josefsson.org>
87198         * doc/gnulib.texi (Header files): Add note about C++ problems.
87199         Explained by Bruno Haible <bruno@clisp.org>.
87201 2008-10-23  Bruno Haible  <bruno@clisp.org>
87203         Define a dummy SA_NODEFER macro on Interix.
87204         * lib/signal.in.h (SA_NODEFER): Define fallback.
87205         Reported by Aleksey Cheusov <cheusov@tut.by> via
87206         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
87208 2008-10-23  Bruno Haible  <bruno@clisp.org>
87210         * modules/freadahead (License): Change to LGPLv2+.
87211         Suggested by Simon Josefsson.
87213 2008-10-23  Jim Meyering  <meyering@redhat.com>
87215         random_r: new module
87216         * modules/random_r: New file.
87217         * m4/random_r.m4: New file.
87218         * lib/random_r.c: New file, from glibc.
87219         * modules/random_r-tests: New file.
87220         * tests/test-random_r.c: New file.
87221         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
87222          Declare.
87223         (RAND_MAX): Define.
87224         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
87225         * modules/stdlib: Substitute them, too.
87226         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
87227         * doc/glibc-functions/initstate_r.texi: Mention the new module.
87228         * doc/glibc-functions/random_r.texi: Likewise.
87229         * doc/glibc-functions/setstate_r.texi: Likewise.
87230         * doc/glibc-functions/srandom_r.texi: Likewise.
87231         * config/srclist.txt: Mention it.
87233 2008-10-23  David Lutterkort  <lutter@redhat.com>
87235         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
87236         link requirement
87238 2008-10-23  Jim Meyering  <meyering@redhat.com>
87240         selinux-h: mark parameters of stub functions as intentionally unused
87241         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
87242         * lib/se-context.in.h: Likewise.
87244 2008-10-22  Simon Josefsson  <simon@josefsson.org>
87246         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
87248 2008-10-22  Simon Josefsson  <simon@josefsson.org>
87250         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
87252 2008-10-22  Eric Blake  <ebb9@byu.net>
87254         glthread/thread: avoid compiler warning
87255         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
87256         Add unreachable abort to silence compiler.
87258 2008-10-22  Eric Blake  <ebb9@byu.net>
87260         netdb: also supply struct addrinfo for cygwin 1.5.x
87261         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
87262         older cygwin.
87263         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
87264         cygwin.
87265         * doc/posix-headers/netdb.texi (netdb.h): Document this.
87267 2008-10-22  Bruno Haible  <bruno@clisp.org>
87269         * users.txt: Update entry about pspp.
87271 2008-10-21  Bruno Haible  <bruno@clisp.org>
87273         Simplification.
87274         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
87275         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
87277         Simplification.
87278         * lib/ioctl.c (ioctl): Don't undefine.
87279         * lib/socket.c (socket): Don't undefine.
87281         Remove unused module indicator macros.
87282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
87283         GNULIB_$1 as a C macro.
87285         * doc/posix-functions/close.texi: Undo last change.
87286         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
87287         Windows platforms.
87289 2008-10-21  Bruno Haible  <bruno@clisp.org>
87291         Add gethostname() declaration to <unistd.h>.
87292         * lib/unistd.in.h (gethostname): New declaration.
87293         * lib/gethostname.c: Include <unistd.h>.
87294         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
87295         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
87296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
87297         and HAVE_GETHOSTNAME.
87298         * modules/gethostname (Depends-on): Add unistd.
87299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87300         (Include): Specify <unistd.h>.
87301         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
87302         HAVE_GETHOSTNAME.
87303         * tests/test-gethostname.c: Include <unistd.h> first.
87305 2008-10-21  Bruno Haible  <bruno@clisp.org>
87307         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
87308         * modules/select-tests (Depends-on): Likewise.
87309         Reported by Simon Josefsson.
87311 2008-10-21  Simon Josefsson  <simon@josefsson.org>
87313         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
87314         * lib/accept.c: New file, based on winsock.c.
87315         * lib/bind.c: New file, based on winsock.c.
87316         * lib/connect.c: New file, based on winsock.c.
87317         * lib/getpeername.c: New file, based on winsock.c.
87318         * lib/getsockname.c: New file, based on winsock.c.
87319         * lib/getsockopt.c: New file, based on winsock.c.
87320         * lib/ioctl.c: New file, based on winsock.c.
87321         * lib/listen.c: New file, based on winsock.c.
87322         * lib/recv.c: New file, based on winsock.c.
87323         * lib/recvfrom.c: New file, based on winsock.c.
87324         * lib/send.c: New file, based on winsock.c.
87325         * lib/sendto.c: New file, based on winsock.c.
87326         * lib/setsockopt.c: New file, based on winsock.c.
87327         * lib/shutdown.c: New file, based on winsock.c.
87328         * lib/socket.c: New file, based on winsock.c.
87329         * lib/w32sock.h: New file, based on winsock.c.
87330         * lib/winsock.c: Remove file.
87331         * modules/accept: Likewise.
87332         * modules/bind: Likewise.
87333         * modules/connect: Likewise.
87334         * modules/getpeername: Likewise.
87335         * modules/getsockname: Likewise.
87336         * modules/getsockopt: Likewise.
87337         * modules/ioctl: Likewise.
87338         * modules/listen: Likewise.
87339         * modules/recv: Likewise.
87340         * modules/recvfrom: Likewise.
87341         * modules/send: Likewise.
87342         * modules/sendto: Likewise.
87343         * modules/setsockopt: Likewise.
87344         * modules/shutdown: Likewise.
87345         * modules/socket: Use socket.c instead of winsock.c.
87346         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
87347         * doc/posix-functions/accept.texi: Doc fix.
87348         * doc/posix-functions/bind.texi: Doc fix.
87349         * doc/posix-functions/close.texi: Doc fix.
87350         * doc/posix-functions/connect.texi: Doc fix.
87351         * doc/posix-functions/getpeername.texi: Doc fix.
87352         * doc/posix-functions/getsockname.texi: Doc fix.
87353         * doc/posix-functions/getsockopt.texi: Doc fix.
87354         * doc/posix-functions/ioctl.texi: Doc fix.
87355         * doc/posix-functions/listen.texi: Doc fix.
87356         * doc/posix-functions/recv.texi: Doc fix.
87357         * doc/posix-functions/recvfrom.texi: Doc fix.
87358         * doc/posix-functions/send.texi: Doc fix.
87359         * doc/posix-functions/sendto.texi: Doc fix.
87360         * doc/posix-functions/setsockopt.texi: Doc fix.
87361         * doc/posix-functions/shutdown.texi: Doc fix.
87362         * doc/posix-functions/socket.texi: Doc fix.
87364 2008-10-20  Bruno Haible  <bruno@clisp.org>
87366         Take into account the role of SIGABRT_COMPAT on Windows 2008.
87367         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
87368         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
87369         as an alias for SIGABRT.
87370         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
87371         (sigaction): Map it to SIGABRT.
87372         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
87374 2008-10-20  Bruno Haible  <bruno@clisp.org>
87376         * lib/fts.c: Don't include lstat.h.
87377         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
87379         Move the lstat() declaration to <sys/stat.h>.
87380         * lib/lstat.h: Remove file.
87381         * lib/sys_stat.in.h: Add special invocation convention.
87382         (lstat): New declaration.
87383         * lib/lstat.c (orig_lstat): New function.
87384         (rpl_lstat): Use orig_lstat instead of lstat.
87385         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
87386         AC_C_INLINE. Set REPLACE_LSTAT.
87387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
87388         and REPLACE_LSTAT.
87389         * modules/lstat (Files): Remove lib/lstat.h.
87390         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
87391         (Include): Specify <sys/stat.h> instead of lstat.h.
87392         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
87393         REPLACE_LSTAT.
87394         * NEWS: Mention the change.
87396 2008-10-20  Bruno Haible  <bruno@clisp.org>
87398         * modules/posix_spawn-tests: New file.
87399         * tests/test-posix_spawn3.c: New file.
87401 2008-10-20  Bruno Haible  <bruno@clisp.org>
87403         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
87404         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
87405         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
87406         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
87407         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
87409 2008-10-20  Bruno Haible  <bruno@clisp.org>
87411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
87412         of posix_spawn on AIX 5.3.
87414 2008-10-20  Bruno Haible  <bruno@clisp.org>
87416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
87418 2008-10-20  Bruno Haible  <bruno@clisp.org>
87420         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
87421         of AC_LANG_PROGRAM.
87423 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87425         * lib/netdb.in.h: Don't define GNU specific constants until they
87426         are supported or needed.  Reported by Bruno Haible
87427         <bruno@clisp.org>.
87429 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87431         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
87433 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87435         * lib/getaddrinfo.h: Remove file.
87436         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
87437         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
87438         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
87439         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
87440         * modules/netdb: Substitute GNULIB_GETADDRINFO.
87441         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
87442         * tests/test-getaddrinfo.c: Likewise.
87443         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
87444         * NEWS: Mention change.
87446 2008-10-19  Bruno Haible  <bruno@clisp.org>
87448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
87450 2008-10-19  Bruno Haible  <bruno@clisp.org>
87452         * lib/wait-process.c: Include simply <sys/wait.h>.
87453         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
87454         WIFSTOPPED): Remove fallback definitions.
87455         * modules/wait-process (Depends-on): Add sys_wait.
87457         New module 'sys_wait'.
87458         * modules/sys_wait: New file.
87459         * lib/sys_wait.in.h: New file, partially copied from
87460         lib/wait-process.c.
87461         * m4/sys_wait_h.m4: New file.
87462         * doc/posix-headers/sys_wait.texi: Mention the new module.
87464 2008-10-19  Bruno Haible  <bruno@clisp.org>
87466         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
87468 2008-10-19  Bruno Haible  <bruno@clisp.org>
87470         Assume that waitpid() fills an 'int' status, not a 'union wait'.
87471         * lib/wait-process.c (WAIT_T): Remove type.
87472         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
87473         (wait_subprocess): Update.
87475 2008-10-19  Bruno Haible  <bruno@clisp.org>
87477         New module 'atoll'.
87478         * modules/atoll: New file.
87479         * lib/stdlib.in.h (atoll): New declaration.
87480         * lib/atoll.c: New file, from glibc with modifications.
87481         * m4/atoll.m4: New file.
87482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
87483         HAVE_ATOLL.
87484         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
87485         * doc/posix-functions/atoll.texi: Mention the new module.
87487 2008-10-19  Bruno Haible  <bruno@clisp.org>
87489         Add strtoull() declaration to <stdlib.h>.
87490         * lib/stdlib.in.h (strtoull): New declaration.
87491         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
87492         Set HAVE_STRTOULL.
87493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
87494         HAVE_STRTOULL.
87495         * modules/strtoull (Depends-on): Add stdlib.
87496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87497         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
87498         HAVE_STRTOULL.
87500 2008-10-19  Bruno Haible  <bruno@clisp.org>
87502         Add strtoll() declaration to <stdlib.h>.
87503         * lib/stdlib.in.h (strtoll): New declaration.
87504         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
87505         Set HAVE_STRTOLL.
87506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
87507         HAVE_STRTOLL.
87508         * modules/strtoll (Depends-on): Add stdlib.
87509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87510         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
87512 2008-10-19  Bruno Haible  <bruno@clisp.org>
87514         * modules/bcopy (Depends-on): Add strings.
87515         (Include): Specify <strings.h>.
87517 2008-10-19  Bruno Haible  <bruno@clisp.org>
87519         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
87521 2008-10-19  Bruno Haible  <bruno@clisp.org>
87523         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
87524         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
87525         mingw.
87527 2008-10-19  Bruno Haible  <bruno@clisp.org>
87529         * lib/atanl.c: Don't include isnanl.h.
87530         * lib/cosl.c: Likewise.
87531         * lib/ldexpl.c: Likewise.
87532         * lib/logl.c: Likewise.
87533         * lib/sinl.c: Likewise.
87534         * lib/sqrtl.c: Likewise.
87535         * lib/tanl.c: Likewise.
87537         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
87538         * lib/isnanf.h: Remove file.
87539         * lib/isnand.h: Remove file.
87540         * lib/isnanl.h: Remove file.
87541         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
87542         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
87543         macros.
87544         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
87545         HAVE_ISNANF, don't define it as a C macro.
87546         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
87547         HAVE_ISNAND, don't define it as a C macro.
87548         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
87549         HAVE_ISNANL, don't define it as a C macro.
87550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
87551         HAVE_ISNAN[FDL].
87552         * modules/isnanf (Files): Remove lib/isnanf.h.
87553         (Depends-on): Add math.
87554         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87555         (Include): Specify <math.h> instead of isnanf.h.
87556         * modules/isnand (Files): Remove lib/isnand.h.
87557         (Depends-on): Add math.
87558         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87559         (Include): Specify <math.h> instead of isnand.h.
87560         * modules/isnanl (Files): Remove lib/isnanl.h.
87561         (Depends-on): Add math.
87562         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87563         (Include): Specify <math.h> instead of isnanl.h.
87564         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
87565         HAVE_ISNAN[FDL].
87566         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
87567         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
87568         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
87569         * NEWS: Mention the change.
87571 2008-10-18  Bruno Haible  <bruno@clisp.org>
87573         Add getusershell(), setusershell(), endusershell() declarations to
87574         <unistd.h>.
87575         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
87576         declarations.
87577         * lib/getusershell.c: Include unistd.h.
87578         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
87579         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87580         HAVE_GETUSERSHELL.
87581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
87582         and HAVE_GETUSERSHELL.
87583         * modules/getusershell (Depends-on): Add unistd, extensions.
87584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87585         (Include): Specify <unistd.h>.
87586         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
87587         HAVE_GETUSERSHELL.
87589 2008-10-18  Bruno Haible  <bruno@clisp.org>
87591         Add a getloadavg() declaration to <stdlib.h>.
87592         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
87593         getloadavg declaration.
87594         (getloadavg): New declaration.
87595         * lib/getloadavg.c: Include <stdlib.h> first.
87596         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
87597         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
87598         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
87599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
87600         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87601         * modules/getloadavg (Depends-on): Add stdlib, extensions.
87602         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87603         (Include): Specify <stdlib.h>.
87604         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
87605         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87607 2008-10-18  Bruno Haible  <bruno@clisp.org>
87609         * lib/dirchownmod.c: Don't include lchmod.h.
87611         Move the lchmod() declaration to <sys/stat.h>.
87612         * lib/lchmod.h: Remove file.
87613         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
87614         (lchmod): New declaration, moved here from lib/lchown.h.
87615         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
87616         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
87617         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
87618         and HAVE_LCHMOD.
87619         * modules/lchmod (Files): Remove lib/lchmod.h.
87620         (Depends-on): Add sys_stat, extensions.
87621         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
87622         (Include): Specify <sys/stat.h> instead of lchmod.h.
87623         * modules/sys_stat (Depends-on): Add link-warning.
87624         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
87625         definition of GL_LINK_WARNING.
87626         * NEWS: Mention the change.
87628 2008-10-18  Bruno Haible  <bruno@clisp.org>
87630         * lib/fchdir.c: Don't include dirfd.h.
87631         * lib/fts.c: Likewise.
87632         * lib/getcwd.c: Likewise.
87633         * lib/glob.c: Likewise.
87635         Move the dirfd() declaration to <dirent.h>.
87636         * lib/dirfd.h: Remove file.
87637         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
87638         (dirfd): New declaration.
87639         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
87640         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
87641         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
87642         HAVE_DECL_DIRFD.
87643         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
87644         HAVE_DECL_DIRFD.
87645         * modules/dirfd (Files): Remove lib/dirfd.h.
87646         (Depends-on): Add dirent, extensions.
87647         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
87648         (Include): Specify <dirent.h> instead of dirfd.h.
87649         * modules/dirent (Depends-on): Add link-warning.
87650         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
87651         definition of GL_LINK_WARNING.
87652         * NEWS: Mention the change.
87654 2008-10-18  Bruno Haible  <bruno@clisp.org>
87656         Move the euidaccess() declaration to <unistd.h>.
87657         * lib/euidaccess.h: Remove file.
87658         * lib/unistd.in.h (euidaccess): New declaration.
87659         * lib/euidaccess.c: Don't include euidaccess.h.
87660         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
87661         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
87662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
87663         and HAVE_EUIDACCESS.
87664         * modules/euidaccess (Files): Remove lib/euidaccess.h.
87665         (Depends-on): Add unistd.
87666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87667         (Include): Specify <unistd.h> instead of euidaccess.h.
87668         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
87669         HAVE_EUIDACCESS.
87670         * NEWS: Mention the change.
87672 2008-10-18  Bruno Haible  <bruno@clisp.org>
87674         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
87676         Move the getdomainname() declaration to <unistd.h>.
87677         * lib/getdomainname.h: Remove file.
87678         * lib/unistd.in.h (getdomainname): New declaration.
87679         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
87680         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
87681         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87682         HAVE_GETDOMAINNAME.
87683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87684         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
87685         * modules/getdomainname (Files): Remove lib/getdomainname.h.
87686         (Depends-on): Add unistd, extensions.
87687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87688         (Includes): Specify <unistd.h> instead of getdomainname.h.
87689         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
87690         HAVE_GETDOMAINNAME.
87691         * NEWS: Mention the change.
87693 2008-10-18  Bruno Haible  <bruno@clisp.org>
87695         * modules/dirent: New file.
87696         * m4/dirent_h.m4: New file.
87697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
87698         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
87699         * modules/fchdir (Files): Remove lib/dirent.in.h.
87700         (Depends-on): Add dirent.
87701         (Makefile.am): Move rules to modules/dirent.
87702         * doc/posix-headers/dirent.texi: Mention the new module.
87704 2008-10-18  Bruno Haible  <bruno@clisp.org>
87706         Avoid -Wunused-parameter warnings in public gnulib header files.
87707         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
87708         macro.
87709         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
87711 2008-10-18  Bruno Haible  <bruno@clisp.org>
87713         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
87714         * doc/glibc-functions/error.texi: Mention the module 'error'.
87715         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
87716         * doc/glibc-functions/getdomainname.texi: Mention the module
87717         'getdomainname'.
87718         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
87719         * doc/glibc-functions/getpagesize.texi: Mention the module
87720         'getpagesize'.
87721         * doc/glibc-functions/getusershell.texi: Mention the module
87722         'getusershell'.
87723         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
87724         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
87725         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
87726         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
87727         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
87728         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
87729         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
87730         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
87731         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
87732         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
87733         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
87734         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
87735         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
87736         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
87738 2008-10-17  Bruno Haible  <bruno@clisp.org>
87740         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
87741         HP-UX and IRIX, use -0.0L.
87742         * tests/test-ceill.c (minus_zero): Likewise.
87743         * tests/test-floorl.c (minus_zero): Likewise.
87744         * tests/test-frexpl.c (minus_zero): Likewise.
87745         * tests/test-isnan.c (minus_zerol): Likewise.
87746         * tests/test-isnanl.h (minus_zero): Likewise.
87747         * tests/test-ldexpl.c (minus_zero): Likewise.
87748         * tests/test-roundl.c (minus_zero): Likewise.
87749         * tests/test-signbit.c (minus_zerol): Likewise.
87750         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87751         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87752         * tests/test-truncl.c (minus_zero): Likewise.
87753         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87754         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87755         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
87756         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87758 2008-10-17  Bruno Haible  <bruno@clisp.org>
87760         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
87761         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
87762         that it gets activated only for gcc >= 3.0.
87763         * lib/dirent.in.h: Likewise.
87764         * lib/errno.in.h: Likewise.
87765         * lib/fcntl.in.h: Likewise.
87766         * lib/float.in.h: Likewise.
87767         * lib/iconv.in.h: Likewise.
87768         * lib/inttypes.in.h: Likewise.
87769         * lib/locale.in.h: Likewise.
87770         * lib/math.in.h: Likewise.
87771         * lib/netdb.in.h: Likewise.
87772         * lib/netinet_in.in.h: Likewise.
87773         * lib/search.in.h: Likewise.
87774         * lib/signal.in.h: Likewise.
87775         * lib/spawn.in.h: Likewise.
87776         * lib/stdarg.in.h: Likewise.
87777         * lib/stdint.in.h: Likewise.
87778         * lib/stdio.in.h: Likewise.
87779         * lib/stdlib.in.h: Likewise.
87780         * lib/string.in.h: Likewise.
87781         * lib/strings.in.h: Likewise.
87782         * lib/sys_file.in.h: Likewise.
87783         * lib/sys_ioctl.in.h: Likewise.
87784         * lib/sys_select.in.h: Likewise.
87785         * lib/sys_socket.in.h: Likewise.
87786         * lib/sys_stat.in.h: Likewise.
87787         * lib/sys_time.in.h: Likewise.
87788         * lib/sysexits.in.h: Likewise.
87789         * lib/time.in.h: Likewise.
87790         * lib/unistd.in.h: Likewise.
87791         * lib/wchar.in.h: Likewise.
87792         * lib/wctype.in.h: Likewise.
87793         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87795 2008-10-17  Jim Meyering  <meyering@redhat.com>
87797         ignore-value: don't depend on inline module
87798         * modules/ignore-value (Depends-on): Remove 'inline'.
87799         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
87800         Suggestion from Bruno Haible.
87802 2008-10-17  Bruno Haible  <bruno@clisp.org>
87804         New implementation of condition variables for Win32.
87805         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
87806         (gl_linked_waitqueue_t): New type.
87807         (gl_cond_t): Use it.
87808         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
87809         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
87810         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
87811         (glthread_cond_init_func, glthread_cond_wait_func,
87812         glthread_cond_timedwait_func, glthread_cond_signal_func,
87813         glthread_cond_broadcast_func, glthread_cond_destroy_func):
87814         Reimplemented on the basis of gl_linked_waitqueue_t.
87815         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
87816         gl_waitqueue_t.
87817         (gl_rwlock_t): Update.
87818         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
87820 2008-10-17  Simon Josefsson  <simon@josefsson.org>
87822         * modules/recvfrom (Depends-on): Add dependency on getpeername.
87823         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87825 2008-10-17  Jim Meyering  <meyering@redhat.com>
87827         ignore-value: new module
87828         * modules/ignore-value: New file.
87829         * lib/ignore-value.h: New file.
87830         * MODULES.html.sh (Compiler warning management): New section,
87831         just for this module.  More to come.
87833 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
87835         open-safer.c: avoid 'signed and unsigned in conditional...' warning
87836         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
87837         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
87839 2008-10-16  Jim Meyering  <meyering@redhat.com>
87841         openat-die.c: avoid 'no previous prototype' warning
87842         * lib/openat-die.c: Include "openat.h".
87843         Reported by Reuben Thomas <rrt@sc3d.org>.
87845 2008-10-16  Simon Josefsson  <simon@josefsson.org>
87847         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
87848         * lib/netdb.in.h: Fix typo.
87849         Reported by Bruno Haible  <bruno@clisp.org>
87851         * lib/netdb.in.h: Include sys/socket.h for platforms without
87852         netdb.h, to get structures like hostent on MinGW.
87853         * modules/netdb (Depends-on): Add sys_socket.
87855 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87857         * modules/netdb, modules/netdb-tests: New file.
87858         * m4/netdb_h.m4: New file.
87859         * lib/netdb.in.h: Add, currently just an empty file pending
87860         definitions.
87861         * tests/test-netdb.c: New file.
87862         * doc/posix-headers/netdb.texi: Mention that we replace it if
87863         needed.
87864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87865         netdb.
87867 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87869         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
87870         with code.
87872 2008-10-13  Bruno Haible  <bruno@clisp.org>
87874         * lib/glthread/cond.c (glthread_cond_wait_func,
87875         glthread_cond_timedwait_func): Add a comment.
87877 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87879         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
87880         * tests/test-select.c: Likewise,
87882 2008-10-13  Bruno Haible  <bruno@clisp.org>
87884         * lib/glthread/cond.c (glthread_cond_wait_func,
87885         glthread_cond_timedwait_func): Fix variable name.
87886         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87888 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
87890         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
87891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
87892         struct sockaddr.sa_len.
87893         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87895 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87897         * build-aux/pmccabe2html: Add css and css_url parameters.
87899 2008-10-12  Bruno Haible  <bruno@clisp.org>
87901         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87902         calling aclx_get.
87903         Reported by Rainer Tammer <tammer@tammer.net>.
87905 2008-10-12  Bruno Haible  <bruno@clisp.org>
87907         Use msvcrt aware primitives for creation/termination of Win32 threads.
87908         * lib/glthread/thread.c: Include <process.h>.
87909         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87910         (wrapper_func): Update signature.
87911         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87913 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87914             Bruno Haible  <bruno@clisp.org>
87916         Provide a Win32 implementation of the 'cond' module.
87917         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87918         * lib/glthread/cond.c (glthread_cond_init_func,
87919         glthread_cond_wait_func, glthread_cond_timedwait_func,
87920         glthread_cond_signal_func, glthread_cond_broadcast_func,
87921         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87922         * modules/cond (Dependencies): Add gettimeofday.
87924 2008-10-11  Bruno Haible  <bruno@clisp.org>
87926         Make sleep work on older versions of mingw.
87927         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87928         only whether it exists.
87929         * doc/posix-functions/sleep.texi: Mention the problem with older
87930         versions of mingw.
87932 2008-10-11  Bruno Haible  <bruno@clisp.org>
87934         New module 'shutdown'.
87935         * modules/shutdown: New file.
87936         * lib/sys_socket.in.h (shutdown): New declaration.
87937         * lib/winsock.c (shutdown): New function.
87938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87939         GNULIB_SHUTDOWN.
87940         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87941         * doc/posix-functions/shutdown.texi: Document the new module.
87943 2008-10-11  Jim Meyering  <meyering@redhat.com>
87945         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87947 2008-10-11  Bruno Haible  <bruno@clisp.org>
87949         New module 'fclose'.
87950         * modules/fclose: New file.
87951         * lib/stdio.in.h (fclose): New declaration.
87952         * lib/fclose.c: New file.
87953         * m4/fclose.m4: New file.
87954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87955         REPLACE_FCLOSE.
87956         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87957         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87958         REPLACE_FCLOSE.
87959         * modules/close (Depends-on): fclose.
87960         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87962 2008-10-11  Bruno Haible  <bruno@clisp.org>
87964         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87965         set errno and don't call _close.
87967 2008-10-10  Bruno Haible  <bruno@clisp.org>
87969         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87970         ACL, not afterwards. Fixes test failure on Cygwin.
87972 2008-10-09  Ben Pfaff  <blp@gnu.org>
87974         * build-aux/announce-gen: Fix gnulib version related part of usage
87975         message.  Die with a useful error message if no tarballs are
87976         found.
87978 2008-10-10  Jim Meyering  <meyering@redhat.com>
87980         bootstrap: use git's --depth=N option only if it's supported
87981         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87982         recognize the --depth option.  Reported by Pádraig Brady.
87984 2008-10-09  Bruno Haible  <bruno@clisp.org>
87986         New module 'ioctl'.
87987         * modules/ioctl: New file.
87988         * lib/sys_socket.in.h (ioctl): Remove declaration.
87989         * lib/winsock.c: Include <sys/ioctl.h>.
87990         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87991         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87992         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87993         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87994         * doc/posix-functions/ioctl.texi: Mention the new module.
87996 2008-10-09  Bruno Haible  <bruno@clisp.org>
87998         New module 'sys_ioctl'.
87999         * lib/sys_ioctl.in.h: New file.
88000         * m4/sys_ioctl_h.m4: New file.
88001         * modules/sys_ioctl: New file.
88002         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
88004 2008-10-09  Bruno Haible  <bruno@clisp.org>
88006         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
88007         * lib/winsock.c: Include <stdarg.h>.
88008         (rpl_ioctl): Change to second argument 'int' and then varargs.
88010 2008-10-09  Bruno Haible  <bruno@clisp.org>
88012         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
88013         when the sys_socket module is present and the system has <winsock2.h>.
88015 2008-10-09  Bruno Haible  <bruno@clisp.org>
88017         * doc/posix-functions/close.texi: Mention module 'close' instead of
88018         module 'sys_socket'.
88020 2008-10-09  Bruno Haible  <bruno@clisp.org>
88022         * doc/glibc-headers/sys_ioctl.texi: New file.
88023         * doc/gnulib.texi: Include it.
88025 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88026             Bruno Haible  <bruno@clisp.org>
88028         Combine the two replacements of 'close'.
88029         * lib/sys_socket.in.h (close): Define to a reminder to include
88030         <unistd.h>.
88031         (_gl_close_fd_maybe_socket): New declaration.
88032         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
88033         * lib/winsock.c (close): Remove undefinition.
88034         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
88035         needed for the gnulib module 'close'.
88036         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
88037         define to an error symbol or to a warning, if suitable.
88038         * lib/close.c: Include <sys/socket.h>.
88039         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
88040         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
88041         UNISTD_H_HAVE_WINSOCK2_H.
88042         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
88043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88044         UNISTD_H_HAVE_WINSOCK2_H.
88045         * modules/sys_socket (Files): Add m4/unistd_h.m4.
88046         (configure.ac): Set a module indicator.
88047         (Makefile.am): Substitute GNULIB_CLOSE.
88048         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
88049         * modules/poll-tests (Depends-on): Add close.
88050         * modules/select-tests (Depends-on): Likewise.
88052 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88053             Bruno Haible  <bruno@clisp.org>
88055         New module 'close'.
88056         * modules/close: New file.
88057         * lib/unistd.in.h (close): Move declaration out of the
88058         FCHDIR_REPLACEMENT scope.
88059         (_gl_unregister_fd): New declaration.
88060         * lib/close.c: New file.
88061         * lib/fchdir.c (rpl_close): Remove function.
88062         * m4/close.m4: New file.
88063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
88064         close.
88065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
88066         REPLACE_CLOSE.
88067         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
88068         REPLACE_CLOSE.
88069         * modules/fchdir (Depends-on): Add close.
88071 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88072             Bruno Haible  <bruno@clisp.org>
88074         * lib/fcntl.in.h (open): Simplify conditionals.
88075         (_gl_register_fd): New declaration.
88076         * lib/fchdir.c (rpl_open): Remove function.
88077         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
88078         also.
88079         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
88080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
88081         open.
88083 2008-10-09  Jim Meyering  <meyering@redhat.com>
88085         GNUmakefile: use the more name-space-friendly "_version"
88086         * top/GNUmakefile (_dummy): Update.
88087         (_version): Rename from "version".
88089 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88090             Bruno Haible  <bruno@clisp.org>
88092         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
88093         rpl_close.
88094         (_gl_register_fd): New function, extracted from rpl_open.
88095         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
88096         (rpl_open, rpl_opendir): Use _gl_register_fd.
88098 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
88100         Fix organization of 'open' replacement.
88101         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
88102         (gl_FUNC_OPEN): Use it.
88103         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
88105 2008-10-08  Bruno Haible  <bruno@clisp.org>
88107         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
88109 2008-10-08  Simon Josefsson  <simon@josefsson.org>
88111         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
88112         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
88113         listen).
88115 2008-10-08  Eric Blake  <ebb9@byu.net>
88117         GNUmakefile: add 'make version' target
88118         * top/GNUmakefile (_curr-ver): Split version update rules...
88119         (version): ...into a target.
88121 2008-10-07  Bruno Haible  <bruno@clisp.org>
88123         Use a more portable replacement expression for -0.0L.
88124         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
88125         instead of -0.0L. Fix m4 quotation.
88127         * tests/test-signbit.c: Include <float.h>.
88128         (minus_zero): New variable.
88129         (test_signbitl): Use minus_zero instead of -zero.
88130         * modules/signbit-tests (Depends-on): Add float.
88132         * tests/test-ceill.c: Include <float.h>.
88133         (zero): Remove variable.
88134         (minus_zero): New variable.
88135         (main): Use minus_zero instead of -zero.
88136         * modules/ceill-tests (Depends-on): Add float.
88138         * tests/test-floorl.c: Include <float.h>.
88139         (zero): Remove variable.
88140         (minus_zero): New variable.
88141         (main): Use minus_zero instead of -zero.
88142         * modules/floorl-tests (Depends-on): Add float.
88144         * tests/test-roundl.c: Include <float.h>.
88145         (zero): Remove variable.
88146         (minus_zero): New variable.
88147         (main): Use minus_zero instead of -zero.
88148         * modules/roundl-tests (Depends-on): Add float.
88150         * tests/test-truncl.c: Include <float.h>.
88151         (zero): Remove variable.
88152         (minus_zero): New variable.
88153         (main): Use minus_zero instead of -zero.
88154         * modules/truncl-tests (Depends-on): Add float.
88156         * tests/test-frexpl.c (zero): Remove variable.
88157         (minus_zero): New variable.
88158         (main): Use minus_zero instead of -zero.
88159         * modules/frexpl-tests (Depends-on): Add float.
88161         * tests/test-isnan.c (zerol): Remove variable.
88162         (minus_zerol): New variable.
88163         (test_long_double): Use minus_zerol instead of -zerol.
88164         * modules/isnan-tests (Depends-on): Add float.
88166         * tests/test-isnanl.h (zero): Remove variable.
88167         (minus_zero): New variable.
88168         (main): Use minus_zero instead of -zero.
88169         * modules/isnanl-nolibm-tests (Depends-on): Add float.
88170         * modules/isnanl-tests (Depends-on): Add float.
88172         * tests/test-ldexpl.c (zero): Remove variable.
88173         (minus_zero): New variable.
88174         (main): Use minus_zero instead of -zero.
88175         * modules/ldexpl-tests (Depends-on): Add float.
88177         * tests/test-snprintf-posix.h (zerol): Remove variable.
88178         (minus_zerol): New variable.
88179         (test_function): Use minus_zerol instead of -zerol.
88180         * modules/snprintf-posix-tests (Depends-on): Add float.
88181         * modules/vsnprintf-posix-tests (Depends-on): Add float.
88183         * tests/test-sprintf-posix.h (zerol): Remove variable.
88184         (minus_zerol): New variable.
88185         (test_function): Use minus_zerol instead of -zerol.
88186         * modules/sprintf-posix-tests (Depends-on): Add float.
88187         * modules/vsprintf-posix-tests (Depends-on): Add float.
88189         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
88190         (minus_zerol): New variable.
88191         (test_function): Use minus_zerol instead of -zerol.
88192         * modules/vasnprintf-posix-tests (Depends-on): Add float.
88194         * tests/test-vasprintf-posix.c (zerol): Remove variable.
88195         (minus_zerol): New variable.
88196         (test_function): Use minus_zerol instead of -zerol.
88197         * modules/vasprintf-posix-tests (Depends-on): Add float.
88199 2008-10-07  Simon Josefsson  <simon@josefsson.org>
88201         * MODULES.html.sh (Support for building documentation): Mention
88202         pmccabe2html.  Sort entries.
88204         Add pmccabe2html module, from gnupdf.
88205         * build-aux/pmccabe.css: New file.
88206         * build-aux/pmccabe2html: New file.
88207         * m4/pmccabe2html.m4: New file.
88208         * modules/pmccabe2html: New file.
88210 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
88212         flock: new module
88213         * MODULES.html.sh: Add to list of modules.
88214         * lib/flock.c: flock implementation for Windows and Unix systems
88215         which have fcntl.
88216         * doc/glibc-functions/flock.texi: Update documentation.
88217         * lib/sys_file.in.h: <sys/file.h> header file.
88218         * m4/flock.m4: M4 macros.
88219         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
88220         * modules/flock: flock module.
88221         * modules/flock-tests: flock tests module.
88222         * modules/sys_file: sys/file.h module.
88223         * tests/test-flock.c: test suite for flock.
88225 2008-10-06  Jim Meyering  <meyering@redhat.com>
88227         bootstrap: check for LT_INIT more portably still ;-)
88228         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
88229         Spotted by Bruno Haible.
88231 2008-10-06  Eric Blake  <ebb9@byu.net>
88233         test-signbit: avoid tripping Irix cc bug on -0.0L
88234         * tests/test-signbit.c (minus_zerol): Delete, and replace with
88235         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
88236         entire testsuite consistent and avoids an Irix 6.2 bug.
88238 2008-10-05  Bruno Haible  <bruno@clisp.org>
88239             Jim Meyering  <jim@meyering.net>
88241         Add an option for ignoring EPIPE during close_stdout.
88242         * lib/closeout.h: Include <stdbool.h>.
88243         (close_stdout_set_ignore_EPIPE): New declaration.
88244         * lib/closeout.c: Include <stdbool.h>.
88245         (ignore_EPIPE): New variable.
88246         (close_stdout_set_ignore_EPIPE): New function.
88247         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
88248         * lib/close-stream.c (close_stream): Mention the possible EPIPE
88249         failure.
88250         * modules/closeout (Depends-on): Add stdbool.
88252 2008-10-05  Bruno Haible  <bruno@clisp.org>
88254         * modules/accept: New file.
88255         * modules/bind: New file.
88256         * modules/connect: New file.
88257         * modules/getpeername: New file.
88258         * modules/getsockname: New file.
88259         * modules/getsockopt: New file.
88260         * modules/listen: New file.
88261         * modules/recv: New file.
88262         * modules/recvfrom: New file.
88263         * modules/send: New file.
88264         * modules/sendto: New file.
88265         * modules/setsockopt: New file.
88266         * modules/socket: New file.
88267         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
88268         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
88269         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
88270         the particular module is requested. Add a link warning when the
88271         particular module is not requested.
88272         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
88273         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
88274         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
88275         the particular module is requested.
88276         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
88277         gl_SYS_SOCKET_H_DEFAULTS): New macros.
88278         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
88279         * modules/sys_socket (Depends-on): Add link-warning.
88280         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
88281         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
88282         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
88283         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
88284         GL_LINK_WARNING.
88285         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
88286         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
88287         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
88288         * doc/posix-functions/getpeername.texi: Mention the new module
88289         'getpeername'.
88290         * doc/posix-functions/getsockname.texi: Mention the new module
88291         'getsockname'.
88292         * doc/posix-functions/getsockopt.texi: Mention the new module
88293         'getsockopt'.
88294         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
88295         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
88296         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
88297         * doc/posix-functions/send.texi: Mention the new module 'send'.
88298         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
88299         * doc/posix-functions/setsockopt.texi: Mention the new module
88300         'setsockopt'.
88301         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
88302         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
88303         listen, connect, accept.
88304         * modules/select-tests (Depends-on): Likewise.
88306 2008-10-05  Bruno Haible  <bruno@clisp.org>
88308         * lib/winsock.c (strerror): Remove unused #undef.
88309         (rpl_close): Remove unused local variable.
88311         * modules/sys_socket (Depends-on); Add errno.
88313 2008-10-05  Bruno Haible  <bruno@clisp.org>
88315         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
88316         (select): Add a link warning when the 'select' module is not used.
88317         * modules/sys_select (Depends-on): Add link-warning.
88318         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
88319         Suggested by Paolo Bonzini.
88321 2008-10-05  Jim Meyering  <meyering@redhat.com>
88323         bootstrap: check for LT_INIT more portably
88324         * build-aux/bootstrap: Avoid using grep -E, since it's not
88325         portable enough.  Suggestion from Bruno Haible.
88327 2008-10-05  Bruno Haible  <bruno@clisp.org>
88329         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
88330         as being fixed by gnulib.
88332 2008-10-05  Bruno Haible  <bruno@clisp.org>
88334         * modules/select-tests: New file, mostly copied from
88335         modules/sys_select-tests.
88336         * tests/test-select.c: New file, mostly copied from
88337         tests/test-sys_select.c.
88338         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
88339         * modules/sys_select-tests (Depends-on): Remove all dependencies.
88340         (Makefile.am): Remove test_sys_select_LDADD.
88342         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
88343         to an undefined symbol, for an error message.
88344         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
88345         (gl_SYS_SELECT_H_DEFAULTS): New macro.
88346         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
88347         winsock-select.c here.
88348         * modules/sys_select (Files): Remove lib/winsock-select.c.
88349         (Depends-on): Remove alloca.
88350         (Makefile.am): Substitute GNULIB_SELECT.
88351         * modules/select: New file.
88352         * doc/posix-functions/select.texi: Update.
88354 2008-10-05  Bruno Haible  <bruno@clisp.org>
88356         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
88357         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
88358         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
88359         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
88360         getdtablesize.
88361         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
88362         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
88364 2008-10-05  Bruno Haible  <bruno@clisp.org>
88366         * modules/getdtablesize-tests: New file.
88367         * tests/test-getdtablesize.c: New file.
88369         New module 'getdtablesize'.
88370         * lib/unistd.in.h (getdtablesize): New declaration.
88371         * lib/getdtablesize.c: New file.
88372         * m4/getdtablesize.m4: New file.
88373         * modules/getdtablesize: New file.
88374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88375         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
88376         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
88377         HAVE_GETDTABLESIZE.
88378         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
88380 2008-10-05  Bruno Haible  <bruno@clisp.org>
88382         * modules/sched (Makefile.am): Fix typo.
88383         Reported by Simon Josefsson.
88385 2008-10-05  Jim Meyering  <meyering@redhat.com>
88387         bootstrap: check for LT_INIT, too
88388         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
88389         are deprecated.  Suggestion from Ralf Wildenhues.
88391 2008-10-05  Bruno Haible  <bruno@clisp.org>
88393         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
88394         overriding them by ours.
88395         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
88397 2008-10-05  Jim Meyering  <meyering@redhat.com>
88399         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
88400         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
88401         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
88403 2008-10-04  Bruno Haible  <bruno@clisp.org>
88405         * modules/dup2 (License): Change to LGPLv2+.
88406         * modules/sleep (License): Likewise.
88407         * modules/perror (License): Likewise.
88408         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
88409         Blake.
88410         * modules/signal (License): Likewise.
88411         * modules/sigprocmask (License): Likewise.
88412         * modules/raise (License): Change to LGPLv2+, with approval by Jim
88413         Meyering.
88415 2008-10-04  Bruno Haible  <bruno@clisp.org>
88417         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
88418         Reported by Rainer Tammer <tammer@tammer.net>.
88420 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
88421             Bruno Haible  <bruno@clisp.org>
88423         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
88424         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
88425         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
88427 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
88429         filevercmp: new module
88430         * lib/filevercmp.h: New function filevercmp comparing version strings.
88431         * lib/filevercmp.c: Implementation of filevercmp function.
88432         * modules/filevercmp: Module metadata.
88433         * tests/test-filevercmp.c: Unit test for new module.
88434         * modules/filevercmp-tests: Unit test metadata.
88435         * MODULES.html.sh: Add filevercmp module.
88437 2008-10-03  Bruno Haible  <bruno@clisp.org>
88439         * lib/c-ctype.h: Add comment.
88440         Reported by Jim Meyering.
88442 2008-10-02  Bruno Haible  <bruno@clisp.org>
88444         * modules/posix_spawn-internal (Depends-on): Add 'open'.
88446 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88448         * build-aux/bootstrap: Allow renaming bootstrap, and change the
88449         name of bootstrap.conf accordingly.
88451 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88453         * build-aux/bootstrap: Install git-merge-changelog configuration
88454         items into .gitconfig if needed.
88456 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88458         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
88459         git repository, and initialize/update it accordingly.
88461 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
88463         * modules/fsync-tests: New file.
88464         * tests/test-fsync.c: New file.
88466         New module 'fsync'.
88467         * lib/fsync.c: New file.
88468         * m4/fsync.m4: New file.
88469         * modules/fsync: New file.
88470         * lib/unistd.in.h (fsync): New declaration.
88471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
88472         GNULIB_FSYNC and HAVE_FSYNC.
88473         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
88474         * MODULES.html.sh (posix_functions): Add fsync.
88475         * doc/posix-functions/fsync.texi: Mention the new module.
88477 2008-10-02  Jim Meyering  <meyering@redhat.com>
88479         fts.c: sync with similar code from coreutils' remove.c
88480         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
88481         Guard also with "#if defined __linux__", since for now at least,
88482         this code is Linux-kernel-specific.
88484 2008-10-02  Jim Meyering  <meyering@redhat.com>
88486         fts: bug fixes
88487         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
88488         Include <sys/vfs.h>, not <sys/statfs.h>.
88490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
88491         Include <sys/vfs.h>, not <sys/statfs.h>.
88493 2008-10-01  Bruno Haible  <bruno@clisp.org>
88495         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
88496         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
88497         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
88498         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
88499         * doc/posix-functions/posix_spawnp.texi: Likewise.
88500         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
88501         whether posix_spawn actually works.
88502         * m4/pipe.m4 (gl_PIPE): Likewise.
88503         * modules/execute (Files): Add m4/posix_spawn.m4.
88504         * modules/pipe (Files): Add m4/posix_spawn.m4.
88505         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
88507 2008-10-01  Jim Meyering  <meyering@redhat.com>
88509         remove trailing spaces
88510         * NEWS: Likewise.
88511         * lib/poll.c (poll): Likewise.
88512         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
88513         * lib/winsock.c (rpl_close): Likewise.
88514         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
88515         * modules/yield: Likewise.
88516         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
88517         * tests/test-sys_select.c (connect_to_socket): Likewise.
88519         fts.c: adjust a new interface to be more generally useful
88520         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
88521         (fts_build): Adjust caller.
88523 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88525         * modules/cond-tests: New file.
88526         * tests/test-cond.c: New file.
88528 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88529             Bruno Haible  <bruno@clisp.org>
88531         * modules/cond (Dependencies): Add errno, time.
88532         * lib/glthread/cond.h: Include <time.h>.
88533         (gl_cond_define, gl_cond_define_initialized): Use the same definition
88534         across platforms.
88536 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88537             Bruno Haible  <bruno@clisp.org>
88539         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
88541 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88542             Bruno Haible  <bruno@clisp.org>
88544         * modules/tls-tests (Depends-on): Add thread, yield.
88545         (configure.ac): Remove all checks.
88546         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
88547         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88548         gl_thread_self): Remove definitions. Include glthread/thread.h and
88549         glthread/yield.h instead.
88550         (test_tls): Pass an additional NULL argument to gl_thread_join.
88552 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88553             Bruno Haible  <bruno@clisp.org>
88555         * modules/lock-tests (Depends-on): Add thread, yield.
88556         (configure.ac): Remove all checks.
88557         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
88558         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88559         gl_thread_self): Remove definitions. Include glthread/thread.h and
88560         glthread/yield.h instead.
88561         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
88562         additional NULL argument to gl_thread_join.
88564 2008-09-30  Bruno Haible  <bruno@clisp.org>
88566         Fix the Win32 implementation of the 'thread' module.
88567         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
88568         pointer type.
88569         (gl_thread_self): Invoke gl_thread_self_func.
88570         (gl_thread_self_func): New declaration.
88571         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
88572         (do_init_self_key, init_self_key): New functions.
88573         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
88574         Remove some fields.
88575         (running_threads, running_lock): Remove variables.
88576         (get_current_thread_handle): New function.
88577         (gl_thread_self_func, wrapper_func, glthread_create_func,
88578         glthread_join_func, gl_thread_exit_func): Largely rewritten and
88579         simplified.
88581 2008-09-30  Bruno Haible  <bruno@clisp.org>
88583         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
88584         files.
88586 2008-09-30  Jim Meyering  <meyering@redhat.com>
88588         fts.m4: correct the test for statfs.f_type
88589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
88590         when checking for statfs.f_type.
88592 2008-09-15  Simon Josefsson  <simon@josefsson.org>
88594         tests: avoid some compiler warnings
88595         * tests/test-memchr.c (main): Pass NULL indirectly.
88596         * tests/test-getdate.c (main): Remove unused variable 'ret'.
88598 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
88600         getdate.y: disallow countable dayshifts like "4 yesterday ago"
88601         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
88602         exactly specified dayshifts.
88603         (dayshift): New rule.
88604         (rel): Add dayshift.
88605         (relative_time_table) [tomorrow, yesterday, today, now]:
88606         Use tDAY_SHIFT in place of tDAY_UNIT.
88607         * tests/test-getdate.c: Add tests for now-disallowed countable
88608         dayshifts, e.g., "4 yesterday ago".
88610 2008-09-29  Bruno Haible  <bruno@clisp.org>
88612         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
88613         * tests/test-posix_spawn1.in.sh: Renamed from
88614         tests/test-posix_spawn.in.sh.
88615         * tests/test-posix_spawn2.c: New file.
88616         * tests/test-posix_spawn2.in.sh: New file.
88617         * modules/posix_spawnp-tests (Files): Update.
88618         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
88620 2008-09-29  Bruno Haible  <bruno@clisp.org>
88622         Propagate effects of putenv/setenv/unsetenv to child processes.
88623         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
88624         * lib/pipe.c (create_pipe): Likewise.
88626 2008-09-29  Bruno Haible  <bruno@clisp.org>
88628         Enable use of shell scripts as executables in mingw.
88629         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
88630         run the program as a shell script.
88631         * lib/pipe.c (create_pipe): Likewise.
88632         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
88633         resulting array.
88635 2008-09-29  Eric Blake  <ebb9@byu.net>
88637         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
88639 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
88641         * doc/posix-functions/accept.texi: Update mingw problems.
88642         * doc/posix-functions/bind.texi: Update mingw problems.
88643         * doc/posix-functions/close.texi: Update mingw problems.
88644         * doc/posix-functions/connect.texi: Update mingw problems.
88645         * doc/posix-functions/getpeername.texi: Update mingw problems.
88646         * doc/posix-functions/getsockname.texi: Update mingw problems.
88647         * doc/posix-functions/getsockopt.texi: Update mingw problems.
88648         * doc/posix-functions/ioctl.texi: Update mingw problems.
88649         * doc/posix-functions/listen.texi: Update mingw problems.
88650         * doc/posix-functions/recv.texi: Update mingw problems.
88651         * doc/posix-functions/recvfrom.texi: Update mingw problems.
88652         * doc/posix-functions/select.texi: Update mingw problems.
88653         * doc/posix-functions/send.texi: Update mingw problems.
88654         * doc/posix-functions/sendto.texi: Update mingw problems.
88655         * doc/posix-functions/setsockopt.texi: Update mingw problems.
88656         * doc/posix-functions/socket.texi: Update mingw problems.
88658 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
88659             Bruno Haible  <bruno@clisp.org>
88661         * lib/sys_select.in.h: Include sys/time.h.
88662         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
88663         * modules/sys_select: Depend on sys_time.
88664         * tests/test-sys_select.c: Test that sys/select.h defines struct
88665         timeval fully.
88667 2008-09-29  Bruno Haible  <bruno@clisp.org>
88669         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
88670         * lib/sys_select.in.h: Likewise.
88672 2008-09-29  Bruno Haible  <bruno@clisp.org>
88674         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
88676 2008-09-29  Bruno Haible  <bruno@clisp.org>
88678         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
88679         Set LIBSOCKET instead of augmenting LIBS.
88680         * modules/sockets (Link): New section.
88681         * modules/sockets-tests (test_sockets_LDADD): New variable.
88682         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
88683         * modules/poll-tests (test_poll_LDADD): New variable.
88684         * NEWS: Document the change.
88686 2008-09-29  Bruno Haible  <bruno@clisp.org>
88688         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
88689         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
88690         ARPA_INET_H directly.
88691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88693 2008-09-28  Bruno Haible  <bruno@clisp.org>
88695         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
88696         from gl_HEADER_SYS_SOCKET.
88697         (gl_HEADER_SYS_SOCKET): Invoke it.
88698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
88700 2008-09-28  Bruno Haible  <bruno@clisp.org>
88702         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
88703         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
88704         Needed on OSF/1 4.0.
88706 2008-09-28  Bruno Haible  <bruno@clisp.org>
88708         Override open more carefully.
88709         * lib/open.c (orig_open): New function.
88710         (rpl_open): Use orig_open instead of open.
88711         * lib/fcntl.in.h: Add special invocation convention.
88712         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
88713         (gl_FUNC_OPEN): Invoke it.
88715         Override freopen more carefully.
88716         * lib/freopen.c (orig_freopen): New function.
88717         (rpl_freopen): Use orig_freopen instead of freopen.
88718         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
88719         (gl_FUNC_FREOPEN): Invoke it.
88721         Override fopen more carefully.
88722         * lib/fopen.c (orig_fopen): New function.
88723         (rpl_fopen): Use orig_fopen instead of fopen.
88724         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
88725         (gl_FUNC_FOPEN): Invoke it.
88726         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
88728 2008-09-28  Bruno Haible  <bruno@clisp.org>
88730         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
88731         SIGPIPE.
88733 2008-09-28  Bruno Haible  <bruno@clisp.org>
88735         * tests/test-sigaction.c (handler, main): Disable the check whether
88736         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
88737         glibc systems with LinuxThreads.
88739 2008-09-28  Bruno Haible  <bruno@clisp.org>
88741         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
88743         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
88744         with AIX xlc.
88745         * lib/fcntl.in.h (open): Likewise.
88746         Reported by Rainer Tammer <tammer@tammer.net>.
88748 2008-09-28  Bruno Haible  <bruno@clisp.org>
88750         * modules/posix_spawnp-tests: New file.
88751         * tests/test-posix_spawn.c: New file.
88752         * tests/test-posix_spawn.in.sh: New file.
88754         New module 'posix_spawnp'.
88755         * modules/posix_spawnp: New file.
88756         * lib/spawnp.c: New file, from GNU libc with modifications.
88757         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
88759         New module 'posix_spawn'.
88760         * modules/posix_spawn: New file.
88761         * lib/spawn.c: New file, from GNU libc with modifications.
88762         * doc/posix-functions/posix_spawn.texi: Mention the new module.
88764         New module 'posix_spawnattr_destroy'.
88765         * modules/posix_spawnattr_destroy: New file.
88766         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
88767         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
88768         module.
88770         New module 'posix_spawnattr_setsigmask'.
88771         * modules/posix_spawnattr_setsigmask: New file.
88772         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
88773         modifications.
88774         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
88775         new module.
88777         New module 'posix_spawnattr_getsigmask'.
88778         * modules/posix_spawnattr_getsigmask: New file.
88779         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
88780         modifications.
88781         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
88782         new module.
88784         New module 'posix_spawnattr_setsigdefault'.
88785         * modules/posix_spawnattr_setsigdefault: New file.
88786         * lib/spawnattr_setdefault.c: New file, from GNU libc with
88787         modifications.
88788         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
88789         new module.
88791         New module 'posix_spawnattr_getsigdefault'.
88792         * modules/posix_spawnattr_getsigdefault: New file.
88793         * lib/spawnattr_getdefault.c: New file, from GNU libc with
88794         modifications.
88795         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
88796         new module.
88798         New module 'posix_spawnattr_setschedpolicy'.
88799         * modules/posix_spawnattr_setschedpolicy: New file.
88800         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
88801         modifications.
88802         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
88803         new module.
88805         New module 'posix_spawnattr_getschedpolicy'.
88806         * modules/posix_spawnattr_getschedpolicy: New file.
88807         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
88808         modifications.
88809         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
88810         new module.
88812         New module 'posix_spawnattr_setschedparam'.
88813         * modules/posix_spawnattr_setschedparam: New file.
88814         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
88815         modifications.
88816         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
88817         new module.
88819         New module 'posix_spawnattr_getschedparam'.
88820         * modules/posix_spawnattr_getschedparam: New file.
88821         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
88822         modifications.
88823         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
88824         new module.
88826         New module 'posix_spawnattr_setpgroup'.
88827         * modules/posix_spawnattr_setpgroup: New file.
88828         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
88829         modifications.
88830         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
88831         module.
88833         New module 'posix_spawnattr_getpgroup'.
88834         * modules/posix_spawnattr_getpgroup: New file.
88835         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
88836         modifications.
88837         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
88838         module.
88840         New module 'posix_spawnattr_setflags'.
88841         * modules/posix_spawnattr_setflags: New file.
88842         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
88843         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
88844         module.
88846         New module 'posix_spawnattr_getflags'.
88847         * modules/posix_spawnattr_getflags: New file.
88848         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
88849         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
88850         module.
88852         New module 'posix_spawnattr_init'.
88853         * modules/posix_spawnattr_init: New file.
88854         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
88855         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
88856         module.
88858         New module 'posix_spawn_file_actions_destroy'.
88859         * modules/posix_spawn_file_actions_destroy: New file.
88860         * lib/spawn_faction_destroy.c: New file, from GNU libc with
88861         modifications.
88862         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
88863         the new module.
88865         New module 'posix_spawn_file_actions_addopen'.
88866         * modules/posix_spawn_file_actions_addopen: New file.
88867         * lib/spawn_faction_addopen.c: New file, from GNU libc with
88868         modifications.
88869         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
88870         the new module.
88872         New module 'posix_spawn_file_actions_adddup2'.
88873         * modules/posix_spawn_file_actions_adddup2: New file.
88874         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
88875         modifications.
88876         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
88877         the new module.
88879         New module 'posix_spawn_file_actions_addclose'.
88880         * modules/posix_spawn_file_actions_addclose: New file.
88881         * lib/spawn_faction_addclose.c: New file, from GNU libc with
88882         modifications.
88883         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
88884         the new module.
88886         New module 'posix_spawn_file_actions_init'.
88887         * modules/posix_spawn_file_actions_init: New file.
88888         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
88889         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
88890         new module.
88892         New module 'posix_spawn-internal'.
88893         * modules/posix_spawn-internal: New file.
88894         * lib/spawn_int.h: New file, from GNU libc with modifications.
88895         * lib/spawni.c: New file, from GNU libc with modifications.
88896         * m4/posix_spawn.m4: New file.
88898         New module 'spawn'.
88899         * modules/spawn: New file.
88900         * lib/spawn.in.h: New file, from GNU libc with modifications.
88901         * m4/spawn_h.m4: New file.
88902         * doc/posix-headers/spawn.texi: Mention the new module.
88904 2008-09-28  Bruno Haible  <bruno@clisp.org>
88906         * modules/sched-tests: New file.
88907         * tests/test-sched.c: New file.
88909         New module 'sched'.
88910         * modules/sched: New file.
88911         * lib/sched.in.h: New file.
88912         * m4/sched_h.m4: New file.
88913         * doc/posix-headers/sched.texi: Mention the new module.
88915 2008-09-27  Eric Blake  <ebb9@byu.net>
88917         Fix previous patch, and tweak references to $0.
88918         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88919         (func_version, func_gnulib_dir): Don't call this program
88920         gnulib-tool.
88921         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88922         with using $0 in function.
88923         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88924         (func_fatal_error): Reuse the name the user invoked us with.
88926 2008-09-27  Bruno Haible  <bruno@clisp.org>
88928         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88929         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88930         (gl_ICONV_H): Not here.
88931         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88932         instead of assigning ICONV_H directly.
88934         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88936         WCHAR_H directly.
88938 2008-09-27  Bruno Haible  <bruno@clisp.org>
88940         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88941         * modules/arpa_inet (Depends-on): Add link-warning.
88942         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88943         * modules/unistd (Makefile.am): Likewise.
88945 2008-09-26  Bruno Haible  <bruno@clisp.org>
88947         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88948         variables.
88949         (func_version): Essentially copied from gnulib-tool.
88950         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88951         func_readlink): Copied from gnulib-tool.
88953 2008-09-26  Bruno Haible  <bruno@clisp.org>
88955         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88956         invoking git-version-gen.
88958 2008-09-26  Bruno Haible  <bruno@clisp.org>
88960         * posix-modules: Update to directory names changed on 2008-01-19.
88961         Remove commas in output before splitting into words. No more need to
88962         avoid 'ftruncate' since 2007-02-19.
88964 2008-09-26  Bruno Haible  <bruno@clisp.org>
88966         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88968 2008-09-26  Bruno Haible  <bruno@clisp.org>
88970         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88971         * modules/fwriteerror (Depends-on): Add errno.
88973 2008-09-26  Bruno Haible  <bruno@clisp.org>
88975         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88976         * tests/test-vc-list-files-cvs.sh: Likewise.
88978 2008-09-26  Bruno Haible  <bruno@clisp.org>
88980         * doc/posix-headers/sys_resource.texi: Reorder items.
88982 2008-09-26  Jim Meyering  <meyering@redhat.com>
88984         fts: tweak inode comparison function
88985         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88986         inode numbers, as documented.
88988         fts: sort dirent entries on inode number before traversing
88989         This avoids a quadratic, seek-related performance penalty when
88990         operating on a directory containing many entries (measurable at 10k;
88991         3.5 hours at 2 million entries with a cold cache) on certain types
88992         of file systems, including ext3 and ext4, but not tmpfs.
88993         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88994         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88995         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88996         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88997         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88998         (fts_build): Set the stat.st_ino member from D_INO.
88999         If it is likely to be useful, sort dirent entries on inode number.
89001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
89002         and the struct statfs.f_type member.
89003         * modules/fts (Depends-on): Add d-ino.
89005 2008-09-26  Bruno Haible  <bruno@clisp.org>
89007         * modules/sigpipe-die (Depends-on): Add sigpipe.
89009         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
89010         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
89011         and GNULIB_STDIO_H_SIGPIPE are set.
89012         * lib/stdio-write.c: New file.
89013         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
89014         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
89015         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
89016         REPLACE_STDIO_WRITE_FUNCS.
89017         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
89018         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
89019         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
89020         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
89021         * modules/stdio (Files): Add lib/stdio-write.c.
89022         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
89023         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
89024         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
89025         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
89026         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
89027         REPLACE_FPRINTF_POSIX.
89028         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
89029         REPLACE_PRINTF_POSIX.
89030         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
89031         REPLACE_VFPRINTF_POSIX.
89032         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
89033         REPLACE_VPRINTF_POSIX.
89034         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
89035         SIGPIPE issue.
89036         * doc/posix-functions/fputc.texi: Likewise.
89037         * doc/posix-functions/fputs.texi: Likewise.
89038         * doc/posix-functions/fwrite.texi: Likewise.
89039         * doc/posix-functions/printf.texi: Likewise.
89040         * doc/posix-functions/putc.texi: Likewise.
89041         * doc/posix-functions/putchar.texi: Likewise.
89042         * doc/posix-functions/puts.texi: Likewise.
89043         * doc/posix-functions/vfprintf.texi: Likewise.
89044         * doc/posix-functions/vprintf.texi: Likewise.
89046         * modules/safe-write (Depends-on): Add write.
89048         * modules/sigpipe-tests: New file.
89049         * tests/test-sigpipe.c: New file.
89050         * tests/test-sigpipe.sh: New file.
89052         * modules/write: New file.
89053         * lib/unistd.in.h: Include <sys/types.h>.
89054         (write): New declaration.
89055         * lib/write.c: New file.
89056         * m4/write.m4: New file.
89057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89058         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
89059         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
89060         GNULIB_WRITE, REPLACE_WRITE.
89061         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
89062         and the SIGPIPE issue.
89064         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
89065         (raise): New declaration.
89066         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
89067         (ext_signal): New function.
89068         (rpl_raise): New function.
89069         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
89070         GNULIB_SIGNAL_H_SIGPIPE.
89071         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
89072         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
89074         * modules/sigpipe: New file.
89075         * m4/sigpipe.m4: New file.
89077 2008-09-25  Derek Price  <derek@ximbiot.com>
89078             Bruno Haible  <bruno@clisp.org>
89080         * gnulib-tool (func_import): Report all license incompatibilities, not
89081         just the first one.
89083 2008-09-25  Bruno Haible  <bruno@clisp.org>
89085         * gnulib-tool (func_import): When computing the edits, consider not
89086         only the Makefile.ams that exist but also those that will be generated.
89088 2008-09-25  Simon Josefsson  <simon@josefsson.org>
89090         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
89091         fixes gnulib-tool --test warning about duplicate dependency.
89093 2008-09-25  Bruno Haible  <bruno@clisp.org>
89095         * gnulib-tool: Don't ask the user to perform edits in the generated
89096         Makefile.ams.
89097         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
89098         apply to the Makefile.am being generated.
89099         (func_emit_tests_Makefile_am): Execute edits that apply to the
89100         Makefile.am being generated.
89101         (func_import): Setup list of Makefile.am edits before emitting the
89102         Makefile.ams, not at the end.
89103         (func_create_testdir): Update.
89104         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89106 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89108         * gnulib-tool (func_import): Store the --tests-base option in the
89109         comment in gnulib-cache.m4.
89111 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
89113         * NEWS: Document increased portability that sys_select now provides.
89115         * lib/sys_select.in.h: Install select wrapper.
89116         * lib/sys_socket.in.h: Use more descriptive name when there is no
89117         select wrapper.
89118         * lib/winsock-select.c: New.
89119         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
89120         Require gl_HEADER_SYS_SOCKET.
89121         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
89122         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
89123         * tests/test-sys_select.c: Add functional tests.
89125 2008-09-24  Eric Blake  <ebb9@byu.net>
89127         open, fopen: close fd leak in last patch
89128         * lib/open.c (rpl_open): Close fd before returning error.
89129         * lib/fopen.c (rpl_fopen): Close fd before returning error.
89130         * doc/posix-functions/open.texi (open): Document that Irix also
89131         has the bug.
89132         * doc/posix-functions/fopen.texi (fopen): Likewise.
89133         Reported by Paolo Bonzini.
89135 2008-09-24  Bruno Haible  <bruno@clisp.org>
89137         Ensure that a filename ending in a slash cannot be used to access a
89138         non-directory.
89139         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
89140         to check whether it's really a directory.
89141         * lib/fopen.c: Include fcntl.h, unistd.h.
89142         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
89143         and fdopen().
89144         * modules/fopen (Depends-on): Add unistd.
89145         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
89146         * tests/test-fopen.c (main): Likewise.
89147         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
89148         * doc/posix-functions/fopen.texi: Likewise.
89149         Reported by Eric Blake.
89151 2008-09-23  Eric Blake  <ebb9@byu.net>
89153         c-stack: avoid compiler optimizations when provoking overflow
89154         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
89155         recursion harder to optimize, to ensure a stack overflow occurs.
89156         * tests/test-c-stack.c (recurse): Likewise.
89157         Borrowed from libsigsegv.
89159         c-stack: work around Irix sigaltstack bug
89160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
89161         whether sigaltstack uses wrong end of stack_t (copied in part from
89162         libsigsegv).
89163         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
89164         Irix bug, without requiring an over-allocation.
89165         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
89166         bug.
89168         fopen: document mingw bug on directories
89169         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
89170         not allowing a stream visiting a directory, even though reading
89171         from such a stream is not portable.
89173 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
89175         * lib/poll.c: Rewrite.
89176         * modules/poll: Depend on alloca.
89178 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
89180         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
89181         instead define prototypes for a full set of wrappers.  Ensure
89182         that Cygwin does not use the compatibility code, which is only
89183         for MinGW.
89184         * lib/winsock.c: New.
89185         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
89186         * modules/sys_socket: Add lib/winsock.c.
89188         * modules/poll-tests: Add errno and perror.
89189         * tests/test-poll.c: Use ioctl, not ioctlsocket.
89191 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
89193         * tests/test-poll.c: Downgrade minimum needed Winsock version.
89195 2008-09-23  Bruno Haible  <bruno@clisp.org>
89197         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
89198         * doc/glibc-functions/*: Likewise.
89200 2008-09-23  Simon Josefsson  <simon@josefsson.org>
89202         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
89203         success.
89205 2008-09-22  Eric Blake  <ebb9@byu.net>
89206             Bruno Haible  <bruno@clisp.org>
89208         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
89209         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
89210         supply %A but mishandle pseudo-NaN.
89211         Reported by Simon Josefsson.
89213 2008-09-21  Bruno Haible  <bruno@clisp.org>
89215         * tests/test-lock.c (main): Tweak skip message.
89216         * tests/test-tls.c (main): Likewise.
89218 2008-09-21  Bruno Haible  <bruno@clisp.org>
89220         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
89221         whether 'struct sigaction' has sa_sigaction here...
89222         (gl_PREREQ_SIG_HANDLER_H): ... not here.
89223         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
89225 2008-09-21  Bruno Haible  <bruno@clisp.org>
89227         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
89228         section.
89229         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
89230         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
89231         the new section.
89232         (Support for obsolete systems lacking POSIX:2001): New section.
89233         (String handling <string.h>): Move strdup to the new section.
89234         Suggested by Simon Josefsson and Paolo Bonzini.
89236 2008-09-21  Bruno Haible  <bruno@clisp.org>
89238         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
89239         exponents in %e and %g results on 'long double'. Needed for mingw's
89240         improved *printf functions.
89241         * tests/test-vasprintf-posix.c (test_function): Likewise.
89242         * tests/test-snprintf-posix.h (test_function): Likewise.
89243         * tests/test-sprintf-posix.h (test_function): Likewise.
89244         Reported by Eric Blake.
89246 2008-09-21  Bruno Haible  <bruno@clisp.org>
89248         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
89249         * tests/test-sprintf-posix.h (test_function): Likewise.
89251 2008-09-21  Bruno Haible  <bruno@clisp.org>
89253         * modules/getpass (Depends-on): Add strdup-posix.
89255         New module 'strdup-posix'.
89256         * modules/strdup-posix: New file.
89257         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
89258         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
89259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
89260         REPLACE_STRDUP.
89261         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
89262         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
89263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89264         strdup-posix.
89266         * modules/strdup (Depends-on): Remove malloc-posix.
89268 2008-09-20  Bruno Haible  <bruno@clisp.org>
89270         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
89271         Wildenhues.
89273 2008-09-20  Bruno Haible  <bruno@clisp.org>
89275         Ensure that wint_t gets defined on IRIX 5.3.
89276         * lib/wchar.in.h (wint_t): Define if not defined by the system.
89277         * lib/wctype.in.h (wint_t): Likewise.
89278         (__wctype_wint_t): Remove type.
89279         (isw*): Use wint_t instead of __wctype_wint_t.
89280         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
89281         * modules/wchar (Files): Add m4/wint_t.m4.
89282         (Makefile.am): Substitute HAVE_WINT_T.
89283         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
89284         * tests/test-wctype.c: Check that wint_t is defined.
89285         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
89286         * doc/posix-headers/wctype.texi: Likewise.
89287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
89289 2008-09-18  Bruno Haible  <bruno@clisp.org>
89291         * gnulib-tool (func_exit): Update comment.
89293 2008-09-18  Simon Josefsson  <simon@josefsson.org>
89295         * modules/getaddrinfo (Depends-on): Remove strdup, this module
89296         assumes strdup exists and does not depend on strdup to return
89297         ENOMEM on out of memory conditions.
89299 2008-09-18  Bruno Haible  <bruno@clisp.org>
89301         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
89302         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
89303         digits for the exponent.
89305 2008-09-18  Jim Meyering  <meyering@redhat.com>
89306             Bruno Haible  <bruno@clisp.org>
89308         * lib/vasnprintf.c (decimal_point_char): Define also if
89309         NEED_PRINTF_INFINITE_LONG_DOUBLE.
89311 2008-09-16  Bruno Haible  <bruno@clisp.org>
89312         and Eric Blake  <ebb9@byu.net>
89314         vasnprintf: support Irix 5.3
89315         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
89316         that mishandle long double infinity.
89317         Reported by Tom G. Christensen.
89319 2008-09-16  Bruno Haible  <bruno@clisp.org>
89321         * doc/glibc-functions/scandir.texi: Mention the function is missing on
89322         Solaris 9.
89323         * doc/glibc-functions/alphasort.texi: Likewise.
89324         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
89326 2008-09-16  Jim Meyering  <meyering@redhat.com>
89328         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
89329         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
89330         a umask modification leak out of a subshell.  Otherwise, the
89331         opensolaris /bin/sh would be accepted and thus cause unwarranted
89332         failures in the coreutils test suite.
89334 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
89336         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
89337         to succeed.
89339 2008-09-16  Jim Meyering  <meyering@redhat.com>
89341         avoid spurious test failure when library is built without ACL support
89342         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
89343         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
89344         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
89345         * tests/test-copy-acl.sh: Likewise.
89347 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89349         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
89350         based on character occurrence counts.
89352 2008-09-15  Eric Blake  <ebb9@byu.net>
89354         tests: avoid some compiler warnings
89355         * tests/test-memchr.c (main): Pass NULL indirectly.
89356         * tests/test-closein.c (main): Avoid unused variable.
89358 2008-09-15  Bruno Haible  <bruno@clisp.org>
89360         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
89361         are missing on OpenBSD 4.0 individually.
89362         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89364 2008-09-15  Bruno Haible  <bruno@clisp.org>
89366         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
89367         * doc/posix-functions/strerror.texi: Mention also Cygwin.
89368         * doc/posix-functions/perror.texi: Likewise.
89369         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
89370         is missing.
89371         Reported by Eric Blake.
89373         * lib/errno.in.h: Use replacement values >= 2000.
89374         Reported by Eric Blake.
89376 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89378         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
89379         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
89380         limit.
89381         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
89382         compareseq was aborted.
89384 2008-09-14  Bruno Haible  <bruno@clisp.org>
89386         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
89387         yvec_edit_count.
89388         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
89389         (fstrcmp_bounded): Simplify result computation accordingly.
89391 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89393         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
89394         (fstrcmp): Define in terms of fstrcmp_bounded.
89395         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
89396         lower_bound argument.
89397         Return quickly if the result is certainly < lower_bound.
89398         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
89400 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89402         * lib/diffseq.h (EARLY_ABORT): New macro.
89403         (compareseq): Change return type to bool. Return true when EARLY_ABORT
89404         evaluates to true.
89406 2008-09-14  Bruno Haible  <bruno@clisp.org>
89408         * modules/perror-tests: New file.
89409         * tests/test-perror.sh: New file.
89410         * tests/test-perror.c: New file.
89412         New module 'perror'.
89413         * lib/stdio.in.h (perror): New declaration.
89414         * lib/perror.c: New file.
89415         * m4/perror.m4: New file.
89416         * modules/perror: New file.
89417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
89418         * doc/posix-functions/perror.texi: Mention the perror module.
89419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
89420         REPLACE_PERROR.
89421         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
89422         REPLACE_PERROR.
89424 2008-09-14  Bruno Haible  <bruno@clisp.org>
89426         * modules/stdio (Makefile.am): Reorder to match the order in
89427         lib/stdio.in.h.
89428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89430 2008-09-13  Bruno Haible  <bruno@clisp.org>
89432         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
89434 2008-09-13  Bruno Haible  <bruno@clisp.org>
89436         Extend strerror to cover the added errno values.
89437         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
89438         (rpl_strerror): Provide error messages for the added errno values and
89439         for the WSA* values.
89440         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
89441         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
89442         strerror.
89443         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
89444         * modules/strerror (Depends-on): Add errno.
89445         * doc/posix-functions/strerror.texi: Document the change.
89446         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
89447         and EOVERFLOW.
89449 2008-09-13  Bruno Haible  <bruno@clisp.org>
89451         * modules/EOVERFLOW: Remove file.
89452         * m4/eoverflow.m4: Remove file.
89453         * modules/EOVERFLOW-tests: Remove file.
89454         * tests/test-EOVERFLOW.c: Remove file.
89455         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
89456         * modules/ftell (Depends-on): Likewise.
89457         * modules/getdelim (Depends-on): Likewise.
89458         * modules/getugroups (Depends-on): Likewise.
89459         * modules/poll (Depends-on): Likewise.
89460         * modules/snprintf (Depends-on): Likewise.
89461         * modules/sprintf-posix (Depends-on): Likewise.
89462         * modules/vasnprintf (Depends-on): Likewise.
89463         * modules/vasprintf (Depends-on): Likewise.
89464         * modules/vfprintf-posix (Depends-on): Likewise.
89465         * modules/vsnprintf (Depends-on): Likewise.
89466         * modules/vsprintf-posix (Depends-on): Likewise.
89467         * modules/xvasprintf (Depends-on): Likewise.
89468         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89469         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
89470         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
89471         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
89472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89473         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
89474         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
89475         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
89476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89477         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
89478         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
89479         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
89480         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89481         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
89482         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
89483         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
89484         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89485         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
89486         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
89487         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
89488         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89489         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
89490         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
89491         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
89492         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
89493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89494         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
89495         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
89496         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
89497         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
89498         * MODULES.html.sh: Remove EOVERFLOW.
89499         * NEWS: Mention the change.
89501 2008-09-13  Bruno Haible  <bruno@clisp.org>
89503         * modules/errno-tests: New file.
89504         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
89506         * lib/errno.in.h: New file.
89507         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
89508         * modules/errno: New file.
89509         * doc/posix-headers/errno.texi: Update documentation.
89510         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
89512 2008-09-13  Bruno Haible  <bruno@clisp.org>
89514         * tests/test-poll.c: Use #if for native Windows, rather than testing
89515         __MSVCRT__.
89517 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89518             Bruno Haible  <bruno@clisp.org>
89520         * lib/glob.c: Don't include <pwd.h> on native Windows.
89521         (WINDOWS32): New macro.
89522         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
89524 2008-09-13  Bruno Haible  <bruno@clisp.org>
89526         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
89527         (ETIMEDOUT): Remove macro.
89528         (glthread_cond_timedwait_multithreaded): New declaration.
89529         (glthread_cond_timedwait): Use it.
89530         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
89531         (glthread_cond_timedwait_multithreaded): New function.
89533 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89535         * modules/poll-tests: Do not check for io.h.
89536         * tests/test-poll.c: Check for __MSVCRT__ instead.
89538 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89540         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
89541         * modules/poll-tests: Add inet_pton, stdbool, sockets.
89542         * tests/test-poll.c: Use them.  Use _pipe on Windows.
89544 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89546         * modules/poll-tests: New.
89547         * tests/test-poll.c: New.
89549 2008-09-12  Eric Blake  <ebb9@byu.net>
89551         frexp: test for NetBSD failure on -0.0
89552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
89553         not all, bugs from NetBSD 3.0 have been fixed.
89554         * doc/posix-functions/frexp.texi (frexp): Document bug.
89555         Reported by Thomas Klausner.
89557         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
89558         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
89559         literal -0.0.
89560         Reported by Jonathan C. Patschke <jp@centtech.com>.
89562 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89564         * lib/glthread/cond.h: Use dummy implementation also if
89565         USE_WIN32_THREADS.
89567 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89569         * modules/fnmatch-posix (License): Change to LGPLv2+.
89570         * modules/fnmatch-gnu (License): Likewise.
89572 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89574         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
89576 2008-09-11  Jim Meyering  <meyering@redhat.com>
89578         * users.txt: Add gtk-vnc.
89580 2008-09-08  Simon Josefsson  <simon@josefsson.org>
89582         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
89583         rotate amounts.
89585         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
89586         required for 16-bit and 8-bit rotates.
89587         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
89588         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
89589         UINT8_MAX instead of hard-coded constants.
89590         Suggested by Paul Eggert.
89592 2008-09-07  Bruno Haible  <bruno@clisp.org>
89594         * tests/test-striconveh.c (main): Check behaviour when converting from
89595         UTF-7.
89597         Make striconveh work better with stateful encodings.
89598         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
89599         that iconv does not increment the inptr when returning -1/EINVAL.
89601 2008-09-07  Bruno Haible  <bruno@clisp.org>
89603         * build-aux/config.rpath: Update according to libtool-2.2.6.
89604         * build-aux/config.libpath: Likewise.
89606 2008-09-06  Bruno Haible  <bruno@clisp.org>
89608         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
89609         * lib/freadptr.c (freadptr): Likewise.
89610         * lib/freadseek.c (freadptrinc): Likewise.
89611         Reported by Simon Josefsson.
89613 2008-09-06  Bruno Haible  <bruno@clisp.org>
89615         * modules/freadptr (License): Change to LGPLv2+.
89616         * modules/freadseek (License): Likewise.
89617         Suggested by Eric Blake.
89619         * modules/memchr2 (License): Change to LGPLv2+.
89620         Approved by Eric Blake.
89622 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89623             Bruno Haible  <bruno@clisp.org>
89625         Make gnulib-tool work with native 'sed' on AIX.
89626         * gnulib-tool (sed_noop): New variable.
89627         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
89628         func_add_or_update, func_create_testdir): Use it to initialize sed
89629         script variables.
89630         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89632 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
89633             Bruno Haible  <bruno@clisp.org>
89635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
89636         also works after #include directives.
89638 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
89640         getdate.y: reject an out-of-range timezone value
89641         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
89642         the range [-24...+24].  When specified with only one or two digits,
89643         * tests/test-getdate.c: Tests for the fix.
89644         * doc/getdate.texi: Document this change.
89646 2008-09-03  Bruno Haible  <bruno@clisp.org>
89648         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
89650 2008-09-02  Simon Josefsson  <simon@josefsson.org>
89652         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
89653         <bruce.korb@gmail.com> with ideas from Ben Pfaff
89654         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
89655         Blake <ebb9@byu.net>.
89657         * tests/test-bitrotate.c: Add more test vectors.
89659 2008-09-02  Eric Blake  <ebb9@byu.net>
89661         vasnprintf-posix: handle large precision via %.*d
89662         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
89663         when handling it ourselves.
89664         * tests/test-vasnprintf-posix.c (test_function): Add test.
89665         * tests/test-snprintf-posix.h (test_function): Likewise.
89666         * tests/test-sprintf-posix.h (test_function): Likewise.
89667         * tests/test-vasprintf-posix.c (test_function): Likewise.
89668         Reported by Alain Guibert.
89670 2008-09-01  Eric Blake  <ebb9@byu.net>
89672         c-stack: make configure-time check more robust
89673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
89674         successful sigaction call.
89675         Reported by Tom G. Christensen.
89677 2008-09-01  Bruno Haible  <bruno@clisp.org>
89679         New module 'findprog-lgpl'.
89680         * modules/findprog-lgpl: New file.
89681         * lib/findprog-lgpl.c: New file.
89682         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
89683         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
89684         to decide whether to use strdup or xstrdup, concatenated_filename or
89685         xconcatenated_filename.
89687 2008-09-01  Bruno Haible  <bruno@clisp.org>
89689         Split module 'concat-filename' into 'concat-filename' (LGPL) and
89690         'xconcat-filename' (GPL).
89691         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
89692         (License): Change to LGPLv2+.
89693         * modules/xconcat-filename: New file.
89694         * lib/concat-filename.h (concatenated_filename): Change specification.
89695         (xconcatenated_filename): New declaration.
89696         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
89697         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
89698         memory situations.
89699         * lib/xconcat-filename.c: New file.
89700         * NEWS: Mention the change.
89701         * lib/findprog.c: Include concat-filename.h, not filename.h.
89702         (find_in_path): Use xconcatenated_filename instead of
89703         concatenated_filename.
89704         * lib/javacomp.c: Include concat-filename.h, not filename.h.
89705         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89706         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89707         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89708         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
89709         instead of concatenated_filename.
89710         * lib/javaexec.c: Include concat-filename.h, not filename.h.
89711         (execute_java_class): Use xconcatenated_filename instead of
89712         concatenated_filename.
89713         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
89714         * modules/javacomp (Depends-on): Likewise.
89715         * modules/javaexec (Depends-on): Likewise.
89717 2008-09-01  Bruno Haible  <bruno@clisp.org>
89719         Split module 'filename' into 'filename' and 'concat-filename'.
89720         * modules/filename: Keep only lib/filename.h.
89721         (License): Change to LGPLv2+.
89722         * modules/concat-filename: New file, extracted from modules/filename.
89723         * lib/filename.h (concatenated_filename): Remove declaration.
89724         * lib/concat-filename.h: New file, extracted from lib/filename.h.
89725         * lib/concat-filename.c: Include concat-filename.h.
89726         * NEWS: Mention the change.
89728 2008-09-01  Simon Josefsson  <simon@josefsson.org>
89730         * lib/bitrotate.h (rotl8, rotr8): Add.
89732         * modules/bitrotate (configure.ac): Need
89733         AC_REQUIRE([AC_C_INLINE]).
89734         (Description): Mention stdint.h.  Reported by Bruno Haible
89735         <bruno@clisp.org>.
89737         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
89738         Paolo Bonzini <bonzini@gnu.org>.
89740 2008-08-31  Bruno Haible  <bruno@clisp.org>
89742         Assume Solaris specific bi-arch conventions on Solaris systems.
89743         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
89744         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
89745         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
89746         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
89747         like acl_libdirstem.
89748         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
89749         acl_libdirstem.
89750         * NEWS: Mention the change.
89751         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
89753 2008-08-31  Jim Meyering  <meyering@redhat.com>
89755         * lib/strftime.h: Add comments describing the two added arguments.
89757         remove duplicate #include directives
89758         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
89759         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
89761 2008-08-31  Bruno Haible  <bruno@clisp.org>
89763         New module 'sigpipe-die'.
89764         * modules/sigpipe-die: New file.
89765         * lib/sigpipe-die.h: New file.
89766         * lib/sigpipe-die.c: New file.
89767         * MODULES.html.sh (Signal handling): Add sigpipe-die.
89769 2008-08-31  Bruno Haible  <bruno@clisp.org>
89771         Don't override previously installed signal handlers.
89772         * lib/fatal-signal.c (saved_sigactions): New variable.
89773         (uninstall_handlers): Reset the signal to the saved handler, not
89774         to SIG_DFL (except when ignored).
89775         (install_handlers): Save the previous handlers.
89777 2008-08-30  Bruno Haible  <bruno@clisp.org>
89779         * gnulib-tool (func_reset_sigpipe): New function.
89780         (func_get_automake_snippet, func_modules_transitive_closure,
89781         func_import): Invoke it before a join command that reads from stdin,
89782         to avoid "echo: write error: Broken pipe" error messages on stderr.
89783         Reported by Sam Steingold <sds@gnu.org>.
89785 2008-08-30  Bruno Haible  <bruno@clisp.org>
89787         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
89788         Code copied from m4/open.m4.
89789         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
89790         access and the filename ends in a slash. Code copied from lib/open.c.
89791         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
89792         * tests/test-fopen.c (main): Check against bug with trailing slash.
89794 2008-08-29  Bruno Haible  <bruno@clisp.org>
89796         Avoid some "gcc -pedantic" warnings.
89797         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
89798         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
89799         * lib/dirent.in.h: Likewise.
89800         * lib/fcntl.in.h: Likewise.
89801         * lib/float.in.h: Likewise.
89802         * lib/iconv.in.h: Likewise.
89803         * lib/inttypes.in.h: Likewise.
89804         * lib/locale.in.h: Likewise.
89805         * lib/math.in.h: Likewise.
89806         * lib/netinet_in.in.h: Likewise.
89807         * lib/search.in.h: Likewise.
89808         * lib/signal.in.h: Likewise.
89809         * lib/stdarg.in.h: Likewise.
89810         * lib/stdint.in.h: Likewise.
89811         * lib/stdio.in.h: Likewise.
89812         * lib/stdlib.in.h: Likewise.
89813         * lib/string.in.h: Likewise.
89814         * lib/strings.in.h: Likewise.
89815         * lib/sys_select.in.h: Likewise.
89816         * lib/sys_socket.in.h: Likewise.
89817         * lib/sys_stat.in.h: Likewise.
89818         * lib/sys_time.in.h: Likewise.
89819         * lib/sysexits.in.h: Likewise.
89820         * lib/time.in.h: Likewise.
89821         * lib/unistd.in.h: Likewise.
89822         * lib/wchar.in.h: Likewise.
89823         * lib/wctype.in.h: Likewise.
89824         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
89825         * modules/fchdir (Makefile.am): Likewise.
89826         * modules/fcntl (Makefile.am): Likewise.
89827         * modules/float (Makefile.am): Likewise.
89828         * modules/iconv_open (Makefile.am): Likewise.
89829         * modules/inttypes (Makefile.am): Likewise.
89830         * modules/locale (Makefile.am): Likewise.
89831         * modules/math (Makefile.am): Likewise.
89832         * modules/netinet_in (Makefile.am): Likewise.
89833         * modules/search (Makefile.am): Likewise.
89834         * modules/signal (Makefile.am): Likewise.
89835         * modules/stdarg (Makefile.am): Likewise.
89836         * modules/stdint (Makefile.am): Likewise.
89837         * modules/stdio (Makefile.am): Likewise.
89838         * modules/stdlib (Makefile.am): Likewise.
89839         * modules/string (Makefile.am): Likewise.
89840         * modules/strings (Makefile.am): Likewise.
89841         * modules/sys_select (Makefile.am): Likewise.
89842         * modules/sys_socket (Makefile.am): Likewise.
89843         * modules/sys_stat (Makefile.am): Likewise.
89844         * modules/sys_time (Makefile.am): Likewise.
89845         * modules/sysexits (Makefile.am): Likewise.
89846         * modules/time (Makefile.am): Likewise.
89847         * modules/unistd (Makefile.am): Likewise.
89848         * modules/wchar (Makefile.am): Likewise.
89849         * modules/wctype (Makefile.am): Likewise.
89850         Reported by Reuben Thomas <rrt@sc3d.org>.
89852 2008-08-29  Bruno Haible  <bruno@clisp.org>
89854         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
89855         any more.
89857 2008-08-29  Simon Josefsson  <simon@josefsson.org>
89859         * MODULES.html.sh (Misc): Add bitrotate.
89861         * modules/bitrotate: New file.
89863         * lib/bitrotate.h: New file.
89865         * modules/bitrotate-tests: New file.
89867         * tests/test-bitrotate.c: New file.
89869         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
89870         on the bitrotate module.
89872         * lib/arctwo.c: Use new bitrotate module.
89874 2008-08-29  Jim Meyering  <meyering@redhat.com>
89876         bootstrap: merge changes from coreutils
89877         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
89878         of copied files.  Remove a kludge, now that this is fixed.
89879         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
89880         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
89881         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
89883 2008-08-29  Bruno Haible  <bruno@clisp.org>
89885         * MODULES.html.sh: Remove --cvs-urls option.
89887 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
89889         maint.mk: adjust to file name change
89890         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
89892 2008-08-28  Jim Meyering  <meyering@redhat.com>
89894         * modules/getndelim2 (License): Relicense to LGPLv2+.
89895         Approved by Richard Stallman for the version of 1995, and by
89896         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89898 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89900         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89901         dummy if one is not available.  Do not touch them if
89902         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89903         (getc_maybe_unlocked): New.
89904         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89906 2008-08-26  Eric Blake  <ebb9@byu.net>
89908         doc/INSTALL: resync from autoconf
89909         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89910         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89911         moving...
89912         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89913         * INSTALL: Regenerate.
89914         * INSTALL.ISO: New file.
89915         * INSTALL.UTF-8: Likewise.
89917 2008-08-26  Jim Meyering  <meyering@redhat.com>
89919         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89920         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89921         these definitions conditional, so that they may be overridden, too.
89923 2008-08-26  Bruno Haible  <bruno@clisp.org>
89925         Generate INSTALL file variants with prettier quotes.
89926         * doc/Makefile (INSTALL_PRELUDE): New macro.
89927         (INSTALL): Use it.
89928         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89930 2008-08-26  Bruno Haible  <bruno@clisp.org>
89932         Run makeinfo in an English locale.
89933         * doc/Makefile (MAKEINFO): New variable.
89935 2008-08-26  Bruno Haible  <bruno@clisp.org>
89937         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89938         Suggested by Eric Blake.
89940 2008-08-25  Bruno Haible  <bruno@clisp.org>
89942         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89944 2008-08-25  Eric Blake  <ebb9@byu.net>
89946         c-stack: test that stack overflow can be caught
89947         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89948         that platform allows handling stack overflow; at least OS/2 EMX
89949         has sigaltstack, but crashes before transferring control to
89950         handler on stack overflow.
89951         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89952         check for HAVE_STACK_OVERFLOW_HANDLING.
89953         Reported by Elbert Pol.
89955 2008-08-25  Bruno Haible  <bruno@clisp.org>
89957         * doc/posix-functions/strftime.texi: Fix description of strftime
89958         module.
89960 2008-08-24  Bruno Haible  <bruno@clisp.org>
89962         * tests/uniwidth/test-uc_width2.c: New file.
89963         * tests/uniwidth/test-uc_width2.sh: New file.
89964         * modules/uniwidth/width-tests (Files): Add the new files.
89965         (TESTS): Add uniwidth/test-uc_width2.sh.
89966         (TESTS_ENVIRONMENT): New variable.
89967         (check_PROGRAMS): Add test-uc_width2.
89968         (test_uc_width2_SOURCES): New variable.
89970         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89971         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89972         not 0x00AB.
89973         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89975 2008-08-22  Eric Blake  <ebb9@byu.net>
89977         test-lock, test-tls: mention why a test is skipped
89978         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89979         skipped.
89980         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89982         count-one-bits: relax license
89983         * modules/count-one-bits (License): Relicense to LGPLv2+.
89984         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89986 2008-08-22  Andreas Schwab  <schwab@suse.de>
89988         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89989         Remove spurious space in assignment.
89991 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89993         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89994         Paul Eggert <eggert@CS.UCLA.EDU>.
89996 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89998         * modules/gettext: Add m4/threadlib.m4.
90000 2008-08-19  Eric Blake  <ebb9@byu.net>
90002         test-c-stack: fix compilation failure on FreeBSD 5.0
90003         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
90004         headers before <sys/resource.h>.
90005         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
90006         the bug.
90007         Reported by Nelson H. F. Beebe.
90009         strverscmp: migrate from "strverscmp.h" to <string.h>
90010         * modules/string (Makefile.am): Add new hooks.
90011         * modules/strverscmp (Files): Remove strverscmp.h.
90012         (Depends-on): Add string.
90013         (configure.ac): Add indicator.
90014         (Include): Mention new header.
90015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
90016         defaults.
90017         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
90018         results.
90019         * lib/strverscmp.h: Delete.
90020         * lib/string.in.h (strverscmp): Provide declaration, when needed.
90021         * tests/test-strverscmp.c (includes): Adjust client.
90022         * lib/check-version.c (includes): Likewise.
90023         * NEWS: Document the change.
90025         strverscmp: add unit test
90026         * modules/strverscmp-tests: New file.
90027         * tests/test-strverscmp.c: Likewise.
90029 2008-08-19  Simon Josefsson  <simon@josefsson.org>
90031         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
90032         regarding Windows crypto stuff, from Mono.
90034 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
90036         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
90037         if present, for intel RND.  Return error on failures.
90039 2008-08-18  Ben Pfaff  <blp@gnu.org>
90041         gitlog-to-changelog: give better diagnostic for failed pipe-open
90042         * build-aux/gitlog-to-changelog: Improve error message: suggest
90043         that the version of Git may be too old.
90045 2008-08-18  Simon Josefsson  <simon@josefsson.org>
90047         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
90048         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
90050 2008-08-18  Bruno Haible  <bruno@clisp.org>
90052         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
90053         pthread_in_use().
90055 2008-08-18  Bruno Haible  <bruno@clisp.org>
90057         * lib/glthread/threadlib.c: Include <pthread.h>.
90059 2008-08-18  Bruno Haible  <bruno@clisp.org>
90061         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
90062         glthread_recursive_lock_* macros.
90063         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
90064         Fix syntax error.
90066 2008-08-18  Bruno Haible  <bruno@clisp.org>
90068         * lib/glthread/thread.c: Avoid forcing a context switch right after
90069         thread creation.
90071 2008-08-17  Bruno Haible  <bruno@clisp.org>
90073         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
90074         * lib/glthread/thread.h: Provide Win32 specific implementation.
90075         * modules/thread (Files): Add lib/glthread/thread.c.
90076         (Depends-on): Add lock.
90077         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
90079 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90081         New module 'yield'.
90082         * modules/yield: New file.
90083         * lib/glthread/yield.h: New file.
90084         * m4/yield.m4: New file.
90085         * MODULES.html.sh (Multithreading): Add yield.
90087 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90089         New module 'thread'.
90090         * modules/thread: New file.
90091         * lib/glthread/thread.h: New file.
90092         * m4/thread.m4: New file.
90093         * MODULES.html.sh (Multithreading): Add thread.
90095 2008-08-17  Bruno Haible  <bruno@clisp.org>
90097         * lib/glthread/lock.h: Include <stdlib.h> always.
90098         * lib/glthread/tls.h: Likewise.
90099         * lib/glthread/cond.h: Likewise.
90101 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90103         New module 'cond'.
90104         * modules/cond: New file.
90105         * lib/glthread/cond.h: New file.
90106         * lib/glthread/cond.c: New file.
90107         * m4/cond.m4: New file.
90108         * MODULES.html.sh (Multithreading): Add cond.
90110 2008-08-16  Eric Blake  <ebb9@byu.net>
90112         c-stack: fix regression on Irix 5.3 from 2008-06-21
90113         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
90114         sa_sigaction...
90115         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
90116         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
90117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
90118         * modules/signal (Makefile.am): Use the value.
90119         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
90120         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
90121         * doc/posix-headers/signal.texi (signal.h): Document this
90122         portability issue.
90123         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
90124         Reported by Tom G. Christensen.
90126 2008-08-17  Bruno Haible  <bruno@clisp.org>
90128         New module 'threadlib'.
90129         * modules/threadlib: New file.
90130         * lib/glthread/threadlib.c: New file, extracted from
90131         lib/glthread/lock.c.
90132         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
90133         functions.
90134         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
90135         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
90136         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
90137         macros.
90138         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
90139         (gl_DISABLE_THREADS): Remove macro.
90140         * modules/lock (Files): Remove build-aux/config.rpath.
90141         (Depends-on): Remove havelib. Add threadlib.
90142         (configure.ac-early): Remove section.
90143         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
90144         * modules/tls (Depends-on): Remove lock. Add threadlib.
90145         (Link): New section, copied from threadlib.
90146         * MODULES.html.sh (Multithreading): Add threadlib.
90148 2008-08-14  Bruno Haible  <bruno@clisp.org>
90150         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
90151         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
90152         glthread_rwlock_unlock, glthread_rwlock_destroy,
90153         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
90154         glthread_recursive_lock_destroy): Define as macros always.
90155         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
90156         glthread_lock_lock.
90157         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
90158         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
90159         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
90160         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
90161         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
90162         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
90163         (glthread_recursive_lock_lock_func): Renamed from
90164         glthread_recursive_lock_lock.
90165         (glthread_recursive_lock_unlock_func): Renamed from
90166         glthread_recursive_lock_unlock.
90167         (glthread_recursive_lock_destroy_func): Renamed from
90168         glthread_recursive_lock_destroy.
90170 2008-08-14  Bruno Haible  <bruno@clisp.org>
90172         * lib/glthread/lock.h: Renamed from lib/lock.h.
90173         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
90174         * lib/glthread/tls.h: Renamed from lib/tls.h.
90175         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
90176         * lib/fstrcmp.c: Update includes.
90177         * lib/strsignal.c: Update includes.
90178         * modules/lock (Files, Makefile.am): Update.
90179         (Include): Change to "glthread/lock.h".
90180         * modules/tls (Files, Makefile.am): Update.
90181         (Include): Change to "glthread/tls.h".
90182         * tests/test-lock.c: Update includes.
90183         * tests/test-tls.c: Update includes.
90184         * NEWS: Mention the renamed header files.
90186 2008-08-11  Jim Meyering  <meyering@redhat.com>
90188         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
90190 2008-08-11  Eric Blake  <ebb9@byu.net>
90192         test-c-stack: avoid C99-ism
90193         * tests/test-c-stack.c (main): Fix whitespace, move declaration
90194         before statement.
90195         Reported by Alain Guibert.
90197 2008-08-10  Jim Meyering  <meyering@redhat.com>
90199         ensure that return value of uinttostr et al are not ignored
90200         * lib/inttostr.h (__GNUC_PREREQ): Define.
90201         (__attribute_warn_unused_result__): Define.
90202         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
90204 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
90206         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
90207         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
90209 2008-08-07  Jim Meyering  <meyering@redhat.com>
90211         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
90213         * modules/mkstemp (License): Relicense under LGPLv2+.
90214         * modules/tempname (License): Likewise.
90216 2008-08-06  Bruno Haible  <bruno@clisp.org>
90218         * lib/poll.c (poll): Further micro-optimization.
90220 2008-08-06  Jim Meyering  <meyering@redhat.com>
90222         inet_pton.c: use locale-independent tolower
90223         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
90224         (inet_pton6): Use c_tolower rather than tolower.
90225         * modules/inet_pton (Depends-on): Add c-ctype.
90227 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
90229         * lib/poll.c (poll): Avoid division when timeout is 0, cache
90230         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
90232 2008-08-06  Jim Meyering  <meyering@redhat.com>
90234         * modules/inet_pton (License): Relicense under LGPLv2+.
90236 2008-08-03  Bruno Haible  <bruno@clisp.org>
90238         Additional non-aborting API for lock and tls.
90239         * lib/lock.h: Include <errno.h>.
90240         (glthread_lock_init): New macro/function.
90241         (gl_lock_init): Define as wrapper around glthread_lock_init.
90242         (glthread_lock_lock): New macro/function.
90243         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
90244         (glthread_lock_unlock): New macro/function.
90245         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
90246         (glthread_lock_destroy): New macro/function.
90247         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
90248         (glthread_rwlock_init): New macro/function.
90249         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
90250         (glthread_rwlock_rdlock): New macro/function.
90251         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
90252         (glthread_rwlock_wrlock): New macro/function.
90253         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
90254         (glthread_rwlock_unlock): New macro/function.
90255         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
90256         (glthread_rwlock_destroy): New macro/function.
90257         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
90258         (glthread_recursive_lock_init): New macro/function.
90259         (gl_recursive_lock_init): Define as wrapper around
90260         glthread_recursive_lock_init.
90261         (glthread_recursive_lock_lock): New macro/function.
90262         (gl_recursive_lock_lock): Define as wrapper around
90263         glthread_recursive_lock_lock.
90264         (glthread_recursive_lock_unlock): New macro/function.
90265         (gl_recursive_lock_unlock): Define as wrapper around
90266         glthread_recursive_lock_unlock.
90267         (glthread_recursive_lock_destroy): New macro/function.
90268         (gl_recursive_lock_destroy): Define as wrapper around
90269         glthread_recursive_lock_destroy.
90270         (glthread_once): New macro/function.
90271         (gl_once): Define as wrapper around glthread_once.
90272         Update function declarations.
90273         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
90274         glthread_rwlock_init. Return error code.
90275         (glthread_rwlock_rdlock_multithreaded): Renamed from
90276         glthread_rwlock_rdlock. Return error code.
90277         (glthread_rwlock_wrlock_multithreaded): Renamed from
90278         glthread_rwlock_wrlock. Return error code.
90279         (glthread_rwlock_unlock_multithreaded): Renamed from
90280         glthread_rwlock_unlock. Return error code.
90281         (glthread_rwlock_destroy_multithreaded): Renamed from
90282         glthread_rwlock_destroy. Return error code.
90283         (glthread_recursive_lock_init_multithreaded): Renamed from
90284         glthread_recursive_lock_init. Return error code.
90285         (glthread_recursive_lock_lock_multithreaded): Renamed from
90286         glthread_recursive_lock_lock. Return error code.
90287         (glthread_recursive_lock_unlock_multithreaded): Renamed from
90288         glthread_recursive_lock_unlock. Return error code.
90289         (glthread_recursive_lock_destroy_multithreaded): Renamed from
90290         glthread_recursive_lock_destroy. Return error code.
90291         (glthread_once_call): Make static.
90292         (glthread_once_multithreaded): Renamed from glthread_once.
90293         * lib/tls.h: Include <errno.h>.
90294         (glthread_tls_key_init): New macro/function.
90295         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
90296         (glthread_tls_set): New macro/function.
90297         (gl_tls_set): Define as wrapper around glthread_tls_set.
90298         (glthread_tls_key_destroy): New macro/function.
90299         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
90300         Update function declarations.
90301         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
90302         glthread_tls_get.
90303         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90305 2008-08-04  Eric Blake  <ebb9@byu.net>
90307         gnumakefile: use space, not TAB, outside of targets
90308         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
90310 2008-08-02  Jim Meyering  <meyering@redhat.com>
90312         getdate.y: avoid locale-dependent date parsing failure
90313         In Turkish locales, getdate would fail to recognize keywords
90314         containing a lowercase "i".  The solution is not to rely on
90315         locale-sensitive case-conversion.
90316         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
90317         (lookup_word): Use c_toupper in place of toupper.
90318         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
90319         Reported by Vefa Bicakci <bicave@superonline.com> in
90320         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
90321         * modules/getdate (Depends-on): Add c-ctype.
90323 2008-08-02  Bruno Haible  <bruno@clisp.org>
90325         * gnulib-tool (func_import): When updating or creating a .gitignore
90326         file, prepend each added line with a slash, and ignore leading slashes
90327         from the existing lines.
90328         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
90330 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90332         Portability fix for GNU make 3.79.1.
90333         * top/GNUmakefile: Avoid 'else COND', which older GNU make
90334         versions do not understand.
90336 2008-08-01  Bruno Haible  <bruno@clisp.org>
90338         Work around bug of HP-UX 10.20 cc with -0.0 literal.
90339         * tests/test-isnanf.h (zero): New variable.
90340         (main): Avoid literal -0.0f.
90341         * tests/test-isnand.h (zero): New variable.
90342         (main): Avoid literal -0.0.
90343         * tests/test-isnanl.h (zero): New variable.
90344         (main): Avoid literal -0.0L.
90345         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
90346         (test_float, test_double, test_long_double): Avoid literals -0.0f,
90347         -0.0, -0.0L.
90348         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
90349         (test_signbitd): Avoid literal -0.0.
90350         (test_signbitl): Avoid literal -0.0L.
90351         * tests/test-ceilf1.c (zero): New variable.
90352         (main): Avoid literal -0.0f.
90353         * tests/test-ceill.c (zero): New variable.
90354         (main): Avoid literal -0.0L.
90355         * tests/test-floorf1.c (zero): New variable.
90356         (main): Avoid literal -0.0f.
90357         * tests/test-floorl.c (zero): New variable.
90358         (main): Avoid literal -0.0L.
90359         * tests/test-roundf1.c (zero): New variable.
90360         (main): Avoid literal -0.0f.
90361         * tests/test-round1.c (zero): New variable.
90362         (main): Avoid literal -0.0.
90363         * tests/test-roundl.c (zero): New variable.
90364         (main): Avoid literal -0.0L.
90365         * tests/test-truncf1.c (zero): New variable.
90366         (main): Avoid literal -0.0f.
90367         * tests/test-trunc1.c (zero): New variable.
90368         (main): Avoid literal -0.0.
90369         * tests/test-truncl.c (zero): New variable.
90370         (main): Avoid literal -0.0L.
90371         * tests/test-frexp.c (zero): New variable.
90372         (main): Avoid literal -0.0.
90373         * tests/test-frexpl.c (zero): New variable.
90374         (main): Avoid literal -0.0L.
90375         * tests/test-ldexpl.c (zero): New variable.
90376         (main): Avoid literal -0.0L.
90377         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
90378         (zerod, zerol): New variables.
90379         (test_function): Avoid literals -0.0, -0.0L.
90380         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
90381         (zerod, zerol): New variables.
90382         (test_function): Avoid literals -0.0, -0.0L.
90383         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
90384         (zerod, zerol): New variables.
90385         (test_function): Avoid literals -0.0, -0.0L.
90386         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
90387         (zerod, zerol): New variables.
90388         (test_function): Avoid literals -0.0, -0.0L.
90389         * tests/test-strtod.c (zero): New variable.
90390         (main): Avoid literal -0.0.
90391         Reported by Jonathan C. Patschke <jp@centtech.com>.
90393 2008-07-31  Jim Meyering  <meyering@redhat.com>
90395         sha256.h: correct definition of SHA224_DIGEST_SIZE
90396         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
90397         Reported by Paulie Pena IV <paulie4@gmail.com>.
90398         Define as 224 / 8, rather than as a literal.
90399         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
90400         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
90401         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
90403 2008-07-31  Bruno Haible  <bruno@clisp.org>
90405         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
90406         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
90407         Reported by Jonathan Patschke <jp@centtech.com>.
90409 2008-07-31  Bruno Haible  <bruno@clisp.org>
90411         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
90412         Reported by Paolo Bonzini <bonzini@gnu.org>.
90414 2008-07-30  Eric Blake  <ebb9@byu.net>
90416         test-strtod: allow compilation without -lm
90417         * tests/test-strtod.c (main): Avoid link dependence on fabs.
90418         Reported by Dennis Clarke <blastwave@gmail.com>.
90420 2008-07-28  Jim Meyering  <meyering@redhat.com>
90422         bootstrap: work also when there are no .po files in po/
90423         * build-aux/bootstrap (update_po_files): Complete the change
90424         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
90426 2008-07-27  Jim Meyering  <meyering@redhat.com>
90428         * users.txt: Add zile.
90430 2008-07-26  Ben Pfaff  <blp@gnu.org>
90432         Add missing dependencies on new m4/exponent[fdl].m4 files.
90433         * modules/isnanf-nolibm: Add m4/exponentf.m4.
90434         * modules/isnand-nolibm: Add m4/exponentd.m4.
90435         * modules/isnanl-nolibm: Add m4/exponentl.m4.
90436         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
90437         m4/isnan[fdl].m4, because the macros actually used moved.
90438         Reported by Jim Meyering.
90440 2008-07-14  Ben Pfaff  <blp@gnu.org>
90442         Add isinf module.
90443         * lib/isinf.c: New file.
90444         * lib/math.in.h: Define isinf macro if we have decided to replace
90445         it.
90446         * m4/isinf.m4: New file.
90447         * m4/math_h.m4: Initialize and substitute variables for isinf
90448         module.
90449         * modules/isinf: New file.
90450         * modules/isinf-tests: New file.
90451         * modules/math: Add substitutions for new module.
90452         * tests/test-isinf.c: New file.
90453         * doc/posix-functions/isinf.texi: Mention new module.
90454         * MODULES.html.sh: Mention new module.
90456 2008-07-14  Ben Pfaff  <blp@gnu.org>
90458         Factor out some macros for use by additional modules.
90459         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
90460         exponentf.m4.
90461         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
90462         exponentd.m4.
90463         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
90464         file exponentl.m4.
90465         * m4/exponentf.m4: New file.
90466         * m4/exponentd.m4: New file.
90467         * m4/exponentl.m4: New file.
90468         * modules/isnanf: Use new file m4/exponentf.m4.
90469         * modules/isnand: Use new file m4/exponentd.m4.
90470         * modules/isnanl: Use new file m4/exponentl.m4.
90472 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
90474         mktime.c: normalize tp->tm_isdst value to -1/0/1.
90475         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
90476         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
90477         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
90479         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
90480         readlink on platforms without PATH_MAX.
90482 2008-07-21  Eric Blake  <ebb9@byu.net>
90484         Warn, not fail, on stale version.
90485         * top/GNUmakefile (_curr-ver): Tone down previous patch.
90487         Don't allow installation with stale devel version number.
90488         * top/GNUmakefile (_is-install-target): New macro.
90489         (_curr-ver): Forbid installation with stale version number.
90491 2008-07-20  Bruno Haible  <bruno@clisp.org>
90493         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
90494         TESTS_ENVIRONMENT.
90495         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
90497 2008-07-20  Bruno Haible  <bruno@clisp.org>
90499         * lib/c-stack.h (c_stack_action): Add documentation.
90500         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
90502 2008-07-20  Bruno Haible  <bruno@clisp.org>
90504         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
90505         * modules/readlink (License): Likewise.
90507 2008-07-17  Eric Blake  <ebb9@byu.net>
90509         * modules/c-stack (Link): Fix typo.
90511         Make c-stack use libsigsegv, when available.
90512         * modules/c-stack (Depends-on): Add libsigsegv.
90513         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
90514         needed.
90515         * lib/c-stack.c (SIGSTKSZ): Define fallback.
90516         (segv_handler, overflow_handler, c_stack_action)
90517         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
90518         implementation when libsigsegv is available, but only when using
90519         the library is necessary.
90520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
90521         comment, explaining why XSI check fails on Linux.
90522         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
90523         * tests/test-c-stack2.sh: Tweak skip message.
90524         * NEWS: Document new link-time requirements.
90526 2008-07-16  Eric Blake  <ebb9@byu.net>
90528         c-stack: Expose false positives when not using libsigsegv.
90529         * modules/c-stack-tests (Files): Expand test.
90530         * tests/test-c-stack.c (main): Add means to conditionally trigger
90531         non-overflow SIGSEGV.
90532         * tests/test-c-stack2.sh: New file.
90534 2008-07-14  Bruno Haible  <bruno@clisp.org>
90536         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
90537         Reported by Eric Blake.
90539 2008-07-14  Sam Steingold  <sds@gnu.org>
90540             Bruno Haible  <bruno@clisp.org>
90542         New module libsigsegv.
90543         * modules/libsigsegv: New file.
90544         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
90545         modifications.
90546         * MODULES.html.sh (Signal handling): New section.
90548 2008-07-14  Bruno Haible  <bruno@clisp.org>
90550         * modules/unictype/ctype-* (Description): Add the word "function".
90551         Improves the resulting doc in MODULES.html.
90553 2008-07-12  Ben Pfaff  <blp@gnu.org>
90555         Add longlong module.
90556         * modules/longlong: New file.
90558 2008-07-12  Bruno Haible  <bruno@clisp.org>
90560         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
90561         to empty.
90563 2008-07-10  Ben Pfaff  <blp@gnu.org>
90565         Add isnan module.
90566         * doc/posix-functions/isnan.texi: Mention new module.
90567         * lib/math.in.h: Define isnan macro if we have decided to replace
90568         it.
90569         * m4/isnan.m4: New file.
90570         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
90571         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
90572         also.
90573         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
90574         redundancy.
90575         * m4/math_h.m4: Initialize and substitute variables for isnan
90576         module.
90577         * modules/isnan: New file.
90578         * modules/isnan-tests: New file.
90579         * modules/math: Add substitutions for new module.
90580         * tests/test-isnan.c: New file.
90581         * MODULES.html.sh: Mention new module.
90583 2008-07-10  Ben Pfaff  <blp@gnu.org>
90585         Add isnanf module.
90586         * lib/isnanf.m4: New file.
90587         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
90588         (gl_HAVE_ISNANF_IN_LIBM): New macro.
90589         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
90590         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
90591         * modules/isnanf: New file.
90592         * modules/isnanf-tests: New file.
90593         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
90594         files.
90595         * tests/test-isnanf-nolibm.c: factored most of its contents into
90596         new file tests/test-isnanf.h.
90597         * tests/test-isnanf.h: New file.
90598         * tests/test-isnanf.c: New file.
90599         * MODULES.html.sh: Mention new module.
90600         * doc/glibc-functions/isnanf.texi: Mention new module.
90602 2008-07-10  Ben Pfaff  <blp@gnu.org>
90604         Add isnand module.
90605         * lib/isnand.h: New file.
90606         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
90607         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
90608         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
90609         functionality also.
90610         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
90611         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
90612         (gl_HAVE_ISNAND_IN_LIBM): New macro.
90613         * modules/isnand: New file.
90614         * modules/isnand-tests: New file.
90615         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
90616         files.
90617         * tests/test-isnand-nolibm.c: factored most of its contents into
90618         new file tests/test-isnand.h.
90619         * tests/test-isnand.h: New file.
90620         * tests/test-isnand.c: New file.
90621         * MODULES.html.sh: Mention new module.
90623 2008-07-10  Ben Pfaff  <blp@gnu.org>
90625         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
90626         * lib/isnand.h: Rename lib/isnand-nolibm.h.
90627         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
90628         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
90629         * modules/isnanf-nolibm: Update references to renamed files.
90630         * modules/isnand-nolibm: Likewise.
90631         * modules/isnanf-nolibm-tests: Likewise.
90632         * modules/isnand-nolibm-tests: Likewise.
90633         * lib/frexp.c: Likewise.
90634         * lib/isfinite.c: Likewise.
90635         * lib/signbitd.c: Likewise.
90636         * lib/signbitf.c: Likewise.
90637         * lib/vasnprintf.c: Likewise.
90638         * tests/test-ceilf1.c: Likewise.
90639         * tests/test-ceilf2.c: Likewise.
90640         * tests/test-floorf1.c: Likewise.
90641         * tests/test-floorf2.c: Likewise.
90642         * tests/test-frexp.c: Likewise.
90643         * tests/test-round1.c: Likewise.
90644         * tests/test-round2.c: Likewise.
90645         * tests/test-roundf1.c: Likewise.
90646         * tests/test-strtod.c: Likewise.
90647         * tests/test-trunc1.c: Likewise.
90648         * tests/test-trunc2.c: Likewise.
90649         * tests/test-truncf1.c: Likewise.
90650         * tests/test-truncf2.c: Likewise.
90651         * NEWS: Mention the renamed header files.
90653 2008-07-11  Jim Meyering  <meyering@redhat.com>
90655         vc-list-files: make the last-resort awk code more portable
90656         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
90657         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
90658         does not support it.
90660 2008-07-10  Eric Blake  <ebb9@byu.net>
90662         Work with tar's bootstrap.
90663         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
90664         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
90665         an m4 comment.
90667 2008-07-09  Jim Meyering  <meyering@redhat.com>
90669         posix-shell.m4: fix typo that made this test malfunction
90670         * m4/posix-shell.m4: Remove capitalization in variable name.
90672 2008-07-08  Bruno Haible  <bruno@clisp.org>
90674         * m4/onceonly.m4: Update comments.
90675         Reported by Ben Pfaff <blp@cs.stanford.edu>.
90677 2008-07-04  Jim Meyering  <meyering@redhat.com>
90679         * users.txt: Add vc-dwim.
90680         (bison, coreutils): Use the gitweb URL.
90682 2008-07-03  Jim Meyering  <meyering@redhat.com>
90684         * users.txt: Add libffcall.  From Sam Steingold.
90686 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
90688         getdate.y: do not ignore TZ with relative day, month or year offset
90689         * lib/getdate.y (get_date): Move the tz-handling block to follow the
90690         relative-date-handling, since otherwise, the latter would clobber the
90691         sole output (an updated Start value) of the tz-handling block.
90692         * tests/test-getdate.c: Tests for the fix
90694 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90696         Recognize 'foo_LIBRARIES += libgnu.a'.
90697         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
90698         makefile snippet has already specified an installation location,
90699         also using '+='.
90701 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
90703         getdate.y: factor out common actions
90704         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
90705         Use them in place of open-coded actions.
90707 2008-07-01  Simon Josefsson  <simon@josefsson.org>
90709         Add self-test for getdate module.
90710         * modules/getdate-tests: New file.
90711         * tests/test-getdate.c: New file.
90713 2008-06-29  Bruno Haible  <bruno@clisp.org>
90715         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
90716         .gitignore.
90717         Reported by Sylvain Beucler <beuc@beuc.net>.
90719 2008-06-29  Bruno Haible  <bruno@clisp.org>
90721         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
90722         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
90724 2008-06-29  Bruno Haible  <bruno@clisp.org>
90726         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
90727         EXTRA_DIST.
90728         Reported by Sylvain Beucler <beuc@beuc.net>.
90730 2008-06-26  Jim Meyering  <meyering@redhat.com>
90732         make several modules depend on the "open" module
90733         This provides slightly increased consistency when opening-for-write
90734         the name of a non-directory spelled with a trailing slash.
90735         * modules/chdir-safer: Likewise.
90736         * modules/chown: Likewise.
90737         * modules/clean-temp: Likewise.
90738         * modules/copy-file: Likewise.
90739         * modules/fchdir: Likewise.
90740         * modules/fcntl-safer: Likewise.
90741         * modules/pipe: Likewise.
90742         * modules/utime: Likewise.
90743         Prompted by Eric Blake and Bruno Haible.
90745 2008-06-24  Andreas Schwab  <schwab@suse.de>
90747         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
90748         literals can be used as initializers for global variables.
90750 2008-06-23  Eric Blake  <ebb9@byu.net>
90752         Make gnulib-cache.m4 easier to diff.
90753         * gnulib-tool (func_import): Allow newlines when reading cached
90754         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
90756 2008-06-23  Bruno Haible  <bruno@clisp.org>
90758         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
90759         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
90760         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
90761         m4/signalblocking.m4.
90762         (gl_PREREQ_SIGACTION): Don't invoke it.
90763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
90764         gl_PREREQ_SIG_HANDLER_H.
90765         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90766         Don't check for sigaction here.
90768 2008-06-23  Bruno Haible  <bruno@clisp.org>
90770         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
90771         (install_handlers): Don't set the SA_RESETHAND flag.
90773 2008-06-23  Bruno Haible  <bruno@clisp.org>
90775         * m4/sigaction.m4: Comment fixes.
90776         * lib/signal.in.h: Likewise.
90778 2008-06-23  Eric Blake  <ebb9@byu.net>
90780         Fix typo.
90781         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
90783         Avoid SA_ namespace.
90784         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
90785         Reported by Ralf Wildenhues.
90787         Avoid test failure due to SA_RESTORER.
90788         * tests/test-sigaction.c (SA_MASK): New macro.
90789         (main): Avoid failing due to extension flags being set.
90790         Reported by Jim Meyering.
90792         Revert use of sig-handler.h in sigprocmask.c.
90793         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
90794         it requires the existence of struct sigaction.
90795         * lib/sigprocmask.c (handler_t): Restore typedef.
90796         (rpl_signal, old_handlers): Use local type.
90798 2008-06-22  Bruno Haible  <bruno@clisp.org>
90800         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
90801         conditionally.
90802         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90804 2008-06-22  Bruno Haible  <bruno@clisp.org>
90806         * doc/posix-functions/siginterrupt.texi: Move note.
90808         * lib/signal.in.h (SA_RESTART): New macro.
90809         * lib/sigaction.c: Update comment.
90811         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
90813         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
90814         (gl_PREREQ_SIGPROCMASK): Invoke it.
90815         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
90817         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
90819         * lib/sigprocmask.c: Update a comment.
90821 2008-06-21  Eric Blake  <ebb9@byu.net>
90823         Use sigaction module rather than signal().
90824         * modules/c-stack (Depends-on): Add sigaction.
90825         * modules/fatal-signal (Depends-on): Likewise.
90826         * modules/nanosleep (Depends-on): Likewise.
90827         * modules/sigprocmask (Files): Add sig-handler.h.
90828         * modules/sigaction (Files): Likewise.
90829         * lib/sig-handler.h (get_handler): New file, suggested by Paul
90830         Eggert.
90831         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
90832         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
90833         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
90834         (init_fatal_signals): Likewise.
90835         * lib/nanosleep.c (rpl_nanosleep): Likewise.
90836         (siginterrupt): Delete fallback.
90837         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
90838         instead.
90839         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
90840         siginterrupt.
90842         New module sigaction, for mingw.
90843         * modules/sigaction: New module...
90844         * modules/sigaction-tests: ...and its test.
90845         * m4/sigaction.m4: New file.
90846         * lib/sigaction.c: Likewise.
90847         * tests/test-sigaction.c: Likewise.
90848         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
90849         * modules/signal (Makefile.am): Likewise.
90850         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
90851         needed.
90852         * doc/posix-headers/signal.texi (signal.h): Mention provided
90853         types.
90854         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
90855         that sigaction is preferable.
90856         * doc/posix-functions/sigaction.texi (sigaction): Mention new
90857         module.
90858         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90859         sigaction.
90861         Improve robustness of sigprocmask by overriding signal.
90862         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
90863         is in use.
90864         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
90865         (SIGKILL, SIGSTOP): Provide fallbacks.
90866         (rpl_signal): Implement.
90867         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
90868         signal can be called inside handlers.
90870         Fix nanosleep module on mingw.
90871         * modules/nanosleep (Depends-on): Add sys_select.
90872         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
90874         Fix licensing of sigprocmask.
90875         * modules/raise (License): Relicense as LGPL.
90877 2008-06-21  Bruno Haible  <bruno@clisp.org>
90879         * lib/propername.c (proper_name_utf8): Don't use the transliterated
90880         result if it contains question marks.
90881         Reported by Michael Geng <linux@michaelgeng.de>.
90883 2008-06-19  Bruno Haible  <bruno@clisp.org>
90885         Fix CVS-ism.
90886         * doc/gnulib.texi: Include updated-stamp.texi.
90887         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
90888         (updated-stamp.texi): New rule.
90889         (gnulib.info): Depend on it.
90890         * doc/.gitignore: Add updated-stamp.texi.
90891         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
90893 2008-06-19  Bruno Haible  <bruno@clisp.org>
90895         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90896         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90898 2008-06-19  Eric Blake  <ebb9@byu.net>
90900         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90901         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90902         Reported by Stepan Kasal.
90904 2008-06-18  Bruno Haible  <bruno@clisp.org>
90906         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90907         Reported by Eric Blake.
90909 2008-06-18  Eric Blake  <ebb9@byu.net>
90911         Work around cygwin 1.5.25 strsignal bug.
90912         * tests/test-strsignal.c: Allow for const char *.
90913         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90915 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90917         * users.txt: Update URL to article and add author/date
90918         information.
90920 2008-06-17  Bruno Haible  <bruno@clisp.org>
90922         New macro gl_DISABLE_THREADS.
90923         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90924         if the user did not pass --enable-threads or --disable-threads option.
90925         (gl_DISABLE_THREADS): New macro.
90926         Reported by Eric Blake <ebb9@byu.net>.
90928 2008-06-17  Bruno Haible  <bruno@clisp.org>
90930         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90931         when the macro ignores it.
90932         Based on a patch by Eric Blake <ebb9@byu.net>.
90934 2008-06-17  Bruno Haible  <bruno@clisp.org>
90936         * modules/tls (License): Change to LGPLv2+.
90937         Reported by Eric Blake.
90939 2008-06-17  Eric Blake  <ebb9@byu.net>
90941         Simplify c-stack prerequisites.
90942         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90944         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90945         check.
90946         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90947         <sys/resource.h>.
90949         Move c-stack test into testsuite.
90950         * modules/c-stack-tests: New file.
90951         * lib/c-stack.c [DEBUG]: Move test program...
90952         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90953         fail test if sigaltstack is lacking.
90954         * tests/test-c-stack.sh: New driver file.
90956 2008-06-16  Eric Blake  <ebb9@byu.net>
90958         Use raise module consistently.
90959         * modules/fatal-signal (Depends-on): Add raise.
90960         * modules/sigprocmask (Depends-on): Likewise.
90961         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90962         * lib/sigprocmask.c (sigprocmask): Likewise.
90963         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90964         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90966         Fix compliance bug in sigpending.
90967         * lib/sigprocmask.c (sigpending): Return pending array via
90968         parameter, not return value.
90970 2008-06-14  Eric Blake  <ebb9@byu.net>
90972         Improve obstack-printf test code.
90973         * tests/test-obstack-printf.c (test_function): Fix comment, and
90974         simplify usage of obstack_* in macros.  Add a test for coverage.
90975         Reported by Bruno Haible.
90977 2008-06-14  Bruno Haible  <bruno@clisp.org>
90979         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90980         array size as a constant, not as a const variable.
90981         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90982         AC_USE_SYSTEM_EXTENSIONS.
90983         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90984         Test whether the obstack_printf function actually exists.
90985         * modules/obstack-printf (Depends-on): Add extensions.
90986         (Include): Remove obstack.h.
90987         * modules/obstack-printf-posix (Depends-on): Add extensions.
90988         (Include): Remove obstack.h.
90990 2008-06-13  Eric Blake  <ebb9@byu.net>
90992         Add obstack-printf and obstack-printf-posix modules.
90993         * modules/obstack-printf: New file.
90994         * modules/obstack-printf-posix: Likewise.
90995         * MODULES.html.sh (Misc): Mention them.
90996         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90997         Likewise.
90998         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90999         Likewise.
91000         * modules/stdio (Makefile.am): Accomodate new modules.
91001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91002         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
91003         Declare.
91004         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
91005         functions.
91006         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
91007         (gl_REPLACE_OBSTACK_PRINTF): New macros
91008         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
91009         * tests/test-obstack-printf.c: New file.
91010         * modules/obstack-printf-tests: Likewise.
91011         * modules/obstack-printf-posix-tests: Likewise.
91013 2008-06-11  Bruno Haible  <bruno@clisp.org>
91015         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
91016         * lib/open.c: Include errno.h.
91017         (open): Fail when attempting to write to a file that has a trailing
91018         slash.
91019         * tests/test-open.c (main): Test against trailing slash bug.
91020         * doc/posix-functions/open.texi: Mention the trailing slash bug.
91022 2008-06-10  Bruno Haible  <bruno@clisp.org>
91024         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
91025         for $? to work inside the trap command, with various /bin/sh-s.
91026         * tests/test-vc-list-files-cvs.sh: Likewise.
91028 2008-06-10  Bruno Haible  <bruno@clisp.org>
91030         * lib/acl-internal.h: Don't include gettext.h here.
91031         * lib/set-mode-acl.c: Include gettext.h here.
91032         * lib/copy-acl.c: Likewise.
91034 2008-06-10  Bruno Haible  <bruno@clisp.org>
91036         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
91037         * lib/wait-process.c (wait_subprocess): Likewise.
91038         * lib/execute.h (execute): Add termsigp argument.
91039         * lib/execute.c (execute): Likewise.
91040         * lib/csharpcomp.c (compile_csharp_using_pnet,
91041         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
91042         * lib/csharpexec.c (execute_csharp_using_pnet,
91043         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
91044         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
91045         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
91046         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
91047         is_jikes_present): Update.
91048         * lib/javaexec.c (execute_java_class): Update.
91049         * lib/javaversion.c (execute_and_read_line): Update.
91050         * NEWS: Document the changes.
91051         Reported by Eric Blake.
91053 2008-06-10  Eric Blake  <ebb9@byu.net>
91055         Add missing include.
91056         * tests/test-strstr.c (includes): Add <signal.h>.
91057         * tests/test-strcasestr.c (includes): Likewise.
91058         * tests/test-memmem.c (includes): Likewise.
91060 2008-06-10  Bruno Haible  <bruno@clisp.org>
91062         * lib/wait-process.c (wait_subprocess): Add an assertion.
91064 2008-06-10  Bruno Haible  <bruno@clisp.org>
91066         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
91068 2008-06-10  Bruno Haible  <bruno@clisp.org>
91070         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
91071         using alarm().
91072         * tests/test-strcasestr.c (main): Likewise.
91073         * tests/test-strstr.c (main): Likewise.
91075 2008-06-09  Bruno Haible  <bruno@clisp.org>
91077         Work around the Solaris 10 ACE ACLs ABI change.
91078         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
91079         declare if ACL_NO_TRIVIAL is present.
91080         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
91081         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
91082         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
91083         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
91084         define if ACL_NO_TRIVIAL is present.
91085         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
91086         and use the current ABI.
91087         (file_has_acl): Use same #if condition as elsewhere.
91088         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
91089         in use, and use the current ABI.
91090         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
91091         Reported by Jim Meyering.
91093 2008-06-09  Eric Blake  <ebb9@byu.net>
91095         Work around environments that (stupidly) ignore SIGALRM.
91096         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
91097         before using alarm().
91098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91100         Reported by Ian Beckwith <ianb@erislabs.net>.
91102         Produce autobuild blurb earlier in log.
91103         * modules/autobuild (configure.ac-early): Move AB_INIT here.
91105 2008-06-09  Jim Meyering  <meyering@redhat.com>
91106         and Ondřej Vašík  <ovasik@redhat.com>
91108         utimens.c: correct kernel bug work-around
91109         Ondřej Vašík found that the invalid return value of 280 indicates
91110         failure, not success, and the kernel bug we're trying to work
91111         around affects not just the utimensat call, but also the fallback
91112         futimens call.
91113         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
91114         not success.
91115         [HAVE_FUTIMENS]: Use the same work-around, here.
91117 2008-06-09  Jim Meyering  <meyering@redhat.com>
91119         add more guards around definition of ACE_-related code
91120         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
91121         ALLOW and ACE_OWNER are also defined.
91123 2008-06-08  Bruno Haible  <bruno@clisp.org>
91125         * lib/acl-internal.h: Add me as co-author.
91126         * lib/file-has-acl.c: Likewise.
91127         * lib/set-mode-acl.c: Likewise.
91128         * lib/copy-acl.c: Likewise.
91130 2008-06-08  Bruno Haible  <bruno@clisp.org>
91132         Add support for AIX ACLs.
91133         * lib/acl-internal.h (acl_nontrivial): New declaration.
91134         * lib/file-has-acl.c (acl_nontrivial): New function.
91135         (file_has_acl): Add implementation using AIX 4 ACL API.
91136         * lib/set-mode-acl.c (qset_acl): Likewise.
91137         * lib/copy-acl.c (qcopy_acl): Likewise.
91139 2008-06-08  Bruno Haible  <bruno@clisp.org>
91141         Add support for HP-UX ACLs.
91142         * lib/acl-internal.h (acl_nontrivial): New declaration.
91143         * lib/file-has-acl.c (acl_nontrivial): New function.
91144         (file_has_acl): Add implementation using HP-UX 11 ACL API.
91145         * lib/set-mode-acl.c (qset_acl): Likewise.
91146         * lib/copy-acl.c (qcopy_acl): Likewise.
91148 2008-06-08  Bruno Haible  <bruno@clisp.org>
91150         Add support for Cygwin ACLs.
91151         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
91152         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
91153         the chmod_or_fchmod call.
91154         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
91156 2008-06-08  Bruno Haible  <bruno@clisp.org>
91158         Fix bug with setuid modes in Solaris 10+ code.
91159         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
91160         succeeded, when the mode contains some special bits.
91162 2008-06-08  Bruno Haible  <bruno@clisp.org>
91164         Add support for Solaris 7..10 ACLs.
91165         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
91166         declarations.
91167         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
91168         functions.
91169         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
91170         * lib/set-mode-acl.c (qset_acl): Likewise.
91171         * lib/copy-acl.c (qcopy_acl): Likewise.
91173 2008-06-08  Bruno Haible  <bruno@clisp.org>
91175         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
91176         declaration.
91177         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
91178         (acl_access_nontrivial): Remove MacOS X case.
91179         (file_has_acl): Use acl_extended_nontrivial.
91180         * lib/copy-acl.c (qcopy_acl): Likewise.
91182 2008-06-08  Bruno Haible  <bruno@clisp.org>
91184         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
91186 2008-06-08  Jim Meyering  <meyering@redhat.com>
91188         * modules/acl (Maintainer): Add Bruno Haible.
91190 2008-06-07  Bruno Haible  <bruno@clisp.org>
91192         Improve support for Tru64 ACLs.
91193         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
91194         ACL on OSF/1.
91196 2008-06-07  Bruno Haible  <bruno@clisp.org>
91198         Add support for MacOS X ACLs.
91199         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
91200         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
91201         * lib/set-mode-acl.c (qset_acl): Likewise.
91202         * lib/copy-acl.c (qcopy_acl): Likewise.
91204 2008-06-07  Bruno Haible  <bruno@clisp.org>
91206         Fix memory leak introduced on 2008-05-22.
91207         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
91208         use.
91210 2008-06-07  Bruno Haible  <bruno@clisp.org>
91212         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
91213         to construct an empty ACL.
91215 2008-06-07  Bruno Haible  <bruno@clisp.org>
91217         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
91218         precisely.
91219         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
91221 2008-06-07  Bruno Haible  <bruno@clisp.org>
91223         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
91224         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
91226 2008-06-07  Bruno Haible  <bruno@clisp.org>
91228         * doc/posix-functions/_setjmp.texi: Explain the use of this function
91229         regardless of POSIX.
91230         * doc/posix-functions/_longjmp.texi: Likewise.
91231         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
91232         SystemV platform in this case.
91234 2008-06-06  Eric Blake  <ebb9@byu.net>
91236         Document abort() bugs.
91237         * doc/posix-functions/abort.texi (abort): Mention anomalies.
91239         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
91240         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
91241         sigsetjmp.
91242         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
91243         siglongjmp, but only as a macro.
91244         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
91245         is obsolete.
91246         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
91248         Tweak documentation to cover cygwin argz bugs.
91249         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
91250         argz bug fix; no code change needed since no cygwin releases
91251         occurred between the last fix and the bug being tested.
91252         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
91253         module and recently fixed cygwin bugs.
91254         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
91255         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
91256         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
91257         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
91258         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
91259         Likewise.
91260         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
91261         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
91262         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
91263         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
91264         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
91265         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
91266         Likewise.
91268         Avoid gcc warning on cygwin.
91269         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
91270         !ACL_NO_TRIVIAL]: Avoid unused variable.
91272 2008-06-05  Eric Blake  <ebb9@byu.net>
91274         Be tolerant of UNKNOWN version in gnulib-tool test dir.
91275         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
91276         git-version-gen fails to come up with a version.
91277         Reported by Simon Josefsson.
91279 2008-06-05  Jim Meyering  <meyering@redhat.com>
91280             Paul Eggert  <eggert@cs.ucla.edu>
91282         utimens.c: work around a probable Linux kernel bug
91283         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
91284         appears to be a kernel bug that causes utimensat to return 280
91285         instead of 0, indicating success.
91287 2008-06-04  Bruno Haible  <bruno@clisp.org>
91289         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
91290         2008-06-01 commit.
91292 2008-06-04  Bruno Haible  <bruno@clisp.org>
91294         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
91295         * lib/file-has-acl.c (acl_access_nontrivial): New function.
91296         (file_has_acl): Use it. Save errno afterwards.
91297         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
91299 2008-06-03  Bruno Haible  <bruno@clisp.org>
91301         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
91302         draft code. Simplify #ifs.
91303         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
91304         Put Solaris code after POSIX-draft code. Fix comments regarding
91305         Solaris 10, HP-UX. Mention Cygwin.
91306         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
91308 2008-06-03  Eric Blake  <ebb9@byu.net>
91310         Provide fallback for older kernels.
91311         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
91312         Provide runtime fallback if kernel lacks support.
91313         Reported by Mike Frysinger.
91315 2008-06-02  Bruno Haible  <bruno@clisp.org>
91317         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
91318         it exists.
91320 2008-06-02  Bruno Haible  <bruno@clisp.org>
91322         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
91323         * lib/copy-acl.c (qcopy_acl): Update comment.
91325 2008-06-02  Bruno Haible  <bruno@clisp.org>
91327         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
91328         like ACL APIs.
91330 2008-06-02  Bruno Haible  <bruno@clisp.org>
91332         * tests/test-file-has-acl.sh: Use different code for Cygwin.
91333         * tests/test-set-mode-acl.sh: Likewise.
91334         * tests/test-copy-acl.sh: Likewise.
91335         * tests/test-copy-file.sh: Likewise.
91337 2008-06-02  Bruno Haible  <bruno@clisp.org>
91339         * tests/test-file-has-acl.sh: Remove unused code.
91341 2008-06-01  Bruno Haible  <bruno@clisp.org>
91343         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
91344         (copy_acl): Just a wrapper around qcopy_acl that emits the error
91345         messages.
91346         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
91348 2008-06-01  Bruno Haible  <bruno@clisp.org>
91350         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
91351         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
91352         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
91353         APIs.
91354         * modules/acl-tests (configure.ac): Remove tests now contained in
91355         m4/acl.m4.
91357 2008-06-02  Jim Meyering  <meyering@redhat.com>
91359         announce-gen: use a better key-server host name
91360         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
91361         it may be more consistently reliable.  Suggested by Werner Koch
91362         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
91364 2008-06-01  Bruno Haible  <bruno@clisp.org>
91366         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
91367         Reported by Voroskoi Andras <voroskoi@gmail.com>.
91369 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
91371         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
91373 2008-06-01  Bruno Haible  <bruno@clisp.org>
91375         New ACL tests.
91376         * tests/test-file-has-acl.sh: New file.
91377         * tests/test-file-has-acl.c: New file.
91378         * tests/test-set-mode-acl.sh: New file.
91379         * tests/test-set-mode-acl.c: New file.
91380         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
91381         * tests/test-copy-acl.c: New file.
91382         * modules/acl-tests: New file, based on modules/copy-file-tests.
91383         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
91384         (Depends-on): Add acl-tests.
91385         (configure.ac): Remove checks.
91386         (Makefile.am): Don't create test-sameacls program here any more.
91388 2008-06-01  Bruno Haible  <bruno@clisp.org>
91390         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
91391         * tests/test-sameacls.c: Include progname.h.
91392         (main): Invoke set_program_name. Portability fixes for MacOS X,
91393         Solaris, HP-UX.
91395 2008-06-01  Bruno Haible  <bruno@clisp.org>
91397         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
91398         function.
91399         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
91401 2008-06-01  Bruno Haible  <bruno@clisp.org>
91403         * modules/rpmatch (Depends-on): Add strdup.
91405 2008-06-01  Bruno Haible  <bruno@clisp.org>
91407         * lib/pipe.c: Include unistd-safer.h.
91408         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
91409         * modules/pipe (Depends-on): Add unistd-safer.
91411 2008-05-30  Simon Josefsson  <simon@josefsson.org>
91413         * modules/autobuild (configure.ac): Call AB_INIT.
91415 2008-05-30  Simon Josefsson  <simon@josefsson.org>
91417         * tests/test-getaddrinfo.c: Don't print debug messages by default.
91418         Suggested by Bruno Haible <bruno@clisp.org>.
91420 2008-05-30  Simon Josefsson  <simon@josefsson.org>
91422         * tests/test-base64.c: Cast size_t to unsigned long when invoking
91423         printf.  Use %lu instead of %d.  Reported by Bruno Haible
91424         <bruno@clisp.org>.
91426 2008-05-29  Eric Blake  <ebb9@byu.net>
91428         Prefer new POSIX 200x interfaces over futimesat.
91429         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
91430         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
91431         when available.
91432         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
91434 2008-05-28  Bruno Haible  <bruno@clisp.org>
91436         * modules/stpcpy (License): Change to LGPLv2+.
91437         Requested by David Lutterkort <dlutter@redhat.com>.
91439 2008-05-27  Bruno Haible  <bruno@clisp.org>
91441         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
91442         current mingw.
91443         Reported by Jose E. Marchesi <jemarch@gnu.org>.
91445 2008-05-27  Bruno Haible  <bruno@clisp.org>
91447         * modules/iconv_open (Link): New section, from module 'iconv'.
91448         * modules/striconv (Link): Likewise.
91449         * modules/striconveh (Link): Likewise.
91450         * modules/xstriconv (Link): Likewise.
91451         * modules/unicodeio (Link): Likewise.
91452         * modules/propername (Link): Likewise.
91453         Reported by Jim Meyering.
91455 2008-05-26  Jim Meyering  <meyering@redhat.com>
91457         sha256: do not artificially restrict buffer length to be < 2^32
91458         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
91459         uint32_t to size_t.
91460         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
91461         to match.
91463         avoid unaligned access errors, e.g., on sparc
91464         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
91465         direct access through a possibly-unaligned uint64* pointer.
91466         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
91467         direct access through a possibly-unaligned uint32* pointer.
91468         Prompted by this patch from Tom "spot" Callaway:
91469         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
91471         sha512.c: fix typo in comment
91472         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
91474 2008-05-25  Bruno Haible  <bruno@clisp.org>
91476         * lib/set-mode-acl.c: Renamed from lib/acl.c.
91477         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
91478         (Makefile.am): Update lib_SOURCES.
91480 2008-05-25  Bruno Haible  <bruno@clisp.org>
91482         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
91484 2008-05-25  Jim Meyering  <meyering@redhat.com>
91486         useless-if-before-free: freed expr may have white-space differences
91487         * build-aux/useless-if-before-free: Recognize cases in which the
91488         freed expression differs from the tested one in embedded white
91489         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
91490         $1 was used, so we can't make any regexp shy.  Improved tests now
91491         detect this.
91493         useless-if-before-free: accept white space in the expression.
91494         * build-aux/useless-if-before-free: For now, any white space
91495         in the expression must be identical in the free argument.
91497         useless-if-before-free: efficiency tweak
91498         * build-aux/useless-if-before-free: Make the expression-matching
91499         regexp "shy".
91500         Make the *outer* regexp shy, not the expr-matching one.
91502         update code-in-comment to accept cast of free arg
91503         * build-aux/useless-if-before-free: Update regexp.
91505 2008-05-25  Bruno Haible  <bruno@clisp.org>
91507         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
91508         * modules/copy-file-tests (Files, Makefile.am): Update.
91509         * tests/test-copy-file.c (func_test_copy): Update.
91511 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
91513         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
91515 2008-05-23  Bruno Haible  <bruno@clisp.org>
91517         Improve support for ACLs on OSF/1.
91518         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
91519         Remove fallback for unknown flavors of ACLs.
91521 2008-05-22  Bruno Haible  <bruno@clisp.org>
91523         Add support for ACLs on OSF/1.
91524         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
91525         replacements.
91526         (acl_free_text): New macro fallback.
91527         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
91528         acl_free.
91529         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
91530         acl_free_text function. Require AC_C_INLINE.
91532 2008-05-22  Bruno Haible  <bruno@clisp.org>
91534         Make copy_acl work on MacOS X 10.5.
91535         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
91536         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
91537         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
91538         If MODE_INSIDE_ACL, don't assume that every system has the same text
91539         representation for ACLs as FreeBSD.
91540         * lib/copy-acl.c (copy_acl): Add support for platforms with
91541         !MODE_INSIDE_ACL.
91542         * lib/file-has-acl.c (file_has_acl): Likewise.
91543         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
91544         FreeBSD, MacOS X, or IRIX, respectively.
91546 2008-05-22  Bruno Haible  <bruno@clisp.org>
91548         * lib/acl.h: Don't include <sys/acl.h>.
91549         (GETACLCNT): Move fallback to lib/acl-internal.h.
91550         * lib/acl-internal.h: Include <sys/acl.h> here.
91551         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
91553 2008-05-22  Bruno Haible  <bruno@clisp.org>
91555         Split off copy_acl function to separate file.
91556         * lib/copy-acl.c: New file, extracted from lib/acl.c.
91557         * lib/acl.c (copy_acl): Moved function to separate file.
91558         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
91559         * modules/acl (Files): Add lib/copy-acl.c.
91560         (Makefiles.am): Augment lib_SOURCES.
91562 2008-05-22  Bruno Haible  <bruno@clisp.org>
91564         * modules/copy-file-tests: New file.
91565         * tests/test-copy-file.sh: New file.
91566         * tests/test-copy-file.c: New file.
91567         * tests/test-copy-file-sameacls.c: New file.
91569 2008-05-22  Eric Blake  <ebb9@byu.net>
91571         Avoid gcc warning.
91572         * tests/test-memcmp.c (main): Pass NULL indirectly.
91574 2008-05-21  Bruno Haible  <bruno@clisp.org>
91576         Add reference doc about ACLs.
91577         * doc/acl-resources.txt: New file.
91578         * doc/acl-cygwin.txt: New file.
91580 2008-05-21  Bruno Haible  <bruno@clisp.org>
91582         Avoid one more warning from gcc.
91583         * lib/vasnprintf.c (IF_LINT): Update comments.
91584         (VASNPRINTF): Use it also for the 'prefix' array initializer.
91586 2008-05-21  Jim Meyering  <meyering@redhat.com>
91588         avoid a warning from gcc
91589         * lib/vasnprintf.c (IF_LINT): Define.
91590         (scale10_round_decimal_long_double):
91591         Use it to avoid a "may be used uninitialized" warning.
91592         (scale10_round_decimal_double): Likewise.
91594 2008-05-21  Simon Josefsson  <simon@josefsson.org>
91596         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
91597         declared.
91599 2008-05-20  Bruno Haible  <bruno@clisp.org>
91601         * tests/test-memcmp.c (main): Test also the sign of the result. Test
91602         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
91604 2008-05-20  Simon Josefsson  <simon@josefsson.org>
91606         * modules/memcmp-tests: New file.
91607         * tests/test-memcmp.c: New file.
91609 2008-05-19  Bruno Haible  <bruno@clisp.org>
91611         * modules/propername (Notice, configure.ac): Put quoted "..." into
91612         --keyword option.
91613         * lib/propername.h: Update comments accordingly.
91614         Reported by Eric Blake.
91616 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
91618         * modules/getpass-gnu (Depends-on): Add fseeko.
91620 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91622         * modules/base64-tests: New file.
91624 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
91626         * lib/base64.c (base64_decode_ctx): If a decode context structure
91627         was passed in use it to ignore newlines.  If a context structure
91628         was _not_ passed in, continue to treat newlines as garbage (this
91629         is the historical behavior).  Formerly base64_decode.
91630         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91631         takes a decode context structure.
91632         * lib/base64.h (base64_decode): Macro for four-argument calls.
91633         (base64_decode_alloc): Likewise.
91634         * lib/base64.c (base64_decode_ctx): If a decode context structure
91635         was passed in use it to ignore newlines.  If a context structure
91636         was _not_ passed in, continue to treat newlines as garbage (this
91637         is the historical behavior).  Formerly base64_decode.
91638         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91639         takes a decode context structure.
91640         * lib/base64.h (base64_decode): Macro for four-argument calls.
91641         (base64_decode_alloc): Likewise.
91643 2008-05-19  Jim Meyering  <meyering@redhat.com>
91645         avoid a warning from gcc
91646         * lib/trim.c (IF_LINT): Define.
91647         (trim2): Use it to avoid a "may be used uninitialized" warning.
91649         Fix doc typo.
91650         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
91652 2008-05-19  Bruno Haible  <bruno@clisp.org>
91654         * doc/glibc-functions/getpass.texi: Document limits of other
91655         implementations.
91657 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91658             Bruno Haible <bruno@clisp.org>
91660         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
91662 2008-05-18  Bruno Haible  <bruno@clisp.org>
91664         * modules/propername: New file, from GNU gettext.
91665         * lib/propername.h: New file, from GNU gettext.
91666         * lib/propername.c: New file, from GNU gettext.
91667         * MODULES.html.sh (Internationalization functions): Add propername.
91669 2008-05-16  Jim Meyering  <meyering@redhat.com>
91670             Bruno Haible  <bruno@clisp.org>
91672         Avoid some warnings from "gcc -Wshadow".
91673         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
91675 2008-05-15  Eric Blake  <ebb9@byu.net>
91677         Extend previous patch to cygwin 1.7.0.
91678         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
91679         fast implementation in cygwin >= 1.7.0.
91680         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91683 2008-05-15  Bruno Haible  <bruno@clisp.org>
91685         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
91686         implementation in glibc >= 2.9.
91687         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91690 2008-05-15  Bruno Haible  <bruno@clisp.org>
91692         * MODULES.html.sh (Internationalization functions): Remove linebreak.
91693         (Unicode string functions): Add unilbrk/*.
91694         Reported by Karl Berry.
91696 2008-05-15  Eric Blake  <ebb9@byu.net>
91698         Fix violation of <stdbool.h> replacement in regex.
91699         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
91700         * lib/regexec.c (re_search_internal): Likewise.
91701         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
91703 2008-05-15  Jim Meyering  <meyering@redhat.com>
91705         avoid distracting test output when git or cvs is not found
91706         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
91707         * tests/test-vc-list-files-git.sh: Likewise.
91709 2008-05-15  Eric Blake  <ebb9@byu.net>
91711         Glibc finally accepted the memmem speedup code, bugzilla #5514.
91712         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
91713         glibc version.
91714         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
91715         * doc/posix-functions/strstr.texi (strstr): Likewise.
91716         * lib/str-two-way.h (MAX): Sychronize with glibc.
91718 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
91720         * lib/regcomp.c (optimize_utf8): Add a note on why we test
91721         opr.ctx_type.
91722         (calc_first): Initialize constraint field.
91723         (duplicate_node_closure): Use it instead of special casing ANCHORS.
91724         Fix grammar.
91725         (duplicate_node): Merge constraint field for all node types.
91726         (calc_eclosure_iter): Look at constraint field for all node types.
91727         * lib/regex_internal.c (create_cd_newstate): Don't look at
91728         opr.ctx_type.
91730 2008-05-14  Bruno Haible  <bruno@clisp.org>
91732         Help GCC to do better code generation.
91733         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
91734         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
91735         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
91736         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
91737         Declare with attribute 'malloc' if supported.
91739 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
91741         use "echo STR|wc -c" rather than unportable "expr length STR"
91742         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
91743         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
91745 2008-05-14  Jim Meyering  <meyering@redhat.com>
91747         use dd ibs=$n count=1 ... rather than less-portable head -c$n
91748         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
91749         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
91750         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
91751         via Collin Lasse.
91753 2008-05-14  Eric Blake  <ebb9@byu.net>
91755         Avoid quadratic growth in gl_LIBSOURCES.
91756         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
91757         Suggested by Bruno Haible.
91759         Test xmemdup0.
91760         * modules/xmemdup0-tests: New file.
91761         * tests/test-xmemdup0.c: Likewise.
91763 2008-05-13  Eric Blake  <ebb9@byu.net>
91765         Split xmemdup0 into its own module.
91766         * modules/xmemdup0: New file.
91767         * lib/xmemdup0.h: Likewise.
91768         * lib/xmemdup0.c: Likewise.
91769         * MODULES.html.sh (Memory management functions): Add xmemdup0.
91770         * lib/xalloc.h (xmemdup0): Remove.
91771         * lib/xmalloc.c (xmemdup0): Likewise.
91773 2008-05-13  Eric Blake  <ebb9@byu.net>
91774             Bruno Haible  <bruno@clisp.org>
91776         Reduce number of forks required during autoconf.
91777         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
91778         and gl_LIBSOURCES_DIR.
91779         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
91780         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
91781         m4_syscmd per file.
91782         <m4_foreach_w>: Move...
91783         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
91785 2008-05-13  Eric Blake  <ebb9@byu.net>
91787         * gnulib-tool: Fix various comment typos.
91789 2008-05-12  Bruno Haible  <bruno@clisp.org>
91791         Tailor the linebreaking algorithm.
91792         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
91794 2008-05-12  Bruno Haible  <bruno@clisp.org>
91796         Update to Unicode 5.0.0.
91797         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91798         LBP_JV, LBP_JT. Redistribute values.
91799         (unilbrk_table): Change size.
91800         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
91801         Unicode TR#14 rev. 22.
91802         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91803         LBP_JV, LBP_JT. Redistribute values.
91804         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
91805         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
91806         Update.
91807         * lib/unilbrk/lbrkprop1.h: Regenerated.
91808         * lib/unilbrk/lbrkprop2.h: Regenerated.
91809         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
91810         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
91811         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
91812         Likewise.
91813         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
91814         Likewise.
91815         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
91816         result.
91817         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
91818         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
91819         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
91820         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
91821         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
91822         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
91824 2008-05-11  Bruno Haible  <bruno@clisp.org>
91826         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
91828 2008-05-11  Bruno Haible  <bruno@clisp.org>
91830         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
91831         * modules/unilbrk/gen-lbrk: New file.
91833 2008-05-11  Bruno Haible  <bruno@clisp.org>
91835         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
91836         * m4/sha512.m4 (gl_SHA512): Likewise.
91838 2008-05-11  Jim Meyering  <meyering@redhat.com>
91840         New modules: crypto/sha256, crypto/sha512 (from coreutils)
91841         * modules/crypto/sha256: New file.
91842         * modules/crypto/sha512: Likewise.
91843         * lib/sha256.c: Likewise.
91844         * lib/sha256.h: Likewise.
91845         * lib/sha512.c: Likewise.
91846         * lib/sha512.h: Likewise.
91847         * lib/u64.h: Likewise.
91848         * m4/sha256.m4: Likewise.
91849         * m4/sha512.m4: Likewise.
91850         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
91852 2008-05-10  Bruno Haible  <bruno@clisp.org>
91854         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
91855         (Input/Output <stdio.h>): Add xprintf.
91856         (Signal handling <signal.h>): Add strsignal.
91857         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
91858         (Core language properties): Add func.
91859         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
91860         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
91861         strings.
91862         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
91863         (Input/output): New section.
91864         (File system functions): Add openat-die, stat-macros.
91865         (Networking functions): Add sockets.
91866         (Unicode string functions): Add unictype/*.
91867         (Support for building libraries and executables): Add gperf.
91868         (Support for building documentation): Add agpl-3.0.
91869         (Misc): Add nocrash.
91871 2008-05-10  Bruno Haible  <bruno@clisp.org>
91873         * modules/unictype/gen-ctype: New file.
91875 2008-05-10  Jim Meyering  <meyering@redhat.com>
91877         Make chdir-safer.c more efficient on a system with no symlinks.
91878         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
91879         also if ELOOP is zero.  Suggested by Bruno Haible.
91881         Make chdir-safer.c slightly safer.
91882         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
91883         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
91885         Avoid compile failure on systems without ELOOP (like mingw).
91886         * lib/chdir-safer.c (ELOOP): Define if not already defined.
91887         Reported by Bruno Haible.
91889 2008-05-10  Bruno Haible  <bruno@clisp.org>
91891         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
91892         (is_utf8_encoding): Use a case-insensitive comparison.
91893         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
91894         streq.
91896 2008-05-10  Bruno Haible  <bruno@clisp.org>
91898         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91899         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91900         * lib/unilbrk/ulc-common.h (iconv_string_length,
91901         iconv_string_keeping_offsets): Remove declarations.
91902         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91903         Don't include <iconv.h>, streq.h, xsize.h.
91904         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91905         conversion.
91906         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91907         <iconv.h>, streq.h, xsize.h.
91908         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91909         conversion.
91910         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91911         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91912         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91913         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91915 2008-05-10  Bruno Haible  <bruno@clisp.org>
91917         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91918         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91920         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91921         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91923         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91924         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91926         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91927         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91929         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91930         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91932         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91933         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91935         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91936         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91938         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91939         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91941 2008-05-10  Bruno Haible  <bruno@clisp.org>
91943         Split up 'linebreak' module.
91944         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91945         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91946         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91947         modifications.
91948         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91949         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91950         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91951         lib/linebreak.c.
91952         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91953         lib/linebreak.c.
91954         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91955         lib/linebreak.c.
91956         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91957         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91958         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91959         lib/linebreak.c.
91960         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91961         lib/linebreak.c.
91962         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91963         lib/linebreak.c.
91964         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91965         lib/linebreak.c.
91966         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91967         lib/linebreak.c.
91968         * modules/unilbrk/base: New file.
91969         * modules/unilbrk/tables: New file.
91970         * modules/unilbrk/u8-possible-linebreaks: New file.
91971         * modules/unilbrk/u16-possible-linebreaks: New file.
91972         * modules/unilbrk/u32-possible-linebreaks: New file.
91973         * modules/unilbrk/ulc-common: New file.
91974         * modules/unilbrk/ulc-possible-linebreaks: New file.
91975         * modules/unilbrk/u8-width-linebreaks: New file.
91976         * modules/unilbrk/u16-width-linebreaks: New file.
91977         * modules/unilbrk/u32-width-linebreaks: New file.
91978         * modules/unilbrk/ulc-width-linebreaks: New file.
91979         * lib/linebreak.h: Remove file.
91980         * lib/linebreak.c: Remove file.
91981         * m4/linebreak.m4: Remove file.
91982         * modules/linebreak: Remove file.
91983         * NEWS: Mention the changes.
91985 2008-05-09  Eric Blake  <ebb9@byu.net>
91987         Add xmemdup0.
91988         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91989         implementation.
91990         * lib/xmalloc.c (xmemdup0): New C implementation.
91992 2008-05-08  Bruno Haible  <bruno@clisp.org>
91994         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91996 2008-05-07  Eric Blake  <ebb9@byu.net>
91998         Support cross-compilation of <wctype.h>.
91999         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
92000         AC_CACHE_CHECK.
92002 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
92004         * build-aux/vc-list-files: Add support for bzr.
92006 2008-05-03  Jim Meyering  <meyering@redhat.com>
92008         avoid failed assertion with tight malloc
92009         * tests/test-getndelim2.c: Correct an off-by-one assertion.
92011 2008-05-03  Simon Josefsson  <simon@josefsson.org>
92013         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
92014         are needed from arpa/inet.h.
92015         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
92016         Reported by Bruno Haible.
92018 2008-05-02  Jim Meyering  <meyering@redhat.com>
92020         avoid compilation error on FreeBSD 6
92021         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
92023 2008-05-01  Jim Meyering  <meyering@redhat.com>
92025         useless-if-before-free: correct --help's exit status description
92026         * build-aux/useless-if-before-free (usage): Like grep, exit 0
92027         for one or more matches, etc.  Reported by Bruno Haible.
92029         vc-list-files: make the stand-alone gnulib test work
92030         * modules/vc-list-files-tests (configure.ac):
92031         Define and AC_SUBST abs_aux_dir.
92032         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
92033         $(abs_top_srcdir) to each script and having each of them
92034         duplicate the work of setting PATH, set PATH here, using
92035         the new variable, abs_aux_dir instead.
92036         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
92037         * tests/test-vc-list-files-git.sh: Likewise.
92038         Reported by Bruno Haible.
92040 2008-05-01  Bruno Haible  <bruno@clisp.org>
92042         * lib/getndelim2.c (getndelim2): Fix newsize computation during
92043         reallocation. Rename 'done' to 'found_delimiter'.
92045 2008-05-01  Jim Meyering  <meyering@redhat.com>
92047         vc-list-files: accommodate /bin/sh like the one from Solaris 10
92048         * build-aux/vc-list-files: Use `...`, not $(...).
92050 2008-04-30  Jim Meyering  <meyering@redhat.com>
92052         add tests for vc-list-files
92053         * modules/vc-list-files-tests: New module.
92054         * tests/test-vc-list-files-cvs.sh: New file.
92055         * tests/test-vc-list-files-git.sh: New file.
92057         avoid a warning from gcc
92058         * lib/getndelim2.c (IF_LINT): Define.
92059         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
92061         vc-list-files: work properly with build-aux/cvsu, too
92062         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
92063         to all cvs-based clauses.
92065         vc-list-files: work properly in the CVS+awk case, too
92066         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
92068         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
92069         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
92070         take more than one file argument, so .  Add quotes, just in case $dir
92071         ever contains a shell meta-character.  Prompted by Soren Hansen in
92072         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
92074 2008-04-29  Eric Blake  <ebb9@byu.net>
92076         Optimize getndelim2 to use block operations when possible.
92077         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
92078         freadseek, and memchr2.
92079         * lib/getndelim2.c (getndelim2): Use them for block reads.
92081 2008-04-29  Bruno Haible  <bruno@clisp.org>
92083         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
92084         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92085         * modules/inet_ntop (Depends-on): Add extensions.
92086         * modules/inet_pton (Depends-on): Likewise.
92087         Reported by Simon Josefsson.
92089 2008-04-29  Jim Meyering  <meyering@redhat.com>
92091         When the is more than one match in a block, match all of them.
92092         * build-aux/useless-if-before-free: Iterate through each block
92093         until there are no more matches.
92095         Fix broken useless-if-before-free script.
92096         * build-aux/useless-if-before-free: Fix typo: missing "?" after
92097         the expression to match cast of argument to free-like function.
92099 2008-04-29  Eric Blake  <ebb9@byu.net>
92101         Use new header.
92102         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
92104 2008-04-29  Jim Meyering  <meyering@redhat.com>
92106         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
92107         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
92108         by gnulib to exist and to declare e.g., inet_ntop.
92109         Don't include "inet_ntop.h", now removed.
92111         * m4/arpa_inet_h.m4: Remove trailing blanks.
92113 2008-04-29  Eric Blake  <ebb9@byu.net>
92115         Silence valgrind on safe reads beyond potential array bounds.
92116         * lib/rawmemchr.valgrind: New file.
92117         * lib/strchrnul.valgrind: Likewise.
92118         * modules/rawmemchr (Files): Distribute new file.
92119         * modules/strchrnul (Files): Likewise.
92120         Suggested by Bruno Haible.
92122 2008-04-29  Bruno Haible  <bruno@clisp.org>
92124         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
92125         (inet_ntop, inet_pton): Change portability warning's wording.
92126         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
92127         Invoke gl_CHECK_NEXT_HEADERS.
92128         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
92129         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
92130         set ARPA_INET_H.
92131         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92132         * modules/arpa_inet (Description): No longer only for systems that
92133         lack it.
92134         (Depends-on): Add include_next.
92135         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
92136         HAVE_ARPA_INET_H.
92138 2008-04-29  Jim Meyering  <meyering@redhat.com>
92140         * modules/mkdir (License): Re-license as LGPLv2+.
92142 2008-04-29  Bruno Haible  <bruno@clisp.org>
92144         * modules/rawmemchr (Maintainer): Set to Eric.
92145         * modules/strchrnul (Maintainer): Likewise.
92147 2008-04-29  Simon Josefsson  <simon@josefsson.org>
92149         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
92150         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
92152         * modules/arpa_inet (arpa/inet.h): Use them.
92154 2008-04-28  Eric Blake  <ebb9@byu.net>
92156         Test getndelim2.
92157         * modules/getndelim2-tests: New file.
92158         * tests/test-getndelim2.c: Likewise.
92159         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
92160         stream.
92161         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
92163         * MODULES.html.sh: Document new module.
92165 2008-04-20  Bruno Haible  <bruno@clisp.org>
92167         * lib/c-stack.c (die): Use raise.
92168         * modules/c-stack (Depends-on): Add raise.
92170 2008-04-28  Bruno Haible  <bruno@clisp.org>
92172         Expect rpmatch to be declared.
92173         * lib/yesno.c (rpmatch): Remove declaration.
92175         Declare rpmatch.
92176         * lib/stdlib.in.h (rpmatch): New declaration.
92177         * lib/rpmatch.c: Include <stdlib.h> first.
92178         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
92179         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
92180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
92181         HAVE_RPMATCH.
92182         * modules/rpmatch (Depends-on): Add stdlib, extensions.
92183         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92184         (Include): Set to <stdlib.h>.
92185         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
92186         HAVE_RPMATCH.
92187         * NEWS: Document the change.
92189 2008-04-28  Bruno Haible  <bruno@clisp.org>
92191         Change rpmatch to use nl_langinfo when appropriate.
92192         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
92193         (N_): New macro.
92194         (localized_pattern): New function/macro.
92195         (try): Remove match, nomatch arguments. Copy the pattern into safe
92196         memory before caching it.
92197         (rpmatch): Use localized_pattern. Add translator comments.
92198         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
92199         Suggested by Eric Blake.
92200         * modules/rpmatch (Depends-on): Add stdbool.
92202 2008-04-28  Eric Blake  <ebb9@byu.net>
92204         Add rawmemchr module, matching glibc.
92205         * modules/string (Makefile.am): New indicator.
92206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
92207         * lib/string.in.h (rawmemchr): Declare when appropriate.
92208         * modules/rawmemchr: New file.
92209         * m4/rawmemchr.m4: Likewise.
92210         * lib/rawmemchr.c: Likewise.
92211         * modules/rawmemchr-tests: Likewise.
92212         * tests/test-rawmemchr.c: Likewise.
92213         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
92214         module.
92215         * modules/strchrnul (Depends-on): Add rawmemchr.
92216         * lib/strchrnul.c (strchrnul): Optimize a corner case.
92218         Whitespace cleanup.
92219         * tests/test-strchrnul.c: Reindent.
92220         * lib/strchrnul.c: Likewise.
92222         Optimize and test strchrnul.
92223         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
92224         * modules/strchrnul-tests: New file.
92225         * tests/test-strchrnul.c: Likewise.
92227         Remove intprops dependency.
92228         * modules/memchr (Depends-on): Remove intprops.
92229         * modules/memrchr (Depends-on): Likewise.
92230         * modules/memchr2 (Depends-on): Likewise.
92231         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
92232         * lib/memrchr.c (__memrchr): Likewise.
92233         * lib/memrchr2.c (memchr2): Likewise.
92234         Reported by Simon Josefsson.
92236 2008-04-28  Simon Josefsson  <simon@josefsson.org>
92238         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
92239         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92241 2008-04-28  Simon Josefsson  <simon@josefsson.org>
92243         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
92245         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
92247         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
92249         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
92250         declarations.
92251         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
92253         * m4/inet_pton.m4: Don't check for header files.
92255         * m4/inet_ntop.m4: Don't check for header files.
92257 2008-04-28  Simon Josefsson  <simon@josefsson.org>
92259         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
92260         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
92261         trigger for cygwin).
92262         Reported by Bruno Haible  <bruno@clisp.org>.
92264 2008-04-28  Bruno Haible  <bruno@clisp.org>
92266         * doc/posix-functions/strdup.texi: Mention mingw problem.
92268 2008-04-27  Bruno Haible  <bruno@clisp.org>
92270         * modules/stat-time-tests (Depends-on): Add sleep.
92271         * tests/test-stat-time.c (force_unlink): New function.
92272         (cleanup): Use it.
92273         (test_mtime): Remove the ctime related tests.
92274         (test_ctime): New function, containing the ctime related tests.
92275         (main): Call test_ctime, except on native Windows platforms.
92277 2008-04-27  Bruno Haible  <bruno@clisp.org>
92279         * lib/rpmatch.c (rpmatch): Add some comments.
92280         Reported by James Youngman <jay@gnu.org>.
92282 2008-04-27  Bruno Haible  <bruno@clisp.org>
92284         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
92285         quiet NaNs.
92287 2008-04-27  Bruno Haible  <bruno@clisp.org>
92289         Make test-yesno.sh work on mingw.
92290         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
92291         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
92292         (main): Set stdin to binary mode.
92293         * modules/yesno-tests (Depends-on): Add binary-io.
92295 2008-04-27  Bruno Haible  <bruno@clisp.org>
92297         Fix 'isfinite' on x86, x86_64, ia64 platforms.
92298         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
92299         argument that lie outside the IEEE 854 domain.
92300         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
92301         (gl_ISFINITE): Use it.
92302         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
92304 2008-04-27  Bruno Haible  <bruno@clisp.org>
92306         Allow local renaming in config.h.
92307         * lib/memrchr.c (memrchr): Don't undefine outside libc.
92309 2008-04-27  Bruno Haible  <bruno@clisp.org>
92311         * lib/memchr.c (__memchr): Change type of 'i'.
92312         * lib/memchr2.c (memchr2): Likewise.
92314 2008-04-26  Eric Blake  <ebb9@byu.net>
92315         and Bruno Haible  <bruno@clisp.org>
92317         Optimize and test memrchr.
92318         * modules/memrchr (Depends-on): Add intprops.
92319         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
92320         * modules/memrchr-tests: New file.
92321         * tests/test-memrchr.c: New file.
92323 2008-04-26  Bruno Haible  <bruno@clisp.org>
92325         Add tentative support for DragonFly BSD.
92326         * lib/stdio-impl.h: Add macros for DragonFly BSD.
92327         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
92328         fp.
92329         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
92330         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
92331         * lib/fpurge.c (fpurge): Likewise.
92332         * lib/freadable.c (freaadable): Likewise.
92333         * lib/freadahead.c (freadahead): Likewise.
92334         * lib/freading.c (freading): Likewise.
92335         * lib/freadptr.c (freadptr): Likewise.
92336         * lib/freadseek.c (freadptrinc): Likewise.
92337         * lib/fseeko.c (fseeko): Likewise.
92338         * lib/fseterr.c (fseterr): Likewise.
92339         * lib/fwritable.c (fwritable): Likewise.
92340         * lib/fwriting.c (fwriting): Likewise.
92342 2008-04-26  Bruno Haible  <bruno@clisp.org>
92344         * lib/stdio-impl.h: New file.
92345         * lib/fbufmode.c: Include stdio-impl.h.
92346         (fbufmode): Use fp_, remove redundant #defines.
92347         * lib/fflush.c: Include stdio-impl.h.
92348         (clear_ungetc_buffer): Remove redundant #defines.
92349         * lib/fpurge.c: Include stdio-impl.h.
92350         (fpurge): Remove redundant #defines.
92351         * lib/freadable.c: Include stdio-impl.h.
92352         (freadable): Remove redundant #defines.
92353         * lib/freadahead.c: Include stdio-impl.h.
92354         (freadahead): Remove redundant #defines.
92355         * lib/freading.c: Include stdio-impl.h.
92356         (freading): Remove redundant #defines.
92357         * lib/freadptr.c: Include stdio-impl.h.
92358         (freadptr): Remove redundant #defines.
92359         * lib/freadseek.c: Include stdio-impl.h.
92360         (freadptrinc): Remove redundant #defines.
92361         * lib/fseeko.c: Include stdio-impl.h.
92362         (rpl_fseeko): Remove redundant #defines.
92363         * lib/fseterr.c: Include stdio-impl.h.
92364         (fseterr): Remove redundant #defines.
92365         * lib/fwritable.c: Include stdio-impl.h.
92366         (fwritable: Remove redundant #defines.
92367         * lib/fwriting.c: Include stdio-impl.h.
92368         (fwriting): Remove redundant #defines.
92369         * modules/fbufmode (Files): Add lib/stdio-impl.h.
92370         * modules/fflush (Files): Likewise.
92371         * modules/fpurge (Files): Likewise.
92372         * modules/freadable (Files): Likewise.
92373         * modules/freadahead (Files): Likewise.
92374         * modules/freading (Files): Likewise.
92375         * modules/freadptr (Files): Likewise.
92376         * modules/freadseek (Files): Likewise.
92377         * modules/fseeko (Files): Likewise.
92378         * modules/fseterr (Files): Likewise.
92379         * modules/fwritable (Files): Likewise.
92380         * modules/fwriting (Files): Likewise.
92382 2008-04-26  Bruno Haible  <bruno@clisp.org>
92384         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
92385         restore_seek_optimization, update_fpos_cache): New functions, extracted
92386         from rpl_fflush.
92387         (rpl_fflush): Use them.
92388         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
92389         (gl_REPLACE_FFLUSH): Use it.
92391 2008-04-26  Bruno Haible  <bruno@clisp.org>
92393         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
92394         on Solaris.
92395         * tests/test-xstrtoimax.sh: Likewise.
92396         * tests/test-xstrtoumax.sh: Likewise.
92397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92399 2008-04-26  Bruno Haible  <bruno@clisp.org>
92401         * modules/memchr-tests: New file.
92402         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
92404 2008-04-26  Eric Blake  <ebb9@byu.net>
92405             Bruno Haible  <bruno@clisp.org>
92407         * lib/memchr.c: Include intprops.h.
92408         (__memchr): Optimize parallel detection of matching bytes. Rename local
92409         variables. Add explanatory comments.
92411 2008-04-26  Bruno Haible  <bruno@clisp.org>
92413         Fix module 'memchr', broken since 2000-10-28.
92414         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
92416 2008-04-26  Bruno Haible  <bruno@clisp.org>
92418         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
92419         comments.
92421 2008-04-25  Eric Blake  <ebb9@byu.net>
92423         Use native fstatat on cygwin 1.7.0.
92424         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
92425         first.
92427 2008-04-23  Eric Blake  <ebb9@byu.net>
92429         Improve memchr2 performance.
92430         * lib/memchr2.c (memchr2): Further optimize parallel detection of
92431         NUL bytes.
92432         * modules/memchr2 (Depends-on): Use intprops.h.
92434 2008-04-23  Simon Josefsson  <simon@josefsson.org>
92436         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
92437         an inline function instead of a CPP macro.  Patch by Ben Pfaff
92438         <blp@cs.stanford.edu>.
92440 2008-04-23  Simon Josefsson  <simon@josefsson.org>
92442         * lib/arpa_inet.in.h: New file.
92444         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
92445         (Makefile.am): Sed in substitute header file.
92447         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
92448         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
92450         * modules/inet_ntop (configure.ac): Use
92451         gl_ARPA_INET_MODULE_INDICATOR.
92453         * modules/inet_pton (configure.ac): Use
92454         gl_ARPA_INET_MODULE_INDICATOR.
92456 2008-04-22  Jim Meyering  <meyering@redhat.com>
92458         * modules/verify (License): Re-license as LGPLv2+.
92460 2008-04-22  Simon Josefsson  <simon@josefsson.org>
92462         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
92463         parameter to void* as per POSIX standard (MinGW uses char*).
92465 2008-04-21  Bruno Haible  <bruno@clisp.org>
92467         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
92468         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
92469         Define to replacements if REPLACE_ISWCNTRL is 1.
92470         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
92471         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
92472         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
92473         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
92474         what it fixes.
92475         * doc/posix-functions/iswalpha.texi: Likewise.
92476         * doc/posix-functions/iswblank.texi: Likewise.
92477         * doc/posix-functions/iswcntrl.texi: Likewise.
92478         * doc/posix-functions/iswdigit.texi: Likewise.
92479         * doc/posix-functions/iswgraph.texi: Likewise.
92480         * doc/posix-functions/iswlower.texi: Likewise.
92481         * doc/posix-functions/iswprint.texi: Likewise.
92482         * doc/posix-functions/iswpunct.texi: Likewise.
92483         * doc/posix-functions/iswspace.texi: Likewise.
92484         * doc/posix-functions/iswupper.texi: Likewise.
92485         * doc/posix-functions/iswxdigit.texi: Likewise.
92486         Reported by Alain Guibert.
92488 2008-04-21  Bruno Haible  <bruno@clisp.org>
92490         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
92491         Patch by Alain Guibert.
92493 2008-04-21  Bruno Haible  <bruno@clisp.org>
92495         Fix test failures on mingw.
92496         * tests/test-xstrtol.c (print_no_progname): New function.
92497         (main): Install it in error_print_progname hook.
92498         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
92499         * tests/test-xstrtoimax.sh: Likewise.
92500         * tests/test-xstrtoumax.sh: Likewise.
92502 2008-04-21  Bruno Haible  <bruno@clisp.org>
92504         Fix test failure on mingw.
92505         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
92507 2008-04-21  Bruno Haible  <bruno@clisp.org>
92509         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
92510         Actually assign a value.
92512 2008-04-20  Bruno Haible  <bruno@clisp.org>
92514         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
92515         take 2.
92516         * lib/canonicalize.c (canonicalize_file_name): Elide if the
92517         'canonicalize-lgpl' module is also used.
92518         * lib/canonicalize-lgpl.c: Undo last change.
92519         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
92521 2008-04-20  Bruno Haible  <bruno@clisp.org>
92523         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
92524         config.h. Provide _mkdir based fallback for mingw.
92525         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
92526         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
92527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
92528         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
92529         rather than defining mkdir in config.h.
92530         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
92531         (gl_SYS_STAT_H_DEFAULTS): New macro.
92532         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
92533         HAVE_IO_H any more.
92534         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
92535         HAVE_DECL_MKDIR and HAVE_IO_H.
92537 2008-04-20  Bruno Haible  <bruno@clisp.org>
92539         * lib/isapipe.c: Port to native Windows platforms.
92541 2008-04-20  Bruno Haible  <bruno@clisp.org>
92543         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
92545 2008-04-21  Eric Blake  <ebb9@byu.net>
92547         Work around preprocessors that don't handle UINTMAX_MAX.
92548         * lib/memchr2.c (memchr2): Avoid embedded #if.
92549         Reported by Alain Guibert, fix suggested by Bruno Haible.
92551 2008-04-21  Simon Josefsson  <simon@josefsson.org>
92553         * doc/posix-functions/strftime.texi (strftime): Explain better
92554         Windows incompatibility.  Suggested by Micah Cowan
92555         <micah@cowan.name>.
92557 2008-04-20  Bruno Haible  <bruno@clisp.org>
92559         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
92560         unistr/u8-mblen.
92562 2008-04-20  Bruno Haible  <bruno@clisp.org>
92564         Fix test failure on platforms with non-GNU iconv.
92565         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
92566         (U_TO_U8): Use it, rather than u16_to_u8.
92567         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
92568         units at the end of the input string.
92569         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
92571 2008-04-20  Bruno Haible  <bruno@clisp.org>
92573         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
92574         when the resulting length is 0.
92575         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
92577 2008-04-20  Bruno Haible  <bruno@clisp.org>
92579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
92580         works.
92581         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
92583 2008-04-20  Bruno Haible  <bruno@clisp.org>
92585         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
92586         * modules/tsearch-tests (configure.ac): Test for initstate function.
92588 2008-04-20  Bruno Haible  <bruno@clisp.org>
92590         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
92591         for nlink_t if missing.
92592         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
92594 2008-04-19  Bruno Haible  <bruno@clisp.org>
92596         Work around snprintf bug on Linux libc5.
92597         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
92598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
92599         gl_SNPRINTF_SIZE1.
92600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92601         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
92602         that test failed.
92603         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
92604         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
92605         * modules/snprintf (Files): Add m4/printf.m4.
92606         * modules/vsnprintf (Files): Likewise.
92607         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
92608         * doc/posix-functions/vsnprintf.texi: Likewise.
92610 2008-04-19  Bruno Haible  <bruno@clisp.org>
92612         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
92613         from 0.0058 to less than 10^-7.
92615 2008-04-19  Bruno Haible  <bruno@clisp.org>
92617         Fix rounding when a precision is given.
92618         * lib/vasnprintf.c (is_borderline): New function.
92619         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
92620         9...9x.
92621         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
92622         %e, %g.
92623         * tests/test-vasprintf-posix.c (test_function): Likewise.
92624         * tests/test-snprintf-posix.h (test_function): Likewise.
92625         * tests/test-sprintf-posix.h (test_function): Likewise.
92626         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
92627         * tests/test-printf-posix.h (test_function): Likewise.
92628         * tests/test-printf-posix.output: Update.
92629         Reported by John Darrington <john@darrington.wattle.id.au> via
92630         Ben Pfaff <blp@cs.stanford.edu>.
92632 2008-04-18  Simon Josefsson  <simon@josefsson.org>
92634         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
92635         Suggested by Bruno Haible <bruno@clisp.org>.
92637 2008-04-17  Bruno Haible  <bruno@clisp.org>
92639         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
92640         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
92641         implementation.
92642         Patch by Bruce Merry <bmerry@gmail.com>.
92644 2008-04-17  Simon Josefsson  <simon@josefsson.org>
92646         * doc/posix-functions/strftime.texi (strftime): Mention that %e
92647         doesn't work under Windows.
92649 2008-04-16  Bruno Haible  <bruno@clisp.org>
92651         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
92652         New macros.
92653         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
92654         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
92655         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
92656         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
92657         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
92658         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
92659         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
92660         macros.
92661         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
92662         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
92663         Northern Sotho, Uighur.
92665 2008-04-16  Bruno Haible  <bruno@clisp.org>
92667         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
92668         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
92669         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
92670         Reported by Daniel Bergström <daniel@octocode.com>.
92672 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
92673             Bruno Haible  <bruno@clisp.org>
92675         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
92676         function.
92677         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
92678         New functions, mostly extracted from gl_locale_name_default.
92679         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
92681 2008-04-16  Eric Blake  <ebb9@byu.net>
92683         Adjust strtod detection to catch glibc 2.7 bug.
92684         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
92685         Reported by John Gatewood Ham.
92687 2008-04-16  Bruno Haible  <bruno@clisp.org>
92689         Add tentative support for Linux libc5.
92690         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
92691         * lib/fpurge.c (fpurge): Likewise.
92692         * lib/freadable.c (freadable): Likewise.
92693         * lib/freadahead.c (freadahead): Likewise.
92694         * lib/freading.c (freading): Likewise.
92695         * lib/freadptr.c (freadptr): Likewise.
92696         * lib/freadseek.c (freadptrinc): Likewise.
92697         * lib/fseeko.c (rpl_fseeko): Likewise.
92698         * lib/fseterr.c (fseterr): Likewise.
92699         * lib/fwritable.c (fwritable): Likewise.
92700         * lib/fwriting.c (fwriting): Likewise.
92701         Reported by Alain Guibert <alguibert+bts@free.fr>.
92703 2008-04-15  Bruno Haible  <bruno@clisp.org>
92705         * modules/mathl (configure.ac): Define module indicator.
92707 2008-04-15  Bruno Haible  <bruno@clisp.org>
92709         * lib/logl.c (logl): Remove unused variables.
92711 2008-04-15  Bruno Haible  <bruno@clisp.org>
92713         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
92714         fails.
92716 2008-04-15  Bruno Haible  <bruno@clisp.org>
92718         * lib/trim.c (trim2): Fix argument of isspace() macro.
92720 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
92722         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
92723         to 0.
92724         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
92726 2008-04-14  Bruno Haible  <bruno@clisp.org>
92728         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
92729         AC_LANG_PROGRAM argument.
92730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
92731         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
92732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
92733         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
92734         * m4/math_h.m4 (gl_MATH_H): Likewise.
92735         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
92736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92737         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
92738         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
92739         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
92740         * m4/regex.m4 (gl_REGEX): Likewise.
92741         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
92742         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
92743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92744         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
92745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92746         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92747         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
92750 2008-04-14  Jim Meyering  <meyering@redhat.com>
92752         test-strtod: fix typos: s/abs/fabs/
92753         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
92755 2008-04-13  Bruno Haible  <bruno@clisp.org>
92757         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
92758         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
92759         module is also used and while not building the reloc-wrapper.
92761 2008-04-13  Bruno Haible  <bruno@clisp.org>
92763         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
92765 2008-04-13  Bruno Haible  <bruno@clisp.org>
92767         Fix AIX compilation failure introduced on 2008-04-02.
92768         * tests/test-frexp.c (exp): Undefine before redefining.
92769         * tests/test-frexpl.c (exp): Likewise.
92771 2008-04-13  Bruno Haible  <bruno@clisp.org>
92773         Work around a HP-UX stdio bug.
92774         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
92775         * tests/test-ftello.c (main): Likewise.
92776         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
92777         * doc/posix-functions/ftello.texi: Likewise.
92779 2008-04-13  Bruno Haible  <bruno@clisp.org>
92781         Make test-signbit pass on HP-UX/hppa.
92782         * tests/test-signbit.c (minus_zerol): New variable.
92783         (test_signbitl): Use it.
92785 2008-04-13  Bruno Haible  <bruno@clisp.org>
92787         Make truncl work on OSF/1 4.0.
92788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
92789         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92790         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
92792         HAVE_DECL_TRUNCL.
92793         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
92794         HAVE_DECL_TRUNCL.
92795         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
92797 2008-04-13  Bruno Haible  <bruno@clisp.org>
92799         * lib/unictype.h: Remove trailing comma from enumeration definitions.
92801 2008-04-13  Bruno Haible  <bruno@clisp.org>
92803         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
92804         expression, so as to avoid HP-UX 11 cc compiler bug.
92806 2008-04-13  Bruno Haible  <bruno@clisp.org>
92808         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
92810 2008-04-13  Bruno Haible  <bruno@clisp.org>
92812         * lib/git-merge-changelog.c: Remove empty declaration outside of
92813         functions.
92815 2008-04-13  Bruno Haible  <bruno@clisp.org>
92817         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
92819 2008-04-13  Bruno Haible  <bruno@clisp.org>
92821         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
92822         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
92823         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
92824         also if it exists but lacks definitions of the SHUT_* macros.
92825         * modules/sys_socket (Description): Update.
92826         Reported by Elbert Pol <e.pol@chello.nl>.
92828 2008-04-13  Bruno Haible  <bruno@clisp.org>
92830         * lib/localcharset.c (OS2): Don't redefine if already defined.
92831         Reported by Elbert Pol <e.pol@chello.nl>.
92833 2008-04-13  Bruno Haible  <bruno@clisp.org>
92835         * lib/binary-io.h [__EMX__]: Include <io.h>.
92836         Reported by Elbert Pol <e.pol@chello.nl>.
92838 2008-04-12  Bruno Haible  <bruno@clisp.org>
92840         * lib/fpucw.h: Enable the definitions also for x86_64.
92841         Needed for NetBSD/x86_64.
92842         Reported by Thomas Klausner <tk@giga.or.at>.
92844 2008-04-12  Bruno Haible  <bruno@clisp.org>
92846         * tests/test-strtod.c: Include isnand.h.
92847         (main): Use isnand instead of isnan.
92848         Reported by Jim Meyering.
92850 2008-04-12  Bruno Haible  <bruno@clisp.org>
92852         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
92853         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92855 2008-04-12  Jim Meyering  <meyering@redhat.com>
92857         * m4/math_h.m4 (gl_MATH_H): Fix typos.
92859 2008-04-12  Bruno Haible  <bruno@clisp.org>
92861         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
92862         Reported by Elbert Pol <e.pol@chello.nl>.
92864 2008-04-12  Eric Blake  <ebb9@byu.net>
92866         Work around Solaris 10 math.h bug.
92867         * m4/math_h.m4 (gl_MATH_H): Check for bug.
92868         (gl_MATH_H_DEFAULTS): Set up default.
92869         * modules/math (Makefile.am): Replace new indicators.
92870         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
92871         * tests/test-math.c (main): Test this.
92872         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
92873         * doc/posix-headers/math.texi (math.h): Mention bug.
92874         Reported by Nelson H. F. Beebe and Jim Meyering.
92876 2008-04-11  Bruno Haible  <bruno@clisp.org>
92878         Adapt to future versions of Apple GCC.
92879         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
92880         Reported by Peter O'Gorman <peter@pogma.com>.
92882 2008-04-11  Bruno Haible  <bruno@clisp.org>
92884         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
92886 2008-04-11  Bruno Haible  <bruno@clisp.org>
92888         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
92890         * modules/getaddrinfo-tests (Makefile.am): Define
92891         test_getaddrinfo_LDADD.
92893 2008-04-11  Bruno Haible  <bruno@clisp.org>
92895         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92896         (init): Fix syntax error.
92897         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92898         is declared.
92900 2008-04-11  Bruno Haible  <bruno@clisp.org>
92902         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92903         * modules/glob (Depends-on): Add stdbool.
92905 2008-04-11  Bruno Haible  <bruno@clisp.org>
92907         * lib/trim.c: Include <string.h>.
92909 2008-04-11  Eric Blake  <ebb9@byu.net>
92911         Avoid compile failure on OS/2.
92912         * lib/regex_internal.h (internal_function): Disable optimization
92913         on OS/2 (__EMX__), where it caused compiler error.
92914         Reported by Elbert Pol.
92916 2008-04-11  Bruno Haible  <bruno@clisp.org>
92918         Flush the standard error stream before aborting. Needed on mingw.
92919         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92920         * tests/test-array_list.c (ASSERT): Likewise.
92921         * tests/test-array_oset.c (ASSERT): Likewise.
92922         * tests/test-avltree_list.c (ASSERT): Likewise.
92923         * tests/test-avltree_oset.c (ASSERT): Likewise.
92924         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92925         * tests/test-binary-io.c (ASSERT): Likewise.
92926         * tests/test-byteswap.c (ASSERT): Likewise.
92927         * tests/test-c-ctype.c (ASSERT): Likewise.
92928         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92929         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92930         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92931         * tests/test-c-strstr.c (ASSERT): Likewise.
92932         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92933         * tests/test-canonicalize.c (ASSERT): Likewise.
92934         * tests/test-carray_list.c (ASSERT): Likewise.
92935         * tests/test-ceilf1.c (ASSERT): Likewise.
92936         * tests/test-ceilf2.c (ASSERT): Likewise.
92937         * tests/test-ceill.c (ASSERT): Likewise.
92938         * tests/test-count-one-bits.c (ASSERT): Likewise.
92939         * tests/test-fbufmode.c (ASSERT): Likewise.
92940         * tests/test-fflush2.c (ASSERT): Likewise.
92941         * tests/test-floorf1.c (ASSERT): Likewise.
92942         * tests/test-floorf2.c (ASSERT): Likewise.
92943         * tests/test-floorl.c (ASSERT): Likewise.
92944         * tests/test-fopen.c (ASSERT): Likewise.
92945         * tests/test-fpending.c (ASSERT): Likewise.
92946         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92947         * tests/test-fpurge.c (ASSERT): Likewise.
92948         * tests/test-freadable.c (ASSERT): Likewise.
92949         * tests/test-freadahead.c (ASSERT): Likewise.
92950         * tests/test-freading.c (ASSERT): Likewise.
92951         * tests/test-freadptr.c (ASSERT): Likewise.
92952         * tests/test-freadptr2.c (ASSERT): Likewise.
92953         * tests/test-freadseek.c (ASSERT): Likewise.
92954         * tests/test-freopen.c (ASSERT): Likewise.
92955         * tests/test-frexp.c (ASSERT): Likewise.
92956         * tests/test-frexpl.c (ASSERT): Likewise.
92957         * tests/test-fseek.c (ASSERT): Likewise.
92958         * tests/test-fseeko.c (ASSERT): Likewise.
92959         * tests/test-fstrcmp.c (ASSERT): Likewise.
92960         * tests/test-ftell.c (ASSERT): Likewise.
92961         * tests/test-ftello.c (ASSERT): Likewise.
92962         * tests/test-func.c (ASSERT): Likewise.
92963         * tests/test-fwritable.c (ASSERT): Likewise.
92964         * tests/test-fwriting.c (ASSERT): Likewise.
92965         * tests/test-getdelim.c (ASSERT): Likewise.
92966         * tests/test-getline.c (ASSERT): Likewise.
92967         * tests/test-i-ring.c (ASSERT): Likewise.
92968         * tests/test-iconv-utf.c (ASSERT): Likewise.
92969         * tests/test-iconv.c (ASSERT): Likewise.
92970         * tests/test-isfinite.c (ASSERT): Likewise.
92971         * tests/test-isnand.c (ASSERT): Likewise.
92972         * tests/test-isnanf.c (ASSERT): Likewise.
92973         * tests/test-isnanl.h (ASSERT): Likewise.
92974         * tests/test-ldexpl.c (ASSERT): Likewise.
92975         * tests/test-linked_list.c (ASSERT): Likewise.
92976         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92977         * tests/test-localename.c (ASSERT): Likewise.
92978         * tests/test-lseek.c (ASSERT): Likewise.
92979         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92980         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92981         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92982         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92983         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92984         * tests/test-mbschr.c (ASSERT): Likewise.
92985         * tests/test-mbscspn.c (ASSERT): Likewise.
92986         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92987         * tests/test-mbspbrk.c (ASSERT): Likewise.
92988         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92989         * tests/test-mbsrchr.c (ASSERT): Likewise.
92990         * tests/test-mbsspn.c (ASSERT): Likewise.
92991         * tests/test-mbsstr1.c (ASSERT): Likewise.
92992         * tests/test-mbsstr2.c (ASSERT): Likewise.
92993         * tests/test-mbsstr3.c (ASSERT): Likewise.
92994         * tests/test-memchr2.c (ASSERT): Likewise.
92995         * tests/test-memmem.c (ASSERT): Likewise.
92996         * tests/test-open.c (ASSERT): Likewise.
92997         * tests/test-printf-frexp.c (ASSERT): Likewise.
92998         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92999         * tests/test-printf-posix.c (ASSERT): Likewise.
93000         * tests/test-quotearg.c (ASSERT): Likewise.
93001         * tests/test-rbtree_list.c (ASSERT): Likewise.
93002         * tests/test-rbtree_oset.c (ASSERT): Likewise.
93003         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
93004         * tests/test-round1.c (ASSERT): Likewise.
93005         * tests/test-roundf1.c (ASSERT): Likewise.
93006         * tests/test-roundl.c (ASSERT): Likewise.
93007         * tests/test-signbit.c (ASSERT): Likewise.
93008         * tests/test-sleep.c (ASSERT): Likewise.
93009         * tests/test-snprintf-posix.c (ASSERT): Likewise.
93010         * tests/test-snprintf.c (ASSERT): Likewise.
93011         * tests/test-sprintf-posix.c (ASSERT): Likewise.
93012         * tests/test-stat-time.c (ASSERT): Likewise.
93013         * tests/test-strcasestr.c (ASSERT): Likewise.
93014         * tests/test-strerror.c (ASSERT): Likewise.
93015         * tests/test-striconv.c (ASSERT): Likewise.
93016         * tests/test-striconveh.c (ASSERT): Likewise.
93017         * tests/test-striconveha.c (ASSERT): Likewise.
93018         * tests/test-strsignal.c (ASSERT): Likewise.
93019         * tests/test-strstr.c (ASSERT): Likewise.
93020         * tests/test-strtod.c (ASSERT): Likewise.
93021         * tests/test-trunc1.c (ASSERT): Likewise.
93022         * tests/test-trunc2.c (ASSERT): Likewise.
93023         * tests/test-truncf1.c (ASSERT): Likewise.
93024         * tests/test-truncf2.c (ASSERT): Likewise.
93025         * tests/test-truncl.c (ASSERT): Likewise.
93026         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
93027         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
93028         * tests/test-vasnprintf.c (ASSERT): Likewise.
93029         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
93030         * tests/test-vasprintf.c (ASSERT): Likewise.
93031         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
93032         * tests/test-vprintf-posix.c (ASSERT): Likewise.
93033         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
93034         * tests/test-vsnprintf.c (ASSERT): Likewise.
93035         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
93036         * tests/test-wcwidth.c (ASSERT): Likewise.
93037         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
93038         * tests/test-xprintf-posix.c (ASSERT): Likewise.
93039         * tests/test-xvasprintf.c (ASSERT): Likewise.
93040         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
93041         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
93042         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
93043         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
93044         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
93045         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
93046         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
93047         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
93048         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
93049         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
93050         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
93051         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
93052         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
93053         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
93054         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
93055         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
93056         * tests/unictype/test-block_list.c (ASSERT): Likewise.
93057         * tests/unictype/test-block_of.c (ASSERT): Likewise.
93058         * tests/unictype/test-block_test.c (ASSERT): Likewise.
93059         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
93060         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
93061         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
93062         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
93063         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
93064         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
93065         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
93066         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
93067         * tests/unictype/test-combining.c (ASSERT): Likewise.
93068         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
93069         * tests/unictype/test-digit.c (ASSERT): Likewise.
93070         * tests/unictype/test-mirror.c (ASSERT): Likewise.
93071         * tests/unictype/test-numeric.c (ASSERT): Likewise.
93072         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
93073         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
93074         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
93075         * tests/unictype/test-scripts.c (ASSERT): Likewise.
93076         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
93077         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
93078         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
93079         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
93080         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
93081         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
93082         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
93083         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
93084         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
93085         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
93086         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
93087         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
93088         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
93089         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
93090         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
93091         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
93092         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
93093         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
93094         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
93095         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
93096         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
93097         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
93098         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
93099         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
93100         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
93101         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
93102         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
93103         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
93104         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
93105         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
93106         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
93107         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
93108         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
93109         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
93110         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
93111         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
93112         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
93113         Reported by Eric Blake.
93115 2008-04-11  Bruno Haible  <bruno@clisp.org>
93117         * lib/wchar.in.h: Tweak comment.
93119 2008-04-11  Bruno Haible  <bruno@clisp.org>
93121         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
93122         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
93123         gl_COMMON.
93124         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
93126 2008-04-11  Bruno Haible  <bruno@clisp.org>
93128         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
93130 2008-04-11  Simon Josefsson  <simon@josefsson.org>
93132         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
93133         of attempting to use non-existing /dev/*random.  Based on patch
93134         from Adam Strzelecki <ono@java.pl> in
93135         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
93137 2008-04-08  Bruno Haible  <bruno@clisp.org>
93139         Add tentative support for emx+gcc.
93140         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
93141         * lib/fpurge.c (fpurge): Likewise.
93142         * lib/freadable.c (freadable): Likewise.
93143         * lib/freadahead.c (freadahead): Likewise.
93144         * lib/freading.c (freading): Likewise.
93145         * lib/freadptr.c (freadptr): Likewise.
93146         * lib/freadseek.c (freadptrinc): Likewise.
93147         * lib/fseeko.c (rpl_fseeko): Likewise.
93148         * lib/fseterr.c (fseterr): Likewise.
93149         * lib/fwritable.c (fwritable): Likewise.
93150         * lib/fwriting.c (fwriting): Likewise.
93151         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
93153 2008-04-09  Eric Blake  <ebb9@byu.net>
93155         Avoid some autoconf warnings.
93156         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
93157         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
93158         * m4/afs.m4 (gl_AFS): Likewise.
93159         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
93160         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
93161         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93162         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
93163         (gl_INTEGER_TYPE_SUFFIX): Likewise.
93164         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
93165         (AC_CHECK_DECLS_ONCE): Likewise.
93166         Rename file...
93167         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
93168         gnulib-tool requires autoconf 2.59 or better.
93169         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
93171 2008-04-08  Eric Blake  <ebb9@byu.net>
93173         Use 'git describe --match' if present (added in git 1.5.5).
93174         * build-aux/git-version-gen: Limit result to tags that match 'v*'
93175         if possible.
93177 2008-04-08  Bruno Haible  <bruno@clisp.org>
93179         Add tentative support for OpenServer.
93180         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
93181         _ptr, _cnt.
93182         * lib/fpurge.c (fpurge): Likewise.
93183         * lib/freadable.c (freadable): Likewise.
93184         * lib/freadahead.c (freadahead): Likewise.
93185         * lib/freading.c (freading): Likewise.
93186         * lib/freadptr.c (freadptr): Likewise.
93187         * lib/freadseek.c (freadptrinc): Likewise.
93188         * lib/fseeko.c (rpl_fseeko): Likewise.
93189         * lib/fseterr.c (fseterr): Likewise.
93190         * lib/fwritable.c (fwritable): Likewise.
93191         * lib/fwriting.c (fwriting): Likewise.
93192         Reported by Roger Cornelius <rac@tenzing.org> and
93193         Brian K. White <brian@aljex.com>.
93195 2008-04-06  Jim Meyering  <meyering@redhat.com>
93197         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
93199 2008-04-06  Bruno Haible  <bruno@clisp.org>
93201         Avoid possible error with non-ASCII bytes in UTF-8 locales.
93202         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
93203         * tests/test-printf-posix.sh: Likewise.
93204         * tests/test-vfprintf-posix.sh: Likewise.
93205         * tests/test-vprintf-posix.sh: Likewise.
93206         * tests/test-xprintf-posix.sh: Likewise.
93208 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93210         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
93211         hide error from 'ls', needed on OS/2.
93212         Report by Elbert Pol <elbert.pol@gmail.com>.
93214 2008-04-04  Eric Blake  <ebb9@byu.net>
93216         Make test-fseeko.c failures meaningful.
93217         * tests/test-fseeko.c: Print line number on failure.
93218         * tests/test-fseek.c: Likewise.
93219         Reported by Nelson H. F. Beebe.
93221         Improve strtod bug detection check.
93222         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
93223         required for Solaris 10.
93224         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
93226 2008-04-04  Bruno Haible  <bruno@clisp.org>
93228         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
93229         by m4/setenv.m4.
93231 2008-04-03  Eric Blake  <ebb9@byu.net>
93233         Ensure sane .version contents.
93234         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
93235         version string.
93236         * build-aux/git-version-gen: Improve documentation.
93238         Make GNU make output nicer.
93239         * top/GNUmakefile [!_have-Makefile]: Add dependency on
93240         MAKECMDGOALS to enforce message for all command line targets.  Set
93241         srcdir for use in maint.mk.
93243         Another maintainer tweak.
93244         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
93245         a target that regenerates version.
93247 2008-04-03  Jim Meyering  <meyering@redhat.com>
93249         vc-list-files: don't cause coreutils "make po-check" failure
93250         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
93252 2008-04-03  Eric Blake  <ebb9@byu.net>
93254         Allow VPATH usage of vc-list-files.
93255         * build-aux/vc-list-files (scriptversion): Add timestamp.
93256         (options): Add --help, --version, -C.
93257         (CVS): Support installed cvsu.
93259 2008-04-02  Bruno Haible  <bruno@clisp.org>
93261         Avoid some "statement with no effect" warnings from gcc.
93262         * tests/test-wctype.c (main): Explicitly ignore unused values.
93263         Reported by Jim Meyering.
93265 2008-04-02  Jim Meyering  <meyering@redhat.com>
93267         Avoid some warnings from "gcc -Wshadow".
93268         * tests/test-frexp.c (exp): Define to a different identifier.
93269         * tests/test-frexpl.c (exp): Likewise.
93271 2008-04-03  Jim Meyering  <meyering@redhat.com>
93273         bootstrap: remove dangling *.[ch] symlinks from lib
93274         * build-aux/bootstrap [dangling symlink removal]: Move find's
93275         -depth option to precede all others, to avoid a warning.
93276         Remove *.[ch] files too, and from "$source_base" (usually lib/).
93278 2008-04-02  Bruno Haible  <bruno@clisp.org>
93280         Avoid some warnings from "gcc -Wshadow".
93281         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
93282         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
93283         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
93284         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
93285         Reported by Jim Meyering.
93287 2008-04-01  Bruno Haible  <bruno@clisp.org>
93289         Fix test to work on IRIX 6.5 with cc.
93290         * tests/test-math.c (numeric_equal): New function.
93291         (main): Use it.
93293 2008-04-01  Bruno Haible  <bruno@clisp.org>
93295         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
93297 2008-04-01  Bruno Haible  <bruno@clisp.org>
93299         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
93300         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93301         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
93302         (Depends-on): Remove math.
93304         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
93305         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93306         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
93307         (Depends-on): Remove math.
93309         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
93310         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93311         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
93312         (Depends-on): Remove math.
93313         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
93314         (Depends-on): Remove math.
93316         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
93317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93318         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
93319         (Depends-on): Remove math.
93320         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
93321         (Depends-on): Remove math.
93323         * tests/test-round1.c: Include nan.h.
93324         (main): Use NaNd instead of NAN.
93325         * modules/round-tests (Files): Add tests/nan.h.
93327         * tests/test-trunc1.c: Include nan.h.
93328         (main): Use NaNd instead of NAN.
93329         * modules/trunc-tests (Files): Add tests/nan.h.
93331         * tests/test-roundf1.c: Include nan.h.
93332         (main): Use NaNf instead of NAN.
93333         * modules/roundf-tests (Files): Add tests/nan.h.
93335         * tests/test-truncf1.c: Include nan.h.
93336         (main): Use NaNf instead of NAN.
93337         * modules/truncf-tests (Files): Add tests/nan.h.
93339         * tests/test-ceilf1.c: Include nan.h.
93340         (main): Use NaNf instead of NAN.
93341         * modules/ceilf-tests (Files): Add tests/nan.h.
93343         * tests/test-floorf1.c: Include nan.h.
93344         (main): Use NaNf instead of NAN.
93345         * modules/floorf-tests (Files): Add tests/nan.h.
93347         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
93348         (main): Use NaNf instead of NAN.
93349         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
93351         * tests/test-isnand.c: Include nan.h instead of <math.h>.
93352         (main): Use NaNd instead of NAN.
93353         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
93355         * tests/test-frexp.c: Include nan.h.
93356         (main): Use NaNd instead of NAN.
93357         * modules/frexp-tests (Files): Add tests/nan.h.
93359         * lib/isnan.c: Don't include <math.h>.
93360         (FUNC): Don't use NAN macro.
93361         * modules/isnand-nolibm (Depends-on): Remove math.
93362         * modules/isnanf-nolibm (Depends-on): Remove math.
93363         * modules/isnanl (Depends-on): Remove math.
93364         * modules/isnanl-nolibm (Depends-on): Remove math.
93366         * tests/nan.h: New file.
93368 2008-04-01  Eric Blake  <ebb9@byu.net>
93370         Fix typos.
93371         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
93372         values to be the right type.
93374         For now, cater to gnulib strtod inaccuracies.
93375         * tests/test-strtod.c (main): Allow 1-ulp error on expected
93376         fractional results.  While not as nice from a QoI perspective, it
93377         is a quicker patch than correctly implementing decimal to binary
93378         rounding.
93380 2008-03-31  Eric Blake  <ebb9@byu.net>
93382         Guarantee a definition of NAN.
93383         * lib/math.in.h (NAN): Define if missing.
93384         * tests/test-math.c (main): Test it.
93385         * doc/posix-headers/math.texi (math.h): Document this.
93386         * lib/isnan.c (rpl_isnand): Use it.
93387         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
93388         * tests/test-floorf1.c (NaN): Likewise.
93389         * tests/test-frexp.c (NaN): Likewise.
93390         * tests/test-isnand.c (NaN): Likewise.
93391         * tests/test-isnanf.c (NaN): Likewise.
93392         * tests/test-round1.c (NaN): Likewise.
93393         * tests/test-roundf1.c (NaN): Likewise.
93394         * tests/test-snprintf-posix.h (NaN): Likewise.
93395         * tests/test-sprintf-posix.h (NaN): Likewise.
93396         * tests/test-trunc1.c (NaN): Likewise.
93397         * tests/test-truncf1.c (NaN): Likewise.
93398         * tests/test-vasnprintf-posix.c (NaN): Likewise.
93399         * tests/test-vasprintf-posix.c (NaN): Likewise.
93400         * modules/isnand-nolibm (Depends-on): Add math.
93401         * modules/isnanf-nolibm (Depends-on): Likewise.
93402         * modules/isnanl (Depends-on): Likewise.
93403         * modules/isnanl-nolibm (Depends-on): Likewise.
93404         * modules/snprintf-posix-tests (Depends-on): Likewise.
93405         * modules/sprintf-posix-tests (Depends-on): Likewise.
93406         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
93407         * modules/vsprintf-posix-tests (Depends-on): Likewise.
93408         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
93409         * modules/vasprintf-posix-tests (Depends-on): Likewise.
93411 2008-03-31  Bruno Haible  <bruno@clisp.org>
93413         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
93414         * doc/posix-functions/strtod.texi: Likewise.
93416 2008-03-31  Bruno Haible  <bruno@clisp.org>
93418         * tests/test-strtod.c (main): Don't use C99 syntax.
93420 2008-03-31  Bruno Haible  <bruno@clisp.org>
93422         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
93423         Reported by Eric Blake.
93425 2008-03-31  Jim Meyering  <meyering@redhat.com>
93427         Don't compare actual signbit return values.
93428         * tests/test-strtod.c (main): Rather, compare only their
93429         zero/non-zero nature.
93431 2008-03-31  Eric Blake  <ebb9@byu.net>
93433         More strtod documentation.
93434         * doc/posix-functions/strtod.texi (strtod): Interpret more test
93435         failures as distinct bugs.
93437 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
93439         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
93440         Problem reported by Erik Benada in
93441         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
93443 2008-03-30  Bruno Haible  <bruno@clisp.org>
93445         * tests/test-strtod.c: Add comments about which assertion fails on which
93446         platform.
93447         * doc/posix-functions/strtod.texi: Add info about many more platforms.
93449 2008-03-30  Eric Blake  <ebb9@byu.net>
93451         Test signbit behavior on zeros.
93452         * tests/test-signbit.c (test_signbitf): Add tests for zero.
93453         (test_signbitd, test_signbitl): Likewise.
93455         More strtod touchups.
93456         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
93457         sign of negative underflow, for now.  Use .5, not .1.
93458         * doc/posix-functions/strtod.texi (strtod): Mention these
93459         limitations.
93460         Reported by Jim Meyering.
93462 2008-03-30  Bruno Haible  <bruno@clisp.org>
93464         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
93465         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
93467 2008-03-30  Bruno Haible  <bruno@clisp.org>
93469         Avoid failure when attempting to return empty iconv results on some
93470         platforms.
93471         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
93472         allocation, don't report ENOMEM when the resulting string is empty.
93474 2008-03-30  Bruno Haible  <bruno@clisp.org>
93476         Fix buffer overrun.
93477         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
93478         Don't consider the width for tmp_length. Check count against tmp_length
93479         before doing the padding. Ensure enough allocation during padding.
93481 2008-03-30  Eric Blake  <ebb9@byu.net>
93483         strtod touchups.
93484         * lib/strtod.c (strtod): Avoid compiler warnings.
93485         Reported by Jim Meyering.
93487 2008-03-30  Bruno Haible  <bruno@clisp.org>
93489         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
93490         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
93491         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
93492         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
93493         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
93494         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
93495         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
93496         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
93498         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
93499         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
93500         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
93501         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
93502         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
93503         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
93504         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
93505         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
93507         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
93508         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
93509         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
93510         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
93511         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
93512         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
93513         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
93514         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
93516         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
93517         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
93519         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
93520         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
93522         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
93523         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
93525         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
93526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
93527         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
93529         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
93530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
93531         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
93533         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
93534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
93535         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
93537         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
93538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
93539         * modules/vasprintf (Depends-on): Add EOVERFLOW.
93541         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
93542         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
93543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
93544         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
93545         (Depends-on): Add EOVERFLOW.
93546         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
93547         (Depends-on): Add EOVERFLOW.
93548         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93549         (Depends-on): Add EOVERFLOW.
93550         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93551         (Depends-on): Add EOVERFLOW.
93552         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93553         (Depends-on): Add EOVERFLOW.
93554         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93555         (Depends-on): Add EOVERFLOW.
93556         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93557         (Depends-on): Add EOVERFLOW.
93558         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93559         (Depends-on): Add EOVERFLOW.
93561         * lib/sprintf.c (EOVERFLOW): Remove fallback.
93562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
93563         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
93565         * lib/snprintf.c (EOVERFLOW): Remove fallback.
93566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
93567         * modules/snprintf (Depends-on): Add EOVERFLOW.
93569         * lib/poll.c (EOVERFLOW): Remove fallback.
93570         * modules/poll (Depends-on): Add EOVERFLOW.
93572         * lib/getugroups.c (EOVERFLOW): Remove fallback.
93573         * modules/getugroups (Depends-on): Add EOVERFLOW.
93575         * lib/getdelim.c (EOVERFLOW): Remove fallback.
93576         * modules/getdelim (Depends-on): Add EOVERFLOW.
93578         * lib/ftell.c (EOVERFLOW): Remove fallback.
93579         * modules/ftell (Depends-on): Add EOVERFLOW.
93581         * lib/fprintf.c (EOVERFLOW): Remove fallback.
93582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
93583         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
93585         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
93587         * modules/EOVERFLOW-tests: New file.
93588         * tests/test-EOVERFLOW.c: New file.
93590         * modules/EOVERFLOW: New file.
93591         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
93593 2008-03-30  Bruno Haible  <bruno@clisp.org>
93595         Fix bug introduced on 2007-06-10.
93596         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
93597         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
93599 2008-03-30  Bruno Haible  <bruno@clisp.org>
93601         Improve freadseek's efficiency after ungetc.
93602         * lib/freadseek.c: Include freadahead.h.
93603         (freadptrinc): New function, extracted from freadseek.
93604         (freadseek): Use it in a loop. Use freadahead to determine the number
93605         of loop iterations.
93606         * modules/freadseek (Depends-on): Add freadahead.
93607         (configure.ac): Require AC_C_INLINE.
93609 2008-03-30  Bruno Haible  <bruno@clisp.org>
93611         * lib/freadseek.c (freadseek): Don't ignore the return value of
93612         freadptr.
93614 2008-03-29  Eric Blake  <ebb9@byu.net>
93616         Add hex float support.
93617         * modules/strtod (Depends-on): Add c-ctype.
93618         (Link): Mention POW_LIB.
93619         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
93620         whitespace between 'e' and exponent.
93621         * tests/test-strtod.c (main): Enable hex float tests.
93622         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
93623         now provides.
93625         Document various strtod bugs, with some fixes.
93626         * doc/posix-functions/strtod.texi (strtod): Document bugs with
93627         "-0x", "inf", "nan", and hex constants.
93628         * doc/posix-functions/atof.texi (atof): Likewise.
93629         * modules/stdlib (Makefile.am): Support strtod.
93630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
93631         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
93632         detect additional strtod bugs.
93633         * lib/stdlib.in.h (rpl_strtod): Add declarations.
93634         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
93635         bool where appropriate.  Parse 'inf' and 'nan'.
93636         * tests/test-strtod.c: New file.
93637         * modules/strtod (Depends-on): Add stdbool, stdlib.
93638         (configure.ac): Turn on module indicator.
93639         * modules/strtod-tests: New module.
93641 2008-03-29  Eric Blake  <ebb9@byu.net>
93643         Fix ftell on mingw.
93644         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
93645         * modules/ftell-tests (Depends-on): Add binary-io.
93646         * modules/ftello-tests (Depends-on): Likewise.
93647         * tests/test-ftell.c (main): Enhance test to cover behavior after
93648         ungetc.  Enforce binary mode.
93649         * tests/test-ftello.c (main): Likewise.
93651         Pass test-freadseek on cygwin.
93652         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
93653         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
93654         ungetc buffer.
93656         * tests/test-fflush2.c (main): Fix typo.
93658 2008-03-29  Bruno Haible  <bruno@clisp.org>
93660         * tests/test-fflush2.c (main): Temporarily disable the contents of
93661         this test.
93662         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
93663         Reported by Eric Blake.
93665 2008-03-28  Simon Josefsson  <simon@josefsson.org>
93667         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
93668         (GC_SHA224_DIGEST_SIZE): Add.
93670         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
93671         (gc_hash_digest_length): Likewise.
93672         (gc_hash_buffer): Likewise.
93674 2008-03-25  Bruno Haible  <bruno@clisp.org>
93676         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
93677         detail which gettext release to use.
93678         Reported by Simon Josefsson.
93680 2008-03-26  Jim Meyering  <meyering@redhat.com>
93682         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
93683         * modules/gnumakefile (clean-GNUmakefile): Also, use
93684         test ... && ... || : syntax rather than if-then ... fi.
93686         gnumakefile: Don't double-quote-expand $(VPATH) value.
93687         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
93689 2008-03-24  Eric Blake  <ebb9@byu.net>
93691         Alter GNUmakefile to install into top directory.
93692         * modules/maintainer-makefile: Split, and add dependency...
93693         * modules/gnumakefile: to this new module.
93694         * build-aux/GNUmakefile: Move...
93695         * top/GNUmakefile: ...here.
93696         * build-aux/maint.mk: Move...
93697         * top/maint.mk: ...here.
93698         * MODULES.html.sh (Support for maintaining...): Document new
93699         module.
93701 2008-03-23  Bruno Haible  <bruno@clisp.org>
93703         * gnulib-tool: New options --vc-files, --no-vc-files.
93704         (func_usage): Document them.
93705         (vc_files): New variable.
93706         (func_import): Consider vc_files.
93707         (func_create_testdir): Set vc_files to empty.
93708         Suggested by Jim Meyering and Karl Berry.
93710 2008-03-23  Bruno Haible  <bruno@clisp.org>
93712         Fix regex compilation error on HP-UX 11.
93713         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
93714         * modules/regex (Files): Add m4/mbstate_t.m4.
93715         Reported by Ton Voon <ton.voon@altinity.com>.
93717 2008-03-23  Bruno Haible  <bruno@clisp.org>
93719         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
93721 2008-03-23  Eric Blake  <ebb9@byu.net>
93722             Bruno Haible  <bruno@clisp.org>
93724         Install files from top/ in the destination directory.
93725         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
93726         augmentation also for the files from top/.
93727         (func_import, func_create_testdir): Rewrite file names:
93728         top/filename -> filename.
93730 2008-03-23  Bruno Haible  <bruno@clisp.org>
93732         Tweak "gnulib --version" output.
93733         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
93735 2008-03-23  Bruno Haible  <bruno@clisp.org>
93737         Tweak "gnulib --version" output.
93738         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
93739         rather than contents of ChangeLog, when possible.
93741 2008-03-21  Eric Blake  <ebb9@byu.net>
93743         More --version tweaks.
93744         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
93745         date of last ChangeLog entry.
93747 2008-03-21  Jim Meyering  <meyering@redhat.com>
93749         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
93751 2008-03-20  Eric Blake  <ebb9@byu.net>
93753         VPATH fix.
93754         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
93756 2008-03-20  Simon Josefsson  <simon@josefsson.org>
93758         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
93759         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
93761 2008-03-20  Eric Blake  <ebb9@byu.net>
93763         Sync GNUmakefile with coreutils.
93764         * build-aux/GNUmakefile (have-Makefile): Rename...
93765         (_have-Makefile): ...to this, for namespace consideration.
93766         (GNUmakefile.cfg): Include, if present.
93767         (_autoreconf): Define a default.
93768         (_is-dist-target): New rule for rebuilds to pick up intra-release
93769         version.
93770         (maint-cfg.mk): Rename...
93771         (cfg.mk): ...to this.
93773 2008-03-18  Jim Meyering  <meyering@redhat.com>
93775         New script and module: mktempd
93776         * MODULES.html.sh (maint+release support): Add mktempd.
93777         * build-aux/mktempd: New file.
93778         * modules/mktempd: New file.
93780 2008-03-15  Jim Meyering  <meyering@redhat.com>
93782         Undo last change.
93783         * lib/sha1.c, lib/md5.c: 63 != ~63.
93784         Reported by Andreas Schwab.
93786         sha1.c, md5.c: Hoist a redundant expression.
93787         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
93788         "ctx->buflen" only once, before calling *_process_block.
93789         * lib/md5.c (md5_process_bytes): Likewise.
93791 2008-03-14  Eric Blake  <ebb9@byu.net>
93793         Bump copyright year in files generated by gnulib-tool.
93794         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
93795         gnulib-tool, rather than hard-coding it.
93797         Fix 'gnulib-tool --version' output to work with git.
93798         * gnulib-tool (func_gnulib_dir): New function, extracted from...
93799         (startup): ...here.
93800         (func_version): Use it to invoke git-version-gen, rather than
93801         relying on CVS keyword expansion.  Modernize wording.
93802         (cvsdatestamp, last_checkin_date, version): Kill unused
93803         variables.
93805 2008-03-12  Jim Meyering  <meyering@redhat.com>
93807         Recognize optional cast of the argument to free.
93808         * build-aux/useless-if-before-free: Update regexps.
93810         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
93812 2008-03-11  Bruno Haible  <bruno@clisp.org>
93814         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
93815         by a single package.
93816         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
93817         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
93818         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
93819         Reported by Sam Steingold <sds@gnu.org>.
93821 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93823         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
93824         repositories.
93826 2008-03-11  Bruno Haible  <bruno@clisp.org>
93828         Avoid conflicts between local macro definitions.
93829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93830         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
93832 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
93833             Bruno Haible  <bruno@clisp.org>
93835         Make va_copy work with some version of xlc on AIX 5.1.
93836         * lib/stdarg.in.h: New file.
93837         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
93838         On AIX, use a <stdarg.h> file substitute.
93839         * modules/stdarg (Files): Add lib/stdarg.in.h.
93840         (Depends-on): Add include_next.
93841         (Makefile.am): Build a stdarg.h substitute if requested.
93842         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
93844 2008-03-10  Bruno Haible  <bruno@clisp.org>
93846         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
93847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93848         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93850 2008-03-10  Bruno Haible  <bruno@clisp.org>
93852         * modules/stdlib (Depends-on): Add include_next, remove
93853         absolute-header.
93855 2008-03-09  Bruno Haible  <bruno@clisp.org>
93857         * lib/freadahead.h (freadahead): Document more precisely.
93858         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
93859         the sum of both buffer sizes.
93860         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
93861         * NEWS: Document the change.
93863 2008-03-09  Bruno Haible  <bruno@clisp.org>
93865         Extend freadptr to return also the buffer size.
93866         * lib/freadptr.h (freadptr): Add sizep argument.
93867         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
93868         (freadptr): Add sizep argument. Determine buffer size like freadahead
93869         does.
93870         * tests/test-freadptr.c: Don't include freadahead.h.
93871         (main): Adapt for new calling convention of freadptr.
93872         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
93873         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
93874         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
93875         tests/test-freadptr2.sh.
93876         (Depends): Remove freadahead.
93877         (TESTS): Add test-freadptr2.sh.
93878         (check_PROGRAMS): Add test-freadptr2.
93880 2008-03-09  Bruno Haible  <bruno@clisp.org>
93882         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
93883         Report and solution by Simon Josefsson.
93885 2008-03-06  Bruno Haible  <bruno@clisp.org>
93887         Make fflush after ungetc work on BSD platforms.
93888         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
93889         * tests/test-fflush2.c: New file.
93890         * tests/test-fflush2.sh: New file.
93891         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
93892         tests/test-fflush2.c.
93893         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
93894         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93896 2008-03-06  Eric Blake  <ebb9@byu.net>
93898         Likewise for ftello.
93899         * modules/ftello (Dependencies): Add extensions.
93900         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93902 2008-03-06  Bruno Haible  <bruno@clisp.org>
93904         * modules/fseeko (Dependencies): Add extensions.
93905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93906         Needed on glibc systems.
93908 2008-03-06  Bruno Haible  <bruno@clisp.org>
93910         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93911         email address.
93912         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93914 2008-03-06  Bruno Haible  <bruno@clisp.org>
93916         * users.txt: Add libgnupdf.
93918 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93920         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93921         (Header File Substitutes, Function Substitutes,
93922         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93923         (Build robot for gnulib): Fix typo.
93925 2008-03-06  Bruno Haible  <bruno@clisp.org>
93927         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93928         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93930 2008-03-06  Bruno Haible  <bruno@clisp.org>
93932         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93933         * doc/gnulib.texi: Include it.
93935 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93937         * modules/func (License): Change license to unlimited; there was
93938         no LGPL parts in the module anyway.
93940 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93942         * modules/__func__: Renamed to modules/func.
93943         * modules/__func__-tests: Renamed to modules/func-tests.
93944         * tests/test-__func__.c: Renamed to tests/test-func.c.
93945         * m4/__func__.m4: Renamed to m4/func.m4.
93946         * doc/gnulib.texi (__func__): Section renamed to func.
93947         Suggested by Eric Blake <ebb9@byu.net>.
93949 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93951         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93952         about __func__.  Make example self-contained.  Suggested by Eric
93953         Blake <ebb9@byu.net>.
93955         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93956         Suggested by Eric Blake <ebb9@byu.net>.
93958 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93960         * modules/__func__: New file.
93961         * modules/__func__-tests: New file.
93962         * tests/test-__func__.c: New file.
93963         * m4/__func__.m4: New file.
93964         * doc/gnulib.texi (__func__): Document __func__ module.
93966 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93968         * modules/byteswap (License): Re-license as LGPLv2+.
93970 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93972         * doc/Makefile: Add pdf target.
93974 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93976         * modules/inline (License): Use 'unlimited', since there are only
93977         *.m4 files in this module.
93979 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93980             Bruno Haible  <bruno@clisp.org>
93982         Add support for HP C 7.1 on OpenVMS 8.3.
93983         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93985 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93987         Update VMS specifics.
93988         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93990 2008-03-02  Jim Meyering  <meyering@redhat.com>
93992         Remove the last dependency on the "free" module.
93993         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93994         Reported by Bob Proulx.
93996         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93998         Remove useless "if" tests before free.  Deprecate "free" module.
93999         * doc/posix-functions/free.texi: Mention that this
94000         module is no longer useful.
94001         * modules/free (Notice): Say this module is obsolete.
94002         * modules/readutmp (Depends-on): Remove free.
94003         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
94004         * lib/putenv.c (putenv): Likewise.
94005         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
94006         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
94007         * tests/test-c-strcasestr.c (main): Likewise.
94008         * tests/test-c-strstr.c (main): Likewise.
94009         * tests/test-mbscasestr1.c (main): Likewise.
94010         * tests/test-mbscasestr2.c (main): Likewise.
94011         * tests/test-mbsstr1.c (main): Likewise.
94012         * tests/test-mbsstr2.c (main): Likewise.
94013         * tests/test-memmem.c (main): Likewise.
94014         * tests/test-strcasestr.c (main): Likewise.
94015         * tests/test-striconv.c (main): Likewise.
94016         * tests/test-striconveh.c (main): Likewise.
94017         * tests/test-striconveha.c (main): Likewise.
94018         * tests/test-strstr.c (main): Likewise.
94020         * build-aux/git-version-gen: Adjust a comment and the Usage string.
94022         bootstrap: sync from coreutils again
94023         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
94025 2008-03-01  Jim Meyering  <meyering@redhat.com>
94027         bootstrap: sync from coreutils
94028         * build-aux/bootstrap (update_po_files): Copy a .po file into place
94029         also when the target doesn't exist.
94031 2008-03-01  Eric Blake  <ebb9@byu.net>
94033         Fix bugs in last patch.
94034         * lib/memchr2.c (memchr2): Fix typo.
94035         * tests/test-memchr2.c: Test previous bug, and don't use GNU
94036         extension.
94037         Reported by Bruce Korb.
94039         New module 'memchr2'.
94040         * modules/memchr2: New file.
94041         * modules/memchr2-tests: Likewise.
94042         * lib/memchr2.h: Likewise.
94043         * lib/memchr2.c: Likewise, based on memchr.c.
94044         * tests/test-memchr2.c: New test.
94045         * MODULES.html.sh (String handling): Add memchr2.
94047 2008-02-29  Bruno Haible  <bruno@clisp.org>
94049         * modules/freadseek-tests: New file.
94050         * tests/test-freadseek.sh: New file.
94051         * tests/test-freadseek.c: New file.
94053         New module 'freadseek'.
94054         * modules/freadseek: New file.
94055         * lib/freadseek.h: New file.
94056         * lib/freadseek.c: New file.
94057         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
94059 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
94061         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
94062         wydawca.
94064         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
94065         program_invocation_name and program_invocation_short_name are
94066         present.
94068 2008-02-28  Bruno Haible  <bruno@clisp.org>
94070         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
94071         * tests/test-freadptr.sh: Also test non-seekable stdin.
94073 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
94075         * build-aux/bootstrap (source_base, m4_base)
94076         (doc_base, tests_base): New variables.
94077         (gnulib_tool_options): Do not hardcode base directories, use
94078         the above variables instead.
94080 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
94082         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
94084 2008-02-28  Bruno Haible  <bruno@clisp.org>
94086         * modules/freadptr-tests: New file.
94087         * tests/test-freadptr.sh: New file.
94088         * tests/test-freadptr.c: New file.
94090         New module 'freadptr'.
94091         * modules/freadptr: New file.
94092         * lib/freadptr.h: New file.
94093         * lib/freadptr.c: New file.
94094         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
94096 2008-02-26  Karl Berry  <karl@freefriends.org>
94098         Sync from Libtool:
94099         * libltdl/argz.c (argz_add, argz_count): New functions.
94100         * libltdl/argz.in.h: Declare them.
94101         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
94103 2008-02-22  Bruno Haible  <bruno@clisp.org>
94105         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
94106         is a pointer type.  Needed for HP-UX 10.
94107         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
94108         * doc/posix-functions/gmtime_r.texi: Likewise.
94109         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
94111 2008-02-24  Bruno Haible  <bruno@clisp.org>
94113         * modules/environ-tests: New file.
94114         * tests/test-environ.c: New file.
94116         New module 'environ'.
94117         * modules/environ: New file.
94118         * lib/unistd.in.h (environ): New declaration.
94119         * m4/environ.m4: New file.
94120         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
94121         after use.
94122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
94123         HAVE_DECL_ENVIRON.
94124         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
94125         HAVE_DECL_ENVIRON.
94126         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
94127         wrong claim that 'environ' is missing on some systems.
94128         * modules/execute (Depends-on): Add environ.
94129         * lib/execute.c (environ): Remove fallback declaration.
94130         * modules/pipe (Depends-on): Add environ.
94131         * lib/pipe.c (environ): Remove fallback declaration.
94132         * modules/setenv (Depends-on): Add environ.
94133         * lib/setenv.c (environ): Remove fallback declaration.
94134         * modules/unsetenv (Depends-on): Add environ.
94135         * lib/unsetenv.c (environ): Remove fallback declaration.
94136         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
94137         m4/environ.m4.
94138         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
94139         (gl_PREREQ_UNSETENV): Likewise.
94141 2008-02-24  Bruno Haible  <bruno@clisp.org>
94143         * doc/posix-functions/environ.texi: Document the MacOS X problem.
94145 2008-02-20  Bob Proulx  <bob@proulx.com>
94147         Enable use of older two part flavor 'git describe'.
94148         * build-aux/git-version-gen: If using the older two part flavor of
94149         git version then recreate the third part now present in the
94150         newer three part flavor of git describe.
94152 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
94154         * lib/fts.c (fts_build): Typo correction to comment.
94156 2008-02-17  Bruno Haible  <bruno@clisp.org>
94158         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
94159         generating no-op conflicts.
94161 2008-02-17  Bruno Haible  <bruno@clisp.org>
94163         Speed up by 10%.
94164         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
94165         result_entries, rather than an index-based loop.
94167 2008-02-17  Bruno Haible  <bruno@clisp.org>
94169         Speed up by 25%.
94170         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
94171         'hashcode_cached'.
94172         (entry_create): New function.
94173         (entry_hashcode): Use the cached hashcode if possible.
94174         (read_changelog_file, try_split_merged_entry): Use entry_create.
94176 2008-02-17  Bruno Haible  <bruno@clisp.org>
94178         Speed up from O(n^2) to O(n) for long ChangeLog files.
94179         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
94180         (read_changelog_file): Change implementation of entries_reversed list
94181         to rbtreehash.
94182         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
94184 2008-02-17  Bruno Haible  <bruno@clisp.org>
94186         New option --split-merged-entry.
94187         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
94188         (find_paragraph_end, try_split_merged_entry): New functions.
94189         (long_options): Add option --split-merged-entry.
94190         (usage): Document option --split-merged-entry.
94191         (main): Implement option --split-merged-entry.
94192         Reported by Eric Blake.
94194 2008-02-17  Bruno Haible  <bruno@clisp.org>
94196         * lib/git-merge-changelog.c: Include c-strstr.h.
94197         (main): Support the "git pull --rebase" situation.
94198         * modules/git-merge-changelog (Depends-on): Add c-strstr.
94199         Reported by Eric Blake.
94201 2008-02-16  Eric Blake  <ebb9@byu.net>
94203         Avoid doubling \ in common case of "c-maybe" quoting style.
94204         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
94205         eliding outer quotes.
94206         * lib/quotearg.h: Document this.
94207         * tests/test-quotearg.c (result_strings, inputs, results_g)
94208         (flag_results, locale_results): Test it by adding a new string to
94209         each test group.
94210         (compare_strings): Test new string.
94212 2008-02-13  Eric Blake  <ebb9@byu.net>
94214         Avoid trigraph quoting in default output.
94215         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
94216         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
94217         unless explicitly requested.
94218         * tests/test-quotearg.c (flag_results, main): Add additional tests.
94220 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
94222         Don't rely on signed integer overflowing to negative value.
94223         * lib/getugroups.c (getugroups): Include <limits.h>.
94224         Instead, compare against INT_MAX, and increment only if the test passes.
94226 2008-02-13  Jim Meyering  <meyering@redhat.com>
94227         and Eric Blake  <ebb9@byu.net>
94229         Avoid shadowing warning and compile errors on Linux.
94230         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
94231         forwarding macros on Linux.
94232         (dcgettext): Define a stub, for Linux.
94233         (results_g, main): Avoid warnings.
94235 2008-02-12  Eric Blake  <ebb9@byu.net>
94237         Silence warning in last patch.
94238         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
94240         Quotearg part 4: add tests, fix c-maybe colon quoting.
94241         * lib/quotearg.h: Improve documentation.
94242         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
94243         escapes when adding outer quotes.  When quoting trigraphs, use
94244         valid C notation.  When quoting NUL, omit extra characters if next
94245         character is not digit.  Alter prototype.
94246         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
94247         callers.
94248         * modules/quotearg-tests: New module.
94249         * tests/test-quotearg.c: New test.
94251 2008-02-07  Eric Blake  <ebb9@byu.net>
94253         Quotearg part 3: add flag to control outer quote elision.
94254         * lib/quotearg.h (c_maybe_quoting_style): New style.
94255         (enum quoting_flags): Better documentation of flags.
94256         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
94257         c-maybe style.
94258         (quotearg_buffer_restyled): Handle new flag to elide outer
94259         quotes.
94261         Quotearg part 2: add flag that can control NUL elision.
94262         * lib/quotearg.h (set_quoting_flags): New prototype.
94263         * lib/quotearg.c (struct quoting_options): Add flag field.
94264         (set_quoting_flags): New function.
94265         (quotearg_buffer_restyled): Add flags parameter.
94266         (quotearg_alloc_mem): Set the flag if length cannot be returned.
94267         (quotearg_n_options): Set the flag, since length cannot be
94268         returned.
94269         (quoting_options_from_style): Default flags correctly.
94271         Quotearg part 1: more wrappers, restore quotearg_char state.
94272         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
94273         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
94274         (quotearg_colon_mem): New wrappers.
94275         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
94276         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
94277         functions.
94278         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
94279         (quotearg_colon_mem): New functions.
94281 2008-02-11  Bruno Haible  <bruno@clisp.org>
94283         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
94284         library in the current directory: it does not work with parallel make.
94285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94287 2008-02-11  Bruno Haible  <bruno@clisp.org>
94289         * .gitattributes: New file.
94291 2008-02-11  Jim Meyering  <meyering@redhat.com>
94293         useless-if-before-free: Fix reversed exit values.
94294         * build-aux/useless-if-before-free: Use correct values
94295         for EXIT_MATCH and EXIT_NO_MATCH.
94297         * build-aux/useless-if-before-free: Close stdout carefully.
94299 2008-02-10  Bruno Haible  <bruno@clisp.org>
94301         New module 'git-merge-changelog'.
94302         * modules/git-merge-changelog: New file.
94303         * lib/git-merge-changelog.c: New file.
94305 2008-02-10  Jim Meyering  <meyering@redhat.com>
94307         useless-if-before-free: New option: --list (-l).
94309         useless-if-before-free: Don't exit immediately upon open failure.
94310         * build-aux/useless-if-before-free: Exit 2 for errors.
94311         Upon failure to open a file, don't exit immediately.
94312         Rather, just warn and continue with any remaining files.
94314 2008-02-10  Bruno Haible  <bruno@clisp.org>
94316         New abstract list operation 'node_set_value'.
94317         * lib/gl_list.h (gl_list_node_set_value): New function.
94318         (struct gl_list_implementation): New field node_set_value.
94319         * lib/gl_list.c (gl_list_node_set_value): New function.
94320         * lib/gl_array_list.c (gl_array_node_set_value): New function.
94321         (gl_array_list_implementation): Update.
94322         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
94323         (gl_carray_list_implementation): Update.
94324         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
94325         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94326         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94327         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
94328         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94329         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94330         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94331         Update.
94332         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
94333         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
94334         (gl_sublist_list_implementation): Update.
94336 2008-02-10  Bruno Haible  <bruno@clisp.org>
94338         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
94339         Needed when ELEMENT is #defined to 'some_type *'.
94341 2008-02-10  Jim Meyering  <meyering@redhat.com>
94343         New script and module: useless-if-before-free
94344         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
94345         * build-aux/useless-if-before-free: New file.
94346         * modules/useless-if-before-free: New file.
94348         * build-aux/gitlog-to-changelog: Use committer date, not author date.
94350         xstrtol_error: Fix typo.
94351         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
94352         s/exit_failure/exit_status/.
94354 2008-02-09  Jim Meyering  <meyering@redhat.com>
94356         New script and module: gitlog-to-changelog
94357         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
94358         * modules/gitlog-to-changelog: New file.
94359         * build-aux/gitlog-to-changelog: New file.
94361 2008-02-08  Jim Meyering  <meyering@redhat.com>
94363         Avoid two "parameter unused" warnings.
94364         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
94365         Mark "st" as used.
94367         Use "git COMMAND", not "git-COMMAND".
94368         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
94369         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
94370         * build-aux/git-version-gen: Use "git status", not "git-status".
94372 2008-02-07  Bruno Haible  <bruno@clisp.org>
94374         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
94375         Avoids a crash on Windows Vista.
94376         Reported by Adam Strzelecki <ono@java.pl> via
94377         Simon Josefsson <simon@josefsson.org>.
94379 2008-02-06  Bruno Haible  <bruno@clisp.org>
94381         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
94382         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
94383         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
94384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
94385         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
94386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94387         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
94388         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
94389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94396         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
94397         left-adjust flag.
94398         * tests/test-snprintf-posix.h (test_function): Likewise.
94399         * tests/test-sprintf-posix.h (test_function): Likewise.
94400         * tests/test-vasprintf-posix.c (test_function): Likewise.
94401         * doc/posix-functions/fprintf.texi: Update.
94402         * doc/posix-functions/printf.texi: Update.
94403         * doc/posix-functions/snprintf.texi: Update.
94404         * doc/posix-functions/sprintf.texi: Update.
94405         * doc/posix-functions/vfprintf.texi: Update.
94406         * doc/posix-functions/vprintf.texi: Update.
94407         * doc/posix-functions/vsnprintf.texi: Update.
94408         * doc/posix-functions/vsprintf.texi: Update.
94409         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94411 2008-02-06  Bruno Haible  <bruno@clisp.org>
94413         Fix bug introduced on 2008-01-26.
94414         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
94416 2008-02-06  Bruno Haible  <bruno@clisp.org>
94418         Fix bug introduced on 2007-06-10.
94419         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
94420         !NEED_PRINTF_FLAG_ZERO.
94422 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
94424         getloadavg: use libperfstat on AIX5
94425         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
94427 2008-02-03  Bruno Haible  <bruno@clisp.org>
94429         * lib/diffseq.h: Add comments about required #includes.
94430         Reported by Michael Biggs <gnulib@doubleplum.net>.
94432 2008-02-01  Bruno Haible  <bruno@clisp.org>
94434         * users.txt: Add gnuit.
94436 2008-01-31  Bruno Haible  <bruno@clisp.org>
94438         * lib/md4.c (set_uint32): Mark as inline.
94439         * lib/md5.c (set_uint32): Likewise.
94440         * lib/sha1.c (set_uint32): Likewise.
94441         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
94442         * m4/md5.m4 (gl_MD5): Likewise.
94443         * m4/sha1.m4 (gl_SHA1): Likewise.
94445 2008-01-31  Jim Meyering  <meyering@redhat.com>
94447         Use "sizeof VAR", rather than a literal "4".
94448         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
94449         * lib/md4.c (md4_read_ctx): Likewise.
94450         * lib/sha1.c (sha1_read_ctx): Likewise.
94452 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94454         * tests/test-sha1.c: New file, based on test-md5.c.
94456         * modules/crypto/sha1-tests: New file.
94458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94460         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
94462 2008-01-31  Jim Meyering  <meyering@redhat.com>
94464         Prefer "sizeof v" over the equivalent "4".
94465         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
94466         * lib/md5.c (set_uint32): Likewise.
94467         * lib/sha1.c (set_uint32): Likewise.
94469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94471         * lib/sha1.c (set_uint32): Mark function as static.
94473 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94475         md2: clarify comments to say that alignment is not required.
94476         * lib/md2.h: Remove warning about alignment in comment.
94477         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
94478         never been required.
94480 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94482         md4: adapt alignment constraint fix from sha1.
94483         * lib/md4.c (set_uint32): New function, from sha1.c
94484         (md4_read_ctx): Use it.
94485         (md4_finish_ctx): Doc fix.
94486         * lib/md4.h: Doc fix.
94488 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94490         md5: adapt alignment constraint fix from sha1.
94491         * lib/md5.c (set_uint32): New function, from sha1.c
94492         (md5_read_ctx): Use it.
94493         (md5_finish_ctx): Doc fix.
94494         * lib/md5.h: Doc fix.
94496 2008-01-30  Peter Palfrader  <weasel@debian.org>
94498         sha1: remove the result buffer alignment constraint
94499         * lib/sha1.c (set_uint32): New function.
94500         (sha1_read_ctx): Rewrite to remove the result buffer alignment
94501         constraint.
94502         (sha1_finish_ctx): Remove comment warning about alignment constraint.
94503         * lib/sha1.h: Likewise.
94505 2008-01-30  Andreas Schwab  <schwab@suse.de>
94506             Bruno Haible  <bruno@clisp.org>
94508         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
94509         correct definition of LDBL_MIN_EXP.
94511 2008-01-30  Karl Berry  <karl@gnu.org>
94513         * config/srclist-update: try to preserve x bit on updates.
94514         * config/srclistvars.sh: update for karl.
94516 2008-01-29  Jim Meyering  <meyering@redhat.com>
94518         vasnprintf.c: Avoid warning about unused label
94519         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
94520         "overflow" label definition and associated code with the
94521         same cpp condition that guards the sole use of that label.
94523 2008-01-26  Bruno Haible  <bruno@clisp.org>
94525         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
94526         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
94527         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
94528         * lib/isnanl-nolibm.h (isnanl): Likewise.
94529         Reported by Paul Eggert <eggert@cs.ucla.edu>.
94531 2008-01-26  Bruno Haible  <bruno@clisp.org>
94533         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
94534         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
94536 2008-01-26  Bruno Haible  <bruno@clisp.org>
94538         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
94539         GCC >= 4.0 built-in.
94540         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
94542 2008-01-26  Bruno Haible  <bruno@clisp.org>
94544         Rename isnan, applicable to 'double' only, to isnand.
94545         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
94546         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
94547         (configure.ac): Update.
94548         (Include): Replace "isnan.h" with "isnand.h".
94549         * m4/isnand.m4: Renamed from m4/isnan.m4.
94550         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
94551         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
94552         instead of isnan.c.
94553         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
94554         instead of HAVE_ISNAN_IN_LIBC.
94555         (isnand): Renamed from isnan.
94556         * lib/isnand.c: New file.
94557         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
94558         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
94559         (Makefile.am): Update.
94560         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
94561         Include isnand.h instead of isnan.h.
94562         (main): Test isnand instead of isnan.
94563         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
94564         isnan-nolibm.
94565         * modules/frexp (Depends-on): Likewise.
94566         * modules/frexp-tests (Depends-on): Likewise.
94567         * modules/frexp-nolibm (Depends-on): Likewise.
94568         * modules/frexp-nolibm-tests (Depends-on): Likewise.
94569         * modules/isfinite (Depends-on): Likewise.
94570         * modules/round-tests (Depends-on): Likewise.
94571         * modules/signbit (Depends-on): Likewise.
94572         * modules/signbit-tests (Depends-on): Likewise.
94573         * modules/snprintf-posix (Depends-on): Likewise.
94574         * modules/sprintf-posix (Depends-on): Likewise.
94575         * modules/trunc-tests (Depends-on): Likewise.
94576         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
94577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
94578         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
94579         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
94580         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
94581         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
94582         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
94583         * modules/vasnprintf-posix (Depends-on): Likewise.
94584         * modules/vasprintf-posix (Depends-on): Likewise.
94585         * modules/vfprintf-posix (Depends-on): Likewise.
94586         * modules/vsnprintf-posix (Depends-on): Likewise.
94587         * modules/vsprintf-posix (Depends-on): Likewise.
94588         * lib/frexp.c: Include isnand.h instead of isnan.h.
94589         (ISNAN): Set to isnand instead of isnan.
94590         * lib/isfinite.c: Include isnand.h instead of isnan.h.
94591         (gl_isfinited): Use isnand instead of isnan.
94592         * lib/signbitd.c: Include isnand.h instead of isnan.h.
94593         (gl_signbitd): Use isnand instead of isnan.
94594         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
94595         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
94596         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
94597         (main): Use isnand instead of isnan.
94598         * tests/test-round1.c: Include isnand.h.
94599         (main): Use isnand instead of isnan.
94600         * tests/test-round2.c: Include isnand.h instead of isnan.h.
94601         (ISNAN): Set to isnand instead of isnan.
94602         * tests/test-trunc1.c: Include isnand.h.
94603         (main): Use isnand instead of isnan.
94604         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
94605         (equal): Use isnand instead of isnan.
94606         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
94607         isnand-nolibm.
94608         * NEWS: Mention the change.
94610 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
94611             Bruno Haible  <bruno@clisp.org>
94613         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
94614         the GCC builtins for signbits are present and set
94615         REPLACE_SIGNBIT_USING_GCC if so.
94616         * lib/math.in.h (signbit): Define using GCC builtins if
94617         REPLACE_SIGNBIT_USING_GCC is set.
94618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
94619         REPLACE_SIGNBIT_USING_GCC.
94620         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
94622 2008-01-25  Jim Meyering  <meyering@redhat.com>
94624         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
94625         * lib/poll.c: Include <config.h>, not "config.h".
94626         * tests/test-getaddrinfo.c: Likewise.
94628 2008-01-25  Simon Josefsson  <simon@josefsson.org>
94630         * modules/sockets-tests: New file.
94632 2008-01-24  Simon Josefsson  <simon@josefsson.org>
94634         * modules/sockets: New module, can be used to call WSA_Startup and
94635         WSA_Cleanup when needed.
94637         * lib/sockets.h, lib/sockets.c: New files.
94639         * m4/sockets.m4: New file.
94641         * tests/test-sockets.c: New file.
94643 2008-01-19  Bruno Haible  <bruno@clisp.org>
94645         * doc/posix-headers: Renamed from doc/headers.
94646         * doc/posix-functions: Renamed from doc/functions.
94647         * doc/gnulib.texi: Update.
94649 2008-01-19  Bruno Haible  <bruno@clisp.org>
94651         * doc/glibc-functions/strcasestr.texi: Include contents of
94652         doc/functions/strcasestr.texi, fixing the list of platforms.
94653         * doc/functions/strcasestr.texi: Remove file.
94655 2008-01-19  Bruno Haible  <bruno@clisp.org>
94657         * doc/glibc-functions/memmem.texi: Include contents of
94658         doc/functions/memmem.texi.
94659         * doc/functions/memmem.texi: Remove file.
94661 2008-01-18  Bruno Haible  <bruno@clisp.org>
94663         * doc/glibc-functions/*.texi: New files.
94664         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
94665         to use the new files.
94667 2008-01-17  Bruno Haible  <bruno@clisp.org>
94669         * tests/test-gethostname.c (main): Fix printf statement.
94671 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94673         * modules/gethostname-tests: New file.
94675         * tests/test-gethostname.c: New file.
94677 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94679         * lib/gethostname.c: Include string.h unconditionally, strncpy is
94680         used by the UNAME case.  Reported by Bruno Haible
94681         <bruno@clisp.org>.
94683 2008-01-17  Eric Blake  <ebb9@byu.net>
94685         Convert c-strcasestr to be more efficient.
94686         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
94687         (Depends-on): Add c-strcase, remove malloca, strnlen.
94688         * tests/test-c-strcasestr.c (main): Enhance test.
94689         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
94691 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
94693         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
94694         Use it in creating po/Makevars.
94696 2008-01-15  Simon Josefsson  <simon@josefsson.org>
94698         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
94699         Applications that requires it should initialize libgcrypt
94700         manually.
94702 2008-01-16  Simon Josefsson  <simon@josefsson.org>
94704         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
94706 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
94708         Fix problem with getdate on mingw32 reported by Simon Josefsson
94709         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
94710         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
94711         tzname", when deciding whether to declare tzname.
94712         * lib/strftime.c (tzname): Likewise.
94714 2008-01-15  Bruno Haible  <bruno@clisp.org>
94716         Work around a MacOS X 10.5 bug in frexpl().
94717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
94718         * doc/functions/frexpl.texi: Document the bug.
94719         Reported by Elias Pipping <pipping@gentoo.org>.
94721 2008-01-14  Eric Blake  <ebb9@byu.net>
94723         Touch up previous patch.
94724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
94725         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
94727         Convert strcasestr module to use Two-Way algorithm.
94728         * modules/strcasestr-simple: New module, based on the old
94729         strcasestr, but with Two-Way rather than KMP.
94730         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
94731         * lib/string.in.h (rpl_strcasestr): Declare.
94732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
94733         performance.
94734         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
94735         * modules/string (Makefile.am): Support strcasestr.
94736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
94737         * modules/strcasestr-tests (Depends-on): Check for alarm.
94738         * tests/test-strcasestr.c: Augment test.
94739         * lib/str-two-way.h: Clean up stray macro.
94740         * NEWS: Document new module.
94741         * MODULES.html.sh (string handling): Likewise.
94742         * doc/functions/strcasestr.texi: New file.
94743         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
94744         here, since it is not a POSIX function.
94746 2008-01-14  Colin Watson  <cjwatson@debian.org>
94747             Bruno Haible  <bruno@clisp.org>
94749         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
94750         works fine; if not, set REPLACE_STRSIGNAL.
94751         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
94752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94753         REPLACE_STRSIGNAL.
94754         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
94755         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
94756         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
94758 2008-01-14  Bruno Haible  <bruno@clisp.org>
94760         * modules/strsignal (Include): Change to <string.h>.
94762 2008-01-14  Colin Watson  <cjwatson@debian.org>
94764         * modules/argp (Notice): Add a notice recommending to change
94765         XGETTEXT_OPTIONS.
94766         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
94768 2008-01-13  Colin Watson  <cjwatson@debian.org>
94770         * modules/strsignal-tests: New file.
94771         * tests/test-strsignal.c: New file.
94773         * lib/strsignal.c: New file, from glibc with modifications.
94774         * lib/siglist.h: New file, from glibc with modifications.
94775         * lib/string.in.h (strsignal): New declaration.
94776         * m4/strsignal.m4: New file.
94777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94778         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
94779         * modules/strsignal: New file.
94780         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
94781         HAVE_DECL_STRSIGNAL.
94783 2008-01-13  Bruno Haible  <bruno@clisp.org>
94785         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
94786         locale encoding is not ASCII. Needed for OpenBSD 4.0.
94787         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
94788         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
94790 2008-01-13  Bruno Haible  <bruno@clisp.org>
94792         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
94793         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
94794         * lib/argp.h (__attribute__): Likewise.
94795         * lib/c-stack.c (__attribute__): Likewise.
94796         * lib/error.h (__attribute__): Likewise.
94797         * lib/fts.c (__attribute__): Likewise.
94798         * lib/openat.h (__attribute__): Likewise.
94799         * lib/stdio.in.h (__attribute__): Likewise.
94800         * lib/string.in.h (__attribute__): Likewise.
94801         * lib/utimens.c (__attribute__): Likewise.
94802         * lib/vasnprintf.h (__attribute__): Likewise.
94803         * lib/xalloc.h (__attribute__): Likewise.
94804         * lib/xprintf.h (__attribute__): Likewise.
94805         * lib/xstrtol.h (__attribute__): Likewise.
94806         * lib/xvasprintf.h (__attribute__): Likewise.
94808 2008-01-12  Bruno Haible  <bruno@clisp.org>
94810         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
94811         * doc/glibc-headers/a.out.texi: New file.
94812         * doc/glibc-headers/aliases.texi: New file.
94813         * doc/glibc-headers/alloca.texi: New file.
94814         * doc/glibc-headers/ar.texi: New file.
94815         * doc/glibc-headers/argp.texi: New file.
94816         * doc/glibc-headers/argz.texi: New file.
94817         * doc/glibc-headers/byteswap.texi: New file.
94818         * doc/glibc-headers/crypt.texi: New file.
94819         * doc/glibc-headers/endian.texi: New file.
94820         * doc/glibc-headers/envz.texi: New file.
94821         * doc/glibc-headers/err.texi: New file.
94822         * doc/glibc-headers/error.texi: New file.
94823         * doc/glibc-headers/execinfo.texi: New file.
94824         * doc/glibc-headers/fpu_control.texi: New file.
94825         * doc/glibc-headers/fstab.texi: New file.
94826         * doc/glibc-headers/fts.texi: New file.
94827         * doc/glibc-headers/getopt.texi: New file.
94828         * doc/glibc-headers/ieee754.texi: New file.
94829         * doc/glibc-headers/ifaddrs.texi: New file.
94830         * doc/glibc-headers/libintl.texi: New file.
94831         * doc/glibc-headers/mcheck.texi: New file.
94832         * doc/glibc-headers/mntent.texi: New file.
94833         * doc/glibc-headers/obstack.texi: New file.
94834         * doc/glibc-headers/paths.texi: New file.
94835         * doc/glibc-headers/printf.texi: New file.
94836         * doc/glibc-headers/pty.texi: New file.
94837         * doc/glibc-headers/resolv.texi: New file.
94838         * doc/glibc-headers/shadow.texi: New file.
94839         * doc/glibc-headers/sysexits.texi: New file.
94840         * doc/glibc-headers/ttyent.texi: New file.
94842 2008-01-12  Jim Meyering  <meyering@redhat.com>
94844         announce-gen: emit Gnulib's git-based version string.
94845         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
94846         New option --gnulib-version=V, where V is expected to be
94847         the output of running git describe in the gnulib directory.
94848         (get_tool_versions): Request feedback on xdelta.  I suspect it's
94849         not useful, and plan to stop publishing an xdelta file with each
94850         coreutils release.
94852         * build-aux/announce-gen: Also check for lzma-compressed files.
94854 2008-01-11  Bruno Haible  <bruno@clisp.org>
94856         * tests/test-memmem.c (main): Increase maximum allowed time.
94857         * tests/test-strstr.c (main): Likewise.
94859 2008-01-11  Bruno Haible  <bruno@clisp.org>
94861         * doc/functions/memmem.texi: Add more precisions about platforms.
94862         * doc/functions/strstr.texi: Likewise.
94864 2008-01-10  Eric Blake  <ebb9@byu.net>
94866         * m4/strstr.m4: Delete cruft from copy-n-paste.
94867         Reported by Bruno Haible.
94869 2008-01-10  Bruno Haible  <bruno@clisp.org>
94871         Make c-strstr rely on strstr.
94872         * lib/c-strstr.c: Don't include str-kmp.h.
94873         (c_strstr): Define in terms of strstr.
94874         * modules/c-strstr (Files): Remove lib/str-kmp.h.
94875         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
94877 2008-01-10  Bruno Haible  <bruno@clisp.org>
94879         * doc/gnulib.texi (String Functions in C Locale): New section.
94880         * doc/c-ctype.texi: New file.
94881         * doc/c-strcase.texi: New file.
94882         * doc/c-strcaseeq.texi: New file.
94883         * doc/c-strcasestr.texi: New file.
94884         * doc/c-strstr.texi: New file.
94885         * doc/c-strtod.texi: New file.
94886         * doc/c-strtold.texi: New file.
94888 2008-01-10  Eric Blake  <ebb9@byu.net>
94890         * lib/relocatable.h: Fix a comment.
94892 2008-01-10  Eric Blake  <ebb9@byu.net>
94894         Share two-way algorithm.
94895         * lib/str-two-way.h: New file, merged from...
94896         * lib/memmem.c: ...here...
94897         * lib/strstr.c: ...and here.
94898         * modules/memmem (Files): Use it.
94899         * modules/strstr (Files): Likewise.
94901         Avoid quadratic strstr implementations.
94902         * lib/strstr.c: New file.
94903         * m4/strstr.m4: Likewise.
94904         * modules/strstr: Likewise.
94905         * modules/strstr-tests: Likewise.
94906         * tests/test-strstr.c: Likewise.
94907         * lib/string.in.h (rpl_strstr): Declare.
94908         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94910         * modules/string (Makefile.am): Likewise.
94911         * MODULES.html.sh (string handling): Mention new module.
94912         * doc/functions/strstr.texi (strstr): Document the bug.
94914 2008-01-10  Bruno Haible  <bruno@clisp.org>
94916         * lib/relocatable.h (relocate): State whether result is freshly
94917         allocated or not.
94918         * lib/relocatable.c (relocate): Return a freshly allocated string
94919         instead of a pointer to a privately held string.
94920         Reported by Sylvain Beucler <beuc@gnu.org>.
94922 2008-01-10  Colin Watson  <cjwatson@debian.org>
94924         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94925         s/S_ISNLK/S_ISLNK/.
94927 2008-01-09  Bruno Haible  <bruno@clisp.org>
94929         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94930         and other files.
94931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94932         if it's only a guess.
94933         * modules/memmem: Simplify by depending on memmem-simple.
94935 2008-01-09  Bruno Haible  <bruno@clisp.org>
94937         Work around OpenBSD 4.0 tdelete() bug.
94938         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94939         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94940         macros and don't redefine the enum values.
94941         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94942         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94943         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94945 2008-01-09  Bruno Haible  <bruno@clisp.org>
94947         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94948         (main): Don't perform the tests if setlocale did not install a UTF-8
94949         locale. Needed on OpenBSD 4.0.
94950         * modules/wcwidth-tests (Depends-on): Add localcharset.
94952 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94954         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94955         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94956         * NEWS: announce this.
94957         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94959 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94960         and Eric Blake  <ebb9@byu.net>
94962         Add memmem-simple module.
94963         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94964         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94965         * modules/memmem-simple: New file.
94966         * modules/memmem (Description): Tweak.
94967         * MODULES.html.sh (string handling): Mention new module.
94968         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94969         addressed by memmem-simple.
94970         * NEWS: Document the difference.
94972 2008-01-09  Eric Blake  <ebb9@byu.net>
94974         Give gcc some memmem optimization hints.
94975         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94976         (strcasestr): Declare as pure.
94977         * modules/memmem (Maintainer): Claim my implementation.
94979 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94981         Support AIX 6.1 and higher.
94982         * build-aux/config.libpath: Likewise.
94983         * build-aux/config.rpath: Likewise.
94985 2008-01-08  Jim Meyering  <meyering@redhat.com>
94986             Bruno Haible  <bruno@clisp.org>
94988         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94989         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94990         Reported by Peter Fales in
94991         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94993 2008-01-08  Bruno Haible  <bruno@clisp.org>
94995         * modules/unictype/category-of (Depends-on): Add
94996         unictype/category-none.
94997         * modules/unictype/category-and-tests (Depends-on): Add
94998         unictype/category-{L,N,Lu,Nd}.
94999         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
95000         * modules/unictype/category-or-tests (Depends-on): Add
95001         unictype/category-{L,N}.
95002         * modules/unictype/category-name-tests (Depends-on): Add
95003         unictype/category-{Z,Nl}.
95004         Reported by Simon Josefsson.
95006 2008-01-08  Bruno Haible  <bruno@clisp.org>
95008         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
95009         convention better.
95010         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
95011         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
95012         Reported by Peter Miller <millerp@canb.auug.org.au>.
95014 2008-01-08  Eric Blake  <ebb9@byu.net>
95016         Rewrite memmem to guarantee linear complexity without malloc.
95017         * lib/memmem.c (memmem): Use Two-Way rather than
95018         Knuth-Morris-Pratt, to allow O(1) space usage.
95019         (critical_factorization, two_way_short_needle)
95020         (two_way_long_needle): New functions.
95021         (knuth_morris_pratt): Delete.
95022         * modules/memmem (Depends-on): No longer need malloca or stdbool.
95023         Add stdint.
95024         * tests/test-memmem.c (main): Add tests for periodic needle and
95025         sublinear performance.
95026         * doc/functions/memmem.texi (memmem): Document other deficiencies
95027         in cygwin and older glibc.
95029 2008-01-08  Bruno Haible  <bruno@clisp.org>
95031         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
95032         augmentation.
95034 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
95036         Add a configure time option: --disable-acl.
95037         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
95038         AC_ARG_ENABLE(acl).
95040 2008-01-06  Simon Josefsson  <simon@josefsson.org>
95042         * tests/test-localename.c: Don't include obsolete "setenv.h".
95044         * modules/localename-tests (Depends-on): Need unsetenv.
95046 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95048         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
95050 2008-01-06  Colin Watson  <cjwatson@debian.org>
95052         * users.txt: Add man-db.
95054 2008-01-07  Bruno Haible  <bruno@clisp.org>
95056         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
95057         previous section name.
95059 2008-01-07  Bruno Haible  <bruno@clisp.org>
95061         * lib/progname.c (set_program_name): Don't strip off a leading
95062         "lt-" prefix outside a .libs directory.
95063         Suggested by Paul Eggert.
95065 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
95066             Bruno Haible  <bruno@clisp.org>
95068         Improve memory cleanup in 'relocatable' module.
95069         * lib/relocatable.h (compute_curr_prefix): Change return type to
95070         'char *'.
95071         * lib/relocatable.c (compute_curr_prefix): Change return type to
95072         'char *'. Free curr_installdir after use.
95073         (relocate): Free curr_prefix_better after use.
95074         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
95076 2008-01-01  Bruno Haible  <bruno@clisp.org>
95078         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
95079         failure on older glibc systems.
95080         Reported by Peter Fales <psfales@alcatel-lucent.com>.
95082 2008-01-05  Eric Blake  <ebb9@byu.net>
95084         Avoid quadratic system memmem.
95085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
95086         Reported by Ralf Wildenhues.
95088         Fix memmem test for mingw.
95089         * modules/memmem-tests (configure.ac): Check for alarm.
95090         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
95091         it.
95092         * doc/functions/memmem.texi: New file.
95093         * doc/gnulib.texi (Function Substitutes): Add memmem.
95094         Reported by Bruno Haible.
95096 2008-01-04  Bruno Haible  <bruno@clisp.org>
95098         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
95099         Require gl_HEADER_STRINGS_H_DEFAULTS, not
95100         gl_HEADER_STRING_H_DEFAULTS.
95102 2008-01-04  Eric Blake  <ebb9@byu.net>
95104         Shorten duration of memmem test.
95105         * tests/test-memmem.c (main): Use alarm to declare failure if test
95106         is taking too long.
95107         Reported by Ralf Wildenhues.
95109 2007-12-21  Simon Josefsson  <simon@josefsson.org>
95111         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
95112         string, needed by strerror.
95114 2008-01-03  Colin Watson  <cjwatson@debian.org>
95115             Bruno Haible  <bruno@clisp.org>
95117         * doc/gnulib-tool.texi (Localization): New section.
95119 2008-01-02  Bruno Haible  <bruno@clisp.org>
95121         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
95122         variables to 'unsigned char *' type.
95123         Reported by Paul Eggert.
95125 2008-01-02  Jim Meyering  <jim@meyering.net>
95127         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
95129 2007-12-31  Jim Meyering  <jim@meyering.net>
95131         Avoid use of private FTS type name.
95132         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
95134 2007-12-30  Karl Berry  <karl@gnu.org>
95136         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
95137         work around defect in Texinfo and/or the standalone Info browser.
95139 2007-12-30  Bruno Haible  <bruno@clisp.org>
95141         Unify 5 copies of the KMP code.
95142         * lib/str-kmp.h: New file.
95143         * lib/c-strcasestr.c: Include str-kmp.h.
95144         (knuth_morris_pratt): Remove function.
95145         (c_strcasestr): Update.
95146         * lib/c-strstr.c: Include str-kmp.h.
95147         (knuth_morris_pratt): Remove function.
95148         (c_strcasestr): Update.
95149         * lib/mbscasestr.c: Include str-kmp.h.
95150         (knuth_morris_pratt_unibyte): Remove function.
95151         * lib/mbsstr.c: Include str-kmp.h.
95152         (knuth_morris_pratt_unibyte): Remove function.
95153         * lib/strcasestr.c: Include str-kmp.h.
95154         (knuth_morris_pratt): Remove function.
95155         (strcasestr): Update.
95156         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
95157         * modules/c-strstr (Files): Likewise.
95158         * modules/mbscasestr (Files): Likewise.
95159         * modules/mbsstr (Files): Likewise.
95160         * modules/strcasestr (Files): Likewise.
95161         Suggested by Paul Eggert.
95163 2007-12-30  Bruno Haible  <bruno@clisp.org>
95165         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
95166         defined.
95168 2007-12-30  Bruno Haible  <bruno@clisp.org>
95170         * lib/xmalloca.h: Include xalloc.h.
95171         (xnmalloca): New macro.
95173 2007-12-30  Bruno Haible  <bruno@clisp.org>
95175         * lib/malloca.h (nmalloca): New macro.
95176         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
95177         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
95178         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
95179         knuth_morris_pratt_multibyte): Likewise.
95180         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
95181         knuth_morris_pratt_multibyte): Likewise.
95182         * lib/memmem.c (knuth_morris_pratt): Likewise.
95183         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
95185 2007-12-25  Bruno Haible  <bruno@clisp.org>
95187         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
95188         * lib/glob.c: Don't include openat.h.
95189         (link_exists2_p): Add back the code that deals with the
95190         !GLOB_ALTDIRFUNC case.
95191         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
95192         let it do the filename concatenation.
95193         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
95194         * modules/glob (Depends-on): Remove openat.
95196 2007-12-31  Bruno Haible  <bruno@clisp.org>
95198         * modules/dirfd (License): Change to LGPLv2+.
95199         Approved by Jim Meyering.
95201 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
95203         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
95204         when multiplying M by sizeof (size_t).
95206 2007-12-10  Martin Lambers  <marlam@marlam.de>
95208         Override getpagesize on mingw.
95209         * lib/getpagesize.c: New file.
95210         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
95211         * modules/getpagesize (Files): Add lib/getpagesize.c.
95212         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
95213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
95214         REPLACE_GETPAGESIZE.
95215         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
95217 2007-12-25  Bruno Haible  <bruno@clisp.org>
95219         * modules/localcharset (Notice): New field.
95220         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
95221         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
95223 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
95224             Bruno Haible  <bruno@clisp.org>
95226         Avoid using the syntax symbol() in formatted documentation.
95227         * MODULES.html.sh (func_module): When replacing symbol() with a
95228         hyperlink, remove the parentheses. Show an error if some remain.
95229         Recognize and render the '...' syntax.
95230         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
95231         Rework. Add paragraph about GCC's inlining.
95232         * doc/alloca.texi: Likewise.
95233         * doc/error.texi: Remove parentheses from symbol reference.
95234         * doc/gnulib-intro.texi: Likewise.
95235         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
95236         * modules/fnmatch (Description): Reword to say "the ... function".
95237         * modules/full-read (Description): Likewise.
95238         * modules/full-write (Description): Likewise.
95239         * modules/safe-read (Description): Likewise.
95240         * modules/safe-write (Description): Likewise.
95241         * modules/strchrnul (Description): Likewise.
95242         * modules/trim (Description): Likewise.
95243         * modules/error (Description): Remove parentheses from symbol
95244         references.
95245         * modules/verror (Description): Likewise.
95246         Reported by Karl Berry.
95248 2007-12-25  Bruno Haible  <bruno@clisp.org>
95250         Fixup after 2007-10-16 commit.
95251         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
95253 2007-12-24  Bruno Haible  <bruno@clisp.org>
95255         Make --enable-relocatable work with DESTDIR.
95256         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
95257         to compute installdir from destprog.
95258         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
95259         also set the RELOC_DESTDIR variable.
95260         Reported by Левашев Иван <octagram@bluebottle.com>.
95262 2007-12-24  Bruno Haible  <bruno@clisp.org>
95264         Fix link error due to xalloc_die().
95265         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
95266         of xreadlink.
95267         * lib/relocwrapper.c: Update comments.
95268         * build-aux/install-reloc: Remove xreadlink.c from file list.
95269         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
95270         xreadlink.c.
95271         Reported by Левашев Иван <octagram@bluebottle.com>.
95273 2007-12-24  Bruno Haible  <bruno@clisp.org>
95275         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
95276         * lib/setenv.h: Remove file.
95277         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
95278         lib/setenv.h.
95279         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
95280         (Depends-on): Add stdlib.
95281         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
95282         gl_FUNC_UNSETENV.
95283         (Include): Replace setenv.h with <stdlib.h>.
95284         * modules/unsetenv: New file.
95285         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
95286         * lib/unsetenv.c: Include <stdlib.h> first.
95287         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
95288         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
95289         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
95290         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
95291         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
95292         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
95293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
95294         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
95295         * doc/functions/unsetenv.texi: Update.
95296         * modules/xsetenv (Depends-on): Add unsetenv.
95297         * modules/getdate (Depends-on): Likewise.
95298         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
95299         * lib/xsetenv.c: Don't include setenv.h.
95300         * lib/getdate.y: Likewise.
95301         * lib/relocwrapper.c: Likewise.
95302         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
95303         (Depends-on): Add stdlib.
95304         * NEWS: Mention the changes.
95305         Reported by Левашев Иван <octagram@bluebottle.com>.
95307 2007-12-23  Bruno Haible  <bruno@clisp.org>
95309         * lib/memmem.c (memmem): Use lowercase variable names. Tab
95310         indentation.
95312 2007-12-23  Bruno Haible  <bruno@clisp.org>
95314         * lib/c-strcasestr.c: Add more comments.
95315         * lib/c-strstr.c: Likewise.
95316         * lib/mbscasestr.c: Likewise.
95317         * lib/mbsstr.c: Likewise.
95318         * lib/strcasestr.c: Likewise.
95319         * lib/memmem.c: Likewise.
95321 2007-12-23  Bruno Haible  <bruno@clisp.org>
95323         * tests/test-memmem.c: Include <string.h> first.
95325 2007-12-22  Bruno Haible  <bruno@clisp.org>
95327         * gnulib-tool (func_create_testdir): Change $auxdir while generating
95328         the contents of $testsbase.
95329         Reported by Ralf Wildenhues.
95331 2007-12-22  Bruno Haible  <bruno@clisp.org>
95333         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
95334         two variables local_ldadd_before, local_ldadd_last.
95336 2007-12-20  Eric Blake  <ebb9@byu.net>
95338         Work around circular library issue when cross-compiling.
95339         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
95340         that progname.o does not need to pull in rpl_memcmp.
95342 2007-12-19  Eric Blake  <ebb9@byu.net>
95344         Fix memmem to avoid O(n^2) worst-case complexity.
95345         * lib/memmem.c (knuth_morris_pratt): New function.
95346         (memmem): Use it if first few naive iterations fail.
95347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
95348         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
95349         * modules/memchr (License): Likewise.
95350         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
95351         malloca.
95352         * tests/test-memmem.c: Rewrite, borrowing ideas from
95353         test-mbsstr1.c; the old version wouldn't even compile!
95354         * modules/memmem-tests: New file.
95355         * lib/string.in.h (rpl_memmem): Add declaration.
95356         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
95357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
95358         REPLACE_MEMMEM.
95360 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
95362         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
95363         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
95364         before any system include files, and undef after them all.  This
95365         should fix a problem on VMS reported by John E. Malmberg in
95366         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
95368 2007-12-17  Eric Blake  <ebb9@byu.net>
95370         Revert addition of verify, for BSD/OS.
95371         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
95372         can't handle large files, for the sake of obsolete platforms.
95373         * modules/fseeko (Depends-on): Remove verify.
95374         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
95375         * doc/functions/ftello.texi (ftello): Likewise.
95376         * doc/functions/fgetpos.texi (fgetpos): Likewise.
95377         Reported by Larry Jones.
95379 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
95381         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
95382         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
95384 2007-12-17  Jim Meyering  <meyering@redhat.com>
95386         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
95387         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
95388         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
95389         * modules/getcwd (Depends-on): Add openat.
95390         Reported by Petr Salinger.
95392 2007-12-17  Bruno Haible  <bruno@clisp.org>
95394         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
95395         avoid a segmentation fault of the configure test on x86_64 systems.
95397 2007-12-15  Jim Meyering  <meyering@redhat.com>
95399         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
95401 2007-12-13  Eric Blake  <ebb9@byu.net>
95403         Another fseek test.
95404         * tests/test-fseek.c (main): Also test ungetc handling.
95405         * tests/test-fseeko.c (main): Likewise.
95406         * modules/fseeko (Depends-on): Add verify.
95407         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
95408         large.
95409         Reported by Larry Jones.
95411         Fix fseeko on mingw.
95412         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
95413         seek.
95415         Beef up fseek tests.
95416         * tests/test-fseek.c (main): Also test eof handling.
95417         * tests/test-fseeko.c (main): Likewise.
95418         Reported by Larry Jones.
95420 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
95422         Fix fseeko on BSD-based platforms.
95423         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
95424         successful seek.
95426 2007-12-12  Eric Blake  <ebb9@byu.net>
95428         Allow circular dependency of separate libtests.a
95429         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
95430         when use_libtests.
95432 2007-12-11  Eric Blake  <ebb9@byu.net>
95434         Fix bug with -0.0L in previous patch.
95435         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
95436         * tests/test-isnan.c (main): Also test on zeroes.
95437         * tests/test-isnanf.c (main): Likewise.
95438         * tests/test-isnanl.h (main): Likewise.
95440         Detect pseudo-denormals on x86 even when cross-compiling.
95441         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
95442         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
95443         invalid bit patterns that happen to satisfy ==.
95445         Avoid link failures with separate libtests.a.
95446         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
95447         last, to satisfy circular dependencies.
95449 2007-12-11  Eric Blake  <ebb9@byu.net>
95450         and Bruno Haible  <bruno@clisp.org>
95452         Fix OpenBSD 4.0 <float.h> handling of long double.
95453         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
95454         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
95455         * doc/headers/float.texi (float.h): Document OpenBSD bug.
95457 2007-12-11  Jim Meyering  <meyering@redhat.com>
95459         * users.txt: Add libvirt.
95461         Support versions of autoconf prior to 2.59c.
95462         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
95463         if it is not already defined.
95465 2007-12-09  Bruno Haible  <bruno@clisp.org>
95467         Let 'gnulib-tool --import' collect sources needed for the tests in
95468         tests/ rather than in lib/.
95469         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
95470         argument. If true, add rules to generate libtests.a, and put libtests.a
95471         into $(LDADD). Consider source files in subdirectories and set
95472         uses_subdirs.
95473         (func_emit_initmacro_start, func_emit_initmacro_end,
95474         func_emit_initmacro_done): Pass all arguments explicitly.
95475         (func_import): Determine two module lists main_modules,
95476         testsrelated_modules. Determine use_libtests. Determine two variables
95477         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
95478         instead of just sed_transform_lib_file. Determine two variables
95479         main_files and testsrelated_files. Compute 'files' as the union of
95480         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
95481         func_add_or_update. In the generated gnulib-comp.m4, collect the
95482         object files for tests/ in different variables than those for lib/.
95483         Substitute LIBTESTS_LIBDEPS.
95484         (func_create_testdir): Combine the uses_subdirs results from
95485         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
95487 2007-12-09  Bruno Haible  <bruno@clisp.org>
95489         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
95490         the build-aux directory.
95492 2007-12-09  Bruno Haible  <bruno@clisp.org>
95494         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
95495         introduced on 2006-09-09.
95497 2007-12-07  Jim Meyering  <meyering@redhat.com>
95499         Let these macros work also with autoconf-2.59.
95500         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
95501         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
95502         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
95504 2007-12-06  Jim Meyering  <meyering@redhat.com>
95506         Avoid a configure-time syntax error in gl_FUNC_ACL.
95507         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
95508         function in each branch, before testing the cache variable.
95510 2007-12-04  Eric Blake  <ebb9@byu.net>
95512         Make scripts executable.
95513         * build-aux/config.guess: Add execute permissions.
95514         * build-aux/config.sub: Likewise.
95515         * build-aux/gendocs.sh: Likewise.
95517         Fix frexp on mingw.
95518         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
95519         cross-compiling.
95520         * doc/functions/frexp.texi (frexp): Document the bug.
95522         Make cygwin fseeko check more reliable.
95523         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
95524         version numbers, rather than unrelated feature check.
95525         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
95526         * doc/functions/ftello.texi (ftello): Likewise.
95527         Reported by Bruno Haible.
95529         * m4/strerror.m4: Bump version number.
95531 2007-12-03  Bruno Haible  <bruno@clisp.org>
95533         * doc/functions/mprotect.texi: Mention the mingw problem.
95535 2007-12-03  Eric Blake  <ebb9@byu.net>
95537         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
95538         REPLACE_STRERROR is initialized before this macro.
95540 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
95542         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
95543         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
95544         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
95545         put -lsec in even for programs other than 'ls'.  This fixes a problem
95546         for gettext reported by Bruno Haible in
95547         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
95548         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
95549         Add support for Solaris 10.  This isn't efficient, but should get the
95550         job done for now.
95552 2007-12-03  James Youngman  <jay@gnu.org>
95554         * doc/regexprops-generic.texi: change "an close-group" to "a
95555         close-group" and "illegal" to "not allowed".
95557 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95559         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
95560         pr_byname.h. Needed for the rare case when the maintainer has done
95561         "make maintainer-clean" in the source directory and then attempts a
95562         build outside the source directory.
95563         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
95564         scripts_byname.h.
95566 2007-12-02  Martin Lambers  <marlam@marlam.de>
95567             Bruno Haible  <bruno@clisp.org>
95569         * lib/getpagesize.h: Remove file.
95570         * lib/unistd.in.h: Include declaration of getpagesize here.
95571         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
95572         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
95573         HAVE_SYS_PARAM_H.
95574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
95575         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95576         * modules/getpagesize (Files): Remove lib/getpagesize.h.
95577         (Depends-on): Add unistd.
95578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
95579         (Include): Use <unistd.h> instead of getpagesize.h.
95580         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
95581         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95582         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
95583         gl_GETPAGESIZE invocation, already handled by module dependency.
95584         * lib/pagealign_alloc.c: Don't include getpagesize.h.
95586 2007-12-02  Bruno Haible  <bruno@clisp.org>
95588         * modules/strings-tests: New file.
95589         * tests/test-strings.c: New file.
95591         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
95592         * lib/strings.in.h: New file.
95593         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
95594         * m4/strings_h.m4: New file.
95595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
95596         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
95597         * modules/strings: New file.
95598         * modules/string (Makefile.am): Update.
95599         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
95600         Reported by Karl Berry.
95602 2007-12-01  Eric Blake  <ebb9@byu.net>
95604         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
95605         accommodate fix in cygwin 1.5.25.
95607 2007-12-01  Jim Meyering  <meyering@redhat.com>
95609         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
95610         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
95611         that would inhibit utf8-optimization of a regexp containing line-
95612         or buffer-anchors, e.g., `^', `$'.
95614 2007-11-30  Bruno Haible  <bruno@clisp.org>
95616         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
95617         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
95618         glthread_recursive_lock_init.
95619         * lib/lock.c (glthread_recursive_lock_init)
95620         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
95621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95623 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
95625         New function qset_acl, like set_acl but with syscall semantics.
95626         * lib/acl.h (qset_acl): New decl.
95627         * lib/acl.c (qset_acl): New function.
95628         (set_acl): Use new function.  Use more-consistent diagnostics.
95630 2007-11-28  Jim Meyering  <meyering@redhat.com>
95632         * modules/physmem (License): Change from GPL to LGPLv2+.
95634 2007-11-26  Bruno Haible  <bruno@clisp.org>
95636         * lib/vasnprintf.c (decode_long_double): Don't abort if the
95637         'long double' type has excess precision.
95638         Reported by Jim Meyering in
95639         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
95641 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95643         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
95644         Sync from <http://gnu.org/licenses>.
95645         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
95646         with license text from same location.
95647         * doc/maintain.texi, doc/standards.texi:  Sync from
95648         <http://savannah.gnu.org/projects/gnustandards>.
95650 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
95651         and Jim Meyering  <meyering@redhat.com>
95653         Adjust getdate' grammar to accept a slightly more regular language.
95654         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
95655         Before, the former was rejected.
95656         * lib/getdate.y (digits_to_date_time): New function, factored
95657         out of ...
95658         (number): ...here.  Just call digits_to_date_time.
95659         (hybrid): New non-terminal to handle an <unsigned number,
95660         signed relative offset> sequence consistently.
95662 2007-11-18  Jim Meyering  <meyering@redhat.com>
95664         Pull my changes from coreutils:
95665         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
95666         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
95667         use of $gnulib_tool_option_extras, so that it's separated from the
95668         preceding argument.
95670         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
95671         * build-aux/bootstrap (cp_mark_as_generated): Create any required
95672         parent destination directories before copying a file into place.
95674 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95676         bootstrap: work also with 4-argument variant of AC_INIT
95677         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
95679 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95681         Port test-getaddrinfo to Solaris.
95682         Problem reported by Bruno Haible in
95683         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
95684         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
95685         explanation of setting 'hints'.
95686         Don't reject an implementation merely because it returns EAI_SERVICE.
95687         (EAI_SERVICE): Define to 0 if not defined.
95689 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
95691         The license of gnu-make and posix-shell is now "GPLed build tool".
95692         * modules/gnu-make (License): Likewise.
95693         * modules/posix-shell (License): Likewise.
95695         New module posix-shell, for determining a POSIX shell
95696         or perhaps something that is close enough to a POSIX shell.
95697         * m4/posix-shell.m4: New file.
95698         * modules/posix-shell: New file.
95700         * MODULES.html.sh: Mention new module.
95702         New module gnu-make, for determining whether we're using GNU Make.
95703         * m4/gnu-make.m4: New file.
95704         * modules/gnu-make: New file.
95705         * MODULES.html.sh: Mention new module.
95707 2007-11-14  Jim Meyering  <meyering@redhat.com>
95709         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
95710         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
95711         use this macro to create a function _definition_.
95712         Remove useless "#undef ARGMATCH_DIE".
95714 2007-11-14  Bruno Haible  <bruno@clisp.org>
95716         * lib/config.charset: Update for OpenBSD 4.1.
95717         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
95719 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
95721         Document 64-bit #if problems in stdint.texi.
95722         * doc/headers/stdint.texi (stdint.h): Mention problems with
95723         64-bit-#if, and how to work around them.
95725         Don't insist on 'long long int' support in the preprocessor.  It
95726         breaks too many things.  For example, PRIdMAX still uses a 'long
95727         long int' format with the latest Sun compiler, even though
95728         HAVE_LONG_LONG_INT isn't defined due to that compiler's
95729         preprocessor problem.  This causes the latest coreutils to dump
95730         core on Solaris 10 sparc with the Sun C compiler.
95731         Instead, fix the 2007-10-16 problem in a different way, by evaluating
95732         the troublesome expressions at configure-time, not at #if-time.
95733         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
95734         preprocessor.
95735         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
95736         compile-time C checks, done at 'configure'-time.
95737         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
95738         * modules/inttypes (Makefile): Substitute the new symbols that
95739         gl_INTTYPES_H now generates.
95740         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
95742 2007-11-12  Bruno Haible  <bruno@clisp.org>
95744         Tests for Unicode character classification functions.
95746         * modules/unictype/bidicategory-byname-tests: New file.
95747         * modules/unictype/bidicategory-name-tests: New file.
95748         * modules/unictype/bidicategory-of-tests: New file.
95749         * modules/unictype/bidicategory-test-tests: New file.
95750         * modules/unictype/block-list-tests: New file.
95751         * modules/unictype/block-of-tests: New file.
95752         * modules/unictype/block-test-tests: New file.
95753         * modules/unictype/category-C-tests: New file.
95754         * modules/unictype/category-Cc-tests: New file.
95755         * modules/unictype/category-Cf-tests: New file.
95756         * modules/unictype/category-Cn-tests: New file.
95757         * modules/unictype/category-Co-tests: New file.
95758         * modules/unictype/category-Cs-tests: New file.
95759         * modules/unictype/category-L-tests: New file.
95760         * modules/unictype/category-Ll-tests: New file.
95761         * modules/unictype/category-Lm-tests: New file.
95762         * modules/unictype/category-Lo-tests: New file.
95763         * modules/unictype/category-Lt-tests: New file.
95764         * modules/unictype/category-Lu-tests: New file.
95765         * modules/unictype/category-M-tests: New file.
95766         * modules/unictype/category-Mc-tests: New file.
95767         * modules/unictype/category-Me-tests: New file.
95768         * modules/unictype/category-Mn-tests: New file.
95769         * modules/unictype/category-N-tests: New file.
95770         * modules/unictype/category-Nd-tests: New file.
95771         * modules/unictype/category-Nl-tests: New file.
95772         * modules/unictype/category-No-tests: New file.
95773         * modules/unictype/category-P-tests: New file.
95774         * modules/unictype/category-Pc-tests: New file.
95775         * modules/unictype/category-Pd-tests: New file.
95776         * modules/unictype/category-Pe-tests: New file.
95777         * modules/unictype/category-Pf-tests: New file.
95778         * modules/unictype/category-Pi-tests: New file.
95779         * modules/unictype/category-Po-tests: New file.
95780         * modules/unictype/category-Ps-tests: New file.
95781         * modules/unictype/category-S-tests: New file.
95782         * modules/unictype/category-Sc-tests: New file.
95783         * modules/unictype/category-Sk-tests: New file.
95784         * modules/unictype/category-Sm-tests: New file.
95785         * modules/unictype/category-So-tests: New file.
95786         * modules/unictype/category-Z-tests: New file.
95787         * modules/unictype/category-Zl-tests: New file.
95788         * modules/unictype/category-Zp-tests: New file.
95789         * modules/unictype/category-Zs-tests: New file.
95790         * modules/unictype/category-and-not-tests: New file.
95791         * modules/unictype/category-and-tests: New file.
95792         * modules/unictype/category-byname-tests: New file.
95793         * modules/unictype/category-name-tests: New file.
95794         * modules/unictype/category-none-tests: New file.
95795         * modules/unictype/category-of-tests: New file.
95796         * modules/unictype/category-or-tests: New file.
95797         * modules/unictype/category-test-withtable-tests: New file.
95798         * modules/unictype/combining-class-tests: New file.
95799         * modules/unictype/ctype-alnum-tests: New file.
95800         * modules/unictype/ctype-alpha-tests: New file.
95801         * modules/unictype/ctype-blank-tests: New file.
95802         * modules/unictype/ctype-cntrl-tests: New file.
95803         * modules/unictype/ctype-digit-tests: New file.
95804         * modules/unictype/ctype-graph-tests: New file.
95805         * modules/unictype/ctype-lower-tests: New file.
95806         * modules/unictype/ctype-print-tests: New file.
95807         * modules/unictype/ctype-punct-tests: New file.
95808         * modules/unictype/ctype-space-tests: New file.
95809         * modules/unictype/ctype-upper-tests: New file.
95810         * modules/unictype/ctype-xdigit-tests: New file.
95811         * modules/unictype/decimal-digit-tests: New file.
95812         * modules/unictype/digit-tests: New file.
95813         * modules/unictype/mirror-tests: New file.
95814         * modules/unictype/numeric-tests: New file.
95815         * modules/unictype/property-alphabetic-tests: New file.
95816         * modules/unictype/property-ascii-hex-digit-tests: New file.
95817         * modules/unictype/property-bidi-arabic-digit-tests: New file.
95818         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
95819         * modules/unictype/property-bidi-block-separator-tests: New file.
95820         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
95821         * modules/unictype/property-bidi-common-separator-tests: New file.
95822         * modules/unictype/property-bidi-control-tests: New file.
95823         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
95824         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
95825         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
95826         * modules/unictype/property-bidi-european-digit-tests: New file.
95827         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
95828         * modules/unictype/property-bidi-left-to-right-tests: New file.
95829         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
95830         * modules/unictype/property-bidi-other-neutral-tests: New file.
95831         * modules/unictype/property-bidi-pdf-tests: New file.
95832         * modules/unictype/property-bidi-segment-separator-tests: New file.
95833         * modules/unictype/property-bidi-whitespace-tests: New file.
95834         * modules/unictype/property-byname-tests: New file.
95835         * modules/unictype/property-combining-tests: New file.
95836         * modules/unictype/property-composite-tests: New file.
95837         * modules/unictype/property-currency-symbol-tests: New file.
95838         * modules/unictype/property-dash-tests: New file.
95839         * modules/unictype/property-decimal-digit-tests: New file.
95840         * modules/unictype/property-default-ignorable-code-point-tests: New file.
95841         * modules/unictype/property-deprecated-tests: New file.
95842         * modules/unictype/property-diacritic-tests: New file.
95843         * modules/unictype/property-extender-tests: New file.
95844         * modules/unictype/property-format-control-tests: New file.
95845         * modules/unictype/property-grapheme-base-tests: New file.
95846         * modules/unictype/property-grapheme-extend-tests: New file.
95847         * modules/unictype/property-grapheme-link-tests: New file.
95848         * modules/unictype/property-hex-digit-tests: New file.
95849         * modules/unictype/property-hyphen-tests: New file.
95850         * modules/unictype/property-id-continue-tests: New file.
95851         * modules/unictype/property-id-start-tests: New file.
95852         * modules/unictype/property-ideographic-tests: New file.
95853         * modules/unictype/property-ids-binary-operator-tests: New file.
95854         * modules/unictype/property-ids-trinary-operator-tests: New file.
95855         * modules/unictype/property-ignorable-control-tests: New file.
95856         * modules/unictype/property-iso-control-tests: New file.
95857         * modules/unictype/property-join-control-tests: New file.
95858         * modules/unictype/property-left-of-pair-tests: New file.
95859         * modules/unictype/property-line-separator-tests: New file.
95860         * modules/unictype/property-logical-order-exception-tests: New file.
95861         * modules/unictype/property-lowercase-tests: New file.
95862         * modules/unictype/property-math-tests: New file.
95863         * modules/unictype/property-non-break-tests: New file.
95864         * modules/unictype/property-not-a-character-tests: New file.
95865         * modules/unictype/property-numeric-tests: New file.
95866         * modules/unictype/property-other-alphabetic-tests: New file.
95867         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
95868         * modules/unictype/property-other-grapheme-extend-tests: New file.
95869         * modules/unictype/property-other-id-continue-tests: New file.
95870         * modules/unictype/property-other-id-start-tests: New file.
95871         * modules/unictype/property-other-lowercase-tests: New file.
95872         * modules/unictype/property-other-math-tests: New file.
95873         * modules/unictype/property-other-uppercase-tests: New file.
95874         * modules/unictype/property-paired-punctuation-tests: New file.
95875         * modules/unictype/property-paragraph-separator-tests: New file.
95876         * modules/unictype/property-pattern-syntax-tests: New file.
95877         * modules/unictype/property-pattern-white-space-tests: New file.
95878         * modules/unictype/property-private-use-tests: New file.
95879         * modules/unictype/property-punctuation-tests: New file.
95880         * modules/unictype/property-quotation-mark-tests: New file.
95881         * modules/unictype/property-radical-tests: New file.
95882         * modules/unictype/property-sentence-terminal-tests: New file.
95883         * modules/unictype/property-soft-dotted-tests: New file.
95884         * modules/unictype/property-space-tests: New file.
95885         * modules/unictype/property-terminal-punctuation-tests: New file.
95886         * modules/unictype/property-test-tests: New file.
95887         * modules/unictype/property-titlecase-tests: New file.
95888         * modules/unictype/property-unassigned-code-value-tests: New file.
95889         * modules/unictype/property-unified-ideograph-tests: New file.
95890         * modules/unictype/property-uppercase-tests: New file.
95891         * modules/unictype/property-variation-selector-tests: New file.
95892         * modules/unictype/property-white-space-tests: New file.
95893         * modules/unictype/property-xid-continue-tests: New file.
95894         * modules/unictype/property-xid-start-tests: New file.
95895         * modules/unictype/property-zero-width-tests: New file.
95896         * modules/unictype/scripts-tests: New file.
95897         * modules/unictype/syntax-c-ident-tests: New file.
95898         * modules/unictype/syntax-c-whitespace-tests: New file.
95899         * modules/unictype/syntax-java-ident-tests: New file.
95900         * modules/unictype/syntax-java-whitespace-tests: New file.
95901         * tests/unictype/test-bidi_byname.c: New file.
95902         * tests/unictype/test-bidi_name.c: New file.
95903         * tests/unictype/test-bidi_of.c: New file.
95904         * tests/unictype/test-bidi_test.c: New file.
95905         * tests/unictype/test-block_list.c: New file.
95906         * tests/unictype/test-block_of.c: New file.
95907         * tests/unictype/test-block_test.c: New file.
95908         * tests/unictype/test-categ_and.c: New file.
95909         * tests/unictype/test-categ_and_not.c: New file.
95910         * tests/unictype/test-categ_byname.c: New file.
95911         * tests/unictype/test-categ_name.c: New file.
95912         * tests/unictype/test-categ_none.c: New file.
95913         * tests/unictype/test-categ_of.c: New file.
95914         * tests/unictype/test-categ_or.c: New file.
95915         * tests/unictype/test-categ_test_withtable.c: New file.
95916         * tests/unictype/test-combining.c: New file.
95917         * tests/unictype/test-decdigit.c: New file.
95918         * tests/unictype/test-digit.c: New file.
95919         * tests/unictype/test-mirror.c: New file.
95920         * tests/unictype/test-numeric.c: New file.
95921         * tests/unictype/test-pr_byname.c: New file.
95922         * tests/unictype/test-pr_test.c: New file.
95923         * tests/unictype/test-predicate-part1.h: New file.
95924         * tests/unictype/test-predicate-part2.h: New file.
95925         * tests/unictype/test-scripts.c: New file.
95926         * tests/unictype/test-sy_c_ident.c: New file.
95927         * tests/unictype/test-sy_java_ident.c: New file.
95929         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95930         for Unicode 5.0.0.
95931         * tests/unictype/test-categ_Cc.c: Likewise.
95932         * tests/unictype/test-categ_Cf.c: Likewise.
95933         * tests/unictype/test-categ_Cn.c: Likewise.
95934         * tests/unictype/test-categ_Co.c: Likewise.
95935         * tests/unictype/test-categ_Cs.c: Likewise.
95936         * tests/unictype/test-categ_L.c: Likewise.
95937         * tests/unictype/test-categ_Ll.c: Likewise.
95938         * tests/unictype/test-categ_Lm.c: Likewise.
95939         * tests/unictype/test-categ_Lo.c: Likewise.
95940         * tests/unictype/test-categ_Lt.c: Likewise.
95941         * tests/unictype/test-categ_Lu.c: Likewise.
95942         * tests/unictype/test-categ_M.c: Likewise.
95943         * tests/unictype/test-categ_Mc.c: Likewise.
95944         * tests/unictype/test-categ_Me.c: Likewise.
95945         * tests/unictype/test-categ_Mn.c: Likewise.
95946         * tests/unictype/test-categ_N.c: Likewise.
95947         * tests/unictype/test-categ_Nd.c: Likewise.
95948         * tests/unictype/test-categ_Nl.c: Likewise.
95949         * tests/unictype/test-categ_No.c: Likewise.
95950         * tests/unictype/test-categ_P.c: Likewise.
95951         * tests/unictype/test-categ_Pc.c: Likewise.
95952         * tests/unictype/test-categ_Pd.c: Likewise.
95953         * tests/unictype/test-categ_Pe.c: Likewise.
95954         * tests/unictype/test-categ_Pf.c: Likewise.
95955         * tests/unictype/test-categ_Pi.c: Likewise.
95956         * tests/unictype/test-categ_Po.c: Likewise.
95957         * tests/unictype/test-categ_Ps.c: Likewise.
95958         * tests/unictype/test-categ_S.c: Likewise.
95959         * tests/unictype/test-categ_Sc.c: Likewise.
95960         * tests/unictype/test-categ_Sk.c: Likewise.
95961         * tests/unictype/test-categ_Sm.c: Likewise.
95962         * tests/unictype/test-categ_So.c: Likewise.
95963         * tests/unictype/test-categ_Z.c: Likewise.
95964         * tests/unictype/test-categ_Zl.c: Likewise.
95965         * tests/unictype/test-categ_Zp.c: Likewise.
95966         * tests/unictype/test-categ_Zs.c: Likewise.
95967         * tests/unictype/test-ctype_alnum.c: Likewise.
95968         * tests/unictype/test-ctype_alpha.c: Likewise.
95969         * tests/unictype/test-ctype_blank.c: Likewise.
95970         * tests/unictype/test-ctype_cntrl.c: Likewise.
95971         * tests/unictype/test-ctype_digit.c: Likewise.
95972         * tests/unictype/test-ctype_graph.c: Likewise.
95973         * tests/unictype/test-ctype_lower.c: Likewise.
95974         * tests/unictype/test-ctype_print.c: Likewise.
95975         * tests/unictype/test-ctype_punct.c: Likewise.
95976         * tests/unictype/test-ctype_space.c: Likewise.
95977         * tests/unictype/test-ctype_upper.c: Likewise.
95978         * tests/unictype/test-ctype_xdigit.c: Likewise.
95979         * tests/unictype/test-decdigit.h: Likewise.
95980         * tests/unictype/test-digit.h: Likewise.
95981         * tests/unictype/test-numeric.h: Likewise.
95982         * tests/unictype/test-pr_alphabetic.c: Likewise.
95983         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95984         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95985         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95986         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95987         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95988         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95989         * tests/unictype/test-pr_bidi_control.c: Likewise.
95990         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95991         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95992         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95993         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95994         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95995         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95996         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95997         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95998         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95999         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
96000         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
96001         * tests/unictype/test-pr_combining.c: Likewise.
96002         * tests/unictype/test-pr_composite.c: Likewise.
96003         * tests/unictype/test-pr_currency_symbol.c: Likewise.
96004         * tests/unictype/test-pr_dash.c: Likewise.
96005         * tests/unictype/test-pr_decimal_digit.c: Likewise.
96006         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
96007         * tests/unictype/test-pr_deprecated.c: Likewise.
96008         * tests/unictype/test-pr_diacritic.c: Likewise.
96009         * tests/unictype/test-pr_extender.c: Likewise.
96010         * tests/unictype/test-pr_format_control.c: Likewise.
96011         * tests/unictype/test-pr_grapheme_base.c: Likewise.
96012         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
96013         * tests/unictype/test-pr_grapheme_link.c: Likewise.
96014         * tests/unictype/test-pr_hex_digit.c: Likewise.
96015         * tests/unictype/test-pr_hyphen.c: Likewise.
96016         * tests/unictype/test-pr_id_continue.c: Likewise.
96017         * tests/unictype/test-pr_id_start.c: Likewise.
96018         * tests/unictype/test-pr_ideographic.c: Likewise.
96019         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
96020         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
96021         * tests/unictype/test-pr_ignorable_control.c: Likewise.
96022         * tests/unictype/test-pr_iso_control.c: Likewise.
96023         * tests/unictype/test-pr_join_control.c: Likewise.
96024         * tests/unictype/test-pr_left_of_pair.c: Likewise.
96025         * tests/unictype/test-pr_line_separator.c: Likewise.
96026         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
96027         * tests/unictype/test-pr_lowercase.c: Likewise.
96028         * tests/unictype/test-pr_math.c: Likewise.
96029         * tests/unictype/test-pr_non_break.c: Likewise.
96030         * tests/unictype/test-pr_not_a_character.c: Likewise.
96031         * tests/unictype/test-pr_numeric.c: Likewise.
96032         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
96033         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
96034         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
96035         * tests/unictype/test-pr_other_id_continue.c: Likewise.
96036         * tests/unictype/test-pr_other_id_start.c: Likewise.
96037         * tests/unictype/test-pr_other_lowercase.c: Likewise.
96038         * tests/unictype/test-pr_other_math.c: Likewise.
96039         * tests/unictype/test-pr_other_uppercase.c: Likewise.
96040         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
96041         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
96042         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
96043         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
96044         * tests/unictype/test-pr_private_use.c: Likewise.
96045         * tests/unictype/test-pr_punctuation.c: Likewise.
96046         * tests/unictype/test-pr_quotation_mark.c: Likewise.
96047         * tests/unictype/test-pr_radical.c: Likewise.
96048         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
96049         * tests/unictype/test-pr_soft_dotted.c: Likewise.
96050         * tests/unictype/test-pr_space.c: Likewise.
96051         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
96052         * tests/unictype/test-pr_titlecase.c: Likewise.
96053         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
96054         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
96055         * tests/unictype/test-pr_uppercase.c: Likewise.
96056         * tests/unictype/test-pr_variation_selector.c: Likewise.
96057         * tests/unictype/test-pr_white_space.c: Likewise.
96058         * tests/unictype/test-pr_xid_continue.c: Likewise.
96059         * tests/unictype/test-pr_xid_start.c: Likewise.
96060         * tests/unictype/test-pr_zero_width.c: Likewise.
96061         * tests/unictype/test-sy_c_whitespace.c: Likewise.
96062         * tests/unictype/test-sy_java_whitespace.c: Likewise.
96064 2007-11-12  Bruno Haible  <bruno@clisp.org>
96066         Unicode character classification functions.
96067         * lib/unictype.h: New file.
96068         * modules/unictype/base: New file.
96069         * modules/unictype/category-L: New file.
96070         * modules/unictype/category-Lu: New file.
96071         * modules/unictype/category-Ll: New file.
96072         * modules/unictype/category-Lt: New file.
96073         * modules/unictype/category-Lm: New file.
96074         * modules/unictype/category-Lo: New file.
96075         * modules/unictype/category-M: New file.
96076         * modules/unictype/category-Mn: New file.
96077         * modules/unictype/category-Mc: New file.
96078         * modules/unictype/category-Me: New file.
96079         * modules/unictype/category-N: New file.
96080         * modules/unictype/category-Nd: New file.
96081         * modules/unictype/category-Nl: New file.
96082         * modules/unictype/category-No: New file.
96083         * modules/unictype/category-P: New file.
96084         * modules/unictype/category-Pc: New file.
96085         * modules/unictype/category-Pd: New file.
96086         * modules/unictype/category-Ps: New file.
96087         * modules/unictype/category-Pe: New file.
96088         * modules/unictype/category-Pi: New file.
96089         * modules/unictype/category-Pf: New file.
96090         * modules/unictype/category-Po: New file.
96091         * modules/unictype/category-S: New file.
96092         * modules/unictype/category-Sm: New file.
96093         * modules/unictype/category-Sc: New file.
96094         * modules/unictype/category-Sk: New file.
96095         * modules/unictype/category-So: New file.
96096         * modules/unictype/category-Z: New file.
96097         * modules/unictype/category-Zs: New file.
96098         * modules/unictype/category-Zl: New file.
96099         * modules/unictype/category-Zp: New file.
96100         * modules/unictype/category-C: New file.
96101         * modules/unictype/category-Cc: New file.
96102         * modules/unictype/category-Cf: New file.
96103         * modules/unictype/category-Cs: New file.
96104         * modules/unictype/category-Co: New file.
96105         * modules/unictype/category-Cn: New file.
96106         * modules/unictype/category-or: New file.
96107         * modules/unictype/category-of: New file.
96108         * modules/unictype/category-test: New file.
96109         * modules/unictype/category-test-withtable: New file.
96110         * modules/unictype/category-byname: New file.
96111         * modules/unictype/category-none: New file.
96112         * modules/unictype/category-and: New file.
96113         * modules/unictype/category-and-not: New file.
96114         * modules/unictype/category-name: New file.
96115         * modules/unictype/combining-class: New file.
96116         * modules/unictype/category-all: New file.
96117         * modules/unictype/bidicategory-all: New file.
96118         * modules/unictype/bidicategory-byname: New file.
96119         * modules/unictype/bidicategory-name: New file.
96120         * modules/unictype/bidicategory-of: New file.
96121         * modules/unictype/bidicategory-test: New file.
96122         * modules/unictype/decimal-digit: New file.
96123         * modules/unictype/digit: New file.
96124         * modules/unictype/numeric: New file.
96125         * modules/unictype/mirror: New file.
96126         * modules/unictype/property-white-space: New file.
96127         * modules/unictype/property-alphabetic: New file.
96128         * modules/unictype/property-other-alphabetic: New file.
96129         * modules/unictype/property-not-a-character: New file.
96130         * modules/unictype/property-default-ignorable-code-point: New file.
96131         * modules/unictype/property-other-default-ignorable-code-point: New
96132         file.
96133         * modules/unictype/property-deprecated: New file.
96134         * modules/unictype/property-logical-order-exception: New file.
96135         * modules/unictype/property-variation-selector: New file.
96136         * modules/unictype/property-private-use: New file.
96137         * modules/unictype/property-unassigned-code-value: New file.
96138         * modules/unictype/property-uppercase: New file.
96139         * modules/unictype/property-other-uppercase: New file.
96140         * modules/unictype/property-lowercase: New file.
96141         * modules/unictype/property-other-lowercase: New file.
96142         * modules/unictype/property-titlecase: New file.
96143         * modules/unictype/property-soft-dotted: New file.
96144         * modules/unictype/property-id-start: New file.
96145         * modules/unictype/property-other-id-start: New file.
96146         * modules/unictype/property-id-continue: New file.
96147         * modules/unictype/property-other-id-continue: New file.
96148         * modules/unictype/property-xid-start: New file.
96149         * modules/unictype/property-xid-continue: New file.
96150         * modules/unictype/property-pattern-white-space: New file.
96151         * modules/unictype/property-pattern-syntax: New file.
96152         * modules/unictype/property-join-control: New file.
96153         * modules/unictype/property-grapheme-base: New file.
96154         * modules/unictype/property-grapheme-extend: New file.
96155         * modules/unictype/property-other-grapheme-extend: New file.
96156         * modules/unictype/property-grapheme-link: New file.
96157         * modules/unictype/property-bidi-control: New file.
96158         * modules/unictype/property-bidi-left-to-right: New file.
96159         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
96160         * modules/unictype/property-bidi-arabic-right-to-left: New file.
96161         * modules/unictype/property-bidi-european-digit: New file.
96162         * modules/unictype/property-bidi-eur-num-separator: New file.
96163         * modules/unictype/property-bidi-eur-num-terminator: New file.
96164         * modules/unictype/property-bidi-arabic-digit: New file.
96165         * modules/unictype/property-bidi-common-separator: New file.
96166         * modules/unictype/property-bidi-block-separator: New file.
96167         * modules/unictype/property-bidi-segment-separator: New file.
96168         * modules/unictype/property-bidi-whitespace: New file.
96169         * modules/unictype/property-bidi-non-spacing-mark: New file.
96170         * modules/unictype/property-bidi-boundary-neutral: New file.
96171         * modules/unictype/property-bidi-pdf: New file.
96172         * modules/unictype/property-bidi-embedding-or-override: New file.
96173         * modules/unictype/property-bidi-other-neutral: New file.
96174         * modules/unictype/property-hex-digit: New file.
96175         * modules/unictype/property-ascii-hex-digit: New file.
96176         * modules/unictype/property-ideographic: New file.
96177         * modules/unictype/property-unified-ideograph: New file.
96178         * modules/unictype/property-radical: New file.
96179         * modules/unictype/property-ids-binary-operator: New file.
96180         * modules/unictype/property-ids-trinary-operator: New file.
96181         * modules/unictype/property-zero-width: New file.
96182         * modules/unictype/property-space: New file.
96183         * modules/unictype/property-non-break: New file.
96184         * modules/unictype/property-iso-control: New file.
96185         * modules/unictype/property-format-control: New file.
96186         * modules/unictype/property-dash: New file.
96187         * modules/unictype/property-hyphen: New file.
96188         * modules/unictype/property-punctuation: New file.
96189         * modules/unictype/property-line-separator: New file.
96190         * modules/unictype/property-paragraph-separator: New file.
96191         * modules/unictype/property-quotation-mark: New file.
96192         * modules/unictype/property-sentence-terminal: New file.
96193         * modules/unictype/property-terminal-punctuation: New file.
96194         * modules/unictype/property-currency-symbol: New file.
96195         * modules/unictype/property-math: New file.
96196         * modules/unictype/property-other-math: New file.
96197         * modules/unictype/property-paired-punctuation: New file.
96198         * modules/unictype/property-left-of-pair: New file.
96199         * modules/unictype/property-combining: New file.
96200         * modules/unictype/property-composite: New file.
96201         * modules/unictype/property-decimal-digit: New file.
96202         * modules/unictype/property-numeric: New file.
96203         * modules/unictype/property-diacritic: New file.
96204         * modules/unictype/property-extender: New file.
96205         * modules/unictype/property-ignorable-control: New file.
96206         * modules/unictype/property-test: New file.
96207         * modules/unictype/property-byname: New file.
96208         * modules/unictype/property-all: New file.
96209         * modules/unictype/scripts: New file.
96210         * modules/unictype/scripts-all: New file.
96211         * modules/unictype/block-of: New file.
96212         * modules/unictype/block-test: New file.
96213         * modules/unictype/block-list: New file.
96214         * modules/unictype/block-all: New file.
96215         * modules/unictype/syntax-c-whitespace: New file.
96216         * modules/unictype/syntax-java-whitespace: New file.
96217         * modules/unictype/syntax-c-ident: New file.
96218         * modules/unictype/syntax-java-ident: New file.
96219         * modules/unictype/ctype-alnum: New file.
96220         * modules/unictype/ctype-alpha: New file.
96221         * modules/unictype/ctype-cntrl: New file.
96222         * modules/unictype/ctype-digit: New file.
96223         * modules/unictype/ctype-graph: New file.
96224         * modules/unictype/ctype-lower: New file.
96225         * modules/unictype/ctype-print: New file.
96226         * modules/unictype/ctype-punct: New file.
96227         * modules/unictype/ctype-space: New file.
96228         * modules/unictype/ctype-upper: New file.
96229         * modules/unictype/ctype-xdigit: New file.
96230         * modules/unictype/ctype-blank: New file.
96231         * lib/unictype/bidi_byname.c: New file.
96232         * lib/unictype/bidi_name.c: New file.
96233         * lib/unictype/bidi_of.c: New file.
96234         * lib/unictype/bidi_test.c: New file.
96235         * lib/unictype/bitmap.h: New file.
96236         * lib/unictype/block_test.c: New file.
96237         * lib/unictype/blocks.c: New file.
96238         * lib/unictype/categ_C.c: New file.
96239         * lib/unictype/categ_Cc.c: New file.
96240         * lib/unictype/categ_Cf.c: New file.
96241         * lib/unictype/categ_Cn.c: New file.
96242         * lib/unictype/categ_Co.c: New file.
96243         * lib/unictype/categ_Cs.c: New file.
96244         * lib/unictype/categ_L.c: New file.
96245         * lib/unictype/categ_Ll.c: New file.
96246         * lib/unictype/categ_Lm.c: New file.
96247         * lib/unictype/categ_Lo.c: New file.
96248         * lib/unictype/categ_Lt.c: New file.
96249         * lib/unictype/categ_Lu.c: New file.
96250         * lib/unictype/categ_M.c: New file.
96251         * lib/unictype/categ_Mc.c: New file.
96252         * lib/unictype/categ_Me.c: New file.
96253         * lib/unictype/categ_Mn.c: New file.
96254         * lib/unictype/categ_N.c: New file.
96255         * lib/unictype/categ_Nd.c: New file.
96256         * lib/unictype/categ_Nl.c: New file.
96257         * lib/unictype/categ_No.c: New file.
96258         * lib/unictype/categ_P.c: New file.
96259         * lib/unictype/categ_Pc.c: New file.
96260         * lib/unictype/categ_Pd.c: New file.
96261         * lib/unictype/categ_Pe.c: New file.
96262         * lib/unictype/categ_Pf.c: New file.
96263         * lib/unictype/categ_Pi.c: New file.
96264         * lib/unictype/categ_Po.c: New file.
96265         * lib/unictype/categ_Ps.c: New file.
96266         * lib/unictype/categ_S.c: New file.
96267         * lib/unictype/categ_Sc.c: New file.
96268         * lib/unictype/categ_Sk.c: New file.
96269         * lib/unictype/categ_Sm.c: New file.
96270         * lib/unictype/categ_So.c: New file.
96271         * lib/unictype/categ_Z.c: New file.
96272         * lib/unictype/categ_Zl.c: New file.
96273         * lib/unictype/categ_Zp.c: New file.
96274         * lib/unictype/categ_Zs.c: New file.
96275         * lib/unictype/categ_and.c: New file.
96276         * lib/unictype/categ_and_not.c: New file.
96277         * lib/unictype/categ_byname.c: New file.
96278         * lib/unictype/categ_name.c: New file.
96279         * lib/unictype/categ_none.c: New file.
96280         * lib/unictype/categ_of.c: New file.
96281         * lib/unictype/categ_or.c: New file.
96282         * lib/unictype/categ_test.c: New file.
96283         * lib/unictype/combining.c: New file.
96284         * lib/unictype/ctype_alnum.c: New file.
96285         * lib/unictype/ctype_alpha.c: New file.
96286         * lib/unictype/ctype_blank.c: New file.
96287         * lib/unictype/ctype_cntrl.c: New file.
96288         * lib/unictype/ctype_digit.c: New file.
96289         * lib/unictype/ctype_graph.c: New file.
96290         * lib/unictype/ctype_lower.c: New file.
96291         * lib/unictype/ctype_print.c: New file.
96292         * lib/unictype/ctype_punct.c: New file.
96293         * lib/unictype/ctype_space.c: New file.
96294         * lib/unictype/ctype_upper.c: New file.
96295         * lib/unictype/ctype_xdigit.c: New file.
96296         * lib/unictype/decdigit.c: New file.
96297         * lib/unictype/digit.c: New file.
96298         * lib/unictype/identsyntaxmap.h: New file.
96299         * lib/unictype/mirror.c: New file.
96300         * lib/unictype/numeric.c: New file.
96301         * lib/unictype/pr_alphabetic.c: New file.
96302         * lib/unictype/pr_ascii_hex_digit.c: New file.
96303         * lib/unictype/pr_bidi_arabic_digit.c: New file.
96304         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
96305         * lib/unictype/pr_bidi_block_separator.c: New file.
96306         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
96307         * lib/unictype/pr_bidi_common_separator.c: New file.
96308         * lib/unictype/pr_bidi_control.c: New file.
96309         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
96310         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
96311         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
96312         * lib/unictype/pr_bidi_european_digit.c: New file.
96313         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
96314         * lib/unictype/pr_bidi_left_to_right.c: New file.
96315         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
96316         * lib/unictype/pr_bidi_other_neutral.c: New file.
96317         * lib/unictype/pr_bidi_pdf.c: New file.
96318         * lib/unictype/pr_bidi_segment_separator.c: New file.
96319         * lib/unictype/pr_bidi_whitespace.c: New file.
96320         * lib/unictype/pr_byname.c: New file.
96321         * lib/unictype/pr_byname.gperf: New file.
96322         * lib/unictype/pr_combining.c: New file.
96323         * lib/unictype/pr_composite.c: New file.
96324         * lib/unictype/pr_currency_symbol.c: New file.
96325         * lib/unictype/pr_dash.c: New file.
96326         * lib/unictype/pr_decimal_digit.c: New file.
96327         * lib/unictype/pr_default_ignorable_code_point.c: New file.
96328         * lib/unictype/pr_deprecated.c: New file.
96329         * lib/unictype/pr_diacritic.c: New file.
96330         * lib/unictype/pr_extender.c: New file.
96331         * lib/unictype/pr_format_control.c: New file.
96332         * lib/unictype/pr_grapheme_base.c: New file.
96333         * lib/unictype/pr_grapheme_extend.c: New file.
96334         * lib/unictype/pr_grapheme_link.c: New file.
96335         * lib/unictype/pr_hex_digit.c: New file.
96336         * lib/unictype/pr_hyphen.c: New file.
96337         * lib/unictype/pr_id_continue.c: New file.
96338         * lib/unictype/pr_id_start.c: New file.
96339         * lib/unictype/pr_ideographic.c: New file.
96340         * lib/unictype/pr_ids_binary_operator.c: New file.
96341         * lib/unictype/pr_ids_trinary_operator.c: New file.
96342         * lib/unictype/pr_ignorable_control.c: New file.
96343         * lib/unictype/pr_iso_control.c: New file.
96344         * lib/unictype/pr_join_control.c: New file.
96345         * lib/unictype/pr_left_of_pair.c: New file.
96346         * lib/unictype/pr_line_separator.c: New file.
96347         * lib/unictype/pr_logical_order_exception.c: New file.
96348         * lib/unictype/pr_lowercase.c: New file.
96349         * lib/unictype/pr_math.c: New file.
96350         * lib/unictype/pr_non_break.c: New file.
96351         * lib/unictype/pr_not_a_character.c: New file.
96352         * lib/unictype/pr_numeric.c: New file.
96353         * lib/unictype/pr_other_alphabetic.c: New file.
96354         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
96355         * lib/unictype/pr_other_grapheme_extend.c: New file.
96356         * lib/unictype/pr_other_id_continue.c: New file.
96357         * lib/unictype/pr_other_id_start.c: New file.
96358         * lib/unictype/pr_other_lowercase.c: New file.
96359         * lib/unictype/pr_other_math.c: New file.
96360         * lib/unictype/pr_other_uppercase.c: New file.
96361         * lib/unictype/pr_paired_punctuation.c: New file.
96362         * lib/unictype/pr_paragraph_separator.c: New file.
96363         * lib/unictype/pr_pattern_syntax.c: New file.
96364         * lib/unictype/pr_pattern_white_space.c: New file.
96365         * lib/unictype/pr_private_use.c: New file.
96366         * lib/unictype/pr_punctuation.c: New file.
96367         * lib/unictype/pr_quotation_mark.c: New file.
96368         * lib/unictype/pr_radical.c: New file.
96369         * lib/unictype/pr_sentence_terminal.c: New file.
96370         * lib/unictype/pr_soft_dotted.c: New file.
96371         * lib/unictype/pr_space.c: New file.
96372         * lib/unictype/pr_terminal_punctuation.c: New file.
96373         * lib/unictype/pr_test.c: New file.
96374         * lib/unictype/pr_titlecase.c: New file.
96375         * lib/unictype/pr_unassigned_code_value.c: New file.
96376         * lib/unictype/pr_unified_ideograph.c: New file.
96377         * lib/unictype/pr_uppercase.c: New file.
96378         * lib/unictype/pr_variation_selector.c: New file.
96379         * lib/unictype/pr_white_space.c: New file.
96380         * lib/unictype/pr_xid_continue.c: New file.
96381         * lib/unictype/pr_xid_start.c: New file.
96382         * lib/unictype/pr_zero_width.c: New file.
96383         * lib/unictype/scripts.c: New file.
96384         * lib/unictype/sy_c_ident.c: New file.
96385         * lib/unictype/sy_c_whitespace.c: New file.
96386         * lib/unictype/sy_java_ident.c: New file.
96387         * lib/unictype/sy_java_whitespace.c: New file.
96389         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
96390         Unicode 5.0.0.
96391         * lib/unictype/blocks.h: Likewise.
96392         * lib/unictype/categ_C.h: Likewise.
96393         * lib/unictype/categ_Cc.h: Likewise.
96394         * lib/unictype/categ_Cf.h: Likewise.
96395         * lib/unictype/categ_Cn.h: Likewise.
96396         * lib/unictype/categ_Co.h: Likewise.
96397         * lib/unictype/categ_Cs.h: Likewise.
96398         * lib/unictype/categ_L.h: Likewise.
96399         * lib/unictype/categ_Ll.h: Likewise.
96400         * lib/unictype/categ_Lm.h: Likewise.
96401         * lib/unictype/categ_Lo.h: Likewise.
96402         * lib/unictype/categ_Lt.h: Likewise.
96403         * lib/unictype/categ_Lu.h: Likewise.
96404         * lib/unictype/categ_M.h: Likewise.
96405         * lib/unictype/categ_Mc.h: Likewise.
96406         * lib/unictype/categ_Me.h: Likewise.
96407         * lib/unictype/categ_Mn.h: Likewise.
96408         * lib/unictype/categ_N.h: Likewise.
96409         * lib/unictype/categ_Nd.h: Likewise.
96410         * lib/unictype/categ_Nl.h: Likewise.
96411         * lib/unictype/categ_No.h: Likewise.
96412         * lib/unictype/categ_P.h: Likewise.
96413         * lib/unictype/categ_Pc.h: Likewise.
96414         * lib/unictype/categ_Pd.h: Likewise.
96415         * lib/unictype/categ_Pe.h: Likewise.
96416         * lib/unictype/categ_Pf.h: Likewise.
96417         * lib/unictype/categ_Pi.h: Likewise.
96418         * lib/unictype/categ_Po.h: Likewise.
96419         * lib/unictype/categ_Ps.h: Likewise.
96420         * lib/unictype/categ_S.h: Likewise.
96421         * lib/unictype/categ_Sc.h: Likewise.
96422         * lib/unictype/categ_Sk.h: Likewise.
96423         * lib/unictype/categ_Sm.h: Likewise.
96424         * lib/unictype/categ_So.h: Likewise.
96425         * lib/unictype/categ_Z.h: Likewise.
96426         * lib/unictype/categ_Zl.h: Likewise.
96427         * lib/unictype/categ_Zp.h: Likewise.
96428         * lib/unictype/categ_Zs.h: Likewise.
96429         * lib/unictype/categ_of.h: Likewise.
96430         * lib/unictype/combining.h: Likewise.
96431         * lib/unictype/ctype_alnum.h: Likewise.
96432         * lib/unictype/ctype_alpha.h: Likewise.
96433         * lib/unictype/ctype_blank.h: Likewise.
96434         * lib/unictype/ctype_cntrl.h: Likewise.
96435         * lib/unictype/ctype_digit.h: Likewise.
96436         * lib/unictype/ctype_graph.h: Likewise.
96437         * lib/unictype/ctype_lower.h: Likewise.
96438         * lib/unictype/ctype_print.h: Likewise.
96439         * lib/unictype/ctype_punct.h: Likewise.
96440         * lib/unictype/ctype_space.h: Likewise.
96441         * lib/unictype/ctype_upper.h: Likewise.
96442         * lib/unictype/ctype_xdigit.h: Likewise.
96443         * lib/unictype/decdigit.h: Likewise.
96444         * lib/unictype/digit.h: Likewise.
96445         * lib/unictype/mirror.h: Likewise.
96446         * lib/unictype/numeric.h: Likewise.
96447         * lib/unictype/pr_alphabetic.h: Likewise.
96448         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
96449         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
96450         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
96451         * lib/unictype/pr_bidi_block_separator.h: Likewise.
96452         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
96453         * lib/unictype/pr_bidi_common_separator.h: Likewise.
96454         * lib/unictype/pr_bidi_control.h: Likewise.
96455         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
96456         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
96457         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
96458         * lib/unictype/pr_bidi_european_digit.h: Likewise.
96459         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
96460         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
96461         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
96462         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
96463         * lib/unictype/pr_bidi_pdf.h: Likewise.
96464         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
96465         * lib/unictype/pr_bidi_whitespace.h: Likewise.
96466         * lib/unictype/pr_combining.h: Likewise.
96467         * lib/unictype/pr_composite.h: Likewise.
96468         * lib/unictype/pr_currency_symbol.h: Likewise.
96469         * lib/unictype/pr_dash.h: Likewise.
96470         * lib/unictype/pr_decimal_digit.h: Likewise.
96471         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
96472         * lib/unictype/pr_deprecated.h: Likewise.
96473         * lib/unictype/pr_diacritic.h: Likewise.
96474         * lib/unictype/pr_extender.h: Likewise.
96475         * lib/unictype/pr_format_control.h: Likewise.
96476         * lib/unictype/pr_grapheme_base.h: Likewise.
96477         * lib/unictype/pr_grapheme_extend.h: Likewise.
96478         * lib/unictype/pr_grapheme_link.h: Likewise.
96479         * lib/unictype/pr_hex_digit.h: Likewise.
96480         * lib/unictype/pr_hyphen.h: Likewise.
96481         * lib/unictype/pr_id_continue.h: Likewise.
96482         * lib/unictype/pr_id_start.h: Likewise.
96483         * lib/unictype/pr_ideographic.h: Likewise.
96484         * lib/unictype/pr_ids_binary_operator.h: Likewise.
96485         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
96486         * lib/unictype/pr_ignorable_control.h: Likewise.
96487         * lib/unictype/pr_iso_control.h: Likewise.
96488         * lib/unictype/pr_join_control.h: Likewise.
96489         * lib/unictype/pr_left_of_pair.h: Likewise.
96490         * lib/unictype/pr_line_separator.h: Likewise.
96491         * lib/unictype/pr_logical_order_exception.h: Likewise.
96492         * lib/unictype/pr_lowercase.h: Likewise.
96493         * lib/unictype/pr_math.h: Likewise.
96494         * lib/unictype/pr_non_break.h: Likewise.
96495         * lib/unictype/pr_not_a_character.h: Likewise.
96496         * lib/unictype/pr_numeric.h: Likewise.
96497         * lib/unictype/pr_other_alphabetic.h: Likewise.
96498         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
96499         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
96500         * lib/unictype/pr_other_id_continue.h: Likewise.
96501         * lib/unictype/pr_other_id_start.h: Likewise.
96502         * lib/unictype/pr_other_lowercase.h: Likewise.
96503         * lib/unictype/pr_other_math.h: Likewise.
96504         * lib/unictype/pr_other_uppercase.h: Likewise.
96505         * lib/unictype/pr_paired_punctuation.h: Likewise.
96506         * lib/unictype/pr_paragraph_separator.h: Likewise.
96507         * lib/unictype/pr_pattern_syntax.h: Likewise.
96508         * lib/unictype/pr_pattern_white_space.h: Likewise.
96509         * lib/unictype/pr_private_use.h: Likewise.
96510         * lib/unictype/pr_punctuation.h: Likewise.
96511         * lib/unictype/pr_quotation_mark.h: Likewise.
96512         * lib/unictype/pr_radical.h: Likewise.
96513         * lib/unictype/pr_sentence_terminal.h: Likewise.
96514         * lib/unictype/pr_soft_dotted.h: Likewise.
96515         * lib/unictype/pr_space.h: Likewise.
96516         * lib/unictype/pr_terminal_punctuation.h: Likewise.
96517         * lib/unictype/pr_titlecase.h: Likewise.
96518         * lib/unictype/pr_unassigned_code_value.h: Likewise.
96519         * lib/unictype/pr_unified_ideograph.h: Likewise.
96520         * lib/unictype/pr_uppercase.h: Likewise.
96521         * lib/unictype/pr_variation_selector.h: Likewise.
96522         * lib/unictype/pr_white_space.h: Likewise.
96523         * lib/unictype/pr_xid_continue.h: Likewise.
96524         * lib/unictype/pr_xid_start.h: Likewise.
96525         * lib/unictype/pr_zero_width.h: Likewise.
96526         * lib/unictype/scripts.h: Likewise.
96527         * lib/unictype/scripts_byname.gperf: Likewise.
96528         * lib/unictype/sy_c_ident.h: Likewise.
96529         * lib/unictype/sy_c_whitespace.h: Likewise.
96530         * lib/unictype/sy_java_ident.h: Likewise.
96531         * lib/unictype/sy_java_whitespace.h: Likewise.
96533         * lib/unictype/Makefile: New file.
96534         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
96535         glibc.
96536         * lib/unictype/3level.h: New file, copied from glibc.
96537         * lib/unictype/3levelbit.h: New file.
96539 2007-11-11  Bruno Haible  <bruno@clisp.org>
96541         * modules/gperf: New file.
96542         * modules/iconv_open (Depends-on): Add it.
96543         (Makefile.am): Remove the GPERF definition.
96545 2007-11-11  Bruno Haible  <bruno@clisp.org>
96547         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
96548         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
96550 2007-11-11  Bruno Haible  <bruno@clisp.org>
96552         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
96553         (usage): Remove function.
96555 2007-11-11  Bruno Haible  <bruno@clisp.org>
96557         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
96558         gl_FUNC_CEILF_LIBS.
96559         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
96560         gl_FUNC_CEIL_LIBS.
96561         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
96562         gl_FUNC_CEILL_LIBS.
96563         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
96564         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
96565         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
96567 2007-11-11  Bruno Haible  <bruno@clisp.org>
96569         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
96570         roundf were declared but do not exist on functions.
96571         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
96572         roundl were declared but do not exist on functions.
96573         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
96574         HAVE_FLOORL_AND_CEILL, respectively.
96575         Needed for Sun C on Solaris 10.
96577 2007-11-11  Bruno Haible  <bruno@clisp.org>
96579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
96580         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
96581         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
96582         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
96583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
96584         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
96585         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
96586         HAVE_DECL_ROUNDF.
96587         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
96588         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
96589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
96590         of HAVE_DECL_ROUND*.
96591         * modules/math (Makefile.am): Update.
96593 2007-11-10  Bruno Haible  <bruno@clisp.org>
96595         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
96596         ptrdiff_t as m4/intl.m4.
96598 2007-11-10  Jim Meyering  <meyering@redhat.com>
96600         Avoid link failure for the argmatch test.
96601         * tests/test-argmatch.c (usage): Define function to avoid a link
96602         failure: argmatch_die requires a usage function.
96604 2007-11-09  Bruno Haible  <bruno@clisp.org>
96606         * doc/functions/snprintf.texi: Mention BeOS deficiency.
96607         * doc/functions/vsnprintf.texi: Likewise.
96608         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
96609         with a size argument < 2.
96611 2007-11-09  Bruno Haible  <bruno@clisp.org>
96613         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
96614         buffer. Fixes an inefficiency introduced on 2007-11-03.
96616 2007-11-09  Bruno Haible  <bruno@clisp.org>
96618         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
96619         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
96621 2007-11-08  Jim Meyering  <meyering@redhat.com>
96623         Change cache variable name prefix "jm_" to "gl_" everywhere.
96624         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
96625         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
96626         * m4/uptime.m4: s/gl_/jm_/
96628 2007-11-07  Bruno Haible  <bruno@clisp.org>
96630         Update to GNU gettext 0.17.
96631         * m4/intl.m4: Update to GNU gettext 0.17.
96632         * m4/po.m4: Likewise.
96633         * modules/gettext (Files): Remove m4/ulonglong.m4.
96634         (configure.ac): Require gettext infrastructure from version 0.17.
96636 2007-11-06  Bruno Haible  <bruno@clisp.org>
96638         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
96639         symbolic values are not defined in a public header.
96640         * lib/freadable.c (freadable) [QNX]: Likewise.
96641         * lib/freadahead.c (freadahead) [QNX]: Likewise.
96642         * lib/freading.c (freading) [QNX]: Likewise.
96643         * lib/fseterr.c (fseterr) [QNX]: Likewise.
96644         * lib/fwritable.c (fwritable) [QNX]: Likewise.
96645         * lib/fwriting.c (fwriting) [QNX]: Likewise.
96646         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
96647         Reported by Alain Magloire.
96649         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
96651 2007-11-05  Bruno Haible  <bruno@clisp.org>
96653         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
96654         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
96655         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
96656         Reported by Eric Blake.
96658 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96659             Bruno Haible  <bruno@clisp.org>
96661         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
96662         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
96663         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
96664         (malloc): Undefine also before including <stdlib.h>.
96665         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
96666         Needed on OSF/1 4.0.
96668 2007-11-05  Jim Meyering  <meyering@redhat.com>
96670         git-version-gen: sync from coreutils.
96671         * build-aux/git-version-gen: Add comments.
96672         Change the first '-' to '.' in the snapshot version string,
96673         e.g., 6.9-377-08144 -> 6.9.377-08144
96674         Remove first parameter.
96675         Don't declare a version "-dirty" merely because a time
96676         stamp has changed.
96678 2007-11-04  Bruno Haible  <bruno@clisp.org>
96680         * lib/lock.h: Protect all macro definitions containing an 'if'
96681         statement through a "do { ... } while (0)".
96682         * lib/tls.h: Likewise.
96684 2007-11-04  Bruno Haible  <bruno@clisp.org>
96686         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
96688 2007-11-04  Bruno Haible  <bruno@clisp.org>
96690         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
96691         * modules/fprintf-posix (Depends-on): Add nocrash.
96692         * modules/snprintf-posix (Depends-on): Likewise.
96693         * modules/sprintf-posix (Depends-on): Likewise.
96694         * modules/vasnprintf-posix (Depends-on): Likewise.
96695         * modules/vasprintf-posix (Depends-on): Likewise.
96696         * modules/vfprintf-posix (Depends-on): Likewise.
96697         * modules/vsnprintf-posix (Depends-on): Likewise.
96698         * modules/vsprintf-posix (Depends-on): Likewise.
96699         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96701         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96705         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96707 2007-11-04  Bruno Haible  <bruno@clisp.org>
96709         * modules/nocrash: New file.
96710         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
96711         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
96713 2007-11-04  Bruno Haible  <bruno@clisp.org>
96715         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
96716         precision handling.
96717         * tests/test-vasprintf-posix.c (test_function): Likewise.
96718         * tests/test-snprintf-posix.h (test_function): Likewise.
96719         * tests/test-sprintf-posix.h (test_function): Likewise.
96721         Fix *printf behaviour for large precisions on mingw and BeOS.
96722         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
96723         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
96724         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
96725         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96727         gl_PRINTF_PRECISION and test its result. Invoke
96728         gl_PREREQ_VASNPRINTF_PRECISION.
96729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96733         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96736         * doc/functions/fprintf.texi: Update.
96737         * doc/functions/printf.texi: Update.
96738         * doc/functions/snprintf.texi: Update.
96739         * doc/functions/sprintf.texi: Update.
96740         * doc/functions/vfprintf.texi: Update.
96741         * doc/functions/vprintf.texi: Update.
96742         * doc/functions/vsnprintf.texi: Update.
96743         * doc/functions/vsprintf.texi: Update.
96745 2007-11-04  Bruno Haible  <bruno@clisp.org>
96747         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
96749 2007-11-04  Bruno Haible  <bruno@clisp.org>
96751         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
96752         Reported by Sylvain Beucler <beuc@gnu.org>.
96754 2007-11-03  Bruno Haible  <bruno@clisp.org>
96756         * tests/test-fprintf-posix2.sh: New file.
96757         * tests/test-fprintf-posix2.c: New file.
96758         * modules/fprintf-posix-tests (Files): Add them.
96759         (TESTS): Add test-fprintf-posix2.sh.
96760         (configure.ac): Check for getrlimit and setrlimit.
96761         (check_PROGRAMS): Add test-fprintf-posix2.
96763         * tests/test-printf-posix2.sh: New file.
96764         * tests/test-printf-posix2.c: New file.
96765         * modules/printf-posix-tests (Files): Add them.
96766         (TESTS): Add test-printf-posix2.sh.
96767         (configure.ac): Check for getrlimit and setrlimit.
96768         (check_PROGRAMS): Add test-printf-posix2.
96770         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
96771         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
96772         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
96773         (decode_double): New function, copied from decode_long_double.
96774         (scale10_round_decimal_decoded): New function, extracted from
96775         scale10_round_decimal_long_double.
96776         (scale10_round_decimal_long_double): Use it.
96777         (scale10_round_decimal_double): New function.
96778         (floorlog10): New function.
96779         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
96780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
96781         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96783         gl_PRINTF_ENOMEM and test its result. Invoke
96784         gl_PREREQ_VASNPRINTF_ENOMEM.
96785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96791         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96792         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
96793         * modules/snprintf-posix (Depends-on): Likewise.
96794         * modules/sprintf-posix (Depends-on): Likewise.
96795         * modules/vasnprintf-posix (Depends-on): Likewise.
96796         * modules/vasprintf-posix (Depends-on): Likewise.
96797         * modules/vfprintf-posix (Depends-on): Likewise.
96798         * modules/vsnprintf-posix (Depends-on): Likewise.
96799         * modules/vsprintf-posix (Depends-on): Likewise.
96800         * doc/functions/fprintf.texi: Update.
96801         * doc/functions/printf.texi: Update.
96802         * doc/functions/snprintf.texi: Update.
96803         * doc/functions/sprintf.texi: Update.
96804         * doc/functions/vfprintf.texi: Update.
96805         * doc/functions/vprintf.texi: Update.
96806         * doc/functions/vsnprintf.texi: Update.
96807         * doc/functions/vsprintf.texi: Update.
96809 2007-11-03  Bruno Haible  <bruno@clisp.org>
96811         * modules/frexp-nolibm-tests: New file.
96813         * modules/frexp-nolibm: New file.
96814         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
96816 2007-11-03  Bruno Haible  <bruno@clisp.org>
96818         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
96819         value is C99 compliant.
96820         Needed for OSF/1 5.1.
96822 2007-11-03  Bruno Haible  <bruno@clisp.org>
96824         Fix out-of-memory handling of vasnprintf.
96825         * lib/printf-parse.c: Include <errno.h>.
96826         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
96827         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
96828         is already set.
96830 2007-11-02  Eric Blake  <ebb9@byu.net>
96832         Fix tests on cygwin.
96833         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
96835 2007-11-01  Bruno Haible  <bruno@clisp.org>
96837         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
96838         warning.
96839         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
96840         needed for POSIX compatibility.
96842 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
96844         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
96845         for compatibility with GNU.
96847 2007-11-01  Bruno Haible  <bruno@clisp.org>
96849         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
96850         (putenv): Renamed from rpl_putenv. Change argument type from
96851         'const char *' to 'char *'.
96852         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
96853         of defining putenv in config.h, just set REPLACE_PUTENV.
96854         * modules/putenv (Depends-on): Add stdlib.
96855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96856         (Include): Use <stdlib.h>.
96857         * lib/stdlib.in.h (putenv): New declaration.
96858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
96859         REPLACE_PUTENV.
96860         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
96861         REPLACE_PUTENV.
96862         Needed for MacOS X 10.5.0.
96863         Reported by Peter O'Gorman <peter@pogma.com>.
96865 2007-11-01  Jim Meyering  <meyering@redhat.com>
96867         Treat an empty date string exactly like "0".
96868         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
96869         if the remaining date string (to be parsed) is empty, use "0".
96870         Reported by Mischa Molhoek and discussed in this thread:
96871         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
96873 2007-10-31  Bruno Haible  <bruno@clisp.org>
96875         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
96876         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
96877         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
96878         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
96879         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
96880         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
96882 2007-10-31  Bruno Haible  <bruno@clisp.org>
96884         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
96885         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
96886         (AC_TYPE_LONG_LONG_INT): Use it.
96887         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
96888         it as well.
96889         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
96890         to m4/longlong.m4.
96891         * modules/stdint (Files): Remove m4/ulonglong.m4.
96892         * modules/strtoull (Files): Use m4/longlong.m4 instead of
96893         m4/ulonglong.m4.
96894         * modules/strtoumax (Files): Likewise.
96896 2007-10-30  Bruno Haible  <bruno@clisp.org>
96898         * modules/xvasprintf-posix: New file.
96899         Suggested by Eric Blake.
96901 2007-10-30  Bruno Haible  <bruno@clisp.org>
96903         * modules/xprintf-posix-tests: New file.
96904         * tests/test-xprintf-posix.sh: New file.
96905         * tests/test-xprintf-posix.c: New file.
96906         * tests/test-xfprintf-posix.c: New file.
96908         * modules/xprintf-posix: New file.
96910 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96912         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96913         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96914         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96916 2007-10-29  Bruno Haible  <bruno@clisp.org>
96918         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96919         contain the special marker '_cv_'.
96920         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96921         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96922         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96923         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96924         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96925         Reported by Ralf Wildenhues.
96927 2007-10-29  Bruno Haible  <bruno@clisp.org>
96929         * gnulib-tool (func_import): When --lgpl is not specified, set
96930         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96931         GPLv3.
96932         Reported by Simon Josefsson.
96934 2007-10-28  Bruno Haible  <bruno@clisp.org>
96936         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96937         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96938         HAVE_DECL_ISFINITE.
96939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96940         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96941         HAVE_DECL_ISFINITE.
96943 2007-10-28  Bruno Haible  <bruno@clisp.org>
96945         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96946         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96948 2007-10-28  Bruno Haible  <bruno@clisp.org>
96950         Fix link errors with Sun C 5.0 on Solaris 10.
96951         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96952         function is declared but not present in the compiler's libm.
96953         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96954         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96955         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96956         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96957         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96958         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96959         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96961         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96962         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96963         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96964         HAVE_DECL_FLOORL.
96966 2007-10-28  Bruno Haible  <bruno@clisp.org>
96968         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96969         gl_FUNC_FLOORL. Cache the result.
96970         (gl_FUNC_FLOORL): Use it.
96971         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96972         gl_FUNC_CEILL. Cache the result.
96973         (gl_FUNC_CEILL): Use it.
96975         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96976         gl_FUNC_FLOOR. Cache the result.
96977         (gl_FUNC_FLOOR): Use it.
96978         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96979         gl_FUNC_CEIL. Cache the result.
96980         (gl_FUNC_CEIL): Use it.
96982         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96983         gl_FUNC_FLOORF. Cache the result.
96984         (gl_FUNC_FLOORF): Use it.
96985         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96986         gl_FUNC_CEILF. Cache the result.
96987         (gl_FUNC_CEILF): Use it.
96989 2007-10-28  Bruno Haible  <bruno@clisp.org>
96991         * gnulib-tool: Allow specifying the LGPL version number through
96992         --lgpl=2 or --lgpl=3.
96993         (func_usage): Document --lgpl with argument.
96994         Handle --lgpl=... arguments.
96995         (func_import): Recognize also gl_LGPL calls with an argument. When
96996         --lgpl=2 is used and the module's license is just LGPL, report an
96997         error. Set sed_transform_lib_file according to the lgpl variable. In
96998         the generated files, use --lgpl or gl_LGPL invocations with argument,
96999         if necessary.
97000         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
97001         an LGPv2+ license.
97002         * doc/gnulib-tool.texi (Modified imports): Update explanation of
97003         gl_LGPL macro.
97005 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97006             Bruno Haible  <bruno@clisp.org>
97008         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
97009         (u16_uctomb_aux): Likewise.
97010         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
97011         !HAVE_INLINE.
97012         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
97014 2007-10-28  Bruno Haible  <bruno@clisp.org>
97016         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
97017         Invoke AM_GETTEXT_OPTION if it exists.
97018         * modules/vasprintf: Likewise.
97019         * modules/verror: Likewise.
97020         * modules/xprintf: Likewise.
97021         * modules/xvasprintf: Likewise.
97023 2007-10-27  Ben Pfaff  <blp@gnu.org>
97025         * lib/math.in.h: Define isfinite macro and prototypes for
97026         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
97027         implementations.
97028         * m4/math_h.m4: New substitutions for isfinite module.
97029         * lib/isfinite.c: New file.
97030         * m4/isfinite.m4: New file.
97031         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
97032         * modules/isfinite: New file.
97033         * modules/isfinite-tests: New file.
97034         * tests/tests-isfinite.c: New file.
97035         * doc/functions/isfinite.texi: Mention isfinite module.
97036         * MODULES.html.sh: Mention new module.
97038 2007-10-27  Ben Pfaff  <blp@gnu.org>
97040         Ralf Wildenhues reported that Tru64 4.0D declares the round
97041         functions but does not have definitions.
97042         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
97043         cannot be found in any library, set the output variable to
97044         "missing" instead of "".
97045         * m4/round.m4: Also use our substitute if we cannot find round in
97046         any library, even if it is declared.
97047         * m4/roundf.m4: Likewise for roundf.
97048         * m4/roundl.m4: Likewise for roundl.
97049         * lib/math.in.h: Undefine roundf, round, roundl before defining
97050         their replacements, to allow for hypothetical systems where these
97051         may be defined as macros but not available in libraries.
97053 2007-10-27  Bruno Haible  <bruno@clisp.org>
97055         * doc/gnulib.texi: Invoke @firstparagraphindent.
97056         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
97057         changes in gnulib.
97058         (Source changes): New section.
97060 2007-10-26  Bruno Haible  <bruno@clisp.org>
97062         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
97063         borrowed from autoconf.
97065 2007-10-26  Bruno Haible  <bruno@clisp.org>
97067         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
97068         strerror returned the empty string. Needed on HP-UX 11.00.
97070 2007-10-24  Micah Cowan  <micah@cowan.name>
97072         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
97073         * build-aux/bootstrap: Remove support for now-unnecessary option,
97074         --cvs-user, and envvars CVS_USER, CVS_RSH.
97076 2007-10-24  Jim Meyering  <meyering@redhat.com>
97078         Avoid diagnostics from sha1sum when there is no cached checksum.
97079         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
97080         if the po.s1 file hasn't been created yet.
97082         * build-aux/bootstrap: Sync from coreutils:
97083         2007-10-24  Jim Meyering  <meyering@redhat.com>
97084         Get gnulib from the git repository, not from an obsolete cvs one.
97085         * build-aux/bootstrap: Suggestion from Micah Cowan.
97086         2007-10-04  Jim Meyering  <jim@meyering.net>
97087         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
97088         (update_po_files): Work also when there are no .po files in po/.
97090 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
97092         * README: Append ".git" to git and cg examples.
97093         Problem reported by Benoit Sigoure.
97095 2007-10-23  Micah Cowan  <micah@cowan.name>
97097         * users.txt: Add wget.
97099 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97101         Fix linking of some unistdio tests on FreeBSD.
97102         * modules/unistdio/u16-vsnprintf-tests
97103         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
97104         * modules/unistdio/u16-vsprintf-tests
97105         (test_u16_vsnprintf1_LDADD): Likewise.
97106         * modules/unistdio/u32-vsnprintf-tests
97107         (test_u32_vsnprintf1_LDADD): Likewise.
97108         * modules/unistdio/u32-vsprintf-tests
97109         (test_u32_vsprintf1_LDADD): Likewise.
97110         * modules/unistdio/u8-vsnprintf-tests
97111         (test_u8_vsnprintf1_LDADD): Likewise.
97112         * modules/unistdio/u8-vsprintf-tests
97113         (test_u8_vsprintf1_LDADD): Likewise.
97114         * modules/unistdio/ulc-vsnprintf-tests
97115         (test_ulc_vsnprintf1_LDADD): Likewise.
97116         * modules/unistdio/ulc-vsprintf-tests
97117         (test_ulc_vsprintf1_LDADD): Likewise.
97119         Fix linking of some uniconv tests on FreeBSD.
97120         * modules/uniconv/u16-conv-from-enc-tests
97121         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
97122         * modules/uniconv/u16-conv-to-enc-tests
97123         (test_u16_conv_to_enc_LDADD): Likewise.
97124         * modules/uniconv/u16-strconv-from-enc-tests
97125         (test_u16_strconv_from_enc_LDADD): Likewise.
97126         * modules/uniconv/u16-strconv-to-enc-tests
97127         (test_u16_strconv_to_enc_LDADD): Likewise.
97128         * modules/uniconv/u32-conv-from-enc-tests
97129         (test_u32_conv_from_enc_LDADD): Likewise.
97130         * modules/uniconv/u32-conv-to-enc-tests
97131         (test_u32_conv_to_enc_LDADD): Likewise.
97132         * modules/uniconv/u32-strconv-from-enc-tests
97133         (test_u32_strconv_from_enc_LDADD): Likewise.
97134         * modules/uniconv/u32-strconv-to-enc-tests
97135         (test_u32_strconv_to_enc_LDADD): Likewise.
97136         * modules/uniconv/u8-conv-from-enc-tests
97137         (test_u8_conv_from_enc_LDADD): Likewise.
97138         * modules/uniconv/u8-conv-to-enc-tests
97139         (test_u8_conv_to_enc_LDADD): Likewise.
97140         * modules/uniconv/u8-strconv-from-enc-tests
97141         (test_u8_strconv_from_enc_LDADD): Likewise.
97142         * modules/uniconv/u8-strconv-to-enc-tests
97143         (test_u8_strconv_to_enc_LDADD): Likewise.
97145 2007-10-22  Bruno Haible  <bruno@clisp.org>
97147         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
97148         size.
97150 2007-10-22  Eric Blake  <ebb9@byu.net>
97152         Tweak x*printf documentation.
97153         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
97154         variable name and comments.
97155         Suggested by Bruno Haible.
97157 2007-10-22  Bruno Haible  <bruno@clisp.org>
97159         * lib/acl.c (copy_acl): Fix file name in comment.
97161 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
97163         Fix Tru64 problem with stdbool.h.
97164         * lib/stdbool.in.h (false, true):
97165         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
97166         Don't declare as an enum in this situation; it runs afoul of Tru64.
97167         Problem reported by Steven M. Schweda in
97168         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
97170 2007-10-22  Eric Blake  <ebb9@byu.net>
97172         Also wrap vf?printf.
97173         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
97174         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
97175         (xvprintf, xvfprintf): New functions.
97177 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97179         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
97180         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
97182         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
97183         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
97185 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
97187         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
97188         by Bruno Haible.
97190 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97192         * lib/getloadavg.c
97193         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
97194         Undef `sys' after including sys/table.h, for Tru64 4.0D.
97196         * tests/test-i-ring.c: Work for C89.
97198 2007-10-22  Bruno Haible  <bruno@clisp.org>
97200         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
97201         -1u, in preprocessor expression, so that we don't test for the bug
97202         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
97203         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
97205 2007-10-22  Eric Blake  <ebb9@byu.net>
97207         * tests/test-yesno.sh: Silence stderr during test.
97209 2007-10-22  Simon Josefsson  <simon@josefsson.org>
97211         * modules/crypto/gc-camellia: New file.
97213         * m4/gc-camellia.m4: New file.
97215         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
97217         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
97219 2007-10-22  Simon Josefsson  <simon@josefsson.org>
97221         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
97222         --help to stdout.  Reported by sms@antinode.org (Steven
97223         M. Schweda).
97225 2007-10-22  Simon Josefsson  <simon@josefsson.org>
97227         * users.txt: Fix link to libksba.
97229 2007-10-21  Ben Pfaff  <blp@gnu.org>
97231         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
97232         round.c roundf implementation that depends on floorf and ceilf to
97233         be tested unconditionally.
97235 2007-10-21  Ben Pfaff  <blp@gnu.org>
97237         * m4/check-libm-func.m4: Removed.
97238         * m4/check-math-lib.m4: New file.
97239         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
97240         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
97241         definition and lack of AC_LIBOBJ([roundf]).
97242         * m4/roundl.m4: Ditto, and similarly for roundl.
97243         * modules/round: Reference new m4 file.
97244         * modules/roundf: Ditto.
97245         * modules/roundl: Ditto.
97246         * tests/test-round2.c (main): Use ROUND instead of round.
97247         Bug report from Bruno Haible.
97249 2007-10-21  Bruno Haible  <bruno@clisp.org>
97251         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
97252         context.
97254 2007-10-21  Bruno Haible  <bruno@clisp.org>
97256         * tests/test-wcwidth.c (main): Allow negative result for some control
97257         characters.
97259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
97260         Needed on OSF/1 5.1.
97262 2007-10-21  Bruno Haible  <bruno@clisp.org>
97264         * tests/test-floorf1.c: Include isnanf.h.
97265         (main): Use isnanf() instead of isnan().
97266         * tests/test-ceilf1.c: Include isnanf.h.
97267         (main): Use isnanf() instead of isnan().
97268         * tests/test-truncf1.c: Include isnanf.h.
97269         (main): Use isnanf() instead of isnan().
97270         * tests/test-roundf1.c: Include isnanf.h.
97271         (main): Use isnanf() instead of isnan().
97273 2007-10-21  Eric Blake  <ebb9@byu.net>
97275         * users.txt: Update URL for m4.
97277 2007-10-21  Bruno Haible  <bruno@clisp.org>
97279         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
97281 2007-10-21  Bruno Haible  <bruno@clisp.org>
97283         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
97284         Git's management files if the CVS files are not present.
97286 2007-10-20  Bruno Haible  <bruno@clisp.org>
97288         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
97289         gcc-3.4.x.
97291 2007-10-20  Ben Pfaff  <blp@gnu.org>
97293         * lib/math.in.h: Declare round, roundf, roundl if we are providing
97294         implementations.
97295         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
97296         * lib/round.c: New file.
97297         * lib/roundf.c: New file.
97298         * lib/roundl.c: New file.
97299         * m4/round.m4: New file.
97300         * m4/roundf.m4: New file.
97301         * m4/roundl.m4: New file.
97302         * m4/check-libm-func-m4: New file.
97303         * modules/math: Replace round, roundf, roundl related @VARS@ in
97304         math.in.h.
97305         * modules/round: New file.
97306         * modules/round-tests: New file.
97307         * modules/roundf: New file.
97308         * modules/roundf-tests: New file.
97309         * modules/roundl: New file.
97310         * modules/roundl-tests: New file.
97311         * tests/test-round1.c: New file.
97312         * tests/test-round2.c: New file.
97313         * tests/test-roundf1.c: New file.
97314         * tests/test-roundf2.c: New file.
97315         * tests/test-roundl.c: New file.
97316         * doc/functions/round.texi: Mention round module.
97317         * doc/functions/roundf.texi: Mention roundf module.
97318         * doc/functions/roundl.texi: Mention roundl module.
97319         * MODULES.html.sh: Mention new modules.
97320         Thanks to Bruno Haible for suggestions.
97322 2007-10-20  Jim Meyering  <meyering@redhat.com>
97324         * lib/xprintf.c: Include <config.h> unconditionally.
97326         Change xprintf's license to GPL.
97327         * modules/xprintf (License): s/LGPL/GPL/, since this module
97328         depends on modules (exit and exitfail) which are GPL.
97329         Suggestion from Bruno Haible.
97331         xprintf fixes.
97332         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
97333         Use a clearer diagnostic.
97334         Patch from Bruno Haible.
97336 2007-10-20  Bruno Haible  <bruno@clisp.org>
97338         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
97339         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
97340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97342 2007-10-20  Bruno Haible  <bruno@clisp.org>
97344         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
97345         precision in the comparison result > x - 1 or similar.
97346         * tests/test-ceilf2.c (correct_result_p): Likewise.
97347         * tests/test-truncf2.c (correct_result_p): Likewise.
97348         * tests/test-trunc2.c (correct_result_p): Likewise.
97349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97351 2007-10-20  Bruno Haible  <bruno@clisp.org>
97353         * modules/ceil: New file.
97354         * m4/ceil.m4: New file.
97355         * doc/functions/ceil.texi: Mention the 'ceil' module.
97357 2007-10-20  Bruno Haible  <bruno@clisp.org>
97359         * modules/floor: New file.
97360         * m4/floor.m4: New file.
97361         * doc/functions/floor.texi: Mention the 'floor' module.
97363 2007-10-20  Bruno Haible  <bruno@clisp.org>
97365         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
97366         of %a.
97367         * modules/floorf-tests (Depends-on): Likewise.
97368         * modules/truncf-tests (Depends-on): Likewise.
97369         * modules/trunc-tests (Depends-on): Likewise.
97370         Reported by Ben Pfaff.
97372 2007-10-19  Jim Meyering  <meyering@redhat.com>
97374         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
97375         Don't bother testing specific errno values.  Just test ferror.
97377         New module: xprintf
97378         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
97380 2007-10-19  Bruno Haible  <bruno@clisp.org>
97382         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
97383         syntax.
97384         * modules/javaexec (Makefile.am): Likewise.
97385         * modules/relocatable-prog (Makefile.am): Likewise.
97386         Suggested by Jim Meyering.
97388 2007-10-18  Bruno Haible  <bruno@clisp.org>
97390         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
97391         Reported by Jim Meyering.
97393 2007-10-18  Eric Blake  <ebb9@byu.net>
97395         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
97397 2007-10-18  Bruno Haible  <bruno@clisp.org>
97399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
97400         the format string into writable memory. Needed in Fortify conditions.
97402 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
97403             Bruno Haible  <bruno@clisp.org>
97405         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
97406         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
97407         * modules/trim (Depends-on): Add mbchar.
97408         (configure.ac): Add gl_FUNC_MBRTOWC.
97409         (Makefile.am): Augment lib_SOURCES.
97411 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
97413         Modify glob.c to use fstatat and dirfd, to simplify it.
97414         Suggested by Eric Blake.
97415         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
97416         Don't include <stdbool.h>; not used.
97417         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
97418         (link_exists_p): Simplify implementation, since we can now assume
97419         dirfd and fstatat.
97420         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
97422 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97424         * gnulib-tool (func_get_dependencies): Fix sed script to
97425         match only tests.
97427 2007-10-17  Bruno Haible  <bruno@clisp.org>
97429         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
97430         allow locale names without encoding suffix.
97431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97432         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97434 2007-10-16  Bruno Haible  <bruno@clisp.org>
97436         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
97437         * lib/getgroups.c (getgroups): Likewise.
97438         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
97440 2007-10-16  Bruno Haible  <bruno@clisp.org>
97442         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
97443         * modules/malloc-posix (License): Likewise.
97444         * modules/realloc-posix (License): Likewise.
97445         * modules/calloc-posix (License): Likewise.
97446         * modules/intprops (License): Change from GPL to LGPL, with
97447         Paul Eggert's approval.
97449 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
97451         Merge glibc changes into lib/glob.c.
97453         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
97454         2007-10-15 04:59:03 UTC.  Here are the changes:
97456         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
97458         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
97460         * lib/glob.c: Add some branch prediction throughout.
97462         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
97464         [BZ #5103]
97465         * lib/glob.c (glob): Recognize patterns starting \/.
97467         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
97469         [BZ #3996]
97470         * lib/glob.c (attribute_hidden): Define if not defined.
97471         (glob): Unescape dirname, filename or username when needed and not
97472         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
97473         is NULL.  Handle unescaped [ in pattern without closing ].
97474         Don't pass GLOB_CHECK down to recursive glob for directories.
97475         (__glob_pattern_type): New function.
97476         (__glob_pattern_p): Implement using __glob_pattern_type.
97477         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
97478         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
97479         Remove unreachable code.
97481         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
97483         * lib/glob.c (glob_in_dir): Add some comments and asserts to
97484         explain why there are no leaks.
97486         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
97488         [BZ #3253]
97489         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
97490         time, rather allocate increasingly bigger arrays of pointers, if
97491         possible with alloca, if too large with malloc.
97493 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
97495         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
97496         Problem reported by H.Merijn Brand in
97497         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
97498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
97499         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97501 2007-10-15  Bruno Haible  <bruno@clisp.org>
97503         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
97504         with explicit rpl_ prefix.
97505         * lib/fopen.c (fopen): Likewise.
97506         * lib/freopen.c (freopen): Likewise.
97507         * lib/iconv.c (iconv): Likewise.
97508         * lib/iconv_close.c (iconv_close): Likewise.
97510 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97512         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
97514 2007-10-15  Bruno Haible  <bruno@clisp.org>
97516         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
97517         <stddef.h> instead of <stdlib.h> since we only need NULL.
97518         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97520 2007-10-15  Bruno Haible  <bruno@clisp.org>
97522         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
97523         Replace paragraph talking about LIBOBJS.
97524         Reported by Colin Watson <cjwatson@debian.org>.
97526 2007-10-15  Bruno Haible  <bruno@clisp.org>
97528         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
97529         <stdlib.h> before using NULL.
97531 2007-10-15  Simon Josefsson  <simon@josefsson.org>
97533         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
97534         Reported by Albert Chin <china@thewrittenword.com>.
97536 2007-10-14  Bruno Haible  <bruno@clisp.org>
97538         * modules/iconv_open-utf-tests: New file.
97539         * tests/test-iconv-utf.c: New file.
97541         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
97542         * modules/iconv_open-utf: New file.
97543         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
97544         (iconv, iconv_close): New declarations.
97545         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
97546         be defined.
97547         (iconv_open): Add special handling of conversion between UTF-8 and
97548         UTF-{16,32}{BE,LE}.
97549         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
97550         * lib/iconv_close.c: New file.
97551         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
97552         gl_FUNC_ICONV_OPEN.
97553         (gl_FUNC_ICONV_OPEN): Use it.
97554         (gl_FUNC_ICONV_OPEN_UTF): New macro.
97555         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
97556         and REPLACE_ICONV_UTF.
97557         * modules/iconv_open (Depends-on): Add c-strcase.
97558         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
97559         ICONV_CONST.
97560         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
97562 2007-10-13  Albert Chin  <china@thewrittenword.com>
97563             Bruno Haible  <bruno@clisp.org>
97565         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
97566         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
97568 2007-10-13  Bruno Haible  <bruno@clisp.org>
97570         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
97571         defined, use the ISO C99 inline semantics.
97572         * lib/argp.h (ARGP_EI): Likewise.
97574 2007-10-13  Bruno Haible  <bruno@clisp.org>
97576         Handle 'inline' change in gcc 4.3.0.
97577         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
97578         argp_fmtstream_write, argp_fmtstream_set_lmargin,
97579         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
97580         argp_fmtstream_point): Disable 'extern' declaration if the function
97581         definition is going to be provided inline.
97582         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
97583         semantics, not the ISO C99 inline semantics.
97584         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
97585         'extern' declaration if the function definition is going to be provided
97586         inline.
97587         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
97588         the GNU C inline semantics, not the ISO C99 inline semantics. With
97589         GCC 4.2, avoid a warning.
97591 2007-10-13  Bruno Haible  <bruno@clisp.org>
97593         * lib/freading.h (freading): Enable the use of __freading for
97594         glibc >= 2.7.
97595         * lib/freading.c (freading): Likewise.
97597 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
97599         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
97600         "warning: C99 inline functions are not supported; using GNU89".
97602 2007-10-12  Bruno Haible  <bruno@clisp.org>
97604         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
97605         of 2.
97606         * tests/test-ceilf2.c: New file.
97607         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
97609         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
97610         * modules/ceilf-tests: Update.
97612 2007-10-12  Bruno Haible  <bruno@clisp.org>
97614         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
97615         of 2.
97616         * tests/test-floorf2.c: New file.
97617         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
97619         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
97620         * modules/floorf-tests: Update.
97622 2007-10-12  Bruno Haible  <bruno@clisp.org>
97624         * tests/test-trunc2.c: New file.
97625         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
97627         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
97628         * modules/trunc-tests: Update.
97630 2007-10-12  Bruno Haible  <bruno@clisp.org>
97632         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
97633         of 2.
97634         * tests/test-truncf2.c: New file.
97635         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
97637         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
97638         * modules/truncf-tests: Update.
97640 2007-10-11  Eric Blake  <ebb9@byu.net>
97642         Don't claim strerror is broken on Interix.
97643         * doc/functions/strerror.texi (strerror): Known broken systems are
97644         now Solaris 8, and not Interix.
97645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
97646         Interix on cross-compile.
97647         Reported by Martin Koeppe in
97648         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
97650 2007-10-11  Bruno Haible  <bruno@clisp.org>
97652         * modules/i-ring-tests: New file.
97653         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
97654         instead of assert.
97656 2007-10-11  Bruno Haible  <bruno@clisp.org>
97658         * modules/filenamecat-tests: New file.
97659         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
97660         * lib/filenamecat.c: Remove test code.
97662 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
97664         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
97666         * lib/strerror.c: Include <string.h> always, to test interface,
97667         and to remove the need for the dummy.
97668         Include intprops.h to compute width instead of doing it ourselves
97669         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
97670         (strerror): Define it to return NULL if there's no system strerror.
97671         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
97672         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
97673         ancient pre-strerror Unix systems well any more.  Saying "unknown
97674         system error" is enough.
97675         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
97676         simpler strerror.c implementation.
97677         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
97678         Simplify the tests to reflect the simpler strerror implementation.
97679         * modules/strerror (Depends-on): Add intprops.
97681 2007-10-09  Eric Blake  <ebb9@byu.net>
97683         Silence test-fpending.
97684         * modules/fpending-tests (Files): Add wrapper script.
97685         * tests/test-fpending.sh: New file.
97687 2007-10-09  Bruno Haible  <bruno@clisp.org>
97689         * MODULES.html.sh (func_module): Don't create a hyperlink for
97690         function names like 'printf_frexp'.
97691         (Misc): Add crc, memxor.
97692         (Characteristics of floating types): New section.
97693         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
97694         isnanf-nolibm, signbit, trunc, truncf, truncl.
97695         (Enhancements for ISO C 99 functions): New subsection Input/output.
97696         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
97697         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
97698         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
97699         (Compatibility checks for POSIX:2001 functions): Add clock-time.
97700         (Enhancements for POSIX:2001 functions): Add chdir-long.
97701         (File system functions): Add areadlink, chdir-safer, read-file.
97702         Remove cycle-check.
97703         (File system as inode set): New section.
97704         (Date and time): Add gethrxtime.
97705         (Multithreading): Add openmp.
97706         (Internationalization functions): Add localename.
97707         (Unicode string functions): Add unistr/u*-mbsnlen.
97708         (Support for maintaining and releasing projects): Add git-version-gen.
97709         (Lone files): Remove directories.
97711 2007-10-08  Ben Pfaff  <blp@gnu.org>
97713         * lib/xmalloca.h: Fix typo in comment.
97715 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
97717         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
97718         when avoiding problems with integer overflow.  Use a portable test
97719         instead.
97721 2007-10-08  Simon Josefsson  <simon@josefsson.org>
97723         * modules/dummy (License): Change to LGPLv2+.
97724         * modules/float (License): Likewise
97725         * modules/realloc (License): Likewise
97726         * modules/stdlib (License): Likewise
97728 2007-10-07  Bruno Haible  <bruno@clisp.org>
97730         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
97731         * floor.c (TWO_MANT_DIG): Likewise.
97732         * ceil.c (TWO_MANT_DIG): Likewise.
97733         Reported by Ben Pfaff.
97735 2007-10-07  Bruno Haible  <bruno@clisp.org>
97737         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
97738         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
97739         * lib/frexp.c (FUNC): Likewise.
97740         * lib/printf-frexp.h (printf_frexp): Likewise.
97741         * lib/printf-frexpl.h (printf_frexpl): Likewise.
97742         * lib/printf-frexp.c (FUNC): Likewise.
97743         Suggested by Jim Meyering.
97745 2007-10-07  Jim Meyering  <meyering@redhat.com>
97747         Make xnanosleep's integer overflow test more robust.
97748         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
97749         so that gcc-4.3.0 doesn't optimize away this test for overflow.
97751 2007-10-07  Bruno Haible  <bruno@clisp.org>
97753         * NEWS: Mention the license change.
97755         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
97756         abbreviations in the modules files.
97758         Change copyright notice from GPLv2+ to GPLv3+.
97759         * README: Change copyright notice.
97760         * MODULES.html.sh: Likewise.
97761         * build-aux/bootstrap.conf: Likewise.
97762         * build-aux/config.libpath: Likewise.
97763         * build-aux/csharpcomp.sh.in: Likewise.
97764         * build-aux/csharpexec.sh.in: Likewise.
97765         * build-aux/install-reloc: Likewise.
97766         * build-aux/javacomp.sh.in: Likewise.
97767         * build-aux/javaexec.sh.in: Likewise.
97768         * build-aux/ldd.sh.in: Likewise.
97769         * build-aux/reloc-ldflags: Likewise.
97770         * build-aux/relocatable.sh.in: Likewise.
97771         * build-aux/x-to-1.in: Likewise.
97772         * check-module: Likewise.
97773         * config/srclistvars.sh: Likewise.
97774         * gnulib-tool: Likewise.
97775         * lib/acl-internal.h: Likewise.
97776         * lib/acl.c: Likewise.
97777         * lib/acl.h: Likewise.
97778         * lib/acl_entries.c: Likewise.
97779         * lib/areadlink-with-size.c: Likewise.
97780         * lib/areadlink.c: Likewise.
97781         * lib/areadlink.h: Likewise.
97782         * lib/argmatch.c: Likewise.
97783         * lib/argmatch.h: Likewise.
97784         * lib/argp-ba.c: Likewise.
97785         * lib/argp-eexst.c: Likewise.
97786         * lib/argp-fmtstream.c: Likewise.
97787         * lib/argp-fmtstream.h: Likewise.
97788         * lib/argp-fs-xinl.c: Likewise.
97789         * lib/argp-help.c: Likewise.
97790         * lib/argp-namefrob.h: Likewise.
97791         * lib/argp-parse.c: Likewise.
97792         * lib/argp-pin.c: Likewise.
97793         * lib/argp-pv.c: Likewise.
97794         * lib/argp-pvh.c: Likewise.
97795         * lib/argp-xinl.c: Likewise.
97796         * lib/argp.h: Likewise.
97797         * lib/at-func.c: Likewise.
97798         * lib/atanl.c: Likewise.
97799         * lib/backupfile.c: Likewise.
97800         * lib/backupfile.h: Likewise.
97801         * lib/basename.c: Likewise.
97802         * lib/binary-io.h: Likewise.
97803         * lib/byteswap.in.h: Likewise.
97804         * lib/c-stack.c: Likewise.
97805         * lib/c-stack.h: Likewise.
97806         * lib/c-strcasestr.c: Likewise.
97807         * lib/c-strcasestr.h: Likewise.
97808         * lib/c-strstr.c: Likewise.
97809         * lib/c-strstr.h: Likewise.
97810         * lib/c-strtod.c: Likewise.
97811         * lib/calloc.c: Likewise.
97812         * lib/canon-host.c: Likewise.
97813         * lib/canon-host.h: Likewise.
97814         * lib/canonicalize-lgpl.c: Likewise.
97815         * lib/canonicalize.c: Likewise.
97816         * lib/canonicalize.h: Likewise.
97817         * lib/ceil.c: Likewise.
97818         * lib/ceilf.c: Likewise.
97819         * lib/ceill.c: Likewise.
97820         * lib/chdir-long.c: Likewise.
97821         * lib/chdir-long.h: Likewise.
97822         * lib/chdir-safer.c: Likewise.
97823         * lib/chdir-safer.h: Likewise.
97824         * lib/chown.c: Likewise.
97825         * lib/classpath.c: Likewise.
97826         * lib/classpath.h: Likewise.
97827         * lib/clean-temp.c: Likewise.
97828         * lib/clean-temp.h: Likewise.
97829         * lib/cloexec.c: Likewise.
97830         * lib/close-stream.c: Likewise.
97831         * lib/closein.c: Likewise.
97832         * lib/closein.h: Likewise.
97833         * lib/closeout.c: Likewise.
97834         * lib/closeout.h: Likewise.
97835         * lib/concat-filename.c: Likewise.
97836         * lib/copy-file.c: Likewise.
97837         * lib/copy-file.h: Likewise.
97838         * lib/count-one-bits.h: Likewise.
97839         * lib/crc.c: Likewise.
97840         * lib/crc.h: Likewise.
97841         * lib/creat-safer.c: Likewise.
97842         * lib/csharpcomp.c: Likewise.
97843         * lib/csharpcomp.h: Likewise.
97844         * lib/csharpexec.c: Likewise.
97845         * lib/csharpexec.h: Likewise.
97846         * lib/cycle-check.c: Likewise.
97847         * lib/cycle-check.h: Likewise.
97848         * lib/diacrit.c: Likewise.
97849         * lib/diacrit.h: Likewise.
97850         * lib/diffseq.h: Likewise.
97851         * lib/dirchownmod.c: Likewise.
97852         * lib/dirent.in.h: Likewise.
97853         * lib/dirfd.c: Likewise.
97854         * lib/dirfd.h: Likewise.
97855         * lib/dirname.c: Likewise.
97856         * lib/dirname.h: Likewise.
97857         * lib/dummy.c: Likewise.
97858         * lib/dup-safer.c: Likewise.
97859         * lib/dup2.c: Likewise.
97860         * lib/eealloc.h: Likewise.
97861         * lib/error.c: Likewise.
97862         * lib/error.h: Likewise.
97863         * lib/euidaccess.c: Likewise.
97864         * lib/exclude.c: Likewise.
97865         * lib/exclude.h: Likewise.
97866         * lib/execute.c: Likewise.
97867         * lib/execute.h: Likewise.
97868         * lib/exitfail.c: Likewise.
97869         * lib/exitfail.h: Likewise.
97870         * lib/expl.c: Likewise.
97871         * lib/fatal-signal.c: Likewise.
97872         * lib/fatal-signal.h: Likewise.
97873         * lib/fbufmode.c: Likewise.
97874         * lib/fbufmode.h: Likewise.
97875         * lib/fchdir.c: Likewise.
97876         * lib/fchmodat.c: Likewise.
97877         * lib/fchownat.c: Likewise.
97878         * lib/fcntl--.h: Likewise.
97879         * lib/fcntl-safer.h: Likewise.
97880         * lib/fcntl.in.h: Likewise.
97881         * lib/fd-safer.c: Likewise.
97882         * lib/fflush.c: Likewise.
97883         * lib/file-has-acl.c: Likewise.
97884         * lib/file-set.c: Likewise.
97885         * lib/file-type.c: Likewise.
97886         * lib/file-type.h: Likewise.
97887         * lib/fileblocks.c: Likewise.
97888         * lib/filemode.c: Likewise.
97889         * lib/filemode.h: Likewise.
97890         * lib/filename.h: Likewise.
97891         * lib/filenamecat.c: Likewise.
97892         * lib/filenamecat.h: Likewise.
97893         * lib/findprog.c: Likewise.
97894         * lib/findprog.h: Likewise.
97895         * lib/float.in.h: Likewise.
97896         * lib/floor.c: Likewise.
97897         * lib/floorf.c: Likewise.
97898         * lib/floorl.c: Likewise.
97899         * lib/fopen-safer.c: Likewise.
97900         * lib/fopen.c: Likewise.
97901         * lib/fpending.c: Likewise.
97902         * lib/fpending.h: Likewise.
97903         * lib/fprintf.c: Likewise.
97904         * lib/fprintftime.h: Likewise.
97905         * lib/fpucw.h: Likewise.
97906         * lib/fpurge.c: Likewise.
97907         * lib/fpurge.h: Likewise.
97908         * lib/freadable.c: Likewise.
97909         * lib/freadable.h: Likewise.
97910         * lib/freadahead.c: Likewise.
97911         * lib/freadahead.h: Likewise.
97912         * lib/freading.c: Likewise.
97913         * lib/freading.h: Likewise.
97914         * lib/free.c: Likewise.
97915         * lib/freopen.c: Likewise.
97916         * lib/frexp.c: Likewise.
97917         * lib/frexpl.c: Likewise.
97918         * lib/fseek.c: Likewise.
97919         * lib/fseterr.c: Likewise.
97920         * lib/fseterr.h: Likewise.
97921         * lib/fstatat.c: Likewise.
97922         * lib/fstrcmp.c: Likewise.
97923         * lib/fstrcmp.h: Likewise.
97924         * lib/fsusage.c: Likewise.
97925         * lib/fsusage.h: Likewise.
97926         * lib/ftell.c: Likewise.
97927         * lib/ftello.c: Likewise.
97928         * lib/fts-cycle.c: Likewise.
97929         * lib/fts.c: Likewise.
97930         * lib/fts_.h: Likewise.
97931         * lib/full-read.c: Likewise.
97932         * lib/full-read.h: Likewise.
97933         * lib/full-write.c: Likewise.
97934         * lib/full-write.h: Likewise.
97935         * lib/fwritable.c: Likewise.
97936         * lib/fwritable.h: Likewise.
97937         * lib/fwriteerror.c: Likewise.
97938         * lib/fwriteerror.h: Likewise.
97939         * lib/fwriting.c: Likewise.
97940         * lib/fwriting.h: Likewise.
97941         * lib/gcd.c: Likewise.
97942         * lib/gcd.h: Likewise.
97943         * lib/getcwd.c: Likewise.
97944         * lib/getdate.h: Likewise.
97945         * lib/getdate.y: Likewise.
97946         * lib/getdomainname.c: Likewise.
97947         * lib/getdomainname.h: Likewise.
97948         * lib/getgroups.c: Likewise.
97949         * lib/gethostname.c: Likewise.
97950         * lib/gethrxtime.c: Likewise.
97951         * lib/gethrxtime.h: Likewise.
97952         * lib/getloadavg.c: Likewise.
97953         * lib/getndelim2.c: Likewise.
97954         * lib/getndelim2.h: Likewise.
97955         * lib/getnline.c: Likewise.
97956         * lib/getnline.h: Likewise.
97957         * lib/getopt.c: Likewise.
97958         * lib/getopt.in.h: Likewise.
97959         * lib/getopt1.c: Likewise.
97960         * lib/getopt_int.h: Likewise.
97961         * lib/getpagesize.h: Likewise.
97962         * lib/getsubopt.c: Likewise.
97963         * lib/gettime.c: Likewise.
97964         * lib/getugroups.c: Likewise.
97965         * lib/getugroups.h: Likewise.
97966         * lib/getusershell.c: Likewise.
97967         * lib/gl_anyavltree_list1.h: Likewise.
97968         * lib/gl_anyavltree_list2.h: Likewise.
97969         * lib/gl_anyhash_list1.h: Likewise.
97970         * lib/gl_anyhash_list2.h: Likewise.
97971         * lib/gl_anylinked_list1.h: Likewise.
97972         * lib/gl_anylinked_list2.h: Likewise.
97973         * lib/gl_anyrbtree_list1.h: Likewise.
97974         * lib/gl_anyrbtree_list2.h: Likewise.
97975         * lib/gl_anytree_list1.h: Likewise.
97976         * lib/gl_anytree_list2.h: Likewise.
97977         * lib/gl_anytree_oset.h: Likewise.
97978         * lib/gl_anytreehash_list1.h: Likewise.
97979         * lib/gl_anytreehash_list2.h: Likewise.
97980         * lib/gl_array_list.c: Likewise.
97981         * lib/gl_array_list.h: Likewise.
97982         * lib/gl_array_oset.c: Likewise.
97983         * lib/gl_array_oset.h: Likewise.
97984         * lib/gl_avltree_list.c: Likewise.
97985         * lib/gl_avltree_list.h: Likewise.
97986         * lib/gl_avltree_oset.c: Likewise.
97987         * lib/gl_avltree_oset.h: Likewise.
97988         * lib/gl_avltreehash_list.c: Likewise.
97989         * lib/gl_avltreehash_list.h: Likewise.
97990         * lib/gl_carray_list.c: Likewise.
97991         * lib/gl_carray_list.h: Likewise.
97992         * lib/gl_linked_list.c: Likewise.
97993         * lib/gl_linked_list.h: Likewise.
97994         * lib/gl_linkedhash_list.c: Likewise.
97995         * lib/gl_linkedhash_list.h: Likewise.
97996         * lib/gl_list.c: Likewise.
97997         * lib/gl_list.h: Likewise.
97998         * lib/gl_oset.c: Likewise.
97999         * lib/gl_oset.h: Likewise.
98000         * lib/gl_rbtree_list.c: Likewise.
98001         * lib/gl_rbtree_list.h: Likewise.
98002         * lib/gl_rbtree_oset.c: Likewise.
98003         * lib/gl_rbtree_oset.h: Likewise.
98004         * lib/gl_rbtreehash_list.c: Likewise.
98005         * lib/gl_rbtreehash_list.h: Likewise.
98006         * lib/gl_sublist.c: Likewise.
98007         * lib/gl_sublist.h: Likewise.
98008         * lib/group-member.c: Likewise.
98009         * lib/group-member.h: Likewise.
98010         * lib/hard-locale.c: Likewise.
98011         * lib/hard-locale.h: Likewise.
98012         * lib/hash-pjw.c: Likewise.
98013         * lib/hash-pjw.h: Likewise.
98014         * lib/hash-triple.c: Likewise.
98015         * lib/hash.c: Likewise.
98016         * lib/hash.h: Likewise.
98017         * lib/human.c: Likewise.
98018         * lib/human.h: Likewise.
98019         * lib/i-ring.c: Likewise.
98020         * lib/i-ring.h: Likewise.
98021         * lib/idcache.c: Likewise.
98022         * lib/imaxabs.c: Likewise.
98023         * lib/imaxdiv.c: Likewise.
98024         * lib/inet_pton.c: Likewise.
98025         * lib/inet_pton.h: Likewise.
98026         * lib/intprops.h: Likewise.
98027         * lib/inttostr.c: Likewise.
98028         * lib/inttostr.h: Likewise.
98029         * lib/inttypes.in.h: Likewise.
98030         * lib/isapipe.c: Likewise.
98031         * lib/isdir.c: Likewise.
98032         * lib/isnan.c: Likewise.
98033         * lib/isnan.h: Likewise.
98034         * lib/isnanf.c: Likewise.
98035         * lib/isnanf.h: Likewise.
98036         * lib/isnanl-nolibm.h: Likewise.
98037         * lib/isnanl.c: Likewise.
98038         * lib/isnanl.h: Likewise.
98039         * lib/javacomp.c: Likewise.
98040         * lib/javacomp.h: Likewise.
98041         * lib/javaexec.c: Likewise.
98042         * lib/javaexec.h: Likewise.
98043         * lib/javaversion.c: Likewise.
98044         * lib/javaversion.h: Likewise.
98045         * lib/javaversion.java: Likewise.
98046         * lib/lbrkprop.h: Likewise.
98047         * lib/lchmod.h: Likewise.
98048         * lib/lchown.c: Likewise.
98049         * lib/ldexpl.c: Likewise.
98050         * lib/linebreak.c: Likewise.
98051         * lib/linebreak.h: Likewise.
98052         * lib/linebuffer.c: Likewise.
98053         * lib/linebuffer.h: Likewise.
98054         * lib/locale.in.h: Likewise.
98055         * lib/logl.c: Likewise.
98056         * lib/long-options.c: Likewise.
98057         * lib/long-options.h: Likewise.
98058         * lib/lstat.c: Likewise.
98059         * lib/lstat.h: Likewise.
98060         * lib/math.in.h: Likewise.
98061         * lib/mbchar.c: Likewise.
98062         * lib/mbchar.h: Likewise.
98063         * lib/mbfile.h: Likewise.
98064         * lib/mbiter.h: Likewise.
98065         * lib/mbscasecmp.c: Likewise.
98066         * lib/mbscasestr.c: Likewise.
98067         * lib/mbschr.c: Likewise.
98068         * lib/mbscspn.c: Likewise.
98069         * lib/mbslen.c: Likewise.
98070         * lib/mbsncasecmp.c: Likewise.
98071         * lib/mbsnlen.c: Likewise.
98072         * lib/mbspbrk.c: Likewise.
98073         * lib/mbspcasecmp.c: Likewise.
98074         * lib/mbsrchr.c: Likewise.
98075         * lib/mbssep.c: Likewise.
98076         * lib/mbsspn.c: Likewise.
98077         * lib/mbsstr.c: Likewise.
98078         * lib/mbstok_r.c: Likewise.
98079         * lib/mbswidth.c: Likewise.
98080         * lib/mbswidth.h: Likewise.
98081         * lib/mbuiter.h: Likewise.
98082         * lib/memcasecmp.c: Likewise.
98083         * lib/memcasecmp.h: Likewise.
98084         * lib/memchr.c: Likewise.
98085         * lib/memcmp.c: Likewise.
98086         * lib/memcoll.c: Likewise.
98087         * lib/memcoll.h: Likewise.
98088         * lib/memcpy.c: Likewise.
98089         * lib/memrchr.c: Likewise.
98090         * lib/mkancesdirs.c: Likewise.
98091         * lib/mkdir-p.c: Likewise.
98092         * lib/mkdir-p.h: Likewise.
98093         * lib/mkdir.c: Likewise.
98094         * lib/mkdirat.c: Likewise.
98095         * lib/mkdtemp.c: Likewise.
98096         * lib/mkstemp-safer.c: Likewise.
98097         * lib/mkstemp.c: Likewise.
98098         * lib/modechange.c: Likewise.
98099         * lib/modechange.h: Likewise.
98100         * lib/mountlist.c: Likewise.
98101         * lib/mountlist.h: Likewise.
98102         * lib/mpsort.c: Likewise.
98103         * lib/nanosleep.c: Likewise.
98104         * lib/obstack.c: Likewise.
98105         * lib/obstack.h: Likewise.
98106         * lib/open-safer.c: Likewise.
98107         * lib/open.c: Likewise.
98108         * lib/openat-die.c: Likewise.
98109         * lib/openat-priv.h: Likewise.
98110         * lib/openat-proc.c: Likewise.
98111         * lib/openat.c: Likewise.
98112         * lib/openat.h: Likewise.
98113         * lib/pagealign_alloc.c: Likewise.
98114         * lib/pagealign_alloc.h: Likewise.
98115         * lib/physmem.c: Likewise.
98116         * lib/physmem.h: Likewise.
98117         * lib/pipe-safer.c: Likewise.
98118         * lib/pipe.c: Likewise.
98119         * lib/pipe.h: Likewise.
98120         * lib/posixtm.c: Likewise.
98121         * lib/posixtm.h: Likewise.
98122         * lib/posixver.c: Likewise.
98123         * lib/printf-frexp.c: Likewise.
98124         * lib/printf-frexp.h: Likewise.
98125         * lib/printf-frexpl.c: Likewise.
98126         * lib/printf-frexpl.h: Likewise.
98127         * lib/printf.c: Likewise.
98128         * lib/progname.c: Likewise.
98129         * lib/progname.h: Likewise.
98130         * lib/progreloc.c: Likewise.
98131         * lib/putenv.c: Likewise.
98132         * lib/quote.c: Likewise.
98133         * lib/quote.h: Likewise.
98134         * lib/quotearg.c: Likewise.
98135         * lib/quotearg.h: Likewise.
98136         * lib/raise.c: Likewise.
98137         * lib/readline.c: Likewise.
98138         * lib/readline.h: Likewise.
98139         * lib/readlink.c: Likewise.
98140         * lib/readtokens.c: Likewise.
98141         * lib/readtokens.h: Likewise.
98142         * lib/readtokens0.c: Likewise.
98143         * lib/readtokens0.h: Likewise.
98144         * lib/readutmp.c: Likewise.
98145         * lib/readutmp.h: Likewise.
98146         * lib/realloc.c: Likewise.
98147         * lib/relocwrapper.c: Likewise.
98148         * lib/rename-dest-slash.c: Likewise.
98149         * lib/rename.c: Likewise.
98150         * lib/rmdir.c: Likewise.
98151         * lib/rpmatch.c: Likewise.
98152         * lib/safe-read.c: Likewise.
98153         * lib/safe-read.h: Likewise.
98154         * lib/safe-write.c: Likewise.
98155         * lib/safe-write.h: Likewise.
98156         * lib/same-inode.h: Likewise.
98157         * lib/same.c: Likewise.
98158         * lib/same.h: Likewise.
98159         * lib/save-cwd.c: Likewise.
98160         * lib/save-cwd.h: Likewise.
98161         * lib/savedir.c: Likewise.
98162         * lib/savedir.h: Likewise.
98163         * lib/savewd.c: Likewise.
98164         * lib/savewd.h: Likewise.
98165         * lib/search.in.h: Likewise.
98166         * lib/setenv.c: Likewise.
98167         * lib/setenv.h: Likewise.
98168         * lib/settime.c: Likewise.
98169         * lib/sh-quote.c: Likewise.
98170         * lib/sh-quote.h: Likewise.
98171         * lib/sig2str.c: Likewise.
98172         * lib/sig2str.h: Likewise.
98173         * lib/signal.in.h: Likewise.
98174         * lib/signbitd.c: Likewise.
98175         * lib/signbitf.c: Likewise.
98176         * lib/signbitl.c: Likewise.
98177         * lib/sigprocmask.c: Likewise.
98178         * lib/sincosl.c: Likewise.
98179         * lib/sleep.c: Likewise.
98180         * lib/sprintf.c: Likewise.
98181         * lib/sqrtl.c: Likewise.
98182         * lib/stat-time.h: Likewise.
98183         * lib/stdio--.h: Likewise.
98184         * lib/stdio-safer.h: Likewise.
98185         * lib/stdlib--.h: Likewise.
98186         * lib/stdlib-safer.h: Likewise.
98187         * lib/stdlib.in.h: Likewise.
98188         * lib/stpcpy.c: Likewise.
98189         * lib/stpncpy.c: Likewise.
98190         * lib/strchrnul.c: Likewise.
98191         * lib/strcspn.c: Likewise.
98192         * lib/strerror.c: Likewise.
98193         * lib/strftime.c: Likewise.
98194         * lib/strftime.h: Likewise.
98195         * lib/striconveh.c: Likewise.
98196         * lib/striconveh.h: Likewise.
98197         * lib/striconveha.c: Likewise.
98198         * lib/striconveha.h: Likewise.
98199         * lib/stripslash.c: Likewise.
98200         * lib/strnlen1.c: Likewise.
98201         * lib/strnlen1.h: Likewise.
98202         * lib/strtod.c: Likewise.
98203         * lib/strtoimax.c: Likewise.
98204         * lib/strtok_r.c: Likewise.
98205         * lib/strtol.c: Likewise.
98206         * lib/strtoll.c: Likewise.
98207         * lib/strtoul.c: Likewise.
98208         * lib/strtoull.c: Likewise.
98209         * lib/sysexits.in.h: Likewise.
98210         * lib/tempname.c: Likewise.
98211         * lib/tempname.h: Likewise.
98212         * lib/timespec.h: Likewise.
98213         * lib/tls.c: Likewise.
98214         * lib/tls.h: Likewise.
98215         * lib/tmpdir.c: Likewise.
98216         * lib/tmpdir.h: Likewise.
98217         * lib/tmpfile-safer.c: Likewise.
98218         * lib/tmpfile.c: Likewise.
98219         * lib/trigl.c: Likewise.
98220         * lib/trigl.h: Likewise.
98221         * lib/trim.c: Likewise.
98222         * lib/trim.h: Likewise.
98223         * lib/trunc.c: Likewise.
98224         * lib/truncf.c: Likewise.
98225         * lib/truncl.c: Likewise.
98226         * lib/tsearch.c: Likewise.
98227         * lib/unicodeio.c: Likewise.
98228         * lib/unicodeio.h: Likewise.
98229         * lib/unistd--.h: Likewise.
98230         * lib/unistd-safer.h: Likewise.
98231         * lib/unistdio/ulc-fprintf.c: Likewise.
98232         * lib/unistdio/ulc-vfprintf.c: Likewise.
98233         * lib/unlinkdir.c: Likewise.
98234         * lib/unlinkdir.h: Likewise.
98235         * lib/unlocked-io.h: Likewise.
98236         * lib/unsetenv.c: Likewise.
98237         * lib/userspec.c: Likewise.
98238         * lib/utime.c: Likewise.
98239         * lib/utimecmp.c: Likewise.
98240         * lib/utimecmp.h: Likewise.
98241         * lib/utimens.c: Likewise.
98242         * lib/verify.h: Likewise.
98243         * lib/verror.c: Likewise.
98244         * lib/verror.h: Likewise.
98245         * lib/version-etc-fsf.c: Likewise.
98246         * lib/version-etc.c: Likewise.
98247         * lib/version-etc.h: Likewise.
98248         * lib/vfprintf.c: Likewise.
98249         * lib/vprintf.c: Likewise.
98250         * lib/vsprintf.c: Likewise.
98251         * lib/w32spawn.h: Likewise.
98252         * lib/wait-process.c: Likewise.
98253         * lib/wait-process.h: Likewise.
98254         * lib/wcwidth.c: Likewise.
98255         * lib/write-any-file.c: Likewise.
98256         * lib/xalloc-die.c: Likewise.
98257         * lib/xalloc.h: Likewise.
98258         * lib/xasprintf.c: Likewise.
98259         * lib/xgetcwd.c: Likewise.
98260         * lib/xgetcwd.h: Likewise.
98261         * lib/xgetdomainname.c: Likewise.
98262         * lib/xgetdomainname.h: Likewise.
98263         * lib/xgethostname.c: Likewise.
98264         * lib/xmalloc.c: Likewise.
98265         * lib/xmalloca.c: Likewise.
98266         * lib/xmalloca.h: Likewise.
98267         * lib/xmemcoll.c: Likewise.
98268         * lib/xnanosleep.c: Likewise.
98269         * lib/xreadlink.c: Likewise.
98270         * lib/xreadlink.h: Likewise.
98271         * lib/xsetenv.c: Likewise.
98272         * lib/xsetenv.h: Likewise.
98273         * lib/xstriconv.c: Likewise.
98274         * lib/xstriconv.h: Likewise.
98275         * lib/xstrndup.c: Likewise.
98276         * lib/xstrndup.h: Likewise.
98277         * lib/xstrtod.c: Likewise.
98278         * lib/xstrtod.h: Likewise.
98279         * lib/xstrtol-error.c: Likewise.
98280         * lib/xstrtol.c: Likewise.
98281         * lib/xstrtol.h: Likewise.
98282         * lib/xtime.h: Likewise.
98283         * lib/xvasprintf.c: Likewise.
98284         * lib/xvasprintf.h: Likewise.
98285         * lib/yesno.c: Likewise.
98286         * lib/yesno.h: Likewise.
98287         * posix-modules: Likewise.
98288         * tests/test-alloca-opt.c: Likewise.
98289         * tests/test-arcfour.c: Likewise.
98290         * tests/test-arctwo.c: Likewise.
98291         * tests/test-argmatch.c: Likewise.
98292         * tests/test-argp-2.sh: Likewise.
98293         * tests/test-argp.c: Likewise.
98294         * tests/test-arpa_inet.c: Likewise.
98295         * tests/test-array_list.c: Likewise.
98296         * tests/test-array_oset.c: Likewise.
98297         * tests/test-atexit.c: Likewise.
98298         * tests/test-avltree_list.c: Likewise.
98299         * tests/test-avltree_oset.c: Likewise.
98300         * tests/test-avltreehash_list.c: Likewise.
98301         * tests/test-base64.c: Likewise.
98302         * tests/test-binary-io.c: Likewise.
98303         * tests/test-byteswap.c: Likewise.
98304         * tests/test-c-ctype.c: Likewise.
98305         * tests/test-c-strcasecmp.c: Likewise.
98306         * tests/test-c-strcasestr.c: Likewise.
98307         * tests/test-c-strncasecmp.c: Likewise.
98308         * tests/test-c-strstr.c: Likewise.
98309         * tests/test-canonicalize-lgpl.c: Likewise.
98310         * tests/test-canonicalize.c: Likewise.
98311         * tests/test-carray_list.c: Likewise.
98312         * tests/test-ceilf.c: Likewise.
98313         * tests/test-ceill.c: Likewise.
98314         * tests/test-count-one-bits.c: Likewise.
98315         * tests/test-crc.c: Likewise.
98316         * tests/test-dirname.c: Likewise.
98317         * tests/test-fbufmode.c: Likewise.
98318         * tests/test-fcntl.c: Likewise.
98319         * tests/test-fflush.c: Likewise.
98320         * tests/test-floorf.c: Likewise.
98321         * tests/test-floorl.c: Likewise.
98322         * tests/test-fopen.c: Likewise.
98323         * tests/test-fprintf-posix.c: Likewise.
98324         * tests/test-fprintf-posix.h: Likewise.
98325         * tests/test-fpurge.c: Likewise.
98326         * tests/test-freadable.c: Likewise.
98327         * tests/test-freadahead.c: Likewise.
98328         * tests/test-freading.c: Likewise.
98329         * tests/test-freopen.c: Likewise.
98330         * tests/test-frexp.c: Likewise.
98331         * tests/test-frexpl.c: Likewise.
98332         * tests/test-fseek.c: Likewise.
98333         * tests/test-fseeko.c: Likewise.
98334         * tests/test-fseterr.c: Likewise.
98335         * tests/test-fstrcmp.c: Likewise.
98336         * tests/test-ftell.c: Likewise.
98337         * tests/test-ftello.c: Likewise.
98338         * tests/test-fwritable.c: Likewise.
98339         * tests/test-fwriting.c: Likewise.
98340         * tests/test-getaddrinfo.c: Likewise.
98341         * tests/test-getpass.c: Likewise.
98342         * tests/test-gettimeofday.c: Likewise.
98343         * tests/test-hmac-md5.c: Likewise.
98344         * tests/test-hmac-sha1.c: Likewise.
98345         * tests/test-iconv.c: Likewise.
98346         * tests/test-iconvme.c: Likewise.
98347         * tests/test-inttypes.c: Likewise.
98348         * tests/test-isnan.c: Likewise.
98349         * tests/test-isnanf.c: Likewise.
98350         * tests/test-isnanl-nolibm.c: Likewise.
98351         * tests/test-isnanl.c: Likewise.
98352         * tests/test-isnanl.h: Likewise.
98353         * tests/test-ldexpl.c: Likewise.
98354         * tests/test-linked_list.c: Likewise.
98355         * tests/test-linkedhash_list.c: Likewise.
98356         * tests/test-locale.c: Likewise.
98357         * tests/test-localename.c: Likewise.
98358         * tests/test-lock.c: Likewise.
98359         * tests/test-lseek.c: Likewise.
98360         * tests/test-malloca.c: Likewise.
98361         * tests/test-math.c: Likewise.
98362         * tests/test-mbscasecmp.c: Likewise.
98363         * tests/test-mbscasestr1.c: Likewise.
98364         * tests/test-mbscasestr2.c: Likewise.
98365         * tests/test-mbscasestr3.c: Likewise.
98366         * tests/test-mbscasestr4.c: Likewise.
98367         * tests/test-mbschr.c: Likewise.
98368         * tests/test-mbscspn.c: Likewise.
98369         * tests/test-mbsncasecmp.c: Likewise.
98370         * tests/test-mbspbrk.c: Likewise.
98371         * tests/test-mbspcasecmp.c: Likewise.
98372         * tests/test-mbsrchr.c: Likewise.
98373         * tests/test-mbsspn.c: Likewise.
98374         * tests/test-mbsstr1.c: Likewise.
98375         * tests/test-mbsstr2.c: Likewise.
98376         * tests/test-mbsstr3.c: Likewise.
98377         * tests/test-md5.c: Likewise.
98378         * tests/test-memmem.c: Likewise.
98379         * tests/test-netinet_in.c: Likewise.
98380         * tests/test-open.c: Likewise.
98381         * tests/test-printf-frexp.c: Likewise.
98382         * tests/test-printf-frexpl.c: Likewise.
98383         * tests/test-printf-posix.c: Likewise.
98384         * tests/test-printf-posix.h: Likewise.
98385         * tests/test-rbtree_list.c: Likewise.
98386         * tests/test-rbtree_oset.c: Likewise.
98387         * tests/test-rbtreehash_list.c: Likewise.
98388         * tests/test-read-file.c: Likewise.
98389         * tests/test-rijndael.c: Likewise.
98390         * tests/test-search.c: Likewise.
98391         * tests/test-signbit.c: Likewise.
98392         * tests/test-sleep.c: Likewise.
98393         * tests/test-snprintf-posix.c: Likewise.
98394         * tests/test-snprintf-posix.h: Likewise.
98395         * tests/test-snprintf.c: Likewise.
98396         * tests/test-sprintf-posix.c: Likewise.
98397         * tests/test-sprintf-posix.h: Likewise.
98398         * tests/test-stat-time.c: Likewise.
98399         * tests/test-stdbool.c: Likewise.
98400         * tests/test-stdint.c: Likewise.
98401         * tests/test-stdio.c: Likewise.
98402         * tests/test-stdlib.c: Likewise.
98403         * tests/test-stpncpy.c: Likewise.
98404         * tests/test-strcasestr.c: Likewise.
98405         * tests/test-striconv.c: Likewise.
98406         * tests/test-striconveh.c: Likewise.
98407         * tests/test-striconveha.c: Likewise.
98408         * tests/test-string.c: Likewise.
98409         * tests/test-sys_select.c: Likewise.
98410         * tests/test-sys_socket.c: Likewise.
98411         * tests/test-sys_stat.c: Likewise.
98412         * tests/test-sys_time.c: Likewise.
98413         * tests/test-sysexits.c: Likewise.
98414         * tests/test-time.c: Likewise.
98415         * tests/test-tls.c: Likewise.
98416         * tests/test-trunc.c: Likewise.
98417         * tests/test-truncf.c: Likewise.
98418         * tests/test-truncl.c: Likewise.
98419         * tests/test-unistd.c: Likewise.
98420         * tests/test-vasnprintf-posix.c: Likewise.
98421         * tests/test-vasnprintf-posix2.c: Likewise.
98422         * tests/test-vasnprintf.c: Likewise.
98423         * tests/test-vasprintf-posix.c: Likewise.
98424         * tests/test-vasprintf.c: Likewise.
98425         * tests/test-verify.c: Likewise.
98426         * tests/test-vfprintf-posix.c: Likewise.
98427         * tests/test-vprintf-posix.c: Likewise.
98428         * tests/test-vsnprintf-posix.c: Likewise.
98429         * tests/test-vsnprintf.c: Likewise.
98430         * tests/test-vsprintf-posix.c: Likewise.
98431         * tests/test-wchar.c: Likewise.
98432         * tests/test-wctype.c: Likewise.
98433         * tests/test-wcwidth.c: Likewise.
98434         * tests/test-xstrtol.c: Likewise.
98435         * tests/test-xvasprintf.c: Likewise.
98436         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
98437         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
98438         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
98439         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
98440         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
98441         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
98442         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
98443         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
98444         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
98445         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
98446         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
98447         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
98448         * tests/uniname/test-uninames.c: Likewise.
98449         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
98450         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
98451         * tests/unistdio/test-u16-printf1.h: Likewise.
98452         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
98453         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
98454         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
98455         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
98456         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
98457         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
98458         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
98459         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
98460         * tests/unistdio/test-u32-printf1.h: Likewise.
98461         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
98462         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
98463         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
98464         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
98465         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
98466         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
98467         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
98468         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
98469         * tests/unistdio/test-u8-printf1.h: Likewise.
98470         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
98471         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
98472         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
98473         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
98474         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
98475         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
98476         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
98477         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
98478         * tests/unistdio/test-ulc-printf1.h: Likewise.
98479         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
98480         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
98481         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
98482         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
98483         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
98484         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
98485         * tests/uniwidth/test-u16-strwidth.c: Likewise.
98486         * tests/uniwidth/test-u16-width.c: Likewise.
98487         * tests/uniwidth/test-u32-strwidth.c: Likewise.
98488         * tests/uniwidth/test-u32-width.c: Likewise.
98489         * tests/uniwidth/test-u8-strwidth.c: Likewise.
98490         * tests/uniwidth/test-u8-width.c: Likewise.
98491         * tests/uniwidth/test-uc_width.c: Likewise.
98492         * config/srclist-update: Likewise.
98493         (fixlicense): Update to GPLv3+.
98495         Change copyright notice from LGPLv2.1+ to LGPLv3+.
98496         * tests/test-tsearch.c: Change copyright notice.
98498         Change copyright notice from LGPLv2.0+ to LGPLv3+.
98499         * lib/c-strcaseeq.h: Change copyright notice.
98500         * lib/streq.h: Likewise.
98501         * lib/uniconv.h: Likewise.
98502         * lib/uniconv/u-conv-from-enc.h: Likewise.
98503         * lib/uniconv/u-conv-to-enc.h: Likewise.
98504         * lib/uniconv/u-strconv-from-enc.h: Likewise.
98505         * lib/uniconv/u-strconv-to-enc.h: Likewise.
98506         * lib/uniconv/u16-conv-from-enc.c: Likewise.
98507         * lib/uniconv/u16-conv-to-enc.c: Likewise.
98508         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
98509         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
98510         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
98511         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
98512         * lib/uniconv/u32-conv-from-enc.c: Likewise.
98513         * lib/uniconv/u32-conv-to-enc.c: Likewise.
98514         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
98515         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
98516         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
98517         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
98518         * lib/uniconv/u8-conv-from-enc.c: Likewise.
98519         * lib/uniconv/u8-conv-to-enc.c: Likewise.
98520         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
98521         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
98522         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
98523         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
98524         * lib/uniname.h: Likewise.
98525         * lib/uniname/uniname.c: Likewise.
98526         * lib/unistdio.h: Likewise.
98527         * lib/unistdio/u-asnprintf.h: Likewise.
98528         * lib/unistdio/u-asprintf.h: Likewise.
98529         * lib/unistdio/u-printf-args.c: Likewise.
98530         * lib/unistdio/u-printf-args.h: Likewise.
98531         * lib/unistdio/u-printf-parse.h: Likewise.
98532         * lib/unistdio/u-snprintf.h: Likewise.
98533         * lib/unistdio/u-sprintf.h: Likewise.
98534         * lib/unistdio/u-vasprintf.h: Likewise.
98535         * lib/unistdio/u-vsnprintf.h: Likewise.
98536         * lib/unistdio/u-vsprintf.h: Likewise.
98537         * lib/unistdio/u16-asnprintf.c: Likewise.
98538         * lib/unistdio/u16-asprintf.c: Likewise.
98539         * lib/unistdio/u16-printf-parse.c: Likewise.
98540         * lib/unistdio/u16-snprintf.c: Likewise.
98541         * lib/unistdio/u16-sprintf.c: Likewise.
98542         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
98543         * lib/unistdio/u16-u16-asprintf.c: Likewise.
98544         * lib/unistdio/u16-u16-snprintf.c: Likewise.
98545         * lib/unistdio/u16-u16-sprintf.c: Likewise.
98546         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
98547         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
98548         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
98549         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
98550         * lib/unistdio/u16-vasnprintf.c: Likewise.
98551         * lib/unistdio/u16-vasprintf.c: Likewise.
98552         * lib/unistdio/u16-vsnprintf.c: Likewise.
98553         * lib/unistdio/u16-vsprintf.c: Likewise.
98554         * lib/unistdio/u32-asnprintf.c: Likewise.
98555         * lib/unistdio/u32-asprintf.c: Likewise.
98556         * lib/unistdio/u32-printf-parse.c: Likewise.
98557         * lib/unistdio/u32-snprintf.c: Likewise.
98558         * lib/unistdio/u32-sprintf.c: Likewise.
98559         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
98560         * lib/unistdio/u32-u32-asprintf.c: Likewise.
98561         * lib/unistdio/u32-u32-snprintf.c: Likewise.
98562         * lib/unistdio/u32-u32-sprintf.c: Likewise.
98563         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
98564         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
98565         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
98566         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
98567         * lib/unistdio/u32-vasnprintf.c: Likewise.
98568         * lib/unistdio/u32-vasprintf.c: Likewise.
98569         * lib/unistdio/u32-vsnprintf.c: Likewise.
98570         * lib/unistdio/u32-vsprintf.c: Likewise.
98571         * lib/unistdio/u8-asnprintf.c: Likewise.
98572         * lib/unistdio/u8-asprintf.c: Likewise.
98573         * lib/unistdio/u8-printf-parse.c: Likewise.
98574         * lib/unistdio/u8-snprintf.c: Likewise.
98575         * lib/unistdio/u8-sprintf.c: Likewise.
98576         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
98577         * lib/unistdio/u8-u8-asprintf.c: Likewise.
98578         * lib/unistdio/u8-u8-snprintf.c: Likewise.
98579         * lib/unistdio/u8-u8-sprintf.c: Likewise.
98580         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
98581         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
98582         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
98583         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
98584         * lib/unistdio/u8-vasnprintf.c: Likewise.
98585         * lib/unistdio/u8-vasprintf.c: Likewise.
98586         * lib/unistdio/u8-vsnprintf.c: Likewise.
98587         * lib/unistdio/u8-vsprintf.c: Likewise.
98588         * lib/unistdio/ulc-asnprintf.c: Likewise.
98589         * lib/unistdio/ulc-asprintf.c: Likewise.
98590         * lib/unistdio/ulc-printf-parse.c: Likewise.
98591         * lib/unistdio/ulc-snprintf.c: Likewise.
98592         * lib/unistdio/ulc-sprintf.c: Likewise.
98593         * lib/unistdio/ulc-vasnprintf.c: Likewise.
98594         * lib/unistdio/ulc-vasprintf.c: Likewise.
98595         * lib/unistdio/ulc-vsnprintf.c: Likewise.
98596         * lib/unistdio/ulc-vsprintf.c: Likewise.
98597         * lib/unistr.h: Likewise.
98598         * lib/unistr/u-cpy-alloc.h: Likewise.
98599         * lib/unistr/u-cpy.h: Likewise.
98600         * lib/unistr/u-endswith.h: Likewise.
98601         * lib/unistr/u-move.h: Likewise.
98602         * lib/unistr/u-set.h: Likewise.
98603         * lib/unistr/u-startswith.h: Likewise.
98604         * lib/unistr/u-stpcpy.h: Likewise.
98605         * lib/unistr/u-stpncpy.h: Likewise.
98606         * lib/unistr/u-strcat.h: Likewise.
98607         * lib/unistr/u-strcpy.h: Likewise.
98608         * lib/unistr/u-strcspn.h: Likewise.
98609         * lib/unistr/u-strdup.h: Likewise.
98610         * lib/unistr/u-strlen.h: Likewise.
98611         * lib/unistr/u-strncat.h: Likewise.
98612         * lib/unistr/u-strncpy.h: Likewise.
98613         * lib/unistr/u-strnlen.h: Likewise.
98614         * lib/unistr/u-strpbrk.h: Likewise.
98615         * lib/unistr/u-strspn.h: Likewise.
98616         * lib/unistr/u-strstr.h: Likewise.
98617         * lib/unistr/u-strtok.h: Likewise.
98618         * lib/unistr/u16-check.c: Likewise.
98619         * lib/unistr/u16-chr.c: Likewise.
98620         * lib/unistr/u16-cmp.c: Likewise.
98621         * lib/unistr/u16-cpy-alloc.c: Likewise.
98622         * lib/unistr/u16-cpy.c: Likewise.
98623         * lib/unistr/u16-endswith.c: Likewise.
98624         * lib/unistr/u16-mblen.c: Likewise.
98625         * lib/unistr/u16-mbsnlen.c: Likewise.
98626         * lib/unistr/u16-mbtouc-aux.c: Likewise.
98627         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
98628         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
98629         * lib/unistr/u16-mbtouc.c: Likewise.
98630         * lib/unistr/u16-mbtoucr.c: Likewise.
98631         * lib/unistr/u16-move.c: Likewise.
98632         * lib/unistr/u16-next.c: Likewise.
98633         * lib/unistr/u16-prev.c: Likewise.
98634         * lib/unistr/u16-set.c: Likewise.
98635         * lib/unistr/u16-startswith.c: Likewise.
98636         * lib/unistr/u16-stpcpy.c: Likewise.
98637         * lib/unistr/u16-stpncpy.c: Likewise.
98638         * lib/unistr/u16-strcat.c: Likewise.
98639         * lib/unistr/u16-strchr.c: Likewise.
98640         * lib/unistr/u16-strcmp.c: Likewise.
98641         * lib/unistr/u16-strcpy.c: Likewise.
98642         * lib/unistr/u16-strcspn.c: Likewise.
98643         * lib/unistr/u16-strdup.c: Likewise.
98644         * lib/unistr/u16-strlen.c: Likewise.
98645         * lib/unistr/u16-strmblen.c: Likewise.
98646         * lib/unistr/u16-strmbtouc.c: Likewise.
98647         * lib/unistr/u16-strncat.c: Likewise.
98648         * lib/unistr/u16-strncmp.c: Likewise.
98649         * lib/unistr/u16-strncpy.c: Likewise.
98650         * lib/unistr/u16-strnlen.c: Likewise.
98651         * lib/unistr/u16-strpbrk.c: Likewise.
98652         * lib/unistr/u16-strrchr.c: Likewise.
98653         * lib/unistr/u16-strspn.c: Likewise.
98654         * lib/unistr/u16-strstr.c: Likewise.
98655         * lib/unistr/u16-strtok.c: Likewise.
98656         * lib/unistr/u16-to-u32.c: Likewise.
98657         * lib/unistr/u16-to-u8.c: Likewise.
98658         * lib/unistr/u16-uctomb-aux.c: Likewise.
98659         * lib/unistr/u16-uctomb.c: Likewise.
98660         * lib/unistr/u32-check.c: Likewise.
98661         * lib/unistr/u32-chr.c: Likewise.
98662         * lib/unistr/u32-cmp.c: Likewise.
98663         * lib/unistr/u32-cpy-alloc.c: Likewise.
98664         * lib/unistr/u32-cpy.c: Likewise.
98665         * lib/unistr/u32-endswith.c: Likewise.
98666         * lib/unistr/u32-mblen.c: Likewise.
98667         * lib/unistr/u32-mbsnlen.c: Likewise.
98668         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
98669         * lib/unistr/u32-mbtouc.c: Likewise.
98670         * lib/unistr/u32-mbtoucr.c: Likewise.
98671         * lib/unistr/u32-move.c: Likewise.
98672         * lib/unistr/u32-next.c: Likewise.
98673         * lib/unistr/u32-prev.c: Likewise.
98674         * lib/unistr/u32-set.c: Likewise.
98675         * lib/unistr/u32-startswith.c: Likewise.
98676         * lib/unistr/u32-stpcpy.c: Likewise.
98677         * lib/unistr/u32-stpncpy.c: Likewise.
98678         * lib/unistr/u32-strcat.c: Likewise.
98679         * lib/unistr/u32-strchr.c: Likewise.
98680         * lib/unistr/u32-strcmp.c: Likewise.
98681         * lib/unistr/u32-strcpy.c: Likewise.
98682         * lib/unistr/u32-strcspn.c: Likewise.
98683         * lib/unistr/u32-strdup.c: Likewise.
98684         * lib/unistr/u32-strlen.c: Likewise.
98685         * lib/unistr/u32-strmblen.c: Likewise.
98686         * lib/unistr/u32-strmbtouc.c: Likewise.
98687         * lib/unistr/u32-strncat.c: Likewise.
98688         * lib/unistr/u32-strncmp.c: Likewise.
98689         * lib/unistr/u32-strncpy.c: Likewise.
98690         * lib/unistr/u32-strnlen.c: Likewise.
98691         * lib/unistr/u32-strpbrk.c: Likewise.
98692         * lib/unistr/u32-strrchr.c: Likewise.
98693         * lib/unistr/u32-strspn.c: Likewise.
98694         * lib/unistr/u32-strstr.c: Likewise.
98695         * lib/unistr/u32-strtok.c: Likewise.
98696         * lib/unistr/u32-to-u16.c: Likewise.
98697         * lib/unistr/u32-to-u8.c: Likewise.
98698         * lib/unistr/u32-uctomb.c: Likewise.
98699         * lib/unistr/u8-check.c: Likewise.
98700         * lib/unistr/u8-chr.c: Likewise.
98701         * lib/unistr/u8-cmp.c: Likewise.
98702         * lib/unistr/u8-cpy-alloc.c: Likewise.
98703         * lib/unistr/u8-cpy.c: Likewise.
98704         * lib/unistr/u8-endswith.c: Likewise.
98705         * lib/unistr/u8-mblen.c: Likewise.
98706         * lib/unistr/u8-mbsnlen.c: Likewise.
98707         * lib/unistr/u8-mbtouc-aux.c: Likewise.
98708         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
98709         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
98710         * lib/unistr/u8-mbtouc.c: Likewise.
98711         * lib/unistr/u8-mbtoucr.c: Likewise.
98712         * lib/unistr/u8-move.c: Likewise.
98713         * lib/unistr/u8-next.c: Likewise.
98714         * lib/unistr/u8-prev.c: Likewise.
98715         * lib/unistr/u8-set.c: Likewise.
98716         * lib/unistr/u8-startswith.c: Likewise.
98717         * lib/unistr/u8-stpcpy.c: Likewise.
98718         * lib/unistr/u8-stpncpy.c: Likewise.
98719         * lib/unistr/u8-strcat.c: Likewise.
98720         * lib/unistr/u8-strchr.c: Likewise.
98721         * lib/unistr/u8-strcmp.c: Likewise.
98722         * lib/unistr/u8-strcpy.c: Likewise.
98723         * lib/unistr/u8-strcspn.c: Likewise.
98724         * lib/unistr/u8-strdup.c: Likewise.
98725         * lib/unistr/u8-strlen.c: Likewise.
98726         * lib/unistr/u8-strmblen.c: Likewise.
98727         * lib/unistr/u8-strmbtouc.c: Likewise.
98728         * lib/unistr/u8-strncat.c: Likewise.
98729         * lib/unistr/u8-strncmp.c: Likewise.
98730         * lib/unistr/u8-strncpy.c: Likewise.
98731         * lib/unistr/u8-strnlen.c: Likewise.
98732         * lib/unistr/u8-strpbrk.c: Likewise.
98733         * lib/unistr/u8-strrchr.c: Likewise.
98734         * lib/unistr/u8-strspn.c: Likewise.
98735         * lib/unistr/u8-strstr.c: Likewise.
98736         * lib/unistr/u8-strtok.c: Likewise.
98737         * lib/unistr/u8-to-u16.c: Likewise.
98738         * lib/unistr/u8-to-u32.c: Likewise.
98739         * lib/unistr/u8-uctomb-aux.c: Likewise.
98740         * lib/unistr/u8-uctomb.c: Likewise.
98741         * lib/unitypes.h: Likewise.
98742         * lib/uniwidth.h: Likewise.
98743         * lib/uniwidth/cjk.h: Likewise.
98744         * lib/uniwidth/u16-strwidth.c: Likewise.
98745         * lib/uniwidth/u16-width.c: Likewise.
98746         * lib/uniwidth/u32-strwidth.c: Likewise.
98747         * lib/uniwidth/u32-width.c: Likewise.
98748         * lib/uniwidth/u8-strwidth.c: Likewise.
98749         * lib/uniwidth/u8-width.c: Likewise.
98750         * lib/uniwidth/width.c: Likewise.
98752 2007-10-07  Bruno Haible  <bruno@clisp.org>
98754         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
98755         The file is still under LGPL (see modules/inttypes).
98757 2007-10-06  Bruno Haible  <bruno@clisp.org>
98759         * modules/trunc (Dependencies): Add 'extensions'.
98760         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
98761         Reported by Ben Pfaff <blp@gnu.org>.
98763 2007-10-06  Bruno Haible  <bruno@clisp.org>
98765         * modules/freopen-tests: New file.
98766         * tests/test-freopen.c: New file.
98768         * modules/fopen-tests: New file.
98769         * tests/test-fopen.c: New file.
98771         * modules/fopen: New file.
98772         * lib/fopen.c: New file.
98773         * m4/fopen.m4: New file.
98774         * modules/freopen: New file.
98775         * lib/freopen.c: New file.
98776         * m4/freopen.m4: New file.
98777         * lib/stdio.in.h (fopen, freopen): New declarations.
98778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
98779         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98780         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
98781         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98782         * doc/functions/fopen.texi: Mention the 'fopen' module.
98783         * doc/functions/freopen.texi: Mention the 'freopen' module.
98785 2007-10-06  Bruno Haible  <bruno@clisp.org>
98787         * modules/open-tests: New file.
98788         * tests/test-open.c: New file.
98790         * modules/open: New file.
98791         * lib/open.c: New file.
98792         * m4/open.m4: New file.
98793         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
98794         lib/open.c does.
98795         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
98796         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
98797         macros.
98798         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
98799         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
98800         REPLACE_OPEN.
98801         * doc/functions/open.texi: Mention the 'open' module.
98803 2007-10-04  Bruno Haible  <bruno@clisp.org>
98805         * modules/ceill-tests: New file.
98806         * tests/test-ceill.c: New file.
98808         * modules/ceill: New file.
98809         * lib/ceill.c: Replace entire file.
98810         * m4/ceill.m4: New file.
98811         * lib/math.in.h (ceill): Replace declaration.
98812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
98813         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
98814         * doc/functions/ceill.texi: Mention the 'ceill' module.
98815         * modules/mathl (Files): Remove lib/ceill.c.
98816         (Depends-on): Add ceill.
98818 2007-10-04  Bruno Haible  <bruno@clisp.org>
98820         * modules/ceilf-tests: New file.
98821         * tests/test-ceilf.c: New file.
98823         * modules/ceilf: New file.
98824         * lib/ceil.c: New file.
98825         * lib/ceilf.c: New file.
98826         * m4/ceilf.m4: New file.
98827         * lib/math.in.h (ceilf): New declaration.
98828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
98829         HAVE_DECL_CEILF.
98830         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
98831         HAVE_DECL_CEILF.
98832         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
98834 2007-10-04  Bruno Haible  <bruno@clisp.org>
98836         * modules/floorl-tests: New file.
98837         * tests/test-floorl.c: New file.
98839         * modules/floorl: New file.
98840         * lib/floorl.c: Replace entire file.
98841         * m4/floorl.m4: New file.
98842         * lib/math.in.h (floorl): Replace declaration.
98843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
98844         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
98845         * doc/functions/floorl.texi: Mention the 'floorl' module.
98846         * modules/mathl (Files): Remove lib/floorl.c.
98847         (Depends-on): Add floorl.
98849 2007-10-04  Bruno Haible  <bruno@clisp.org>
98851         * modules/floorf-tests: New file.
98852         * tests/test-floorf.c: New file.
98854         * modules/floorf: New file.
98855         * lib/floor.c: New file.
98856         * lib/floorf.c: New file.
98857         * m4/floorf.m4: New file.
98858         * lib/math.in.h (floorf): New declaration.
98859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
98860         HAVE_DECL_FLOORF.
98861         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
98862         HAVE_DECL_FLOORF.
98863         * doc/functions/floorf.texi: Mention the 'floorf' module.
98865 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
98866             Bruno Haible  <bruno@clisp.org>
98868         Advertise for the Git server instead of the CVS server.
98869         * doc/gnulib-intro.texi (Steady Development): Mention the Git
98870         repository instead of the CVS one.
98871         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
98872         about all VCS systems generically.
98873         * doc/gnulib.texi (Introduction): Capitalize `Git'.
98875 2007-10-04  Bruno Haible  <bruno@clisp.org>
98877         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
98878         means.
98879         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
98881 2007-10-04  Bruno Haible  <bruno@clisp.org>
98883         * modules/truncl-tests: New file.
98884         * tests/test-truncl.c: New file.
98886         * modules/truncl: New file.
98887         * lib/truncl.c: New file.
98888         * m4/truncl.m4: New file.
98889         * lib/math.in.h (truncl): New declaration.
98890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
98891         HAVE_DECL_TRUNCL.
98892         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
98893         HAVE_DECL_TRUNCL.
98894         * doc/functions/truncl.texi: Mention the 'truncl' module.
98896 2007-10-04  Bruno Haible  <bruno@clisp.org>
98898         * modules/truncf-tests: New file.
98899         * tests/test-truncf.c: New file.
98901         * modules/truncf: New file.
98902         * lib/trunc.c: Make paramerizable through USE_* macros.
98903         * lib/truncf.c: New file.
98904         * m4/truncf.m4: New file.
98905         * lib/math.in.h (truncf): New declaration.
98906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98907         HAVE_DECL_TRUNCF.
98908         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98909         HAVE_DECL_TRUNCF.
98910         * doc/functions/truncf.texi: Mention the 'truncf' module.
98912 2007-10-03  Bruno Haible  <bruno@clisp.org>
98914         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98915         augmentation also for tests modules.
98916         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98917         * modules/atexit-tests (Makefile.am): Likewise.
98918         * modules/binary-io-tests (Makefile.am): Likewise.
98919         * modules/c-strcase-tests (Makefile.am): Likewise.
98920         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98921         * modules/canonicalize-tests (Makefile.am): Likewise.
98922         * modules/closein-tests (Makefile.am): Likewise.
98923         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98924         * modules/freadahead-tests (Makefile.am): Likewise.
98925         * modules/fseek-tests (Makefile.am): Likewise.
98926         * modules/fseeko-tests (Makefile.am): Likewise.
98927         * modules/ftell-tests (Makefile.am): Likewise.
98928         * modules/ftello-tests (Makefile.am): Likewise.
98929         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98930         * modules/isnanl-tests (Makefile.am): Likewise.
98931         * modules/lseek-tests (Makefile.am): Likewise.
98932         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98933         * modules/mbscasestr-tests (Makefile.am): Likewise.
98934         * modules/mbschr-tests (Makefile.am): Likewise.
98935         * modules/mbscspn-tests (Makefile.am): Likewise.
98936         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98937         * modules/mbspbrk-tests (Makefile.am): Likewise.
98938         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98939         * modules/mbsrchr-tests (Makefile.am): Likewise.
98940         * modules/mbsspn-tests (Makefile.am): Likewise.
98941         * modules/mbsstr-tests (Makefile.am): Likewise.
98942         * modules/printf-posix-tests (Makefile.am): Likewise.
98943         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98944         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98945         * modules/tsearch-tests (Makefile.am): Likewise.
98946         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98947         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98948         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98949         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98950         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98951         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98952         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98953         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98954         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98955         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98956         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98957         * modules/xstrtol-tests (Makefile.am): Likewise.
98958         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98959         * modules/yesno-tests (Makefile.am): Likewise.
98961 2007-10-03  Bruno Haible  <bruno@clisp.org>
98963         * modules/trunc-tests: New file.
98964         * tests/test-trunc.c: New file.
98966         * modules/trunc: New file.
98967         * lib/trunc.c: New file.
98968         * m4/trunc.m4: New file.
98969         * lib/math.in.h (trunc): New declaration.
98970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98971         HAVE_DECL_TRUNC.
98972         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98973         HAVE_DECL_TRUNC.
98974         * doc/functions/trunc.texi: Mention the 'trunc' module.
98976 2007-10-03  Bruno Haible  <bruno@clisp.org>
98978         * tests/test-fpending.c: New file, mostly copied
98979         from coreutils/lib/t-fpending.c.
98980         * modules/fpending-tests: New file.
98982 2007-10-03  Bruno Haible  <bruno@clisp.org>
98984         Port the stdio extensions to QNX (untested).
98985         * lib/fseterr.c (fseterr): Add support for QNX.
98986         * lib/fbufmode.c (fbufmode): Likewise.
98987         * lib/freadable.c (freadable): Likewise.
98988         * lib/fwritable.c (fwritable): Likewise.
98989         * lib/freading.c (freading): Likewise.
98990         * lib/fwriting.c (fwriting): Likewise.
98991         * lib/freadahead.c (freadahed): Likewise.
98992         * lib/fpurge.c (fpurge): Likewise.
98993         * lib/fseeko.c (rpl_fseeko): Likewise.
98995 2007-10-03  Bruno Haible  <bruno@clisp.org>
98996             Jim Meyering  <jim@meyering.net>
98997             Eric Blake  <ebb9@byu.net>
98999         * doc/relocatable.texi: Use @command instead of @program.
99001 2007-10-02  Jim Meyering  <jim@meyering.net>
99003         Perform one more "_.h" -> ".in.h" substitution.
99004         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
99005         instead of unistd_.h here, too.
99007 2007-10-01  Bruno Haible  <bruno@clisp.org>
99009         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
99010         Needed for the alloca-opt module.
99012 2007-09-30  Bruno Haible  <bruno@clisp.org>
99014         * lib/alloca.in.h: Renamed from lib/alloca_.h.
99015         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
99016         alloca_.h.
99017         * lib/argz.in.h: Renamed from lib/argz_.h.
99018         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
99019         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
99020         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
99021         byteswap_.h.
99022         * lib/dirent.in.h: Renamed from lib/dirent_.h.
99023         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
99024         dirent_.h.
99025         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
99026         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
99027         fcntl_.h.
99028         * lib/float.in.h: Renamed from lib/float_.h.
99029         * modules/float (Files, Makefile.am): Use float.in.h instead of
99030         float_.h.
99031         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
99032         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
99033         fnmatch_.h.
99034         * lib/getopt.in.h: Renamed from lib/getopt_.h.
99035         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
99036         getopt_.h.
99037         * lib/glob.in.h: Renamed from lib/glob_.h.
99038         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
99039         * lib/iconv.in.h: Renamed from lib/iconv_.h.
99040         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
99041         iconv_.h.
99042         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
99043         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
99044         inttypes_.h.
99045         * lib/locale.in.h: Renamed from lib/locale_.h.
99046         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
99047         locale_.h.
99048         * lib/math.in.h: Renamed from lib/math_.h.
99049         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
99050         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
99051         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
99052         of netinet_in_.h. Add dependency.
99053         * lib/poll.in.h: Renamed from lib/poll_.h.
99054         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
99055         * lib/search.in.h: Renamed from lib/search_.h.
99056         * modules/search (Files, Makefile.am): Use search.in.h instead of
99057         search_.h.
99058         * lib/signal.in.h: Renamed from lib/signal_.h.
99059         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
99060         _signal.h.
99061         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
99062         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
99063         stdbool_.h.
99064         * lib/stdint.in.h: Renamed from lib/stdint_.h.
99065         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
99066         stdint_.h.
99067         * lib/stdio.in.h: Renamed from lib/stdio_.h.
99068         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
99069         stdio_.h.
99070         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
99071         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
99072         stdlib_.h.
99073         * lib/string.in.h: Renamed from lib/string_.h.
99074         * modules/string (Files, Makefile.am): Use string.in.h instead of
99075         string_.h.
99076         * doc/gnulib-tool.texi (Initial import): Update.
99077         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
99078         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
99079         of sys_select_.h. Add dependency.
99080         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
99081         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
99082         of sys_socket_.h.
99083         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
99084         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
99085         sys_stat_.h.
99086         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
99087         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
99088         sys_time_.h.
99089         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
99090         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
99091         sysexits_.h.
99092         * lib/time.in.h: Renamed from lib/time_.h.
99093         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
99094         * lib/unistd.in.h: Renamed from lib/unistd_.h.
99095         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
99096         unistd_.h.
99097         * lib/wchar.in.h: Renamed from lib/wchar_.h.
99098         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
99099         wchar_.h.
99100         * lib/wctype.in.h: Renamed from lib/wctype_.h.
99101         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
99102         wctype_.h.
99103         * build-aux/bootstrap (slurp): Update.
99104         * lib/.cppi-disable: Update.
99106 2007-09-30  Bruno Haible  <bruno@clisp.org>
99108         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
99109         Needed on BeOS.
99111 2007-09-30  Bruno Haible  <bruno@clisp.org>
99113         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
99115 2007-09-29  Bruno Haible  <bruno@clisp.org>
99117         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
99119 2007-09-29  Bruno Haible  <bruno@clisp.org>
99121         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
99122         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
99123         * build-aux/install-reloc: Compile also areadlink.c.
99124         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
99126 2007-09-29  Bruno Haible  <bruno@clisp.org>
99128         * gnulib-tool (func_emit_initmacro_done): Indentation.
99130 2007-09-29  Bruno Haible  <bruno@clisp.org>
99132         * README: Add CVS checkout update instructions.
99133         Info from Bob Proulx <bob@proulx.com>.
99135 2007-09-28  Eric Blake  <ebb9@byu.net>
99137         Provide move-if-change.
99138         * build-aux/move-if-change: New file, based on best practice
99139         rather than any canonical upstream location.
99141 2007-09-28  Jim Meyering  <jim@meyering.net>
99143         Fix canonicalize loop-detection corner case.
99144         Do not attempt to stat the symlink values stored via seen_triple.
99145         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
99146         on linux-2.6.18, (but not 2.6.22).
99147         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
99148         triple_compare.  The former compares dev,ino,filename, while the latter
99149         would actually stat dirname(filename) when dev and ino were equal.
99150         * lib/hash-triple.c: Install <string.h>.
99151         (STREQ): Define.
99152         (triple_compare_ino_str): New function.
99153         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
99155 2007-09-28  Eric Blake  <ebb9@byu.net>
99157         Enforce that AC_REPLACE_FUNCS files exist.
99158         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
99159         override check for typos.
99161         Fix test-closein on Solaris 10.
99162         * tests/test-closein.c (main): Don't assume stdin can be inherited
99163         closed on all systems.
99164         * tests/test-closein.sh: Likewise.
99165         Reported by Piotr Tarnowski.
99167 2007-09-28  Jim Meyering  <jim@meyering.net>
99169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
99171 2007-09-27  Jim Meyering  <jim@meyering.net>
99173         canonicalize: Avoid a false-positive cycle failure.
99174         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
99175         Sort.  Remove cycle-check.
99176         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
99177         not cycle-check.h.
99178         (seen_triple): New function.
99179         (canonicalize_filename_mode): Use it instead of cycle-check.
99180         * tests/test-canonicalize.c: Add a test for this bug.
99181         * tests/test-canonicalize.sh: Set up and run the test.
99183         New module, file-set, from coreutils.
99184         * modules/file-set: Define it.
99185         * lib/file-set.c, lib/file-set.h: Implement.
99187         New module, hash-triple, from coreutils.
99188         * modules/hash-triple: Define it.
99189         * lib/hash-triple.c, lib/hash-triple.h: Implement.
99191 2007-09-25  Eric Blake  <ebb9@byu.net>
99193         Fix strerror on Interix.
99194         * lib/string_.h (strerror): Declare replacement.
99195         * doc/functions/strerror.texi (strerror): Document the Interix
99196         shortcoming.
99197         * modules/string (Makefile.am): Support new hooks.
99198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
99199         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
99200         gl_FUNC_STRERROR_SEPARATE.
99201         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
99202         * lib/strerror.c (rpl_strerror): Provide replacement.
99203         * modules/strerror (Depends-on): Add string.
99204         (configure.ac): Detect use of module.
99205         * tests/test-strerror.c: New file.
99206         * modules/strerror-tests: New test module.
99207         * modules/argp (Depends-on): Add strerror.
99208         * modules/error (Depends-on): Likewise.
99209         Reported by Martin Koeppe.
99211 2007-09-24  Bruno Haible  <bruno@clisp.org>
99213         * README: Update git instructions.
99215 2007-09-24  Eric Blake  <ebb9@byu.net>
99217         Revert fpending breakage from 2007-09-08.
99218         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
99219         __fpending.c.
99221 2007-09-24  Jim Meyering  <jim@meyering.net>
99223         filenamecat.c: Add a test.
99224         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
99225         showing how the function works when DIR is the empty string.
99227 2007-09-21  Simon Josefsson  <simon@josefsson.org>
99229         * tests/test-canonicalize.sh: Turn on executable bit.
99231 2007-09-19  Eric Blake  <ebb9@byu.net>
99233         * README: Update CVS instructions.
99235 2007-09-18  Bruno Haible  <bruno@clisp.org>
99237         * modules/areadlink: New file.
99238         * lib/areadlink.h (areadlink): New declaration.
99239         * lib/areadlink.c: New file, based on lib/xreadlink.c.
99241 2007-09-17  Jim Meyering  <jim@meyering.net>
99243         * lib/savewd.c (ESTALE) [!defined]: Define.
99244         Reported to be required on Interix by Martin Koeppe.
99246 2007-09-17  Bruno Haible  <bruno@clisp.org>
99248         * gnulib-tool (func_version): Use $version.
99250 2007-09-16  Bruno Haible  <bruno@clisp.org>
99252         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
99253         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
99254         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
99255         Reported by Greg Schafer <gschafer@zip.com.au>.
99257 2007-09-15  Bruno Haible  <bruno@clisp.org>
99259         * gnulib-tool (sed): Try a little harder to make bash understand the
99260         alias.
99261         Reported by Bruce Korb <bruce.korb@gmail.com>.
99263 2007-09-13  Eric Blake  <ebb9@byu.net>
99265         * ChangeLog: Remove conflict markers.
99267 2007-09-13  Simon Josefsson  <simon@josefsson.org>
99269         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
99270         Reported by Bruno Haible <bruno@clisp.org>.
99272 2007-09-12  Bruno Haible  <bruno@clisp.org>
99274         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
99275         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
99276         is not defined.
99278 2007-09-12  Eric Blake  <ebb9@byu.net>
99280         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
99281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
99282         Autoconf definition.
99283         * modules/euidaccess (Depends-on): Add extensions, for
99284         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
99285         * modules/fnmatch (Depends-on): Likewise.
99286         * modules/getaddrinfo (Depends-on): Likewise.
99287         * modules/getdelim (Depends-on): Likewise.
99288         * modules/getline (Depends-on): Likewise.
99289         * modules/getsubopt (Depends-on): Likewise.
99290         * modules/gettext (Depends-on): Likewise.
99291         * modules/group-member (Depends-on): Likewise.
99292         * modules/mbchar (Depends-on): Likewise.
99293         * modules/memmem (Depends-on): Likewise.
99294         * modules/mempcpy (Depends-on): Likewise.
99295         * modules/memrchr (Depends-on): Likewise.
99296         * modules/pagealign_alloc (Depends-on): Likewise.
99297         * modules/readutmp (Depends-on): Likewise.
99298         * modules/stpcpy (Depends-on): Likewise.
99299         * modules/stpncpy (Depends-on): Likewise.
99300         * modules/strchrnul (Depends-on): Likewise.
99301         * modules/strndup (Depends-on): Likewise.
99302         * modules/strsep (Depends-on): Likewise.
99303         * modules/strverscmp (Depends-on): Likewise.
99304         * modules/vasprintf (Depends-on): Likewise.
99305         * modules/wcwidth (Depends-on): Likewise.
99306         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
99307         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
99308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
99309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
99310         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
99311         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
99312         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
99313         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99314         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
99315         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
99316         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
99317         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
99318         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
99319         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
99320         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
99321         * m4/readutmp.m4 (gl_READUTMP): Likewise.
99322         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99323         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
99324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
99325         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
99326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
99327         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
99328         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
99329         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
99330         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
99331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
99332         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
99333         so that lock.m4 can be used in gettext without extensions module.
99335 2007-09-11  Bruno Haible  <bruno@clisp.org>
99337         * m4/isc-posix.m4: Remove file.
99338         Suggested by Eric Blake.
99340 2007-09-11  Eric Blake  <ebb9@byu.net>
99342         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
99344 2007-09-10  Bruno Haible  <bruno@clisp.org>
99346         * posix-modules: Fix typo in error message.
99347         Reported by Matt <mkraai@beckman.com>.
99349 2007-09-09  Bruno Haible  <bruno@clisp.org>
99351         * doc/functions/getdelim.texi: Update list of platforms lacking the
99352         function.
99353         * doc/functions/getline.texi: Likewise.
99355 2007-09-09  Jim Meyering  <jim@meyering.net>
99357         * lib/hash.c (hash_initialize): Detect calloc failure.
99358         Reported by Bruno Haible.
99360 2007-09-09  Bruno Haible  <bruno@clisp.org>
99362         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
99363         malloc or realloc fails.
99365 2007-09-09  Bruno Haible  <bruno@clisp.org>
99367         * modules/getcwd (Depends-on): Add malloc-posix.
99368         * modules/glob (Depends-on): Likewise.
99369         * modules/putenv (Depends-on): Likewise.
99370         * modules/strdup (Depends-on): Likewise.
99371         * modules/getdelim (Depends-on): Add realloc-posix.
99372         * modules/read-file (Depends-on): Likewise.
99374 2007-09-09  Bruno Haible  <bruno@clisp.org>
99376         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
99377         (gl_FUNC_MALLOC_POSIX): Require it.
99378         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
99379         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
99380         * modules/realloc (Files): Add m4/malloc.m4.
99381         * modules/calloc (Files): Likewise.
99383 2007-09-09  Bruno Haible  <bruno@clisp.org>
99385         * modules/malloc-posix: New file.
99386         * modules/malloc (Depends-on): Add malloc-posix.
99387         * lib/malloc.c: Include errno.h.
99388         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
99389         and a POSIX-compatible malloc into a single function. Set ENOMEM
99390         when returning NULL.
99391         * m4/malloc.m4: New file.
99392         * doc/functions/malloc.texi: Mention the malloc-posix module.
99393         * lib/stdlib_.h (malloc): New declaration.
99394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
99395         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
99396         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
99397         and HAVE_MALLOC_POSIX.
99399 2007-09-09  Bruno Haible  <bruno@clisp.org>
99401         * modules/realloc-posix: New file.
99402         * modules/realloc (Depends-on): Add realloc-posix.
99403         * lib/realloc.c: Include errno.h.
99404         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
99405         and a POSIX-compatible realloc into a single function. Set ENOMEM
99406         when returning NULL.
99407         * m4/realloc.m4: New file.
99408         * doc/functions/realloc.texi: Mention the realloc-posix module.
99409         * lib/stdlib_.h (realloc): New declaration.
99410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
99411         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
99412         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
99413         and HAVE_REALLOC_POSIX.
99415 2007-09-09  Bruno Haible  <bruno@clisp.org>
99417         * modules/calloc-posix: New file.
99418         * modules/calloc (Depends-on): Add calloc-posix.
99419         * lib/calloc.c: Include errno.h.
99420         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
99421         and a POSIX-compatible calloc into a single function. Set ENOMEM
99422         when returning NULL.
99423         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
99424         * doc/functions/calloc.texi: Mention the calloc-posix module.
99425         * lib/stdlib_.h (calloc): New declaration.
99426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
99427         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
99428         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
99429         and HAVE_CALLOC_POSIX.
99431 2007-09-09  Bruno Haible  <bruno@clisp.org>
99433         Allow for modules to show an arbitrary notice.
99434         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
99435         * gnulib-tool: New option --extract-notice.
99436         (func_usage): Document it.
99437         (sed_extract_prog): Update.
99438         (func_get_notice): New function.
99439         (func_modules_notice): New function.
99440         (func_import, func_create_testdir): Invoke it.
99441         Suggested by Jim Meyering.
99443 2007-09-09  Bruno Haible  <bruno@clisp.org>
99445         * gnulib-tool: New options --verbose, --quiet.
99446         (func_usage): Document them.
99447         (verbose): New variable.
99448         (func_execute_command): New function.
99449         (func_import): Don't show the module list and the file list if
99450         $verbose < 0.
99451         (func_create_testdir): Likewise. Use func_execute_command.
99452         (func_create_megatestdir): Use func_execute_command.
99454 2007-09-08  Bruno Haible  <bruno@clisp.org>
99456         * gnulib-tool (func_import): Prefer rsync over wget when available,
99457         for fetching the PO files.
99459 2007-09-08  Bruno Haible  <bruno@clisp.org>
99461         * posix-modules: New file. Portions copied from gnulib-tool.
99462         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
99464 2007-09-08  Jim Meyering  <jim@meyering.net>
99466         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
99467         * lib/fpending.h: Rename from __fpending.h.
99468         * lib/fpending.c: Rename from __fpending.c.
99469         Include "fpending.h", not "__fpending.h".
99470         * lib/__fpending.h, lib/__fpending.c: Remove files.
99471         * modules/fpending (Files): Reflect new file names.
99472         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
99474 2007-09-08  Bruno Haible  <bruno@clisp.org>
99476         * m4/inttypes-h.m4: Remove stub file.
99478 2007-09-07  Simon Josefsson  <simon@josefsson.org>
99480         * doc/headers/stdint.texi: Discuss #include_next issue.
99482 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99484         * build-aux/bootstrap: Remove obsolete comment about wget --help.
99486 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99488         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
99489         in variable name.
99491 2007-09-03  Jim Meyering  <jim@meyering.net>
99493         New module: git-version-gen.
99494         * modules/git-version-gen: New file.
99496         Import changes from coreutils for bootstrap script.
99498         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
99500         bootstrap: uses rsync to download the .po files
99501         * build-aux/bootstrap (po_download_command_format): New global.
99502         (download_po_files): Use rsync.
99503         (update_po_files): Don't remove .po files after download,
99504         so future rsync runs can take advantage of the copies.
99506         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
99508         Solve the unnecessary-.po-file-regeneration problem once and for all.
99509         * build-aux/bootstrap (download_po_files): New function, renamed from
99510         get_translations.  Now, downloads, but doesn't update LINGUAS.
99511         (update_po_files): New function.
99513         bootstrap: Ignore more.
99514         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
99515         uniwidth to e.g., lib/.gitignore.
99516         (slurp): Handle the sys_stat_.h -> sys mapping, too.
99518         * build-aux/bootstrap: New setting: vc_ignore.
99519         (insert_sorted_if_absent): Create $file if absent.
99520         Adapt to new, possibly empty, list: $vc_ignore.
99522         bootstrap: generate more ignorable names
99523         * build-aux/bootstrap (slurp): When generating ignorable names,
99524         also map .sin to .sed, .gperf to .c, and .y to .c.
99526 2007-09-03  Jim Meyering  <jim@meyering.net>
99528         * build-aux/git-version-gen: New file, from coreutils.  For details, see
99529         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
99531 2007-09-02  Bruno Haible  <bruno@clisp.org>
99533         Fix mis-recognition of 'mcs' on QNX 6.
99534         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
99535         output contains the string "Mono".
99536         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
99537         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
99539 2007-09-01  Bruno Haible  <bruno@clisp.org>
99541         Fix collision between uniwidth/* and linebreak modules.
99542         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
99543         u32_width): Remove declarations.
99544         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
99545         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
99546         streq3, streq2, streq1, streq0): Remove functions.
99547         (STREQ): Remove macro.
99548         (is_cjk_encoding): Remove function.
99549         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
99550         (uc_width, u8_width, u16_width, u32_width): Remove functions.
99551         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
99552         * NEWS: Document the change.
99554 2007-09-01  Bruno Haible  <bruno@clisp.org>
99556         * lib/streq.h: Add double-inclusion guard.
99558 2007-09-01  Karl Berry  <karl@gnu.org>
99560         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
99562 2007-08-28  Jim Meyering  <jim@meyering.net>
99564         Rename mreadlink_with_size to areadlink_with_size.
99565         * NEWS: Document the change.
99566         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
99567         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
99568         * lib/mreadlink.h: Rename this to...
99569         * lib/areadlink.h: ...this.
99570         * modules/mreadlink-with-size: Rename this to...
99571         * modules/areadlink-with-size: ...this.
99572         * lib/canonicalize.c: Reflect the renaming.
99573         * modules/canonicalize: Likewise.
99575 2007-08-26  Bruno Haible  <bruno@clisp.org>
99577         * gnulib-tool (func_import): When deciding which files to remove,
99578         consider also dangling symbolic links.
99579         Reported by Eric Blake.
99581 2007-08-26  Bruno Haible  <bruno@clisp.org>
99583         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
99585 2007-08-23  Simon Josefsson  <simon@josefsson.org>
99587         * lib/readline.c: Don't include getline.h, the prototype is now
99588         found in stdio.h.
99590 2007-08-23  Jim Meyering  <jim@meyering.net>
99592         Getdelim touchup.
99593         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
99594         around the funlockfile call, since funlockfile never sets errno.
99595         Don't set errno upon failed realloc.
99597 2007-08-22  Eric Blake  <ebb9@byu.net>
99599         Getline touchups.
99600         * lib/getdelim.c (getdelim): Revert regression that required *n to
99601         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
99602         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
99603         getdelim, rather than whether implementation is missing.
99604         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
99605         * lib/stdio_.h (getline): Also declare if replacement is
99606         required.
99607         * doc/functions/getdelim.texi: New file.
99608         * doc/functions/getline.texi: Likewise.
99609         * doc/gnulib.texi (Function Substitutes): Add new files.
99610         Reported by Bruno Haible.
99612 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
99614         * users.txt: Add Guile.
99616 2007-08-22  Eric Blake  <ebb9@byu.net>
99618         * tests/test-getdelim.c (main): Use remove, not unlink.
99619         * tests/test-getline.c (main): Likewise.
99621         Move getline and getdelim into stdio.h, per POSIX 200x.
99622         * modules/getline (Files): Remove getline.h.
99623         (Depends-on): Add stdio.
99624         (configure.ac): Add module indicator.
99625         * modules/getdelim (Files): Remove getdelim.h.
99626         (Depends-on): Add stdio.
99627         (configure.ac): Add module indicator.
99628         * modules/stdio (Makefile.am): Work with new indicators.
99629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
99630         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
99631         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
99632         * lib/getdelim.h: Delete.
99633         * lib/getline.h: Delete.
99634         * lib/stdio_.h (getdelim, getline): Declare.
99635         * modules/getdelim-tests: New module.
99636         * modules/getline-tests: Likewise.
99637         * tests/test-getdelim.c: New file.
99638         * tests/test-getline.c: Likewise.
99639         * NEWS: Document the change.
99640         * lib/getline.c: Update choice of header.
99641         * lib/csharpcomp.c: Likewise.
99642         * lib/getpass.c: Likewise.
99643         * lib/javacomp.c: Likewise.
99644         * lib/javaversion.c: Likewise.
99645         * lib/yesno.c: Likewise.
99646         * lib/getdelim.c: Likewise.
99647         (getdelim): Set errno on failure, and avoid memory leak.
99649 2007-08-19  Bruno Haible  <bruno@clisp.org>
99651         * modules/closein (Depends-on): Add freadahead.
99652         * lib/closein.c: Include freadahead.h.
99653         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
99654         is zero.
99656 2007-08-19  Bruno Haible  <bruno@clisp.org>
99658         * modules/freadahead-tests: New file.
99659         * tests/test-freadahead.sh: New file.
99660         * tests/test-freadahead.c: New file.
99662         * modules/freadahead: New file.
99663         * lib/freadahead.h: New file.
99664         * lib/freadahead.c: New file.
99665         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
99666         fbufmode, fpurge, freadable, fwritable.
99668 2007-08-19  Eric Blake  <ebb9@byu.net>
99670         Test yesno in combination with closein.
99671         * lib/yesno.c (yesno): Document use of stdin.
99672         * modules/yesno-tests (Files): New module.
99673         * tests/test-yesno.c (main): New file.
99674         * tests/test-yesno.sh: Likewise.
99676 2007-08-19  Bruno Haible  <bruno@clisp.org>
99678         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
99679         * lib/fseeko.c (rpl_fseeko): Likewise.
99680         * lib/fseterr.c (fseterr): Likewise.
99682 2007-08-19  Bruno Haible  <bruno@clisp.org>
99684         * tests/test-lseek.c (main): Disable a test for BeOS.
99685         * doc/functions/lseek.texi: Document the BeOS bug.
99687 2007-08-19  Bruno Haible  <bruno@clisp.org>
99688             Eric Blake  <ebb9@byu.net>
99690         * lib/lseek.c: Include <sys/stat.h>.
99691         (rpl_lseek): Add workaround code also for Unix platforms.
99692         Needed for BeOS.
99693         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
99694         * doc/functions/lseek.texi: Document BeOS definiency.
99696 2007-08-18  Bruno Haible  <bruno@clisp.org>
99698         * modules/fstrcmp-tests: New file.
99699         * tests/test-fstrcmp.c: New file.
99701 2007-08-18  Bruno Haible  <bruno@clisp.org>
99703         * modules/fstrcmp: New file, from GNU gettext with modifications.
99704         * lib/fstrcmp.h: New file, from GNU gettext.
99705         * lib/fstrcmp.c: New file, from GNU gettext.
99706         * MODULES.html.sh (String handling): Add fstrcmp.
99708 2007-08-18  Bruno Haible  <bruno@clisp.org>
99710         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
99711         'bool'.
99712         (diag, compareseq): Remove const from the ctxt argument.
99713         (USE_HEURISTIC): Undefine at the end.
99715 2007-08-18  Jim Meyering  <jim@meyering.net>
99717         New file: lib/idcache.h
99718         * NEWS: Mention the addition.
99719         * modules/idcache (Files): Add lib/idcache.h
99720         * lib/idcache.c: Include "idcache.h".
99721         Don't include <sys/types.h>.
99722         Add a FIXME comment.
99723         Move file-scoped "static" declarations to the top.
99724         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
99726 2007-08-17  Bruno Haible  <bruno@clisp.org>
99727         and Paul Eggert  <eggert@cs.ucla.edu>
99729         * MODULES.html.sh: Add diffseq.
99730         * modules/diffseq: New file.
99731         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
99732         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
99734 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99736         Import changes from coreutils for bootstrap script.
99738         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
99740         * build-aux/bootstrap (slurp): Work even in environments where
99741         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
99742         current code does not slurp files whose names start with ".", and
99743         this looks like it might be a troublesome area.
99745         2007-07-11  Jim Meyering  <jim@meyering.net>
99747         If there's a GPL vN copyright comment, require that N == 3.
99749         2007-07-08  Jim Meyering  <jim@meyering.net>
99751         Run the coreutils-specific code only if tests/Makefile.am.in exists.
99752         * build-aux/bootstrap (mam_template): Move definition out of loop.
99754         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
99756         * build-aux/bootstrap (symlink_to_dir): Rename function from
99757         symlink_to_gnulib.  Add a directory parameter.  Update all
99758         callers.
99759         (cp_mark_as_generated): Also check for -- and link to -- files in
99760         gl/.
99762         2007-07-08  Jim Meyering  <jim@meyering.net>
99764         Adapt to deeper hierarchy in gnulib.
99765         * build-aux/bootstrap (symlink_to_dir): If the destination
99766         directory doesn't exist, create it. This is required at least for
99767         "lib/uniwidth/cjk.h".
99769         2007-05-15  Jim Meyering  <jim@meyering.net>
99771         * build-aux/bootstrap: Now that generated Makefile.am files
99772         are no longer under version control, they must be created at
99773         bootstrap time.
99775 2007-08-14  Ben Pfaff  <blp@gnu.org>
99777         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
99779 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99781         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
99782         given the changes below.
99783         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
99784         even on hosts that have padding bits beyond the supported 64.
99786 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99788         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
99789         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
99790         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
99791         depends on it.
99792         (xstrtol_error): Remove.
99793         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
99794         but with a different signature.
99795         (ATTRIBUTE_NORETURN, __attribute__): New macros.
99796         * lib/xstrtol-error.c: Include exitfail.h.
99797         (xstrtol_fatal): New function, with a different signature from the
99798         old xstrtol_error, so that the caller need not worry about passing
99799         in an exit status, or about storage management of the option argument.
99800         (xstrtol_error): Now a static function.  Redo signature to
99801         implement xstrtol_fatal.  Output the correct number of hyphens in
99802         front of the option so that the caller need not worry about
99803         storage management.
99804         (N_): New macro.
99805         (_): Remove; not used now.
99806         * modules/xstrtol: Depend on getopt.
99807         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
99808         of old STRTOL_FATAL_ERROR macro.
99809         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
99810         of test program.
99811         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
99812         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
99814 2007-08-08  Eric Blake  <ebb9@byu.net>
99816         * lib/xstrtol-error.c: Add missing include.
99818         Move xstrtol messages into gnulib domain, when --pobase is used.
99819         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
99820         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
99821         * modules/xstrtol (Files): Distribute new file.
99822         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
99823         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
99824         * tests/test-xstrtol.c: ...into new file.
99825         * tests/test-xstrtoul.c: Also test xstrtoul.
99826         * tests/test-xstrtoimax.c: Also test xstrtoimax.
99827         * tests/test-xstrtoumax.c: Also test xstrtoumax.
99828         * tests/test-xstrtol.sh: Drive the tests.
99829         * tests/test-xstrtoimax.sh: Likewise.
99830         * tests/test-xstrtoumax.sh: Likewise.
99831         * modules/xstrtol-tests: New module.
99832         * modules/xstrtoimax-tests: Likewise.
99833         * modules/xstrtoumax-tests: Likewise.
99835 2007-08-08  Jim Meyering  <jim@meyering.net>
99837         New function: mfile_name_concat.
99838         * lib/filenamecat.c (mfile_name_concat): New function, just like
99839         file_name_concat, but return NULL upon failure rather than exiting
99840         with a diagnostic.
99841         * lib/filenamecat.h: Declare it.
99843 2007-08-07  Bruno Haible  <bruno@clisp.org>
99845         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
99846         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
99847         warning from gcc.
99848         Reported by Eric Blake.
99850 2007-08-07  Simon Josefsson  <simon@josefsson.org>
99852         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
99853         * modules/crypto/arcfour (License): Likewise.
99854         * modules/crypto/des-tests (License): Likewise.
99855         * modules/crypto/gc-arctwo-tests (License): Likewise.
99856         * modules/crypto/gc-des-tests (License): Likewise.
99857         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
99858         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
99859         * modules/crypto/gc-md2-tests (License): Likewise.
99860         * modules/crypto/gc-md4-tests (License): Likewise.
99861         * modules/crypto/gc-md5-tests (License): Likewise.
99862         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
99863         * modules/crypto/gc-rijndael-tests (License): Likewise.
99864         * modules/crypto/gc-sha1-tests (License): Likewise.
99865         * modules/crypto/gc-tests (License): Likewise.
99866         * modules/crypto/hmac-md5 (License): Likewise.
99867         * modules/crypto/hmac-sha1 (License): Likewise.
99868         * modules/crypto/md2-tests (License): Likewise.
99869         * modules/crypto/md4-tests (License): Likewise.
99870         * modules/crypto/md5 (License): Likewise.
99871         * modules/crypto/rijndael (License): Likewise.
99872         * modules/crypto/sha1 (License): Likewise.
99873         * modules/memxor (License): Likewise.
99875 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99876         and Bruno Haible  <bruno@clisp.org>
99878         * NEWS: Describe interface changes to human, xstrtol.
99879         * lib/human.h: Include <xstrtol.h>.
99880         (human_options): Return enum strtol_error, not int.  Remove
99881         bool arg; take int * instead.
99882         * lib/human.c: Don't include "gettext.h".
99883         (_): Remove; no longer used.
99884         Don't include <xstrtol.h>, since human.h does it.
99885         (human_options): Adjust to abovementioned interface changes.
99886         Do not report error to stderr; that's now the caller's
99887         responsibility.
99888         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
99889         interface change.
99890         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
99891         Str, Argument_type_string.  All uses changed.  Put " argument"
99892         in diagnostics to make them clearer.  Change wording of suffix
99893         message for clarity.
99894         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99895         Argument_type_string.
99896         (STRTOL_FATAL_WARN): Remove; no longer used.
99897         * modules/human (Depends-on): Remove gettext-h.
99899 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99901         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99903 2007-07-31  Bruno Haible  <bruno@clisp.org>
99905         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99906         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99907         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99909 2007-07-31  Bruno Haible  <bruno@clisp.org>
99911         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99912         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99914 2007-07-30  Bruno Haible  <bruno@clisp.org>
99916         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99917         * modules/c-ctype (License): Likewise.
99918         * modules/c-strcase (License): Likewise.
99919         * modules/check-version (License): Likewise.
99920         * modules/iconv (License): Likewise.
99921         * modules/iconv_open (License): Likewise.
99922         * modules/read-file (License): Likewise.
99923         * modules/striconv (License): Likewise.
99924         * modules/strverscmp (License): Likewise.
99925         * modules/vasprintf (License): Likewise.
99926         * modules/crypto/des (License): Likewise.
99927         * modules/crypto/gc (License): Likewise.
99928         * modules/crypto/gc-arcfour (License): Likewise.
99929         * modules/crypto/gc-arctwo (License): Likewise.
99930         * modules/crypto/gc-des (License): Likewise.
99931         * modules/crypto/gc-hmac-md5 (License): Likewise.
99932         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99933         * modules/crypto/gc-md2 (License): Likewise.
99934         * modules/crypto/gc-md4 (License): Likewise.
99935         * modules/crypto/gc-md5 (License): Likewise.
99936         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99937         * modules/crypto/gc-random (License): Likewise.
99938         * modules/crypto/gc-rijndael (License): Likewise.
99939         * modules/crypto/gc-sha1 (License): Likewise.
99940         * modules/crypto/md2 (License): Likewise.
99941         * modules/crypto/md4 (License): Likewise.
99943 2007-07-30  Jim Meyering  <jim@meyering.net>
99945         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99946         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99947         it has valid stat data.  This bug would cause du not to count the
99948         sizes of inaccessible directories.
99949         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99950         in <http://bugzilla.redhat.com/250077>.
99952 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99953             Bruno Haible  <bruno@clisp.org>
99955         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99956         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99957         #include_next, gives a diagnostic about it, but reports no error in
99958         the exit code.
99959         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99961 2007-07-24  Ben Pfaff  <blp@gnu.org>
99963         Improve name: "count-one-bits" is better than "popcount".
99964         * MODULES.html.sh: Update name.
99965         * lib/popcount.h: Renamed lib/count-one-bits.h.
99966         (popcount): Renamed count_one_bits.
99967         (popcountl): Renamed count_one_bits_l.
99968         (popcountll): Renamed count_one_bits_ll.
99969         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99970         * modules/popcount: Renamed module/count-one-bits.
99971         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99972         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99974 2007-07-23  Ben Pfaff  <blp@gnu.org>
99976         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99977         better code generation, and add U to large constants to avoid
99978         warnings, in non-GCC case.
99979         Suggested by Bruno Haible.
99981 2007-07-23  Ben Pfaff  <blp@gnu.org>
99983         * lib/popcount.h: Use verify_true instead of if...abort.
99984         * modules/popcount: Depend on verify module.
99985         Suggested by Jim Meyering.
99987 2007-07-23  Bruno Haible  <bruno@clisp.org>
99989         * gnulib-tool (func_import): Create a .cvsignore file also when the
99990         directory is not yet in CVS but the toplevel directory is. When
99991         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99992         Reported by Karl Berry.
99994 2007-07-22  Ben Pfaff  <blp@gnu.org>
99996         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99997         case.
99998         Suggested by Eric Blake.
100000 2007-07-22  Ben Pfaff  <blp@gnu.org>
100002         New module: popcount.
100003         * MODULES.html.sh: Add popcount.
100004         * modules/popcount: New file.
100005         * modules/popcount-tests: New file.
100006         * tests/test-popcount.c: New file.
100007         * lib/popcount.h: New file.
100008         * m4/popcount.m4: New file.
100010 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
100012         * build-aux/announce-gen: Update to GPLv3.
100014         * build-aux/config.guess: Update from config.
100016 2007-07-21  Bruno Haible  <bruno@clisp.org>
100018         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
100019         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
100021 2007-07-20  Jim Meyering  <jim@meyering.net>
100023         * check-module: Diagnose a self-dependency.
100025 2007-07-19  Bruno Haible  <bruno@clisp.org>
100027         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
100028         empty.
100029         Reported by Eric Blake.
100031 2007-07-18  Bruno Haible  <bruno@clisp.org>
100033         * gnulib-tool: New options --po-base, --po-domain.
100034         (func_usage): Document them.
100035         (pobase, po_domain): New variables.
100036         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
100037         DEFAULT_TEXT_DOMAIN.
100038         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
100039         (func_import): Consider pobase and po_domain. Create a po/ directory.
100040         (func_create_testdir): Set pobase and po_domain to empty.
100041         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
100042         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
100044 2007-07-18  Bruno Haible  <bruno@clisp.org>
100046         * gnulib-tool (func_get_automake_snippet): Synthesize also an
100047         EXTRA_DIST augmentation for files in build-aux/.
100049 2007-07-16  Bruno Haible  <bruno@clisp.org>
100051         * modules/lseek (License): Use the synonymous term "LGPLv2+".
100052         * modules/getdelim (License): Likewise.
100054 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100056         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
100057         * modules/d-type (License): Likewise.
100058         * modules/extensions (License): Likewise.
100059         * modules/fnmatch (License): Likewise.
100060         * modules/fseeko (License): Likewise.
100061         * modules/getaddrinfo (License): Likewise.
100062         * modules/getline (License): Likewise.
100063         * modules/getlogin_r (License): Likewise.
100064         * modules/getpass (License): Likewise.
100065         * modules/gettimeofday (License): Likewise.
100066         * modules/glob (License): Likewise.
100067         * modules/inet_ntop (License): Likewise.
100068         * modules/malloc (License): Likewise.
100069         * modules/malloca (License): Likewise.
100070         * modules/memmem (License): Likewise.
100071         * modules/mempcpy (License): Likewise.
100072         * modules/memset (License): Likewise.
100073         * modules/minmax (License): Likewise.
100074         * modules/mktime (License): Likewise.
100075         * modules/netinet_in (License): Likewise.
100076         * modules/pathmax (License): Likewise.
100077         * modules/poll (License): Likewise.
100078         * modules/regex (License): Likewise.
100079         * modules/snprintf (License): Likewise.
100080         * modules/stdbool (License): Likewise.
100081         * modules/stdint (License): Likewise.
100082         * modules/stdio (License): Likewise.
100083         * modules/strcase (License): Likewise.
100084         * modules/strcasestr (License): Likewise.
100085         * modules/strdup (License): Likewise.
100086         * modules/string (License): Likewise.
100087         * modules/strndup (License): Likewise.
100088         * modules/strnlen (License): Likewise.
100089         * modules/strpbrk (License): Likewise.
100090         * modules/strptime (License): Likewise.
100091         * modules/strsep (License): Likewise.
100092         * modules/sys_select (License): Likewise.
100093         * modules/sys_socket (License): Likewise.
100094         * modules/sys_stat (License): Likewise.
100095         * modules/sys_time (License): Likewise.
100096         * modules/time (License): Likewise.
100097         * modules/time_r (License): Likewise.
100098         * modules/timegm (License): Likewise.
100099         * modules/unistd (License): Likewise.
100100         * modules/vsnprintf (License): Likewise.
100101         * modules/wctype (License): Likewise.
100103 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100105         * modules/argz (License): LGPLv2+.
100107 2007-07-15  Karl Berry  <karl@gnu.org>
100109         * doc/gnulib.texi: revise node structure per new fdl.texi.
100111 2007-07-14  Bruno Haible  <bruno@clisp.org>
100113         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
100114         the output file.
100115         * lib/uniname/uninames.h: Regenerated.
100117 2007-07-14  Karl Berry  <karl@gnu.org>
100119         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
100120         omitting sectioning and index commands.
100122 2007-07-13  Bruno Haible  <bruno@clisp.org>
100124         New gnulib-tool option --more-symlinks.
100125         * gnulib-tool (func_usage): Document --more-symlinks.
100126         (do_copyrights): New variable.
100127         Recognize option --more-symlinks.
100128         (func_import): Don't add a copyright notice transform to
100129         sed_transform_lib_file if do_copyrights is empty.
100131 2007-07-13  Bruno Haible  <bruno@clisp.org>
100133         * lib/vasnprintf.c (decimal_point_char): Define also if
100134         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
100135         && !NEED_PRINTF_DIRECTIVE_A.
100136         Reported by Clemens Koller <clemens.koller@anagramm.de> via
100137         Gary V. Vaughan <gary@gnu.org>.
100139 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
100141         * lib/inttypes_.h: Undo previous change, since it was fixed
100142         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
100144 2007-07-13  Bruno Haible  <bruno@clisp.org>
100146         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
100147         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
100149 2007-07-13  Jim Meyering  <jim@meyering.net>
100151         df: Don't fail for Tru64's "file-on-file mount".
100152         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
100153         so we fall through and use statfs instead.  Details here:
100154         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
100155         Reported by Albert Chin.
100157 2007-07-13  Bruno Haible  <bruno@clisp.org>
100159         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
100160         * modules/configmake (License): Likewise.
100161         * modules/gettext (License): Likewise.
100162         * modules/gettext-h (License): Likewise.
100163         * modules/include_next (License): Likewise.
100164         * modules/link-warning (License): Likewise.
100165         * modules/localcharset (License): Likewise.
100166         * modules/localename (License): Likewise.
100167         * modules/lock (License): Likewise.
100168         * modules/relocatable-lib-lgpl (License): Likewise.
100169         * modules/size_max (License): Likewise.
100170         * modules/vasnprintf (License): Likewise.
100171         * modules/wchar (License): Likewise.
100172         * modules/xsize (License): Likewise.
100174 2007-07-13  Bruno Haible  <bruno@clisp.org>
100176         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
100177         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
100179 2007-07-12  Bruno Haible  <bruno@clisp.org>
100181         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
100182         in the modules files.
100184 2007-07-11  Karl Berry  <karl@gnu.org>
100186         * MODULES.html.sh (func_module): use
100187          sed -e '\|^'"${includefile}"'$|d'
100188          instead of /.../d, to avoid errors on $includefile's containing /.
100190 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100192         * gnulib-tool (func_import): Avoid duplication of --avoid
100193         statements
100194         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
100195         names to `_' in variable names.
100197 2007-07-10  Eric Blake  <ebb9@byu.net>
100199         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
100200         * NEWS: Document this change.
100202 2007-07-08  Bruno Haible  <bruno@clisp.org>
100204         Update to Unicode 5.0.
100205         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
100206         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
100207         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
100208         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
100209         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
100210         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
100211         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
100212         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
100213         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
100214         U+10A3F, U+1D242..U+1D244.
100215         (nonspacing_table_ind): Update.
100216         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
100217         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
100219 2007-07-08  Bruno Haible  <bruno@clisp.org>
100221         Update to Unicode 5.0.
100222         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
100223         code transform. Extend the name index field of unicode_name_to_code and
100224         unicode_code_to_name from 16 to 24 bits.
100225         * lib/uniname/uniname.c (unicode_character_name,
100226         unicode_name_character): Add the range 0x12xxx to the code transform.
100227         * lib/uniname/uninames.h: Regenerated.
100228         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
100230 2007-07-07  Bruno Haible  <bruno@clisp.org>
100232         * modules/wcwidth-tests: New file.
100233         * tests/test-wcwidth.c: New file.
100235         Work around MacOS X wcwidth() bug.
100236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
100237         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
100238         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
100239         original wcwidth in non-UTF-8 locales.
100240         * modules/wcwidth (Depends-on): Add localcharset, streq,
100241         uniwidth/width.
100242         * doc/functions/wcwidth.texi: Update.
100244 2007-07-07  Bruno Haible  <bruno@clisp.org>
100246         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
100247         (wcwidth): New declaration.
100248         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
100249         macros.
100250         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
100251         here. Prepare for creating <wchar.h> unconditionally.
100252         * modules/wchar (Depends-on): Add link-warning.
100253         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
100254         REPLACE_WCWIDTH, and GL_LINK_WARNING.
100255         * lib/wcwidth.h: Remove file.
100256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
100257         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
100258         * modules/wcwidth (Files): Remove lib/wcwidth.h.
100259         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
100260         (Include): Replace wcwidth.h with <wchar.h>.
100261         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
100262         * lib/mbchar.h: Don't include wcwidth.h.
100263         * lib/mbswidth.c: Likewise.
100264         * NEWS: Mention the change.
100266 2007-07-07  Bruno Haible  <bruno@clisp.org>
100268         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
100269         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
100270         definition with an external declaration.
100271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
100272         defined as a function. Remove AC_C_INLINE requirement.
100273         * modules/wcwidth (Files): Add lib/wcwidth.c.
100274         (Makefile.am): Remove redundant statement.
100276 2007-07-07  Bruno Haible  <bruno@clisp.org>
100278         * MODULES.html.sh (Unicode string functions): Add the new modules.
100280         * tests/uniwidth/test-u32-strwidth.c: New file.
100281         * modules/uniwidth/u32-strwidth-tests: New file.
100283         * lib/uniwidth/u32-strwidth.c: New file.
100284         * modules/uniwidth/u32-strwidth: New file.
100286         * tests/uniwidth/test-u16-strwidth.c: New file.
100287         * modules/uniwidth/u16-strwidth-tests: New file.
100289         * lib/uniwidth/u16-strwidth.c: New file.
100290         * modules/uniwidth/u16-strwidth: New file.
100292         * tests/uniwidth/test-u8-strwidth.c: New file.
100293         * modules/uniwidth/u8-strwidth-tests: New file.
100295         * lib/uniwidth/u8-strwidth.c: New file.
100296         * modules/uniwidth/u8-strwidth: New file.
100298         * tests/uniwidth/test-u32-width.c: New file.
100299         * modules/uniwidth/u32-width-tests: New file.
100301         * lib/uniwidth/u32-width.c: New file.
100302         * modules/uniwidth/u32-width: New file.
100304         * tests/uniwidth/test-u16-width.c: New file.
100305         * modules/uniwidth/u16-width-tests: New file.
100307         * lib/uniwidth/u16-width.c: New file.
100308         * modules/uniwidth/u16-width: New file.
100310         * tests/uniwidth/test-u8-width.c: New file.
100311         * modules/uniwidth/u8-width-tests: New file.
100313         * lib/uniwidth/u8-width.c: New file.
100314         * modules/uniwidth/u8-width: New file.
100316         * tests/uniwidth/test-uc_width.c: New file.
100317         * modules/uniwidth/width-tests: New file.
100319         * lib/uniwidth/width.c: New file, from GNU libiconv.
100320         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
100321         * modules/uniwidth/width: New file.
100323         * lib/uniwidth.h: New file, from GNU libiconv.
100324         * modules/uniwidth/base: New file.
100326 2007-07-07  Bruno Haible  <bruno@clisp.org>
100328         * lib/uniname.h: New file, from GNU gettext.
100329         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
100330         * lib/uniname/uninames.h: New file, from GNU gettext.
100331         * lib/uniname/uniname.c: New file, from GNU gettext.
100332         * tests/uniname/test-uninames.sh: New file.
100333         * tests/uniname/test-uninames.c: New file, from GNU gettext.
100334         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
100335         * modules/uniname/base: New file.
100336         * modules/uniname/uniname: New file.
100337         * modules/uniname/uniname-tests: New file.
100338         * MODULES.html.sh (Unicode string functions): Add the new modules.
100340 2007-07-06  Bruno Haible  <bruno@clisp.org>
100342         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
100344 2007-07-06  Bruno Haible  <bruno@clisp.org>
100346         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
100347         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
100348         includes <cygwin/sys_time.h> which includes <sys/select.h> which
100349         include <sys/time.h>.
100350         Reported by Eric Blake.
100352 2007-07-06  Eric Blake  <ebb9@byu.net>
100354         Fix testing canonicalize on cygwin.
100355         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100356         Revert patch from 2007-06-19.
100357         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
100358         canonicalize module is also in use.
100359         * tests/test-canonicalize.c: New file.
100360         * tests/test-canonicalize.sh: Likewise.
100361         * modules/canonicalize-tests: Likewise.
100363 2007-07-06  Jim Meyering  <jim@meyering.net>
100365         * lib/getugroups.c (getugroups): Detect getgrent failure.
100366         Adjust comment to reflect reality: this function may return -1.
100368 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
100370         * build-aux/bootstrap (TP_URL,get_translations): Update to use
100371         the new TP address.
100372         (usage): Fix typo
100373         (gnulib_mk): New variable.
100375 2007-07-05  Jim Meyering  <jim@meyering.net>
100377         Don't let endgrent clobber errno, no matter how improbable.
100378         * lib/getugroups.c (getugroups): Save and restore errno around
100379         endgrent call.
100381         Close the group DB even when failing with 2^31 or more members.
100382         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
100384 2007-07-04  Jim Meyering  <jim@meyering.net>
100386         * lib/getugroups.h: New file.
100387         * lib/getugroups.c: Include "getugroups.h".
100388         Remove uses of "register" keyword.
100389         Move local variable, "cp", down into scope where used.
100390         Give "username" parameter the "const" attribute.
100391         * modules/getugroups (Files): Add lib/getugroups.h
100393 2007-07-04  Karl Berry  <karl@gnu.org>
100395         * MODULES.html.sh (func_all_modules): Complete rename of
100396         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
100398 2007-07-02  Bruno Haible  <bruno@clisp.org>
100400         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
100401         mode, when inttypes.h comes from gnulib.
100402         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
100404 2007-07-02  Simon Josefsson  <simon@josefsson.org>
100406         * NEWS: Mention lgpl module name change.
100408         * modules/lgpl-2.1: Renamed from lgpl.
100410         * NEWS: Mention gpl module name change.
100412         * modules/gpl-3.0: New file, based on gpl-2.0.
100414         * modules/gpl-2.0: Renamed from gpl.
100416         * modules/gpl: Fix filename, doc/gpl.texi is now found at
100417         doc/gpl-2.0.texi.
100419 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100421         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
100422         #define __STDC_LIMIT_MACROS temporarily while including
100423         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
100424         Problem reported by Joel E. Denny in
100425         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
100427 2007-07-01  Bruno Haible  <bruno@clisp.org>
100429         * lib/unistdio.h: New file.
100430         * lib/unistdio/u-asnprintf.h: New file.
100431         * lib/unistdio/u-asprintf.h: New file.
100432         * lib/unistdio/u-printf-args.c: New file.
100433         * lib/unistdio/u-printf-args.h: New file.
100434         * lib/unistdio/u-printf-parse.h: New file.
100435         * lib/unistdio/u-snprintf.h: New file.
100436         * lib/unistdio/u-sprintf.h: New file.
100437         * lib/unistdio/u-vasprintf.h: New file.
100438         * lib/unistdio/u-vsnprintf.h: New file.
100439         * lib/unistdio/u-vsprintf.h: New file.
100440         * lib/unistdio/ulc-asnprintf.c: New file.
100441         * lib/unistdio/ulc-asprintf.c: New file.
100442         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
100443         * lib/unistdio/ulc-printf-parse.c: New file.
100444         * lib/unistdio/ulc-snprintf.c: New file.
100445         * lib/unistdio/ulc-sprintf.c: New file.
100446         * lib/unistdio/ulc-vasnprintf.c: New file.
100447         * lib/unistdio/ulc-vasprintf.c: New file.
100448         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
100449         * lib/unistdio/ulc-vsnprintf.c: New file.
100450         * lib/unistdio/ulc-vsprintf.c: New file.
100451         * lib/unistdio/u8-asnprintf.c: New file.
100452         * lib/unistdio/u8-asprintf.c: New file.
100453         * lib/unistdio/u8-printf-parse.c: New file.
100454         * lib/unistdio/u8-snprintf.c: New file.
100455         * lib/unistdio/u8-sprintf.c: New file.
100456         * lib/unistdio/u8-vasnprintf.c: New file.
100457         * lib/unistdio/u8-vasprintf.c: New file.
100458         * lib/unistdio/u8-vsnprintf.c: New file.
100459         * lib/unistdio/u8-vsprintf.c: New file.
100460         * lib/unistdio/u8-u8-asnprintf.c: New file.
100461         * lib/unistdio/u8-u8-asprintf.c: New file.
100462         * lib/unistdio/u8-u8-snprintf.c: New file.
100463         * lib/unistdio/u8-u8-sprintf.c: New file.
100464         * lib/unistdio/u8-u8-vasnprintf.c: New file.
100465         * lib/unistdio/u8-u8-vasprintf.c: New file.
100466         * lib/unistdio/u8-u8-vsnprintf.c: New file.
100467         * lib/unistdio/u8-u8-vsprintf.c: New file.
100468         * lib/unistdio/u16-asnprintf.c: New file.
100469         * lib/unistdio/u16-asprintf.c: New file.
100470         * lib/unistdio/u16-printf-parse.c: New file.
100471         * lib/unistdio/u16-snprintf.c: New file.
100472         * lib/unistdio/u16-sprintf.c: New file.
100473         * lib/unistdio/u16-vasnprintf.c: New file.
100474         * lib/unistdio/u16-vasprintf.c: New file.
100475         * lib/unistdio/u16-vsnprintf.c: New file.
100476         * lib/unistdio/u16-vsprintf.c: New file.
100477         * lib/unistdio/u16-u16-asnprintf.c: New file.
100478         * lib/unistdio/u16-u16-asprintf.c: New file.
100479         * lib/unistdio/u16-u16-snprintf.c: New file.
100480         * lib/unistdio/u16-u16-sprintf.c: New file.
100481         * lib/unistdio/u16-u16-vasnprintf.c: New file.
100482         * lib/unistdio/u16-u16-vasprintf.c: New file.
100483         * lib/unistdio/u16-u16-vsnprintf.c: New file.
100484         * lib/unistdio/u16-u16-vsprintf.c: New file.
100485         * lib/unistdio/u32-asnprintf.c: New file.
100486         * lib/unistdio/u32-asprintf.c: New file.
100487         * lib/unistdio/u32-printf-parse.c: New file.
100488         * lib/unistdio/u32-snprintf.c: New file.
100489         * lib/unistdio/u32-sprintf.c: New file.
100490         * lib/unistdio/u32-vasnprintf.c: New file.
100491         * lib/unistdio/u32-vasprintf.c: New file.
100492         * lib/unistdio/u32-vsnprintf.c: New file.
100493         * lib/unistdio/u32-vsprintf.c: New file.
100494         * lib/unistdio/u32-u32-asnprintf.c: New file.
100495         * lib/unistdio/u32-u32-asprintf.c: New file.
100496         * lib/unistdio/u32-u32-snprintf.c: New file.
100497         * lib/unistdio/u32-u32-sprintf.c: New file.
100498         * lib/unistdio/u32-u32-vasnprintf.c: New file.
100499         * lib/unistdio/u32-u32-vasprintf.c: New file.
100500         * lib/unistdio/u32-u32-vsnprintf.c: New file.
100501         * lib/unistdio/u32-u32-vsprintf.c: New file.
100502         * tests/unistdio/test-ulc-asnprintf1.c: New file.
100503         * tests/unistdio/test-ulc-asnprintf1.h: New file.
100504         * tests/unistdio/test-ulc-printf1.h: New file.
100505         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
100506         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
100507         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
100508         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
100509         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
100510         * tests/unistdio/test-ulc-vasprintf1.c: New file.
100511         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
100512         * tests/unistdio/test-ulc-vsprintf1.c: New file.
100513         * tests/unistdio/test-u8-asnprintf1.c: New file.
100514         * tests/unistdio/test-u8-asnprintf1.h: New file.
100515         * tests/unistdio/test-u8-printf1.h: New file.
100516         * tests/unistdio/test-u8-vasnprintf1.c: New file.
100517         * tests/unistdio/test-u8-vasnprintf2.c: New file.
100518         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
100519         * tests/unistdio/test-u8-vasnprintf3.c: New file.
100520         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
100521         * tests/unistdio/test-u8-vasprintf1.c: New file.
100522         * tests/unistdio/test-u8-vsnprintf1.c: New file.
100523         * tests/unistdio/test-u8-vsprintf1.c: New file.
100524         * tests/unistdio/test-u16-asnprintf1.c: New file.
100525         * tests/unistdio/test-u16-asnprintf1.h: New file.
100526         * tests/unistdio/test-u16-printf1.h: New file.
100527         * tests/unistdio/test-u16-vasnprintf1.c: New file.
100528         * tests/unistdio/test-u16-vasnprintf2.c: New file.
100529         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
100530         * tests/unistdio/test-u16-vasnprintf3.c: New file.
100531         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
100532         * tests/unistdio/test-u16-vasprintf1.c: New file.
100533         * tests/unistdio/test-u16-vsnprintf1.c: New file.
100534         * tests/unistdio/test-u16-vsprintf1.c: New file.
100535         * tests/unistdio/test-u32-asnprintf1.c: New file.
100536         * tests/unistdio/test-u32-asnprintf1.h: New file.
100537         * tests/unistdio/test-u32-printf1.h: New file.
100538         * tests/unistdio/test-u32-vasnprintf1.c: New file.
100539         * tests/unistdio/test-u32-vasnprintf2.c: New file.
100540         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
100541         * tests/unistdio/test-u32-vasnprintf3.c: New file.
100542         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
100543         * tests/unistdio/test-u32-vasprintf1.c: New file.
100544         * tests/unistdio/test-u32-vsnprintf1.c: New file.
100545         * tests/unistdio/test-u32-vsprintf1.c: New file.
100546         * modules/unistdio/base: New file.
100547         * modules/unistdio/u-printf-args: New file.
100548         * modules/unistdio/ulc-asnprintf: New file.
100549         * modules/unistdio/ulc-asprintf: New file.
100550         * modules/unistdio/ulc-fprintf: New file.
100551         * modules/unistdio/ulc-printf-parse: New file.
100552         * modules/unistdio/ulc-snprintf: New file.
100553         * modules/unistdio/ulc-sprintf: New file.
100554         * modules/unistdio/ulc-vasnprintf: New file.
100555         * modules/unistdio/ulc-vasprintf: New file.
100556         * modules/unistdio/ulc-vfprintf: New file.
100557         * modules/unistdio/ulc-vsnprintf: New file.
100558         * modules/unistdio/ulc-vsprintf: New file.
100559         * modules/unistdio/u8-asnprintf: New file.
100560         * modules/unistdio/u8-asprintf: New file.
100561         * modules/unistdio/u8-printf-parse: New file.
100562         * modules/unistdio/u8-snprintf: New file.
100563         * modules/unistdio/u8-sprintf: New file.
100564         * modules/unistdio/u8-vasnprintf: New file.
100565         * modules/unistdio/u8-vasprintf: New file.
100566         * modules/unistdio/u8-vsnprintf: New file.
100567         * modules/unistdio/u8-vsprintf: New file.
100568         * modules/unistdio/u8-u8-asnprintf: New file.
100569         * modules/unistdio/u8-u8-asprintf: New file.
100570         * modules/unistdio/u8-u8-snprintf: New file.
100571         * modules/unistdio/u8-u8-sprintf: New file.
100572         * modules/unistdio/u8-u8-vasnprintf: New file.
100573         * modules/unistdio/u8-u8-vasprintf: New file.
100574         * modules/unistdio/u8-u8-vsnprintf: New file.
100575         * modules/unistdio/u8-u8-vsprintf: New file.
100576         * modules/unistdio/u16-asnprintf: New file.
100577         * modules/unistdio/u16-asprintf: New file.
100578         * modules/unistdio/u16-printf-parse: New file.
100579         * modules/unistdio/u16-snprintf: New file.
100580         * modules/unistdio/u16-sprintf: New file.
100581         * modules/unistdio/u16-vasnprintf: New file.
100582         * modules/unistdio/u16-vasprintf: New file.
100583         * modules/unistdio/u16-vsnprintf: New file.
100584         * modules/unistdio/u16-vsprintf: New file.
100585         * modules/unistdio/u16-u16-asnprintf: New file.
100586         * modules/unistdio/u16-u16-asprintf: New file.
100587         * modules/unistdio/u16-u16-snprintf: New file.
100588         * modules/unistdio/u16-u16-sprintf: New file.
100589         * modules/unistdio/u16-u16-vasnprintf: New file.
100590         * modules/unistdio/u16-u16-vasprintf: New file.
100591         * modules/unistdio/u16-u16-vsnprintf: New file.
100592         * modules/unistdio/u16-u16-vsprintf: New file.
100593         * modules/unistdio/u32-asnprintf: New file.
100594         * modules/unistdio/u32-asprintf: New file.
100595         * modules/unistdio/u32-printf-parse: New file.
100596         * modules/unistdio/u32-snprintf: New file.
100597         * modules/unistdio/u32-sprintf: New file.
100598         * modules/unistdio/u32-vasnprintf: New file.
100599         * modules/unistdio/u32-vasprintf: New file.
100600         * modules/unistdio/u32-vsnprintf: New file.
100601         * modules/unistdio/u32-vsprintf: New file.
100602         * modules/unistdio/u32-u32-asnprintf: New file.
100603         * modules/unistdio/u32-u32-asprintf: New file.
100604         * modules/unistdio/u32-u32-snprintf: New file.
100605         * modules/unistdio/u32-u32-sprintf: New file.
100606         * modules/unistdio/u32-u32-vasnprintf: New file.
100607         * modules/unistdio/u32-u32-vasprintf: New file.
100608         * modules/unistdio/u32-u32-vsnprintf: New file.
100609         * modules/unistdio/u32-u32-vsprintf: New file.
100610         * modules/unistdio/ulc-asnprintf-tests: New file.
100611         * modules/unistdio/ulc-vasnprintf-tests: New file.
100612         * modules/unistdio/ulc-vasprintf-tests: New file.
100613         * modules/unistdio/ulc-vsnprintf-tests: New file.
100614         * modules/unistdio/ulc-vsprintf-tests: New file.
100615         * modules/unistdio/u8-asnprintf-tests: New file.
100616         * modules/unistdio/u8-vasnprintf-tests: New file.
100617         * modules/unistdio/u8-vasprintf-tests: New file.
100618         * modules/unistdio/u8-vsnprintf-tests: New file.
100619         * modules/unistdio/u8-vsprintf-tests: New file.
100620         * modules/unistdio/u16-asnprintf-tests: New file.
100621         * modules/unistdio/u16-vasnprintf-tests: New file.
100622         * modules/unistdio/u16-vasprintf-tests: New file.
100623         * modules/unistdio/u16-vsnprintf-tests: New file.
100624         * modules/unistdio/u16-vsprintf-tests: New file.
100625         * modules/unistdio/u32-asnprintf-tests: New file.
100626         * modules/unistdio/u32-vasnprintf-tests: New file.
100627         * modules/unistdio/u32-vasprintf-tests: New file.
100628         * modules/unistdio/u32-vsnprintf-tests: New file.
100629         * modules/unistdio/u32-vsprintf-tests: New file.
100630         * MODULES.html.sh (Unicode string functions): Add the new modules.
100632 2007-07-01  Bruno Haible  <bruno@clisp.org>
100634         * lib/sprintf.c (sprintf): Limit the available length estimation,
100635         to avoid address wraparound.
100636         * lib/vsprintf.c (vsprintf): Likewise.
100637         * modules/sprintf-posix (Dependencies): Add stdint.
100638         * modules/vsprintf-posix (Dependencies): Likewise.
100640 2007-07-01  Bruno Haible  <bruno@clisp.org>
100642         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
100643         Windows PATH as well. Conservative double-quoting. Comments.
100645 2007-07-01  Bruno Haible  <bruno@clisp.org>
100646             Eric Blake  <ebb9@byu.net>
100647             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100649         * gnulib-tool (self_abspathname): Fix algorithm to cope with
100650         empty components in $PATH, denoting '.'.
100652 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100654         * gnulib-tool: Fix indentation.
100655         (func_create_megatestdir): Likewise.
100656         Report by Bruno Haible.
100658 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100660         Sync from Automake.
100661         * build-aux/gnupload: Fix shell portability issues with for loops.
100662         Report by Karl Berry.
100664 2007-06-29  Simon Josefsson  <simon@josefsson.org>
100666         * build-aux/maint.mk (POURL): Use translationproject.org.
100668 2007-06-27  Simon Josefsson  <simon@josefsson.org>
100669             Bruno Haible  <bruno@clisp.org>
100671         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
100672         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
100673         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
100674         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
100675         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
100677 2007-06-27  Bruno Haible  <bruno@clisp.org>
100679         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
100680         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
100682 2007-06-26  Karl Berry  <karl@gnu.org>
100684         * MODULES.html.sh: remove xreadlink-with-size.
100686 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100688         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
100689         method that I hope also handles the double-include problem noted
100690         by Bruno Haible in
100691         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
100693 2007-06-23  Bruno Haible  <bruno@clisp.org>
100695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100696         Don't let the 'mostlyclean' target fail if the last subdirectory could
100697         not be removed.
100698         Reported by Karl Berry.
100700 2007-06-23  Bruno Haible  <bruno@clisp.org>
100702         * gnulib-tool (echo): Add a speedier workaround for ksh.
100703         * tests/test-echo.sh: Likewise.
100705 2007-06-23  Bruno Haible  <bruno@clisp.org>
100707         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
100708         * tests/test-echo.sh: Likewise.
100710 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100712         * gnulib-tool (IFS): Initialize early, so we don't set it to
100713         empty later.
100714         (self_abspathname): Rewrite algorithm to set it, reindent.
100715         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
100716         (func_create_megatestdir): Merge some sed scripts.
100718 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100720         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
100721         exposed by Sun Studio 11 cc on Solaris 8.
100723 2007-06-22  Bruno Haible  <bruno@clisp.org>
100725         * gnulib-tool (echo): Ensure the echo primitive does not interpret
100726         backslashes.
100727         * tests/test-echo.sh: New file.
100729 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100731         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
100732         simplify `sed_replace_build_aux' scripts, they are portable but
100733         echoing them with `echo' is not.
100734         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
100736 2007-06-21  Karl Berry  <karl@gnu.org>
100738         * config/srclist.txt: guess we can't handle the licenses via
100739         srclist at the moment.
100741 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100743         * MODULES.html.sh: Add include_next.
100744         * modules/include_next: New file.
100746 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
100749         INCLUDE_NEXT.
100750         (gl_CHECK_NEXT_HEADERS): New macro.
100751         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
100752         the obsolescent gl_ABSOLUTE_HEADER.
100753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
100754         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
100755         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
100756         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
100757         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
100758         * m4/math_h.m4 (gl_MATH_H): Likewise.
100759         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
100760         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
100761         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
100762         * m4/stdint.m4 (gl_STDINT_H): Likewise.
100763         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
100764         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
100765         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
100766         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
100767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
100768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
100769         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
100770         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
100771         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
100772         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
100773         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
100774         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
100775         * m4/inttypes.m4 (gl_INTTYPES_H): Define
100776         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
100777         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
100778         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
100779         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
100780         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
100781         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
100782         * lib/float_.h: Likewise.
100783         * lib/inttypes_.h: Likewise.
100784         * lib/math_.h: Likewise.
100785         * lib/search_.h: Likewise.
100786         * lib/signal_.h: Likewise.
100787         * lib/stdint_.h: Likewise.
100788         * lib/stdio_.h: Likewise.
100789         * lib/stdlib_.h: Likewise.
100790         * lib/string_.h: Likewise.
100791         * lib/sys_stat_.h: Likewise.
100792         * lib/sys_time_.h: Likewise.
100793         * lib/time_.h: Likewise.
100794         * lib/unistd_.h: Likewise.
100795         * lib/wchar_.h: Likewise.
100796         * lib/wctype_.h: Likewise.
100797         * lib/dirent_.h: Likewise.
100798         * lib/iconv_.h: Likewise.
100799         * lib/locale_.h: Likewise.
100800         * lib/netinet_in_.h: Likewise.
100801         * lib/sys_select_.h: Likewise.
100802         * lib/sys_socket_.h: Likewise.
100803         * lib/sysexits_.h: Likewise.
100804         * modules/fcntl (Depends-on): Depend on include_next, not
100805         absolute_header.
100806         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
100807         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
100808         * modules/fchdir: Likewise.
100809         * modules/float: Likewise.
100810         * modules/iconv_open: Likewise.
100811         * modules/inttypes: Likewise.
100812         * modules/locale: Likewise.
100813         * modules/math: Likewise.
100814         * modules/netinet_in: Likewise.
100815         * modules/search: Likewise.
100816         * modules/signal: Likewise.
100817         * modules/stdint: Likewise.
100818         * modules/stdio: Likewise.
100819         * modules/stdlib: Likewise.
100820         * modules/string: Likewise.
100821         * modules/sys_select: Likewise.
100822         * modules/sys_socket: Likewise.
100823         * modules/sys_stat: Likewise.
100824         * modules/sys_time: Likewise.
100825         * modules/sysexits: Likewise.
100826         * modules/time: Likewise.
100827         * modules/unistd: Likewise.
100828         * modules/wchar: Likewise.
100829         * modules/wctype: Likewise.
100830         * modules/sys_stat: Change maintainer to "all".
100831         * modules/unistd: Likewise.
100833 2007-06-20  Karl Berry  <karl@gnu.org>
100835         * config/srclist.txt: track www changes in license files.
100837 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
100839         * build-aux/bootstrap: Remove stray dot.
100840         Make sure build_aux settings are honored when linking
100841         gnulib_extra_files.
100843 2007-06-19  Eric Blake  <ebb9@byu.net>
100845         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100846         Allow compilation on cygwin.
100848 2007-06-19  Jim Meyering  <jim@meyering.net>
100850         xreadlink-with-size: Remove module.  No longer used.
100851         Ex-callers now use xreadlink or mreadlink-with-size.
100852         * modules/xreadlink-with-size: Remove module.
100853         * lib/xreadlink-with-size.c: Remove file.
100854         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
100855         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
100856         just before the function definition *is* accurate.
100858         Eliminate one way canonicalize_filename_mode could exit.
100859         * lib/canonicalize.c (canonicalize_filename_mode):
100860         Use mreadlink_with_size, not xreadlink_with_size.
100862 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
100864         Detect porting problems to FreeBSD/arm, which has time_t wider than
100865         long int.  Original problem reported for GNU diff by Xin Li in
100866         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
100867         * modules/getdate (Depends-on): Add intprops, verify.
100868         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
100869         is an integer type no wider than long int.
100871 2007-06-18  Jim Meyering  <jim@meyering.net>
100873         New module: mreadlink-with-size.
100874         * MODULES.html.sh: Add mreadlink-with-size.
100875         * modules/mreadlink-with-size: New module
100876         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
100877         not xreadlink-with-size.
100878         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
100880 2007-06-16  Bruno Haible  <bruno@clisp.org>
100882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
100883         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
100884         Reported by Gary V. Vaughan <gary@gnu.org>.
100886 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
100888         Revamp lchown so that it lives in unistd.h where it belongs.
100889         * lib/lchown.h: Remove.
100890         * lib/dirchownmod.c: Don't include lib/lchown.h.
100891         * lib/fchownat.c: Likewise.
100892         * lib/openat.c: Likewise.
100893         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
100894         does not follow symlinks.
100895         (EOPNOTSUPP): Define if not defined.
100896         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100897         is defined to 0.
100898         (lchown): New decl.
100899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100900         Do not check for lchown decl.
100901         Set REPLACE_LCHOWN.
100902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100903         REPLACE_LCHOWN.
100904         * modules/chown: Make it clear it follows symlinks.
100905         * modules/lchown: Make it clear it doesn't follow symlinks.
100906         (Files): Remove lib/lchown.h
100907         (Depends-on): Add unistd.
100908         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100909         (Include): Include <unistd.h>, not "lchown.h".
100910         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100911         REPLACE_LCHOWN.
100913 2007-06-15  Jim Meyering  <jim@meyering.net>
100915         Change license (GPL to LGPL) of fsusage and dependents.
100916         * modules/fsusage (License): Change to LGPL.
100917         * modules/full-read (License): Likewise.
100918         * modules/full-write (License): Likewise.
100919         * modules/safe-read (License): Likewise.
100920         * modules/safe-write (License): Likewise.
100922 2007-06-14  Ben Pfaff  <blp@gnu.org>
100924         Missing part of allocsa -> malloca transition.
100925         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100926         gl_MALLOCA.
100928 2007-06-12  Bruno Haible  <bruno@clisp.org>
100930         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100931         to ia64, x86_64, i386.
100932         Reported by Eric Blake.
100934 2007-06-12  Bruno Haible  <bruno@clisp.org>
100936         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100937         cross-compiling to x86_64.
100939 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100941         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100942         glitch reported by Ralf Wildenhues in
100943         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100945         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100946         Vin Shelton.
100948 2007-06-11  Bruno Haible  <bruno@clisp.org>
100950         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100951         replacement string.
100952         Reported by Eric Blake.
100954 2007-06-10  Bruno Haible  <bruno@clisp.org>
100956         Prepare vasnprintf code for use with Unicode strings.
100957         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100958         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100959         TYPE_U32_STRING.
100960         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100961         a_u32_string variants.
100962         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100963         * lib/printf-args.c: Don't include config.h and the specification
100964         header if PRINTF_FETCHARGS is already defined.
100965         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100966         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100967         TYPE_U16_STRING, TYPE_U32_STRING.
100968         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100969         u16_directive, u16_directives, u32_directive, u32_directives): New
100970         types.
100971         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100972         New declarations.
100973         * lib/printf-parse.c: Don't include config.h and the specification
100974         header if PRINTF_PARSE is already defined. Eliminate the set of
100975         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100976         them now. Include c-ctype.h.
100977         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100978         directive and CHAR_T_ONLY_ASCII.
100979         * lib/vasnprintf.c: Don't include config.h and the specification header
100980         if VASNPRINTF is already defined.
100981         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100982         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100983         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100984         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100985         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100986         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100987         code accordingly.
100988         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100989         pad_ourselves also in this case, with the 'c' and 's' directives, and
100990         with a different notion of "width".
100991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100993 2007-06-10  Bruno Haible  <bruno@clisp.org>
100995         * modules/unistr/u32-mbsnlen: New file.
100996         * lib/unistr/u32-mbsnlen.c: New file.
100998         * modules/unistr/u16-mbsnlen: New file.
100999         * lib/unistr/u16-mbsnlen.c: New file.
101001         * modules/unistr/u8-mbsnlen: New file.
101002         * lib/unistr/u8-mbsnlen.c: New file.
101004         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
101005         declarations.
101007 2007-06-10  Bruno Haible  <bruno@clisp.org>
101009         * lib/string_.h (mbsnlen): New declaration.
101010         * lib/mbsnlen.c: New file.
101011         * m4/mbsnlen.m4: New file.
101012         * modules/mbsnlen: New file.
101013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
101014         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
101015         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
101017 2007-06-10  Bruno Haible  <bruno@clisp.org>
101019         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
101021 2007-06-10  Bruno Haible  <bruno@clisp.org>
101023         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
101024         * lib/mbuiter.h: Likewise.
101026 2007-06-10  Bruno Haible  <bruno@clisp.org>
101028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
101029         declaration.
101031 2007-06-10  Karl Berry  <karl@gnu.org>
101033         * config/srclist.txt: remove gettext entries, Bruno prefers
101034         to update individually.
101036 2007-06-10  Bruno Haible  <bruno@clisp.org>
101038         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
101039         'maxlen'. Ensure only length + width bytes are allocated, not
101040         length + 1 + width.
101042 2007-06-09  Bruno Haible  <bruno@clisp.org>
101044         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
101045         (CHAR_T): Remove macro.
101046         (VASNPRINTF): Update.
101048 2007-06-09  Bruno Haible  <bruno@clisp.org>
101050         * MODULES.html.sh (Unicode string functions): Add the new modules.
101052         * modules/uniconv/u32-conv-to-enc: New file.
101053         * lib/uniconv/u32-conv-to-enc.c: New file.
101054         * modules/uniconv/u32-conv-to-enc-tests: New file.
101055         * tests/uniconv/test-u32-conv-to-enc.c: New file.
101057         * modules/uniconv/u16-conv-to-enc: New file.
101058         * lib/uniconv/u16-conv-to-enc.c: New file.
101059         * lib/uniconv/u-conv-to-enc.h: New file.
101060         * modules/uniconv/u16-conv-to-enc-tests: New file.
101061         * tests/uniconv/test-u16-conv-to-enc.c: New file.
101063         * modules/uniconv/u8-conv-to-enc: New file.
101064         * lib/uniconv/u8-conv-to-enc.c: New file.
101065         * modules/uniconv/u8-conv-to-enc-tests: New file.
101066         * tests/uniconv/test-u8-conv-to-enc.c: New file.
101068         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
101069         u32_conv_to_encoding): New declarations.
101071 2007-06-09  Bruno Haible  <bruno@clisp.org>
101073         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
101075 2007-06-09  Bruno Haible  <bruno@clisp.org>
101077         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
101078         * modules/malloca: Renamed from modules/allocsa, updated.
101079         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
101080         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
101081         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
101082         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
101083         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
101084         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
101085         * modules/xmalloca: Renamed from modules/xallocsa, updated.
101086         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
101087         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
101088         * modules/c-strcasestr (Depends-on): Update.
101089         * lib/c-strcasestr.c: Update.
101090         * modules/c-strstr (Depends-on): Update.
101091         * lib/c-strstr.c: Update.
101092         * modules/canonicalize-lgpl (Depends-on): Update.
101093         * lib/canonicalize-lgpl.c: Update.
101094         * modules/clean-temp (Depends-on): Update.
101095         * lib/clean-temp.c: Update.
101096         * modules/csharpcomp (Depends-on): Update.
101097         * lib/csharpcomp.c: Update.
101098         * modules/csharpexec (Depends-on): Update.
101099         * lib/csharpexec.c: Update.
101100         * modules/javacomp (Depends-on): Update.
101101         * lib/javacomp.c: Update.
101102         * modules/javaexec (Depends-on): Update.
101103         * lib/javaexec.c: Update.
101104         * modules/mbscasestr (Depends-on): Update.
101105         * lib/mbscasestr.c: Update.
101106         * modules/mbsstr (Depends-on): Update.
101107         * lib/mbsstr.c: Update.
101108         * modules/setenv (Depends-on): Update.
101109         * lib/setenv.c: Update.
101110         * modules/strcasestr (Depends-on): Update.
101111         * lib/strcasestr.c: Update.
101112         * modules/striconveha (Depends-on): Update.
101113         * lib/striconveha.c: Update.
101114         * modules/relocatable-prog-wrapper (Files): Update.
101115         * lib/relocwrapper.c: Update.
101116         * build-aux/install-reloc: Update.
101117         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
101119 2007-06-08  Bruno Haible  <bruno@clisp.org>
101121         Port to uClibc.
101122         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
101123         * lib/fpurge.c (fpurge): Likewise.
101124         * lib/freading.c (freading): Likewise.
101125         * lib/fseeko.c (rpl_fseeko): Likewise.
101126         * lib/fseterr.c (fseterr): Likewise.
101127         * lib/fwriting.c (fwriting): Likewise.
101128         * tests/test-fflush.c (main): Avoid a failure on uClibc.
101130 2007-06-08  Bruno Haible  <bruno@clisp.org>
101132         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
101133         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
101134         * modules/gettext (Files): Add m4/intlmacosx.m4.
101136 2007-06-07  Bruno Haible  <bruno@clisp.org>
101138         * modules/localename-tests: New file.
101139         * tests/test-localename.c: New file.
101141         New module 'localename'.
101142         * lib/localename.h: New file.
101143         * lib/localename.c: New file, from GNU gettext.
101144         * m4/localename.m4: New file.
101145         * modules/localename: New file.
101147 2007-06-07  Bruno Haible  <bruno@clisp.org>
101149         Work around the lack of <wchar.h> on some builds of uClibc.
101150         * doc/headers/wchar.texi: Update.
101151         * lib/wchar_.h: Include <wchar.h> only if it exists.
101152         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
101153         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
101154         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
101155         doesn't exist.
101156         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
101157         * modules/mbfile (Depends-on): Add wchar.
101158         * modules/mbiter (Depends-on): Likewise.
101159         * modules/mbuiter (Depends-on): Likewise.
101160         Reported by Simon Josefsson.
101162 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
101164         Work around problem reported by Steven M. Schweda in
101165         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
101166         Tru64 5.1B with the Compaq compiler environment installed declares
101167         an 'isblank' function but does not define it in the C library.
101168         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
101169         * lib/regex_internal.h (isblank): Likewise.
101170         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
101171         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101173 2007-06-05  Bruno Haible  <bruno@clisp.org>
101175         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
101176         ia64.
101177         * modules/printf-safe: New file.
101178         * modules/fprintf-posix (Depends-on): Add printf-safe.
101179         * modules/printf-posix (Depends-on): Likewise.
101180         * modules/snprintf-posix (Depends-on): Likewise.
101181         * modules/sprintf-posix (Depends-on): Likewise.
101182         * modules/vasnprintf-posix (Depends-on): Likewise.
101183         * modules/vasprintf-posix (Depends-on): Likewise.
101184         * modules/vfprintf-posix (Depends-on): Likewise.
101185         * modules/vprintf-posix (Depends-on): Likewise.
101186         * modules/vsnprintf-posix (Depends-on): Likewise.
101187         * modules/vsprintf-posix (Depends-on): Likewise.
101188         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
101189         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
101190         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
101191         "no" on i386, x86_64, ia64.
101192         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
101193         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
101194         on i386, x86_64, ia64.
101195         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
101196         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
101197         on i386, x86_64, ia64.
101198         * tests/test-vasnprintf-posix.c: Include float.h.
101199         (LDBL80_WORDS): New macro.
101200         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
101201         on i386, x86_64, ia64.
101202         * tests/test-vasprintf-posix.c: Include float.h.
101203         (LDBL80_WORDS): New macro.
101204         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
101205         on i386, x86_64, ia64.
101206         * tests/test-snprintf-posix.c: Include float.h.
101207         * tests/test-sprintf-posix.c: Likewise.
101208         * tests/test-vsnprintf-posix.c: Likewise.
101209         * tests/test-vsprintf-posix.c: Likewise.
101211 2007-06-05  Bruno Haible  <bruno@clisp.org>
101213         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
101214         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
101215         non-IEEE numbers on i386, x86_64, ia64.
101216         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
101217         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
101218         * tests/test-isnanl.h: Include float.h.
101219         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
101221 2007-06-05  Bruno Haible  <bruno@clisp.org>
101223         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
101224         also the %a / %A. Handle the %a / %A code before this extra handling.
101226 2007-06-05  Bruno Haible  <bruno@clisp.org>
101228         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
101229         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
101231 2007-06-05  Bruno Haible  <bruno@clisp.org>
101233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
101234         typo in variable name.
101236 2007-06-05  Eric Blake  <ebb9@byu.net>
101238         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
101239         Reported by Simon Josefsson.
101241 2007-06-04  Bruno Haible  <bruno@clisp.org>
101243         Avoid test failures on some PowerPC platforms.
101244         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
101245         Define differently for PowerPC.
101246         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
101247         Reported by Gary V. Vaughan <gary@gnu.org>.
101249 2007-06-02  Bruno Haible  <bruno@clisp.org>
101251         Fix test-stdint failure on FreeBSD/ia64.
101252         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
101253         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
101254         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
101255         * doc/headers/stdint.texi: Update.
101257 2007-06-01  Bruno Haible  <bruno@clisp.org>
101259         * tests/test-binary-io.c (main): Pass a third argument to open().
101260         Reported by Gary V. Vaughan <gary@gnu.org>.
101262 2007-06-01  Bruno Haible  <bruno@clisp.org>
101264         * doc/functions/frexpl.texi: Update for mingw.
101266 2007-06-01  Bruno Haible  <bruno@clisp.org>
101268         * tests/test-lseek.c (main): Disable test of errno for invalid third
101269         argument.
101270         * doc/functions/lseek.texi: Update.
101271         Reported by Gary V. Vaughan <gary@gnu.org>.
101273 2007-05-28  Bruno Haible  <bruno@clisp.org>
101275         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
101277 2007-05-31  Eric Blake  <ebb9@byu.net>
101279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
101280         cross compiling.
101282 2007-05-30  Eric Blake  <ebb9@byu.net>
101283         and Bruno Haible  <bruno@clisp.org>
101285         Work around mingw test failures exposed by m4-1.4.9b.
101286         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
101287         * tests/test-unistd.c: Disable uid_t and git_t tests for the
101288         moment.
101290 2007-05-30  Bruno Haible  <bruno@clisp.org>
101292         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
101293         assuming that they are closed. Needed on HP-UX 11.
101295 2007-05-29  Bruno Haible  <bruno@clisp.org>
101297         Fix a problem with #include_next.
101298         * lib/dirent_.h: Split the double-inclusion guard.
101299         * lib/fcntl_.h: Likewise.
101300         * lib/float_.h: Likewise.
101301         * lib/iconv_.h: Likewise.
101302         * lib/inttypes_.h: Likewise.
101303         * lib/locale_.h: Likewise.
101304         * lib/math_.h: Likewise.
101305         * lib/netinet_in_.h: Likewise.
101306         * lib/search_.h: Likewise.
101307         * lib/signal_.h: Likewise.
101308         * lib/stdint_.h: Likewise.
101309         * lib/stdio_.h: Likewise.
101310         * lib/stdlib_.h: Likewise.
101311         * lib/string_.h: Likewise.
101312         * lib/sys_select_.h: Likewise.
101313         * lib/sys_socket_.h: Likewise.
101314         * lib/sys_stat_.h: Likewise.
101315         * lib/sys_time_.h: Likewise.
101316         * lib/sysexits_.h: Likewise.
101317         * lib/time_.h: Likewise.
101318         * lib/unistd_.h: Likewise.
101319         * lib/wchar_.h: Likewise.
101320         * lib/wctype_.h: Likewise.
101322 2007-05-29  Bruno Haible  <bruno@clisp.org>
101324         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
101325         for the moment.
101327 2007-05-29  Bruno Haible  <bruno@clisp.org>
101329         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
101330         invocation.
101331         Reported by Eric Blake.
101333 2007-05-29  Bruno Haible  <bruno@clisp.org>
101335         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
101336         compiling case.
101338 2007-05-29  Eric Blake  <ebb9@byu.net>
101339             Bruno Haible  <bruno@clisp.org>
101341         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
101342         cross compiles.
101344 2007-05-28  Eric Blake  <ebb9@byu.net>
101346         * modules/closein-tests (test_closein_LDADD): Support test on
101347         cygwin with libtool.
101349 2007-05-28  Bruno Haible  <bruno@clisp.org>
101351         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
101352         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101353         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101354         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101355         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101356         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101357         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101358         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101359         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101361 2007-05-28  Eric Blake  <ebb9@byu.net>
101363         Unconditionally include <config.h> in unit tests.
101364         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
101365         * tests/test-allocsa.c, tests/test-arcfour.c,
101366         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
101367         tests/test-array_list.c, tests/test-array_oset.c,
101368         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
101369         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
101370         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
101371         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
101372         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
101373         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
101374         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
101375         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
101376         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
101377         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
101378         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
101379         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
101380         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
101381         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
101382         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
101383         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
101384         test-md5.c, test-memmem.c, test-printf-posix.c,
101385         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
101386         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
101387         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
101388         test-strcasestr.c, test-striconv.c, test-striconveh.c,
101389         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
101390         test-vasnprintf-posix2.c, test-vasnprintf.c,
101391         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
101392         test-vfprintf-posix.c, test-vprintf-posix.c,
101393         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
101394         test-xvasprintf.c: Likewise.
101396 2007-05-28  Bruno Haible  <bruno@clisp.org>
101398         * gnulib-tool (func_import): Remember the --with-tests command-line
101399         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
101400         Reported by Eric Blake.
101402 2007-05-28  Bruno Haible  <bruno@clisp.org>
101404         * modules/ftell-tests: New file.
101405         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
101406         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
101408         * lib/ftell.c: New file.
101409         * modules/ftell: New file.
101410         * m4/ftell.m4: New file.
101411         * doc/functions/ftell.texi: Update.
101412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
101413         REPLACE_FTELL.
101414         * lib/stdio_.h (rpl_ftell): New declaration.
101415         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
101416         REPLACE_FTELL.
101418 2007-05-28  Eric Blake  <ebb9@byu.net>
101420         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
101422 2007-05-28  Bruno Haible  <bruno@clisp.org>
101424         * modules/fseek-tests: New file.
101425         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
101426         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
101428         * lib/fseek.c: New file.
101429         * modules/fseek: New file.
101430         * m4/fseek.m4: New file.
101431         * doc/functions/fseek.texi: Update.
101432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
101433         REPLACE_FSEEK.
101434         * lib/stdio_.h (rpl_fseek): New declaration.
101435         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
101436         REPLACE_FSEEK.
101438 2007-05-28  Bruno Haible  <bruno@clisp.org>
101440         * lib/stdio_.h (fflush): More comments.
101442 2007-05-28  Bruno Haible  <bruno@clisp.org>
101444         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
101445         runtime test.
101447 2007-05-28  Eric Blake  <ebb9@byu.net>
101449         Improve lseek module.
101450         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
101451         * lib/unistd_.h (lseek): Scale back link warning message.
101452         * tests/test-lseek.c: Beef up test.
101453         * tests/test-lseek.sh: Exercise more facets of lseek.
101454         Reported by Bruno Haible.
101456 2007-05-28  Bruno Haible  <bruno@clisp.org>
101458         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
101459         to define.
101461 2007-05-27  Bruno Haible  <bruno@clisp.org>
101463         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
101465 2007-05-27  Bruno Haible  <bruno@clisp.org>
101467         * modules/openmp: New file.
101468         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
101469         Noah Misch.
101471 2007-05-26  Bruno Haible  <bruno@clisp.org>
101473         * modules/chdir-long (Depends-on): Add fchdir.
101474         * modules/chdir-safer (Depends-on): Likewise.
101475         * modules/fts (Depends-on): Likewise.
101476         * modules/fts-lgpl (Depends-on): Likewise.
101477         * modules/openat (Depends-on): Likewise.
101478         * modules/savewd (Depends-on): Likewise.
101480 2007-05-24  Eric Blake  <ebb9@byu.net>
101482         Fix lseek on mingw.
101483         * modules/lseek: New module.
101484         * m4/lseek.m4: New file.
101485         * lib/lseek.c: New file.
101486         * modules/lseek-tests: New file.
101487         * tests/test-lseek.c: New file.
101488         * tests/test-lseek.sh: New file.
101489         * MODULES.html.sh: Document lseek module.
101490         * modules/fflush (Depends-on): Add lseek, fseeko.
101491         * modules/fseeko (Depends-on): Likewise.
101492         * modules/ftello (Depends-on): Likewise.
101493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
101494         broken.
101495         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
101496         broken.
101497         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
101498         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
101499         * lib/ftello.c (rpl_ftello): Likewise.
101500         * tests/test-fseeko.c (main): Test this.
101501         * tests/test-fseeko.sh: Likewise.
101502         * tests/test-ftello.c (main): Likewise.
101503         * tests/test-ftello.sh: Likewise.
101504         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
101505         implies replacing fseek.
101506         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
101507         HAVE_FTELLO.
101508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
101509         * modules/unistd (Makefile.am): Likewise.
101510         * lib/unistd_.h (lseek): Declare a replacement.
101511         * doc/functions/lseek.texi (lseek): Document this fix.
101512         * doc/functions/fseek.texi (fseek): Likewise.
101513         * doc/functions/ftell.texi (ftell): Likewise.
101515 2007-05-24  Bruno Haible  <bruno@clisp.org>
101517         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
101518         in the printed representation of a NaN.
101519         * tests/test-vasprintf-posix.c (test_function): Likewise.
101520         * tests/test-snprintf-posix.h (test_function): Likewise.
101521         * tests/test-sprintf-posix.h (test_function): Likewise.
101522         Reported by Eric Blake.
101524 2007-05-23  Eric Blake  <ebb9@byu.net>
101526         Fix fseeko/ftello on cygwin 1.5.24.
101527         * doc/functions/fseeko.texi (fseeko): Document the fix.
101528         * doc/functions/ftello.texi (ftello): Document the fix.
101529         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
101530         * doc/functions/stdout.text (stdout): New file.
101531         * doc/functions/stderr.text (stderr): New file.
101532         * doc/gnulib.texi (Function Substitutes): Use new files.
101533         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
101534         prior to 1.7.0.
101535         * tests/test-ftello.c (main): Likewise for ftello.
101536         * tests/test-fseeko.sh: New file.
101537         * tests/test-ftello.sh: New file.
101538         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
101539         with seekable stdin.
101540         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
101541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
101542         (gl_REPLACE_FSEEKO): New macro.
101543         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
101544         * modules/fseeko (Files): Distribute fseeko.c.
101545         * modules/ftello (Files): Distribute ftello.c.
101546         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
101547         mode.
101548         * lib/ftello.c (rpl_ftello): New file.
101549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
101550         fseeko, ftello.
101551         (gl_STDIN_LARGE_OFFSET): New macro.
101552         * modules/stdio (Makefile.am): Perform the replacement.
101553         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
101555 2007-05-23  Bruno Haible  <bruno@clisp.org>
101557         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
101558         GNULIB_POSIXCHECK is defined.
101560 2007-05-21  Bruno Haible  <bruno@clisp.org>
101562         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
101563         Check also the output for NaN arguments. When cross-compiling, guess
101564         no on IRIX.
101565         * lib/vasnprintf.c: Update comments.
101566         * tests/test-vasnprintf-posix.c (strisnan): New function.
101567         (test_function): Use it.
101568         * tests/test-vasprintf-posix.c (strisnan): New function.
101569         (test_function): Use it.
101570         * tests/test-snprintf-posix.h (strisnan): New function.
101571         (test_function): Use it.
101572         * tests/test-sprintf-posix.h (strisnan): New function.
101573         (test_function): Use it.
101574         Reported by Eric Blake.
101576 2007-05-20  Bruno Haible  <bruno@clisp.org>
101578         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
101579         numbers that fails on BeOS.
101580         * doc/functions/frexpl.texi: Update.
101582 2007-05-20  Jim Meyering  <jim@meyering.net>
101584         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
101585         forced upon us by glibc-2.6.
101587 2007-05-20  Bruno Haible  <bruno@clisp.org>
101589         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
101590         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
101591         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
101592         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
101593         NEED_PRINTF_INFINITE.
101594         (is_infinitel): New function.
101595         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
101596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
101597         gl_PREREQ_VASNPRINTF_INFINITE.
101598         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
101599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101600         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
101601         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
101602         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
101603         gl_PREREQ_VASNPRINTF_INFINITE.
101604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101611         * doc/functions/fprintf.texi: Update.
101612         * doc/functions/printf.texi: Update.
101613         * doc/functions/snprintf.texi: Update.
101614         * doc/functions/sprintf.texi: Update.
101615         * doc/functions/vfprintf.texi: Update.
101616         * doc/functions/vprintf.texi: Update.
101617         * doc/functions/vsnprintf.texi: Update.
101618         * doc/functions/vsprintf.texi: Update.
101620 2007-05-20  Bruno Haible  <bruno@clisp.org>
101622         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
101623         was not found in libc.
101624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
101626 2007-05-20  Bruno Haible  <bruno@clisp.org>
101628         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101629         printed as "-nan" instead of "nan".
101630         * tests/test-vasprintf-posix.c (test_function): Likewise.
101631         * tests/test-snprintf-posix.h (test_function): Likewise.
101632         * tests/test-sprintf-posix.h (test_function): Likewise.
101633         Needed for HP-UX 11.
101635 2007-05-20  Jim Meyering  <jim@meyering.net>
101637         Fix buggy test for the fchownat-deref bug.
101638         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
101639         symlink required for the run-test.  Without it, this test would
101640         always declare that fchownat doesn't work, and client code would
101641         unnecessarily use the replacement function with fixed libc.
101642         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
101643         Reported by Greg Schafer.
101645 2007-05-19  Bruno Haible  <bruno@clisp.org>
101647         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
101648         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
101649         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
101650         Needed for IRIX 6.5 and Solaris 2.5.1.
101652 2007-05-19  Bruno Haible  <bruno@clisp.org>
101654         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
101655         (test_function): Skip tests involving -0.0 on platforms where
101656         -0.0 = 0.0.
101657         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
101658         (test_function): Skip tests involving -0.0 on platforms where
101659         -0.0 = 0.0.
101660         * tests/test-snprintf-posix.h (have_minus_zero): New function.
101661         (test_function): Skip tests involving -0.0 on platforms where
101662         -0.0 = 0.0.
101663         * tests/test-sprintf-posix.h (have_minus_zero): New function.
101664         (test_function): Skip tests involving -0.0 on platforms where
101665         -0.0 = 0.0.
101666         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
101667         tests.
101668         * tests/test-printf-posix.h (test_function): Likewise.
101669         * tests/test-printf-posix.output: Remove all -0.0 related results.
101670         Needed for IRIX 6.5.
101672 2007-05-19  Bruno Haible  <bruno@clisp.org>
101674         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101675         printed as "nan0x7fffffff" instead of "nan".
101676         * tests/test-vasprintf-posix.c (test_function): Likewise.
101677         * tests/test-snprintf-posix.h (test_function): Likewise.
101678         * tests/test-sprintf-posix.h (test_function): Likewise.
101679         * tests/test-fprintf-posix.h (NaN): Remove macro.
101680         (test_function): Remove all NaN related tests.
101681         * tests/test-printf-posix.h (NaN): Remove macro.
101682         (test_function): Remove all NaN related tests.
101683         * tests/test-printf-posix.output: Remove all NaN related results.
101684         Needed for IRIX 6.5.
101686 2007-05-19  Bruno Haible  <bruno@clisp.org>
101688         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
101689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
101691 2007-05-19  Bruno Haible  <bruno@clisp.org>
101693         * lib/float_.h: New file.
101694         * m4/float_h.m4: New file.
101695         * modules/float: New file.
101696         * modules/isnanl (Dependencies): Add float.
101697         * modules/isnanl-nolibm (Dependencies): Likewise.
101698         * modules/mathl (Dependencies): Likewise.
101699         * modules/printf-frexpl (Dependencies): Likewise.
101700         * modules/signbit (Dependencies): Likewise.
101701         * modules/vasnprintf (Dependencies): Likewise.
101702         * doc/headers/float.texi: Update.
101704 2007-05-19  Jim Meyering  <jim@meyering.net>
101706         * lib/utimens.c (gl_futimens): Rename from futimens,
101707         now that glibc-2.6 declares futimens.
101708         * lib/utimens.h: Likewise.
101710 2007-05-19  Bruno Haible  <bruno@clisp.org>
101712         Avoid test failures on mingw.
101713         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
101714         * tests/test-printf-posix.sh: Likewise.
101715         * tests/test-vfprintf-posix.sh: Likewise.
101716         * tests/test-vprintf-posix.sh: Likewise.
101718 2007-05-19  Bruno Haible  <bruno@clisp.org>
101720         Fix *printf result for NaN, Inf, -0.0 on mingw.
101721         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
101722         * lib/vasnprintf.c: Include math.h and isnan.h.
101723         (is_infinite_or_zero): New function.
101724         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
101725         values in the %f, %F, %e, %E, %g, %G directives.
101726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
101727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101728         gl_PRINTF_INFINITE and test its result. Invoke
101729         gl_PREREQ_VASNPRINTF_INFINITE.
101730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101737         * doc/functions/fprintf.texi: Update.
101738         * doc/functions/printf.texi: Update.
101739         * doc/functions/snprintf.texi: Update.
101740         * doc/functions/sprintf.texi: Update.
101741         * doc/functions/vfprintf.texi: Update.
101742         * doc/functions/vprintf.texi: Update.
101743         * doc/functions/vsnprintf.texi: Update.
101744         * doc/functions/vsprintf.texi: Update.
101746 2007-05-19  Bruno Haible  <bruno@clisp.org>
101748         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
101749         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
101750         Instead of multiplying with 10^k, set extra_zeroes to k.
101751         (scale10_round_long_double): Remove function.
101753 2007-05-18  Bruno Haible  <bruno@clisp.org>
101755         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
101756         introduced on 2007-05-06.
101758 2007-05-18  Bruno Haible  <bruno@clisp.org>
101760         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
101761         %g directives.
101762         * tests/test-vasprintf-posix.c (test_function): Likewise.
101763         * tests/test-snprintf-posix.h (test_function): Likewise.
101764         * tests/test-sprintf-posix.h (test_function): Likewise.
101766 2007-05-18  Bruno Haible  <bruno@clisp.org>
101768         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
101769         (strmatch): New function.
101770         (test_function): Test the %f directive on numbers of various exponents.
101771         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
101772         (strmatch): New function.
101773         (test_function): Test the %f directive on numbers of various exponents.
101774         * tests/test-snprintf-posix.h (strmatch): New function.
101775         (test_function): Test the %f directive on numbers of various exponents.
101776         * tests/test-sprintf-posix.h (strmatch): New function.
101777         (test_function): Test the %f directive on numbers of various exponents.
101778         * tests/test-snprintf-posix.c (SIZEOF): New macro.
101779         * tests/test-sprintf-posix.c (SIZEOF): New macro.
101780         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
101781         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
101783 2007-05-18  Bruno Haible  <bruno@clisp.org>
101785         Add support for 'long double' number output.
101786         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
101787         * lib/vasnprintf.c: Include math.h and float+.h.
101788         (mp_limb_t): New type.
101789         (GMP_LIMB_BITS): New macro.
101790         (mp_twolimb_t): New type.
101791         (GMP_TWOLIMB_BITS): New macro.
101792         (mpn_t): New type.
101793         (multiply, divide, convert_to_decimal, decode_long_double,
101794         scale10_round_long_double, scale10_round_decimal_long_double,
101795         floorlog10l): New functions.
101796         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
101797         for the %f, %F, %e, %E, %g, %G directives.
101798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
101799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101800         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
101801         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
101802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101809         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
101810         * modules/snprintf-posix (Depends-on): Likewise.
101811         * modules/sprintf-posix (Depends-on): Likewise.
101812         * modules/vasnprintf-posix (Depends-on): Likewise.
101813         * modules/vasprintf-posix (Depends-on): Likewise.
101814         * modules/vfprintf-posix (Depends-on): Likewise.
101815         * modules/vsnprintf-posix (Depends-on): Likewise.
101816         * modules/vsprintf-posix (Depends-on): Likewise.
101817         * modules/vasnprintf (Files): Add lib/float+.h.
101818         * doc/functions/fprintf.texi: Update.
101819         * doc/functions/printf.texi: Update.
101820         * doc/functions/snprintf.texi: Update.
101821         * doc/functions/sprintf.texi: Update.
101822         * doc/functions/vfprintf.texi: Update.
101823         * doc/functions/vprintf.texi: Update.
101824         * doc/functions/vsnprintf.texi: Update.
101825         * doc/functions/vsprintf.texi: Update.
101827 2007-05-18  Bruno Haible  <bruno@clisp.org>
101829         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
101831 2007-05-18  Bruno Haible  <bruno@clisp.org>
101833         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
101834         for printing 64-bit integers. Needed for mingw.
101836 2007-05-18  Bruno Haible  <bruno@clisp.org>
101838         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101839         gl_FUNC_FREXPL_WORKS.
101840         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
101842 2007-05-18  Bruno Haible  <bruno@clisp.org>
101844         * modules/frexpl-nolibm-tests: New file.
101846         * modules/frexpl-nolibm: New file.
101847         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
101849 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101851         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
101852         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101853         GCC 4.2, which otherwise issues a lot of warnings.
101854         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
101855         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
101856         Likewise.
101857         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
101858         * modules/iconv_open (iconv.h): Likewise.
101859         * modules/locale (locale.h): Likewise.
101860         * modules/netinet_in (netinet/in.h): Likewise.
101861         * modules/sys_select (sys_select.h): Likewise.
101862         * modules/sys_socket (sys/socket.h): Likewise.
101863         * modules/sys_stat (sys/stat.h): Likewise.
101864         * modules/sysexits (sysexits.h): Likewise.
101865         * modules/unistd (unistd.h): Likewise.
101867 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101869         * modules/closein-tests (Makefile.am): Distribute
101870         `test-closein.sh'.
101872 2007-05-17  Bruno Haible  <bruno@clisp.org>
101874         * tests/test-printf-posix.output: Renamed from
101875         tests/test-fprintf-posix.out.
101876         * modules/fprintf-posix-tests: Update.
101877         * modules/printf-posix-tests: Update.
101878         * modules/vfprintf-posix-tests: Update.
101879         * modules/vprintf-posix-tests: Update.
101880         * tests/test-fprintf-posix.sh: Update.
101881         * tests/test-printf-posix.sh: Update.
101882         * tests/test-vfprintf-posix.sh: Update.
101883         * tests/test-vprintf-posix.sh: Update.
101884         Reported by Ralf Wildenhues.
101886 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101888         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
101889         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101890         GCC 4.2, which otherwise issues a lot of warnings.
101891         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
101892         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
101893         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
101894         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101895         it should no longer be needed.
101896         * lib/string_.h: Likewise.
101897         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101898         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101899         * modules/inttypes (inttypes.h): Likewise.
101900         * modules/math (math.h): Likewise.
101901         * modules/search (search.h): Likewise.
101902         * modules/signal (signal.h): Likewise.
101903         * modules/stdint (stdint.h): Likewise.
101904         * modules/stdio (stdio.h): Likewise.
101905         * modules/stdlib (stdlib.h): Likewise.
101906         * modules/string (string.h): Likewise.
101907         * modules/sys_time (sys/time.h): Likewise.
101908         * modules/time (time.h): Likewise.
101909         * modules/wchar (wchar.h): Likewise.
101910         * modules/wctype (wtype.h): Likewise.
101912 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101914         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101916 2007-05-13  Bruno Haible  <bruno@clisp.org>
101918         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101919         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101920         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101921         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101922         (gl_PREREQ_STRTOK_R): Don't require it here.
101924 2007-05-13  Bruno Haible  <bruno@clisp.org>
101926         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101927         when used in C++ mode.
101929 2007-05-12  Bruno Haible  <bruno@clisp.org>
101931         * lib/linebuffer.h: Tweak doc.
101932         * lib/linebuffer.c: Likewise.
101934 2007-05-12  James Youngman  <jay@gnu.org>
101936         * lib/linebuffer.c (readlinebuffer_delim): New function,
101937         like readlinebuffer, but use a caller-specified delimiter.
101938         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101939         as the delimiter.
101940         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101942 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101944         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101945         * modules/openat (Files): Remove openat-die.c.
101946         (Depends-on): Add openat-die.
101947         * modules/openat-die: New module.
101949 2007-05-06  Bruno Haible  <bruno@clisp.org>
101951         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101952         Update with info about Cygwin.
101953         * doc/functions/fprintf.texi: Update.
101954         * doc/functions/printf.texi: Update.
101955         * doc/functions/snprintf.texi: Update.
101956         * doc/functions/sprintf.texi: Update.
101957         * doc/functions/vfprintf.texi: Update.
101958         * doc/functions/vprintf.texi: Update.
101959         * doc/functions/vsnprintf.texi: Update.
101960         * doc/functions/vsprintf.texi: Update.
101961         Reported by Eric Blake.
101963 2007-05-06  Bruno Haible  <bruno@clisp.org>
101965         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101966         padding ourselves for the floating-point directives.
101967         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101970         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101971         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101979         * tests/test-snprintf-posix.h (test_function): Also check the width
101980         and some flags in the %f directive.
101981         * tests/test-sprintf-posix.h (test_function): Likewise.
101982         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101983         * tests/test-vasprintf-posix.c (test_function): Likewise.
101984         * doc/functions/fprintf.texi: Update.
101985         * doc/functions/printf.texi: Update.
101986         * doc/functions/snprintf.texi: Update.
101987         * doc/functions/sprintf.texi: Update.
101988         * doc/functions/vfprintf.texi: Update.
101989         * doc/functions/vprintf.texi: Update.
101990         * doc/functions/vsnprintf.texi: Update.
101991         * doc/functions/vsprintf.texi: Update.
101993 2007-05-06  Bruno Haible  <bruno@clisp.org>
101995         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101996         pass the ' flag character to sprintf or snprintf.
101997         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102000         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
102001         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
102002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
102004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102009         * tests/test-snprintf-posix.h (test_function): Also check the grouping
102010         flag.
102011         * tests/test-sprintf-posix.h (test_function): Likewise.
102012         * tests/test-vasnprintf-posix.c (test_function): Likewise.
102013         * tests/test-vasprintf-posix.c (test_function): Likewise.
102014         * doc/functions/fprintf.texi: Update.
102015         * doc/functions/printf.texi: Update.
102016         * doc/functions/snprintf.texi: Update.
102017         * doc/functions/sprintf.texi: Update.
102018         * doc/functions/vfprintf.texi: Update.
102019         * doc/functions/vprintf.texi: Update.
102020         * doc/functions/vsnprintf.texi: Update.
102021         * doc/functions/vsprintf.texi: Update.
102023 2007-05-01  Bruno Haible  <bruno@clisp.org>
102025         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
102027 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
102029         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
102030         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
102032 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
102034         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
102035         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
102036         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
102038 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
102040         * lib/argp-help.c (struct hol_entry): New member `ord'.
102041         (HOL_ENTRY_PTRCMP): Use ord for comparison
102042         (hol_sort): Initialize ord.
102044 2007-05-01  Bruno Haible  <bruno@clisp.org>
102046         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
102047         Reported by Eric Blake.
102048         * doc/gnulib.texi (Function Substitutes): Update.
102050 2007-05-01  Bruno Haible  <bruno@clisp.org>
102052         * doc/functions.texi: Remove file, now redundant through
102053         doc/functions/*.texi.
102055 2007-05-01  Bruno Haible  <bruno@clisp.org>
102057         * modules/argp (Depends-on): Add sleep.
102059 2007-05-01  Bruno Haible  <bruno@clisp.org>
102061         * modules/sleep-tests: New file.
102062         * tests/test-sleep.c: New file.
102064         * modules/sleep: New file.
102065         * lib/sleep.c: New file.
102066         * m4/sleep.m4: New file.
102067         * lib/unistd_.h (sleep): New declaration.
102068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
102069         HAVE_SLEEP.
102070         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
102071         * doc/functions/sleep.texi: Document the sleep module.
102073 2007-05-01  Bruno Haible  <bruno@clisp.org>
102075         * lib/sigprocmask.h: Remove file.
102076         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
102077         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
102078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
102079         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
102080         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
102081         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
102082         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
102083         HAVE_SIGSET_T as a shell variable.
102084         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
102085         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
102086         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
102087         (Depends-on): Add signal. Remove verify.
102088         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
102089         (Include): Mention <signal.h> instead of sigprocmask.h.
102090         * NEWS: Mention the change.
102091         * lib/fatal-signal.c: Don't include sigprocmask.h.
102093 2007-05-01  Bruno Haible  <bruno@clisp.org>
102095         * modules/signal: New file.
102096         * lib/signal_.h: New file.
102097         * m4/signal_h.m4: New file.
102099 2007-05-01  Bruno Haible  <bruno@clisp.org>
102101         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
102102         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
102103         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
102104         HAVE_WCTYPE_CTMP_BUG into wctype.h.
102106 2007-05-01  Bruno Haible  <bruno@clisp.org>
102108         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
102109         configure time.
102110         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
102111         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
102112         * modules/sys_stat (Makefile.am): Substitute their values into
102113         sys/stat.h.
102115 2007-05-01  Bruno Haible  <bruno@clisp.org>
102117         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
102118         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
102119         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
102121 2007-05-01  Bruno Haible  <bruno@clisp.org>
102123         * doc/header/assert.texi: Undo last change: don't mention the gnulib
102124         'assert' module here.
102126 2007-05-01  Bruno Haible  <bruno@clisp.org>
102128         * doc/functions/*.texi: New files.
102129         * doc/functions/google-ranking.txt: New file.
102130         * doc/gnulib.texi (Function Substitutes): New chapter.
102131         (ctime, inet_ntoa): Remove sections.
102132         * doc/ctime.texi: Remove file.
102133         * doc/inet_ntoa.texi: Remove file.
102134         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
102135         dependencies.
102136         (%.info): New rule, specifying a --reference-limit.
102138 2007-05-01  Bruno Haible  <bruno@clisp.org>
102140         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
102142 2007-05-01  Bruno Haible  <bruno@clisp.org>
102144         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
102145         the portability of 'mkdir' to mingw systems.
102147 2007-05-01  Bruno Haible  <bruno@clisp.org>
102149         * doc/headers/google-ranking.txt: New file.
102151 2007-04-30  Eric Blake  <ebb9@byu.net>
102153         Prefer fseeko to fseek.
102154         * modules/getpass (Depends-on): Add fseeko.
102155         * lib/getpass.c (getpass): Use fseeko, not fseek.
102157 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
102159         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
102160         assumes the sorting is stable, while most qsort implementations
102161         are not.  Use argument addresses to ensure they never compare as
102162         equal.
102164         * tests/test-argp-2.sh (usage-indent test): Fix output
102165         (func_compare): Restore diff options
102166         * tests/test-argp.c: Restore #include "progname.h"
102168 2007-04-29  Bruno Haible  <bruno@clisp.org>
102170         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
102171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102172         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
102173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102174         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
102175         (configure.ac): Define CHECK_SNPRINTF_POSIX.
102176         (TESTS, check_PROGRAMS): Add test-snprintf.
102177         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
102178         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
102179         (TESTS, check_PROGRAMS): Add test-vsnprintf.
102180         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
102181         assertions that fail on HP-UX, OSF/1, or IRIX.
102182         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
102184 2007-04-29  Bruno Haible  <bruno@clisp.org>
102186         * MODULES.html.sh (posix_functions): Remove 'contents'.
102188 2007-04-29  Karl Berry  <karl@gnu.org>
102190         * config/srclist.txt (gendocs_template_min): new entry.
102192 2007-04-29  Bruno Haible  <bruno@clisp.org>
102194         Work around fpurge bug on BSD systems.
102195         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
102196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
102197         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
102198         fpurge to rpl_fpurge if the system already has this function.
102199         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
102200         the case where the system already has this function. Correct invariants
102201         on BSD systems.
102202         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
102203         BSD systems.
102205 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
102207         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
102208         proposed by Sven Verdoolaege.
102210         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
102211         options.
102212         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
102213         (usage and help tests): Update
102215 2007-04-29  Bruno Haible  <bruno@clisp.org>
102217         * tests/test-fflush.c (main): Use a file of size 17, not 10.
102218         Print more information in case of failure. Disable a test on BeOS.
102220 2007-04-29  Bruno Haible  <bruno@clisp.org>
102222         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
102223         This helps debugging on systems on which no gdb is available.
102225 2007-04-29  Bruno Haible  <bruno@clisp.org>
102227         * lib/freading.h: Improve comments.
102228         * lib/fwriting.h: Likewise.
102229         * tests/test-freading.c (main): Don't check freading immediately after
102230         repositioning. Needed for glibc.
102232 2007-04-29  Bruno Haible  <bruno@clisp.org>
102234         * lib/freading.c (freading): Trivial simplification.
102236 2007-04-28  Bruno Haible  <bruno@clisp.org>
102238         * tests/test-fwriting.c (main): Also test the interaction between
102239         fflush and fwriting.
102240         * modules/fwriting-tests (Depends-on): Add fflush.
102242         * tests/test-freading.c (main): Also test the interaction between
102243         fflush and freading.
102244         * modules/freading-tests (Depends-on): Add fflush.
102246 2007-04-28  Bruno Haible  <bruno@clisp.org>
102248         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
102249         fseeko and ftello.
102250         Suggested by Eric Blake.
102252 2007-04-28  Jim Meyering  <jim@meyering.net>
102254         Avoid false-negative in gl_STDINT_H's C99 conformance test.
102255         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
102256         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
102258 2007-04-27  Eric Blake  <ebb9@byu.net>
102260         * doc/headers/assert.texi (assert.h): Document assert module use.
102262 2007-04-27  Bruno Haible  <bruno@clisp.org>
102264         * doc/headers/*.texi: New files.
102265         * doc/gnulib.texi (Header File Substitutes): New chapter.
102266         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
102267         dependencies.
102268         (standards.info ,standards.html, standards.dvi): Update dependencies.
102269         (mostlyclean, clean): New targets.
102271 2007-04-27  Bruno Haible  <bruno@clisp.org>
102273         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
102274         * modules/sysexits (Files, Makefile.am): Update.
102276         * lib/sys_socket_.h: Renamed from lib/socket_.h.
102277         * modules/sys_socket (Files, Makefile.am): Update.
102279         * lib/sys_stat_.h: Renamed from lib/stat_.h.
102280         * modules/sys_stat (Files, Makefile.am): Update.
102282 2007-04-27  Eric Blake  <ebb9@byu.net>
102284         * lib/freading.h: Improve comments.
102285         * lib/fwriting.h: Likewise.
102286         * lib/fflush.c: Likewise.
102288         Fix closein for mingw.
102289         * modules/closein-tests: Add tests for closein.
102290         * tests/test-closein.c: New file.
102291         * tests/test-closein.sh: Likewise.
102292         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
102293         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
102295 2007-04-27  Bruno Haible  <bruno@clisp.org>
102297         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
102298         version is < 6.
102299         * lib/math_.h [__DECC]: Likewise.
102300         * lib/stdio_.h [__DECC]: Likewise.
102301         * lib/stdlib_.h [__DECC]: Likewise.
102302         * lib/string_.h [__DECC]: Likewise.
102303         * lib/time_.h [__DECC]: Likewise.
102304         * lib/wchar_.h [__DECC]: Likewise.
102305         * lib/wctype_.h [__DECC]: Likewise.
102307 2007-04-27  Bruno Haible  <bruno@clisp.org>
102309         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
102311 2007-04-27  Bruno Haible  <bruno@clisp.org>
102313         * lib/fflush.c: Add comments.
102314         * modules/fpurge-tests (Depends-on): Add fflush.
102315         * modules/freadable-tests (Depends-on): Likewise.
102316         * modules/fwritable-tests (Depends-on): Likewise.
102318 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
102320         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
102321         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
102322         Report by Bruno Haible <bruno@clisp.org>.
102324 2007-04-26  Eric Blake  <ebb9@byu.net>
102326         Fix fflush on mingw.
102327         * modules/fflush (Depends-on): Add freading.
102328         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
102329         but unread data.
102331 2007-04-26  Eric Blake  <ebb9@byu.net>
102332         and Bruno Haible  <bruno@clisp.org>
102334         Implement freading and fwriting.
102335         * lib/freading.c: New file.
102336         * lib/freading.h: Likewise.
102337         * m4/freading.m4: Likewise.
102338         * modules/freading: Likewise.
102339         * modules/freading-tests: Likewise.
102340         * tests/test-freading.c: Likewise.
102341         * lib/fwriting.c: New file.
102342         * lib/fwriting.h: Likewise.
102343         * m4/fwriting.m4: Likewise.
102344         * modules/fwriting: Likewise.
102345         * modules/fwriting-tests: Likewise.
102346         * tests/test-fwriting.c: Likewise.
102347         * MODULES.html.sh (File stream based Input/Output): Mention them.
102349 2007-04-26  Bruno Haible  <bruno@clisp.org>
102351         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
102352         'long' when we assume it.
102353         Suggested by Eric Blake.
102355 2007-04-26  Bruno Haible  <bruno@clisp.org>
102357         Ensure fseeko, ftello are declared on glibc systems.
102358         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
102359         * modules/fseeko (configure.ac-early): Likewise.
102360         * modules/ftello (configure.ac-early): Likewise.
102361         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
102362         AC_FUNC_FSEEKO for this.
102363         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
102364         (gl_CHECK_FSEEKO): Remove macro.
102366 2007-04-26  Bruno Haible  <bruno@clisp.org>
102368         * tests/test-fflush.c (main): Also check the ftell result after
102369         fflush and fseek/fseeko.
102370         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
102371         file descriptor position cache in the stream.
102372         * lib/fseeko.c (rpl_fseeko): Likewise.
102374 2007-04-26  Bruno Haible  <bruno@clisp.org>
102376         * modules/fflush-tests (Depends-on): Add fseeko.
102378 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
102379             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102381         * lib/argz_.h: ensure error_t definition is obtained in same
102382         mechanism system argz.h would have.
102383         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
102384         argz facilities are known bad.  Err on the side of caution if
102385         cross-compiling.
102387 2007-04-25  Eric Blake  <ebb9@byu.net>
102389         * lib/fpurge.c (includes): Use stdlib.h for free.
102390         * tests/test-fflush.c (main): Also test fflush-fseeko.
102392 2007-04-25  Bruno Haible  <bruno@clisp.org>
102394         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
102395         * lib/fseeko.c: New file.
102396         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
102397         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
102398         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
102399         gl_FUNC_FSEEKO.
102400         (gl_FUNC_FSEEKO): Invoke it.
102401         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
102402         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
102403         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
102405 2007-04-25  Bruno Haible  <bruno@clisp.org>
102407         * modules/fflush (Depends-on): Add ftello.
102409 2007-04-25  Bruno Haible  <bruno@clisp.org>
102411         * modules/ftello-tests: New file.
102412         * tests/test-ftello.c: New file.
102414         * modules/ftello: New file.
102415         * m4/ftello.m4: New file.
102416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
102417         HAVE_FTELLO.
102418         * lib/stdio_.h (ftello): New declaration.
102419         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
102420         HAVE_FTELLO.
102422 2007-04-25  Bruno Haible  <bruno@clisp.org>
102424         * modules/fseeko-tests: New file.
102425         * tests/test-fseeko.c: New file.
102427         * modules/fseeko: New file.
102428         * m4/fseeko.m4: New file.
102429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
102430         HAVE_FSEEKO.
102431         * lib/stdio_.h (fseeko): New declaration.
102432         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
102433         HAVE_FSEEKO.
102435 2007-04-25  Bruno Haible  <bruno@clisp.org>
102437         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
102439 2007-04-25  Bruno Haible  <bruno@clisp.org>
102441         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
102442         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
102443         * tests/test-unistd.c: Likewise.
102444         * tests/test-fcntl.c: Likewise.
102446 2007-04-23  Eric Blake  <ebb9@byu.net>
102448         * lib/fflush.c: Fix missing include.
102449         Reported by Bruno Haible.
102451 2007-04-23  Bruno Haible  <bruno@clisp.org>
102453         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
102454         Reported by Eric Blake.
102456 2007-04-23  Bruno Haible  <bruno@clisp.org>
102458         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
102460 2007-04-23  Bruno Haible  <bruno@clisp.org>
102462         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
102464 2007-04-23  Bruno Haible  <bruno@clisp.org>
102466         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
102467         Needed on HP-UX 11.
102469 2007-04-16  Eric Blake  <ebb9@byu.net>
102471         Make fflush rely on fpurge.
102472         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
102473         open coding all variants.
102474         * modules/fflush (Depends-on): Add fpurge and unistd.
102475         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
102476         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
102478         Fix --with-tests compilation on cygwin.
102479         * modules/argmatch-tests (Makefile.am): List gnulib library first
102480         in LDADD.
102481         * modules/argp-tests (Makefile.am): Likewise.
102482         * modules/array-list-tests (Makefile.am): Likewise.
102483         * modules/array-oset-tests (Makefile.am): Likewise.
102484         * modules/avltree-list-tests (Makefile.am): Likewise.
102485         * modules/avltree-oset-tests (Makefile.am): Likewise.
102486         * modules/avltreehash-list-tests (Makefile.am): Likewise.
102487         * modules/carray-list-tests (Makefile.am): Likewise.
102488         * modules/dirname-tests (Makefile.am): Likewise.
102489         * modules/frexp-tests (Makefile.am): Likewise.
102490         * modules/isnanl-tests (Makefile.am): Likewise.
102491         * modules/linked-list-tests (Makefile.am): Likewise.
102492         * modules/linkedhash-list-tests (Makefile.am): Likewise.
102493         * modules/lock-tests (Makefile.am): Likewise.
102494         * modules/rbtree-list-tests (Makefile.am): Likewise.
102495         * modules/rbtree-oset-tests (Makefile.am): Likewise.
102496         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
102497         * modules/tls-tests (Makefile.am): Likewise.
102498         * modules/tsearch-tests (Makefile.am): Likewise.
102499         * modules/xvasprintf-tests (Makefile.am): Likewise.
102501         Fix fpurge for cygwin.
102502         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
102503         value.
102504         * modules/fpurge-tests (Depends-on): Clean up trash.
102506 2007-04-16  Simon Josefsson  <simon@josefsson.org>
102508         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
102510         * m4/autobuild.m4: Re-indent.
102512 2007-04-13  Bruno Haible  <bruno@clisp.org>
102514         * modules/fpurge-tests: New file.
102515         * tests/test-fpurge.c: New file.
102517         * modules/fpurge: New file.
102518         * lib/fpurge.h: New file.
102519         * lib/fpurge.c: New file.
102520         * m4/fpurge.m4: New file.
102522 2007-04-13  Bruno Haible  <bruno@clisp.org>
102524         * modules/fbufmode-tests: New file.
102525         * tests/test-fbufmode.c: New file.
102527         * modules/fbufmode: New file.
102528         * lib/fbufmode.h: New file.
102529         * lib/fbufmode.c: New file.
102530         * m4/fbufmode.m4: New file.
102532 2007-04-13  Bruno Haible  <bruno@clisp.org>
102534         * modules/fwritable-tests: New file.
102535         * tests/test-fwritable.c: New file.
102537         * modules/fwritable: New file.
102538         * lib/fwritable.h: New file.
102539         * lib/fwritable.c: New file.
102540         * m4/fwritable.m4: New file.
102542 2007-04-13  Bruno Haible  <bruno@clisp.org>
102544         * modules/freadable-tests: New file.
102545         * tests/test-freadable.c: New file.
102547         * modules/freadable: New file.
102548         * lib/freadable.h: New file.
102549         * lib/freadable.c: New file.
102550         * m4/freadable.m4: New file.
102552 2007-04-13  Bruno Haible  <bruno@clisp.org>
102554         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
102555         MOSTLYCLEANFILES.
102557 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102559         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
102560         gzip bootstrap.conf to avoid dragging in i18n machinery.
102561         (gnulib_tool_option): Use it.
102563 2007-04-13  Bruno Haible  <bruno@clisp.org>
102565         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
102566         %F directives.
102567         * tests/test-vasprintf-posix.c (test_function): Likewise.
102568         * tests/test-snprintf-posix.h (test_function): Likewise.
102569         * tests/test-sprintf-posix.h (test_function): Likewise.
102570         * tests/test-fprintf-posix.h (test_function): Likewise.
102571         * tests/test-printf-posix.h (test_function): Likewise.
102572         * tests/test-fprintf-posix.out: Likewise.
102574 2007-04-13  Bruno Haible  <bruno@clisp.org>
102576         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
102577         * modules/tls-tests (configure.ac): Likewise.
102578         Reported by Arto C. Nirkko <anirkko@insel.ch>.
102580 2007-04-13  Bruno Haible  <bruno@clisp.org>
102582         * lib/tls.c (glthread_tls_get): Fix return type.
102583         Patch by Arto C. Nirkko <anirkko@insel.ch>.
102585 2007-04-12  Eric Blake  <ebb9@byu.net>
102587         * modules/gettime (Depends-on): Remove gettime.
102588         Reported by Dmitry V. Levin.
102590 2007-04-12  Bruno Haible  <bruno@clisp.org>
102592         * modules/fflush (Include): Mention <stdio.h>.
102593         * modules/strtoimax (Include): Mention <inttypes.h>.
102594         * modules/strtoumax (Include): Likewise.
102596 2007-04-12  Eric Blake  <ebb9@byu.net>
102598         * .cvsignore: New file.
102599         * .gitignore: Likewise.
102601 2007-04-12  Bruno Haible  <bruno@clisp.org>
102603         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
102604         not before, since $(LDADD) often contains libgnu.a.
102605         * modules/striconv-tests (test_striconv_LDADD): Likewise.
102606         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
102607         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
102608         Needed on Cygwin.
102610 2007-04-12  Eric Blake  <ebb9@byu.net>
102612         Work around glibc's failure to flush stdin on fclose.
102613         * lib/closein.c (close_stdin): Flush stdin before closing.
102615         Work around glibc's failure to reset seekable stdin on exit.
102616         * modules/closein: New module.
102617         * lib/closein.c: New file.
102618         * lib/closein.h: Likewise.
102619         * m4/closein.m4: Likewise.
102620         * MODULES.html.sh (File stream based Input/Output): Document it.
102622 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102624         * gnulib-tool: Rename generated 'autobuild' script to
102625         'do-autobuild' in --create-megatestdir output.
102627         * doc/gnulib.texi (Build robot for gnulib): Fix.
102629 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102631         * modules/sysexits (Depends-on): Add absolute-header.
102633 2007-04-12  Eric Blake  <ebb9@byu.net>
102635         No need to preserve errno on success.
102636         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
102637         Reported by Bruno Haible.
102639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102641         * MODULES.html.sh (Support for maintaining and releasing
102642         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
102644 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102646         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
102648 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102650         * modules/autobuild: New module.
102652         * m4/autobuild.m4: New file.
102654 2007-04-11  Bruno Haible  <bruno@clisp.org>
102656         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
102657         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
102658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
102659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
102660         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102661         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102662         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102663         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102664         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102665         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
102667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
102670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
102673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
102676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
102679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
102682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102684         Reported by Eric Blake.
102686 2007-04-11  Bruno Haible  <bruno@clisp.org>
102688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
102690 2007-04-10  Bruno Haible  <bruno@clisp.org>
102692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
102693         for NaN and Infinity. Needed on FreeBSD 6.1.
102694         * tests/test-vasnprintf-posix.c (test_function): Undo last change
102695         regarding results for "%010a" of Infinity and NaN.
102696         * tests/test-vasprintf-posix.c (test_function): Likewise.
102697         * tests/test-snprintf-posix.h (test_function): Likewise.
102698         * tests/test-sprintf-posix.h (test_function): Likewise.
102699         * tests/test-fprintf-posix.h (test_function): Likewise.
102700         * tests/test-printf-posix.h (test_function): Likewise.
102701         * tests/test-fprintf-posix.out: Likewise.
102703 2007-04-10  Bruno Haible  <bruno@clisp.org>
102705         * modules/locale-tests: New file.
102706         * tests/test-locale.c: New file.
102708         * modules/locale: New file.
102709         * lib/locale_.h: New file.
102710         * m4/locale_h.m4: New file.
102712 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
102713             Bruno Haible  <bruno@clisp.org>
102715         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
102716         be determined, test for availability of the copysignf, copysign,
102717         copysignl functions.
102718         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
102719         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
102720         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
102722 2007-04-09  Eric Blake  <ebb9@byu.net>
102724         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
102725         * modules/stdio (Makefile.am): Support fflush.
102726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
102727         * modules/fflush: New file.
102728         * lib/fflush.c: Likewise.
102729         * m4/fflush.m4: Likewise.
102730         * modules/fflush-tests: New test.
102731         * tests/test-fflush.c: Likewise.
102732         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
102734 2007-04-06  Bruno Haible  <bruno@clisp.org>
102736         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
102737         (VASNPRINTF): Use signbit for faster determination whether to print a
102738         minus sign.
102739         * modules/vasnprintf (Files): Remove lib/float+.h.
102740         * modules/fprintf-posix (Depends-on): Add signbit.
102741         * modules/snprintf-posix (Depends-on): Likewise.
102742         * modules/sprintf-posix (Depends-on): Likewise.
102743         * modules/vasnprintf-posix (Depends-on): Likewise.
102744         * modules/vasprintf-posix (Depends-on): Likewise.
102745         * modules/vfprintf-posix (Depends-on): Likewise.
102746         * modules/vsnprintf-posix (Depends-on): Likewise.
102747         * modules/vsprintf-posix (Depends-on): Likewise.
102749 2007-04-06  Bruno Haible  <bruno@clisp.org>
102751         * tests/test-frexp.c (main): Test also the sign bit of zero results.
102752         * tests/test-frexpl.c (main): Likewise.
102753         * tests/test-ldexpl.c (main): Likewise.
102754         * modules/frexp-tests (Depends-on): Add signbit.
102755         * modules/frexpl-tests (Depdends-on): Likewise.
102756         * modules/ldexpl-tests (Depdends-on): Likewise.
102758 2007-04-06  Bruno Haible  <bruno@clisp.org>
102760         * modules/signbit-tests: New file.
102761         * tests/test-signbit.c: New file.
102763         * modules/signbit: New file.
102764         * lib/signbitf.c: New file.
102765         * lib/signbitd.c: New file.
102766         * lib/signbitl.c: New file.
102767         * m4/signbit.m4: New file.
102768         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
102769         (signbit): New macro.
102770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
102771         REPLACE_SIGNBIT.
102772         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
102773         REPLACE_FREXPL into math.h.
102775 2007-04-06  Bruno Haible  <bruno@clisp.org>
102777         * modules/isnanf-nolibm-tests: New file.
102778         * tests/test-isnanf.c: New file.
102780         * modules/isnanf-nolibm: New file.
102781         * lib/isnanf.h: New file.
102782         * lib/isnanf.c: New file.
102783         * lib/isnan.c: Consider the USE_FLOAT macro.
102784         * m4/isnanf.m4: New file.
102786 2007-04-06  Bruno Haible  <bruno@clisp.org>
102788         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
102789         (Link): New section.
102791         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
102793 2007-04-06  Bruno Haible  <bruno@clisp.org>
102795         Assume the 'long double' type.
102796         * m4/longdouble.m4: Remove file.
102797         * config/srclist.txt: Don't mention longdouble.m4.
102798         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
102799         * lib/float+.h: Likewise.
102800         * lib/frexp.c: Likewise.
102801         * lib/printf-args.h: Likewise.
102802         * lib/printf-args.c: Likewise.
102803         * lib/printf-frexp.c: Likewise.
102804         * lib/printf-parse.c: Likewise.
102805         * lib/vasnprintf.c: Likewise.
102806         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
102807         * m4/intl.m4: Likewise.
102808         * m4/isnanl.m4: Likewise.
102809         * m4/printf.m4: Likewise.
102810         * m4/printf-frexpl.m4: Likewise.
102811         * m4/vasnprintf.m4: Likewise.
102812         * modules/allocsa (Files): Remove m4/longdouble.m4.
102813         * modules/gettext (Files): Likewise.
102814         * modules/relocatable-prog-wrapper (Files): Likewise.
102815         * modules/vasnprintf (Files): Likewise.
102816         * modules/isnanl (Files): Likewise.
102817         (Include): Simplify.
102818         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
102819         (Include): Simplify.
102820         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
102821         (Include): Simplify.
102822         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
102823         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102824         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
102825         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102826         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102827         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102828         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
102829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102830         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102832         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
102833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102834         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
102835         * tests/test-isnanl.c: Likewise.
102836         * tests/test-snprintf-posix.h: Likewise.
102837         * tests/test-sprintf-posix.h: Likewise.
102838         * tests/test-vasnprintf-posix.c: Likewise.
102839         * tests/test-vasnprintf-posix2.c: Likewise.
102840         * tests/test-vasprintf-posix.c: Likewise.
102842 2007-04-06  Bruno Haible  <bruno@clisp.org>
102844         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
102845         * lib/math_.h [__DECC]: Include the overridden include file through
102846         #include_next, outside the double-inclusion guard.
102847         * lib/stdio_.h [__DECC]: Likewise.
102848         * lib/stdlib_.h [__DECC]: Likewise.
102849         * lib/string_.h [__DECC]: Likewise.
102850         * lib/time_.h [__DECC]: Likewise.
102851         * lib/wchar_.h [__DECC]: Likewise.
102852         * lib/wctype_.h [__DECC]: Likewise.
102853         * lib/inttypes_.h [__DECC]: Likewise.
102854         Reported by Albert Chin <china@thewrittenword.com> in
102855         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
102857 2007-04-04  Eric Blake  <ebb9@byu.net>
102859         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
102860         1.5.x.
102862 2007-04-04  Bruno Haible  <bruno@clisp.org>
102864         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
102865         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
102867 2007-04-04  Bruno Haible  <bruno@clisp.org>
102869         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
102870         results for "%010a" of Infinity and NaN.
102871         * tests/test-vasprintf-posix.c (test_function): Likewise.
102872         * tests/test-snprintf-posix.h (test_function): Likewise.
102873         * tests/test-sprintf-posix.h (test_function): Likewise.
102874         * tests/test-fprintf-posix.h (test_function): Remove these tests.
102875         * tests/test-printf-posix.h (test_function): Likewise.
102876         * tests/test-fprintf-posix.out: Update.
102877         Needed for FreeBSD 6.1.
102879 2007-04-04  Bruno Haible  <bruno@clisp.org>
102881         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
102882         directly used by the gnulib modules nor by gnulib-tool.
102884 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102886         * DEPENDENCIES: Give overall description of version dependency
102887         desirability.  Use more-typical names for apps.
102888         Add shell, coreutils, diffutils, grep, tar, gzip.
102890 2007-04-04  Simon Josefsson  <simon@josefsson.org>
102892         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
102894 2007-04-04  Karl Berry  <karl@gnu.org>
102896         * MODULES.html.sh (func_module): missing '.
102898 2007-04-03  Bruno Haible  <bruno@clisp.org>
102900         * modules/argmatch-tests (Makefile.am): New variable
102901         test_argmatch_LDADD.
102902         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102903         * modules/array-list-tests (Makefile.am): New variable
102904         test_array_list_LDADD.
102905         * modules/array-oset-tests (Makefile.am): New variable
102906         test_array_oset_LDADD.
102907         * modules/avltree-list-tests (Makefile.am): New variable
102908         test_avltree_list_LDADD.
102909         * modules/avltree-oset-tests (Makefile.am): New variable
102910         test_avltree_oset_LDADD.
102911         * modules/avltreehash-list-tests (Makefile.am): New variable
102912         test_avltreehash_list_LDADD.
102913         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102914         test_canonicalize_lgpl_LDADD.
102915         * modules/carray-list-tests (Makefile.am): New variable
102916         test_carray_list_LDADD.
102917         * modules/dirname-tests (Makefile.am): New variable
102918         test_dirname_LDADD.
102919         * modules/linked-list-tests (Makefile.am): New variable
102920         test_linked_list_LDADD.
102921         * modules/linkedhash-list-tests (Makefile.am): New variable
102922         test_linkedhash_list_LDADD.
102923         * modules/rbtree-list-tests (Makefile.am): New variable
102924         test_rbtree_list_LDADD.
102925         * modules/rbtree-oset-tests (Makefile.am): New variable
102926         test_rbtree_oset_LDADD.
102927         * modules/rbtreehash-list-tests (Makefile.am): New variable
102928         test_rbtreehash_list_LDADD.
102929         * modules/xvasprintf-tests (Makefile.am): New variable
102930         test_xvasprintf_LDADD.
102931         Reported by Eric Blake.
102933 2007-04-03  Eric Blake  <ebb9@byu.net>
102935         * DEPENDENCIES: Weaken m4 requirements.
102937 2007-04-03  Bruno Haible  <bruno@clisp.org>
102939         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102940         * modules/isnanl-tests (configure.ac): Likewise.
102942 2007-04-03  Ben Pfaff  <blp@gnu.org>
102944         * modules/iconv_open: Add $(srcdir)/ to source directory
102945         references in Makefile fragments that call gperf, to fix VPATH
102946         builds.
102948 2007-04-03  Bruno Haible  <bruno@clisp.org>
102950         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102951         * lib/ldexpl.c: Undo last change.
102953 2007-04-03  Bruno Haible  <bruno@clisp.org>
102955         * modules/printf-frexpl (Depends-on): Undo last change.
102956         (Files): Add m4/ldexpl.m4.
102958 2007-04-03  Bruno Haible  <bruno@clisp.org>
102960         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102961         * modules/isnanl (Link): New section.
102963         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102964         * modules/frexp (Link): New section.
102966         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102967         * modules/frexpl (Link): New section.
102969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102970         * modules/ldexpl (Link): New section.
102972 2007-04-03  Bruno Haible  <bruno@clisp.org>
102974         * modules/TEMPLATE-EXTENDED: New file.
102975         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102977 2007-04-03  Bruno Haible  <bruno@clisp.org>
102979         * DEPENDENCIES: New file.
102980         Suggested by Simon Josefsson.
102982 2007-04-03  Bruno Haible  <bruno@clisp.org>
102984         * doc/gnulib.texi: Escape @.
102986 2007-04-03  James Youngman  <jay@gnu.org>
102987         and Paul Eggert  <eggert@cs.ucla.edu>
102989         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102990         birthtime on all systems that have birthtime, not just those which
102991         use st_birthtimensec rather than st_birthtim.  Putting zero in
102992         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102993         that the birth time is not available for files on an NFS mount.
102995 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102997         * modules/memxor: Move back from crypto/, suggested by Bruno.
102998         * modules/crypto/hmac-sha1: Fix memxor dependency.
103000         * modules/crypto/gc: Moved from ../.
103002 2007-04-02  Eric Blake  <ebb9@byu.net>
103004         * lib/ldexpl.c (includes): Avoid libm.
103006         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
103008 2007-04-02  Bruno Haible  <bruno@clisp.org>
103010         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
103011         on IRIX.
103013 2007-04-02  Bruno Haible  <bruno@clisp.org>
103015         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
103016         x86 or x86_64 platforms running MacOS X.
103017         Reported by Ryan Schmidt <@ryandesign.com>.
103019 2007-04-02  Bruno Haible  <bruno@clisp.org>
103021         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
103022         i386.
103024 2007-04-01  Simon Josefsson  <simon@josefsson.org>
103026         * modules/crypto/arcfour: Moved from ../.
103027         * modules/crypto/arcfour-tests: Moved from ../.
103028         * modules/crypto/arctwo: Moved from ../.
103029         * modules/crypto/arctwo-tests: Moved from ../.
103030         * modules/crypto/des: Moved from ../.
103031         * modules/crypto/des-tests: Moved from ../.
103032         * modules/crypto/gc-arcfour: Moved from ../.
103033         * modules/crypto/gc-arcfour-tests: Moved from ../.
103034         * modules/crypto/gc-arctwo: Moved from ../.
103035         * modules/crypto/gc-arctwo-tests: Moved from ../.
103036         * modules/crypto/gc-des: Moved from ../.
103037         * modules/crypto/gc-des-tests: Moved from ../.
103038         * modules/crypto/gc-hmac-md5: Moved from ../.
103039         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
103040         * modules/crypto/gc-hmac-sha1: Moved from ../.
103041         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
103042         * modules/crypto/gc-md2: Moved from ../.
103043         * modules/crypto/gc-md2-tests: Moved from ../.
103044         * modules/crypto/gc-md4: Moved from ../.
103045         * modules/crypto/gc-md4-tests: Moved from ../.
103046         * modules/crypto/gc-md5: Moved from ../.
103047         * modules/crypto/gc-md5-tests: Moved from ../.
103048         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
103049         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
103050         * modules/crypto/gc-random: Moved from ../.
103051         * modules/crypto/gc-rijndael: Moved from ../.
103052         * modules/crypto/gc-rijndael-tests: Moved from ../.
103053         * modules/crypto/gc-sha1: Moved from ../.
103054         * modules/crypto/gc-sha1-tests: Moved from ../.
103055         * modules/crypto/gc-tests: Moved from ../.
103056         * modules/crypto/hmac-md5: Moved from ../.
103057         * modules/crypto/hmac-md5-tests: Moved from ../.
103058         * modules/crypto/hmac-sha1: Moved from ../.
103059         * modules/crypto/hmac-sha1-tests: Moved from ../.
103060         * modules/crypto/md2: Moved from ../.
103061         * modules/crypto/md2-tests: Moved from ../.
103062         * modules/crypto/md4: Moved from ../.
103063         * modules/crypto/md4-tests: Moved from ../.
103064         * modules/crypto/md5: Moved from ../.
103065         * modules/crypto/md5-tests: Moved from ../.
103066         * modules/crypto/memxor: Moved from ../.
103067         * modules/crypto/rijndael: Moved from ../.
103068         * modules/crypto/rijndael-tests: Moved from ../.
103069         * modules/crypto/sha1: Moved from ../.
103071 2007-03-30  James Youngman  <jay@gnu.org>
103073         * tests/test-stat-time.c (prepare_test): use chmod() rather than
103074         rename() to change the ctime of a file (because ctime is unaffected
103075         by rename on jfs2 on AIX 5.1).
103076         (main): Start by doing cleanup, in case a previous run failed leaving
103077         test files behind.
103079 2007-03-31  Bruno Haible  <bruno@clisp.org>
103081         Support old proprietary implementations of iconv.
103082         * modules/iconv_open: New file.
103083         * lib/iconv_.h: New file.
103084         * m4/iconv_h.m4: New file.
103085         * lib/iconv_open.c: New file.
103086         * lib/iconv_open-aix.gperf: New file.
103087         * lib/iconv_open-hpux.gperf: New file.
103088         * lib/iconv_open-irix.gperf: New file.
103089         * lib/iconv_open-osf.gperf: New file.
103090         * m4/iconv_open.m4: New file.
103091         * modules/linebreak (Depends-on): Add iconv_open.
103092         * modules/striconv (Depends-on): Likewise.
103093         * modules/striconveh (Depends-on): Likewise.
103094         * modules/unicodeio (Depends-on): Likewise.
103095         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
103096         (iconv_t)(-1).
103097         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
103098         conversion if cd is (iconv_t)(-1).
103099         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
103100         is not possible.
103102 2007-03-31  Bruno Haible  <bruno@clisp.org>
103104         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
103105         work on Solaris either. Protect also second use of "autodetect_jp".
103107 2007-03-31  Bruno Haible  <bruno@clisp.org>
103109         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
103110         the function is not present.
103112 2007-03-31  Bruno Haible  <bruno@clisp.org>
103114         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
103115         the function is not present.
103117 2007-03-31  Bruno Haible  <bruno@clisp.org>
103119         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
103120         a bug in HP-UX iconv_open().
103122 2007-03-31  Bruno Haible  <bruno@clisp.org>
103124         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
103125         (Mathematics <math.h>): New section, add fpieee.
103126         (Input/output <stdio.h>): Add fseterr.
103127         (Mathematics <math.h>): New section, add printf-frexp.
103128         (Container data structures): Add sublist.
103129         (Core language properties): Add fpucw, inline.
103130         (Functions for greatest-width integer types <inttypes.h>): Add
103131         imaxabs, imaxdiv, inttypes.
103132         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
103133         isnanl-nolibm, ldexp.
103134         (Mathematics <math.h>): New section, add printf-frexpl.
103135         (Support for systems lacking POSIX:2001): Add fprintf-posix,
103136         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
103137         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
103138         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
103139         (Unicode string functions): Add unistr/u*-mbtoucr.
103140         (Java): Add javacomp-script, javaexec-script.
103141         (C#): Add csharpcomp-script, csharpexec-script.
103142         (Support for building libraries and executables): Add havelib,
103143         relocatable-*.
103144         (Support for maintaining and releasing projects): Renamed from
103145         'Support for maintaining and release projects'. Add announce-gen.
103147 2007-03-31  Bruno Haible  <bruno@clisp.org>
103149         * README: Talk primarily about git.
103150         (git and CVS): Renamed from CVS.
103151         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
103152         gnulib is available through git.
103153         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
103155 2007-03-30  Bruno Haible  <bruno@clisp.org>
103157         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
103158         * lib/poll_.h: Likewise.
103159         * lib/stat_.h: Likewise.
103160         * lib/sys_time_.h: Likewise.
103161         * lib/sysexit_.h: Likewise.
103162         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
103163         * lib/stdbool_.h: Likewise.
103164         * lib/byteswap_.h: Add double-inclusion guard.
103166 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
103168         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
103170 2007-03-30  Karl Berry  <karl@gnu.org>
103172         * config/srclist-update: double space after USA in the license
103173         substitution, since that's how it's usually (?) written.
103175 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
103177         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
103178         reported by Bruno Haible.
103180 2007-03-29  Bruno Haible  <bruno@clisp.org>
103182         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
103183         a bug in AIX iconv().
103185 2007-03-29  Bruno Haible  <bruno@clisp.org>
103187         * modules/ldexpl-tests: New file.
103188         * tests/test-ldexpl.c: New file.
103190 2007-03-29  Bruno Haible  <bruno@clisp.org>
103192         * lib/ldexpl.c: Include fpucw.h.
103193         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
103194         multiplication.
103195         * modules/ldexpl (Depends-on): Add fpucw.
103197 2007-03-29  Bruno Haible  <bruno@clisp.org>
103199         * modules/ldexpl: New file.
103200         * m4/ldexpl.m4: New file.
103201         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
103202         set.
103203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
103204         REPLACE_LDEXPL.
103205         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
103206         REPLACE_LDEXPL.
103207         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103208         gl_FUNC_LDEXPL_WORKS.
103209         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
103210         * modules/mathl (Files): Remove lib/ldexpl.c.
103211         (Depends-on): Add ldexpl.
103213 2007-03-29  Bruno Haible  <bruno@clisp.org>
103215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
103217 2007-03-29  Bruno Haible  <bruno@clisp.org>
103219         * tests/test-striconveh.c (main): Don't assume that a direct conversion
103220         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
103221         and possibly also HP-UX.
103222         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
103223         work on AIX, IRIX, HP-UX, OSF/1.
103224         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
103225         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
103226         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
103227         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
103228         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
103229         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
103231 2007-03-29  Bruno Haible  <bruno@clisp.org>
103233         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
103235 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
103237         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
103238         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
103240 2007-03-29  Eric Blake  <ebb9@byu.net>
103242         * lib/acl-internal.h: Remove redundant include.
103243         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
103244         Cygwin when a file is locked.
103246 2007-03-29  Bruno Haible  <bruno@clisp.org>
103248         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
103249         file.
103250         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
103252 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
103254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
103255         try to remove a parent directory if the child couldn't be removed
103256         (except for the first rmdir, which could fail because the child
103257         doesn't exist).  Problem reported by Jeff Blaine in
103258         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
103260 2007-03-28  Bruno Haible  <bruno@clisp.org>
103262         * lib/striconveh.c (utf8conv_carefully): New function.
103263         (mem_cd_iconveh_internal): Invoke it.
103265 2007-03-28  Bruno Haible  <bruno@clisp.org>
103267         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
103268         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
103269         input.
103270         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
103271         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
103272         unistr/u8-uctomb.
103274 2007-03-28  Bruno Haible  <bruno@clisp.org>
103276         * modules/unistr/u8-mbtoucr: New file.
103277         * lib/unistr/u8-mbtoucr.c: New file.
103278         * modules/unistr/u16-mbtoucr: New file.
103279         * lib/unistr/u16-mbtoucr.c: New file.
103280         * modules/unistr/u16-mbtoucr: New file.
103281         * lib/unistr/u16-mbtoucr.c: New file.
103282         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
103284 2007-03-27  Simon Josefsson  <simon@josefsson.org>
103285             Bruno Haible  <bruno@clisp.org>
103287         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
103288         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
103289         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
103291         * m4/stdio_h.m4: Add stubs for vasprintf too.
103293         * modules/stdio: Support vasprintf in sed command.
103295         * modules/vasprintf: Depend on stdio for prototypes.  Remove
103296         vasprintf.h.  Add stdio module indicator.
103298         * lib/stdio_.h: Declare asprintf and vasprintf, based on
103299         vasprintf.h.
103301         * lib/vasprintf.h: File removed.
103303         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
103304         * lib/vasprintf.c: Ditto.
103305         * lib/xvasprintf.c: Ditto.
103306         * tests/test-vasprintf-posix.c: Ditto.
103307         * tests/test-vasprintf.c: Ditto.
103309 2007-03-27  Bruno Haible  <bruno@clisp.org>
103311         Make vasnprintf multithread-safe.
103312         * lib/vasnprintf.c (decimal_point_char): New function.
103313         (VASNPRINTF): Use it.
103314         Suggested by Simon Josefsson.
103316 2007-03-27  Eric Blake  <ebb9@byu.net>
103318         Support sub-second birthtime on cygwin.
103319         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
103320         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
103321         (get_stat_birthtime): Also work with st_birthtim.
103323 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
103325         * lib/stat-time.h (USE_BIRTHTIME): Remove.
103326         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
103327         (get_stat_birthtime_ns): Do not try to use "spare" fields.
103328         (get_stat_birthtime_ns): Simplify compile-time tests.
103329         (get_stat_birthtime): Change the API to look like
103330         get_stat_mtime etc., except return a negative tv_nsec on error.
103331         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
103332         Don't check for "spare" fields.
103333         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
103334         or for struct stat.st_birthtime, as these tests aren't used.
103335         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
103337 2007-03-27  Bruno Haible  <bruno@clisp.org>
103339         * lib/stat-time.h: Include <sys/stat.h>.
103341 2007-03-27  James Youngman  <jay@gnu.org>
103343         * lib/stat-time.h (get_stat_birthtime): New function for
103344           retrieving st_birthtime as provided by UFS2 (hence *BSD).
103345         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
103346           and its variants.
103347         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
103348         * modules/stat-time-test: New file.
103349         * tests/test-stat-time.c: New test, devised by Bruno Haible.
103351 2007-03-26  Bruno Haible  <bruno@clisp.org>
103353         Better support of signalling NaNs.
103354         * lib/atanl.c: Include isnanl.h.
103355         (atanl): Perform test for NaN at the beginning of the function and
103356         through a call to isnanl.
103357         * lib/cosl.c: Include isnanl.h.
103358         (cosl): Perform test for NaN at the beginning of the function and
103359         through a call to isnanl.
103360         * lib/ldexpl.c: Include isnanl.h.
103361         (ldexpl): Perform test for NaN through a call to isnanl.
103362         * lib/logl.c: Include isnanl.h.
103363         (logl): Perform test for NaN at the beginning of the function and
103364         through a call to isnanl.
103365         * lib/sinl.c: Include isnanl.h.
103366         (sinl): Perform test for NaN at the beginning of the function and
103367         through a call to isnanl.
103368         * lib/sqrtl.c: Include isnanl.h.
103369         (sqrtl): Perform test for NaN at the beginning of the function and
103370         through a call to isnanl.
103371         * lib/tanl.c: Include isnanl.h.
103372         (tanl): Perform test for NaN at the beginning of the function and
103373         through a call to isnanl.
103374         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
103375         * modules/mathl (Depends-on): Add isnanl.
103377 2007-03-26  Eric Blake  <ebb9@byu.net>
103379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
103380         regression in logic sense of previous patch.
103382 2007-03-26  Bruno Haible  <bruno@clisp.org>
103384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
103385         unportable shell command "if ! ...".
103386         Reported by Ralf Wildenhues.
103388 2007-03-25  Bruno Haible  <bruno@clisp.org>
103390         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
103391         <sysexits.h> file, and only add EX_CONFIG.
103392         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
103393         absolute file name and whether it is sufficient. Substitute also
103394         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
103395         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
103396         ABSOLUTE_SYSEXITS_H into sysexits.h.
103398 2007-03-25  Bruno Haible  <bruno@clisp.org>
103400         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
103401         hints is NULL.
103403 2007-03-25  Bruno Haible  <bruno@clisp.org>
103405         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
103406         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
103408 2007-03-25  Bruno Haible  <bruno@clisp.org>
103410         * lib/vasnprintf.c: Include langinfo.h.
103411         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
103412         multithread-safe.
103413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
103414         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
103415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
103421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103422         Reported by Simon Josefsson.
103424 2007-03-25  Bruno Haible  <bruno@clisp.org>
103426         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
103427         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
103428         * modules/vasnprintf (Depends-on): Add stdint.
103430 2007-03-25  Bruno Haible  <bruno@clisp.org>
103432         * modules/fpieee: New file.
103433         * m4/fpieee.m4: New file.
103434         * modules/isnan-nolibm (Depends-on): Add fpieee.
103435         * modules/isnanl-nolibm (Depends-on): Add fpieee.
103436         * modules/isnanl (Depends-on): Add fpieee.
103438 2007-03-25  Bruno Haible  <bruno@clisp.org>
103440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
103442 2007-03-25  Bruno Haible  <bruno@clisp.org>
103444         Avoid test failures on IRIX 6.5.
103445         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
103446         (main): Use it.
103447         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
103448         macros.
103449         (main): Use them.
103451 2007-03-25  Bruno Haible  <bruno@clisp.org>
103453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
103454         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
103455         exists but doesn't work.
103456         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
103457         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
103458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
103459         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
103460         math.h.
103462 2007-03-25  Bruno Haible  <bruno@clisp.org>
103464         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
103465         returns inf. Needed on IRIX 6.5.
103467 2007-03-25  Bruno Haible  <bruno@clisp.org>
103469         * tests/test-frexpl.c: Include isnanl-nolibm.h.
103470         (main): Use isnanl instead of x != x idiom.
103471         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
103473         * tests/test-frexp.c: Include isnan.h.
103474         (main): Use isnan instead of x != x idiom.
103475         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
103477 2007-03-25  Bruno Haible  <bruno@clisp.org>
103479         * tests/test-frexp.c (NaN): New function/macro.
103480         (main): Use it instead of 0.0 / 0.0.
103481         * tests/test-isnan.c (NaN): New function/macro.
103482         (main): Use it instead of 0.0 / 0.0.
103483         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
103484         (test_function): Use it instead of 0.0 / 0.0.
103485         * tests/test-vasprintf-posix.c (NaN): New function/macro.
103486         (test_function): Use it instead of 0.0 / 0.0.
103487         * tests/test-snprintf-posix.h (NaN): New function/macro.
103488         (test_function): Use it instead of 0.0 / 0.0.
103489         * tests/test-sprintf-posix.h (NaN): New function/macro.
103490         (test_function): Use it instead of 0.0 / 0.0.
103491         * tests/test-fprintf-posix.h (NaN): New function/macro.
103492         (test_function): Use it instead of 0.0 / 0.0.
103493         * tests/test-printf-posix.h (NaN): New function/macro.
103494         (test_function): Use it instead of 0.0 / 0.0.
103496         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
103498 2007-03-25  Bruno Haible  <bruno@clisp.org>
103500         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
103502 2007-03-25  Bruno Haible  <bruno@clisp.org>
103504         * lib/regexec.c (merge_state_with_log): Make static.
103506 2007-03-25  Bruno Haible  <bruno@clisp.org>
103508         * lib/trigl.c (kernel_rem_pio2): Make static.
103510 2007-03-25  Bruno Haible  <bruno@clisp.org>
103512         * lib/sincosl.c (sincosl_table): Make static.
103514 2007-03-25  Bruno Haible  <bruno@clisp.org>
103516         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
103517         if the compiler does not support C99.
103519 2007-03-25  Bruno Haible  <bruno@clisp.org>
103521         * modules/time (Makefile.am): Ensure all rule action lines start with a
103522         tab.
103524 2007-03-24  Bruno Haible  <bruno@clisp.org>
103526         * modules/tsearch-tests: New file.
103527         * tests/test-tsearch.sh: New file.
103528         * tests/test-tsearch.c: New file, mostly copied from glibc.
103530         * modules/search-tests: New file.
103531         * tests/test-search.c: New file.
103533         * modules/search: New file.
103534         * lib/search_.h: New file, incorporating lib/tsearch.h.
103535         * m4/search_h.m4: New file.
103536         * lib/tsearch.h: Remove file.
103537         * lib/tsearch.c: Include search.h instead of tsearch.h.
103538         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
103539         HAVE_TSEARCH.
103540         * modules/tsearch (Files): Remove lib/tsearch.h.
103541         (Depends-on): Add search.
103542         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
103543         (Include): Change tsearch.h into search.h.
103545 2007-03-24  Bruno Haible  <bruno@clisp.org>
103547         * modules/fpucw: New file.
103548         * lib/fpucw.h: New file.
103549         * lib/frexp.c: Include fpucw.h.
103550         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103551         (FUNC): Use them.
103552         * lib/printf-frexp.c: Include fpucw.h.
103553         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103554         (FUNC): Use them.
103555         * lib/vasnprintf.c: Include fpucw.h.
103556         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
103557         'long double' calculations.
103558         * tests/test-frexpl.c: Include fpucw.h.
103559         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103560         * tests/test-printf-frexpl.c: Include fpucw.h.
103561         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103562         * modules/frexpl (Depends-on): Add fpucw.
103563         * modules/printf-frexpl (Depends-on): Likewise.
103564         * modules/fprintf-posix (Depends-on): Likewise.
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.
103572         * modules/frexpl-tests (Depends-on): Likewise.
103573         * modules/printf-frexpl-tests (Depends-on): Likewise.
103575 2007-03-24  Bruno Haible  <bruno@clisp.org>
103577         * lib/float+.h: New file.
103578         * lib/isnan.c: Include float+.h.
103579         (SIZE): New macro.
103580         (FUNC): Compare only SIZE bytes of the value.
103581         * lib/vasnprintf.c: Include float+.h.
103582         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
103583         SIZEOF_LDBL or SIZEOF_DBL bytes.
103584         * modules/isnan-nolibm (Files): Add lib/float+.h.
103585         * modules/isnanl-nolibm (Files): Add lib/float+.h.
103586         * modules/isnanl (Files): Add lib/float+.h.
103587         * modules/vasnprintf (Files): Add lib/float+.h.
103589 2007-03-24  Bruno Haible  <bruno@clisp.org>
103591         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
103592         include isnanl-nolibm.h.
103594 2007-03-24  Bruno Haible  <bruno@clisp.org>
103596         * tests/test-read-file.c (main): Don't produce spurious output for
103597         expected situations. Make the test fail if it encountered unexpected
103598         results.
103600 2007-03-24  Bruno Haible  <bruno@clisp.org>
103602         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
103603         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
103605 2007-03-24  Bruno Haible  <bruno@clisp.org>
103607         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
103609 2007-03-24  Bruno Haible  <bruno@clisp.org>
103611         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
103612         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
103614         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
103615         * modules/utf8-ucs4: Turn into a symbolic link to module
103616         unistr/u8-mbtouc.
103618         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
103619         utf8-ucs4-unsafe.
103620         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
103621         unistr/u8-mbtouc-unsafe.
103623         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
103624         * modules/utf16-ucs4: Turn into a symbolic link to module
103625         unistr/u16-mbtouc.
103627         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
103628         utf16-ucs4-unsafe.
103629         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
103630         unistr/u16-mbtouc-unsafe.
103632         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
103633         * modules/ucs4-utf8: Turn into a symbolic link to module
103634         unistr/u8-ubtomb.
103636         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
103637         * modules/ucs4-utf16: Turn into a symbolic link to module
103638         unistr/u16-ubtomb.
103640 2007-03-24  Bruno Haible  <bruno@clisp.org>
103642         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
103643         Enable the function only if HAVE_INLINE.
103644         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
103645         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103646         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
103647         Enable the function only if HAVE_INLINE.
103648         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
103649         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103650         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
103651         Enable the function only if HAVE_INLINE.
103652         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
103653         Enable the function only if HAVE_INLINE.
103654         * modules/utf8-ucs4: Update.
103655         * modules/utf8-ucs4-unsafe: Update.
103656         * modules/utf16-ucs4: Update.
103657         * modules/utf16-ucs4-unsafe: Update.
103658         * modules/ucs4-utf8: Update.
103659         * modules/ucs4-utf16: Update.
103661 2007-03-24  Bruno Haible  <bruno@clisp.org>
103663         * lib/utf8-ucs4.h: Remove file.
103664         * lib/utf8-ucs4-unsafe.h: Remove file.
103665         * lib/utf16-ucs4.h: Remove file.
103666         * lib/utf16-ucs4-unsafe.h: Remove file.
103667         * lib/ucs4-utf8.h: Remove file.
103668         * lib/ucs4-utf16.h: Remove file.
103669         * lib/unistr.h: Include their previous contents.
103670         * m4/utf-ucs4.m4: Remove file.
103671         * m4/ucs4-utf.m4: Remove file.
103672         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
103673         (Depends-on): Add unistr/base.
103674         (configure.ac): Remove gl_UTF_UCS4.
103675         (Makefile.am): Update.
103676         (Include): Change to unistr.h.
103677         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
103678         (Depends-on): Add unistr/base.
103679         (configure.ac): Remove gl_UTF_UCS4.
103680         (Makefile.am): Update.
103681         (Include): Change to unistr.h.
103682         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
103683         (Depends-on): Add unistr/base.
103684         (configure.ac): Remove gl_UTF_UCS4.
103685         (Makefile.am): Update.
103686         (Include): Change to unistr.h.
103687         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
103688         (Depends-on): Add unistr/base.
103689         (configure.ac): Remove gl_UTF_UCS4.
103690         (Makefile.am): Update.
103691         (Include): Change to unistr.h.
103692         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
103693         (Depends-on): Add unistr/base.
103694         (configure.ac): Remove gl_UCS4_UTF.
103695         (Makefile.am): Update.
103696         (Include): Change to unistr.h.
103697         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
103698         (Depends-on): Add unistr/base.
103699         (configure.ac): Remove gl_UCS4_UTF.
103700         (Makefile.am): Update.
103701         (Include): Change to unistr.h.
103702         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
103703         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
103704         utf8-ucs4-unsafe.h.
103705         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
103706         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
103707         utf16-ucs4-unsafe.h.
103708         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
103709         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
103710         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
103711         * lib/unistr/u8-strchr.c: Likewise.
103712         * lib/unistr/u8-strrchr.c: Likewise.
103713         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
103714         * lib/unistr/u16-strchr.c: Likewise.
103715         * lib/unistr/u16-strrchr.c: Likewise.
103716         * lib/striconveh.c: Update.
103717         * lib/linebreak.c: Update.
103719 2007-03-24  Bruno Haible  <bruno@clisp.org>
103721         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
103722         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
103724 2007-03-22  Bruno Haible  <bruno@clisp.org>
103726         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
103728 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103730         * MODULES.html.sh (File system functions): New module write-any-file.
103731         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
103732         * m4/write-any-file.m4: New files.
103734 2007-03-23  Eric Blake  <ebb9@byu.net>
103736         * gnulib-tool: Rearrange space-tab sequences, since some editors
103737         like to eat them.
103739 2007-03-23  Eric Blake  <ebb9@byu.net>
103741         * lib/version-etc.c (version_etc_va): Update license wording to
103742         be more concise.  Recommended by Richard Stallman.
103744 2007-03-22  Bruno Haible  <bruno@clisp.org>
103746         * lib/poll.c (MSG_PEEK): New fallback definition.
103748 2007-03-22  Bruno Haible  <bruno@clisp.org>
103750         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
103751         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
103752         (main): Update.
103753         Fixes a compilation error on BeOS.
103755 2007-03-22  Bruno Haible  <bruno@clisp.org>
103757         * modules/frexpl-tests: New file.
103758         * tests/test-frexpl.c: New file.
103760         * modules/frexpl: New file.
103761         * m4/frexpl.m4: New file.
103762         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
103763         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
103764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
103765         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
103766         (Depends-on): Add frexpl. Remove isnanl-nolibm.
103767         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
103769 2007-03-22  Bruno Haible  <bruno@clisp.org>
103771         * lib/frexpl.c: Share code with lib/frexp.c.
103772         * modules/mathl (Files): Add lib/frexp.c.
103773         (Depends-on): Add isnanl-nolibm.
103775 2007-03-22  Bruno Haible  <bruno@clisp.org>
103777         * modules/printf-frexp (Files): Add m4/frexp.m4.
103778         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
103779         only if the found frexp function actually works.
103781 2007-03-22  Bruno Haible  <bruno@clisp.org>
103783         * lib/frexp.c: Remove older implementation that uses divisions.
103785 2007-03-21  Bruno Haible  <bruno@clisp.org>
103787         * modules/frexp-tests: New file.
103788         * tests/test-frexp.c: New file.
103790         * modules/frexp: New file.
103791         * lib/frexp.c: New file.
103792         * m4/frexp.m4: New file.
103793         * lib/math_.h (frexp): New declaration.
103794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
103795         REPLACE_FREXP.
103796         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
103798 2007-03-21  Bruno Haible  <bruno@clisp.org>
103800         * modules/isnanl-tests: New file.
103801         * tests/test-isnanl.c: New file.
103803         * modules/isnanl: New file.
103804         * lib/isnanl.h: New file.
103805         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
103806         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
103807         gl_FUNC_ISNANL_WORKS.
103808         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
103809         New macros.
103811 2007-03-21  Bruno Haible  <bruno@clisp.org>
103813         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
103814         lib/isnanl.h.
103815         (Include): Update.
103816         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
103817         * lib/vasnprintf.c: Update.
103818         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
103819         tests/test-isnanl.h, remove tests/test-isnanl.c.
103820         (Makefile.am): Update.
103821         * tests/test-isnanl-nolibm.c: New file.
103822         * tests/test-isnanl.h: New file.
103823         * tests/test-isnanl.c: Remove file.
103825 2007-03-21  Jim Meyering  <jim@meyering.net>
103827         When trying to open ".", treat ESTALE like EACCES.
103828         * lib/savewd.c (savewd_save): Resort to forking not just upon
103829         failure with EACCES, but also when errno is ESTALE.
103831 2007-03-20  Bruno Haible  <bruno@clisp.org>
103833         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
103834         Needed on AIX 5.1. Reported by Matthew Woehlke.
103836 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103838         Suggestions by Bruno Haible:
103839         * lib/acl-internal.h: Include "gettext.h" rather than rolling
103840         our own.
103841         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
103842         * modules/acl (Depends-on): Add gettext.
103844 2007-03-19  Bruno Haible  <bruno@clisp.org>
103846         * modules/iconvme: Remove file.
103847         * lib/iconvme.h: Remove file.
103848         * lib/iconvme.c: Remove file.
103849         * m4/iconvme.m4: Remove file.
103851 2007-03-19  Bruno Haible  <bruno@clisp.org>
103853         * doc/relocatable-maint.texi: Break long shell script line.
103854         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103856 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103858         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
103859         handle file_has_acl.
103860         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
103861         * lib/acl.c: Move header inclusions and related macro defns into
103862         lib/acl-internal.h.
103863         (S_ISLNK): Remove defn, since that's now done for us.
103864         (file_has_acl): Move to lib/file-has-acl.c.
103865         Call acl_trivial if available.  This is the crucial part of the fix.
103866         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
103867         shared within the library.  Rewrite a bit, partly to make it compatible
103868         with the GNU coding style.
103869         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
103870         Remove unnecessary double-quotes.
103871         Don't test for acl_to_text; the build will catch that.
103872         Replace acl_entries if it doesn't exist and it is needed.
103873         Check for -lsec and acl_trivial (as used on Solaris 10).
103874         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
103875         lib/file-has-acl.c.
103876         (Depends-on): Add sys_stat, for S_ISLNK.
103878 2007-03-19  Ben Pfaff  <blp@gnu.org>
103880         * doc/gnulib.texi: Fix typos.
103881         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103883 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103885         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
103886         If size is zero here, buf must be zero.
103888 2007-03-19  Simon Josefsson  <simon@josefsson.org>
103890         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
103891         <bruno@clisp.org>.
103893 2007-03-18  Bruno Haible  <bruno@clisp.org>
103895         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103896         Suggested by Eric Blake.
103898 2007-03-18  Ben Pfaff  <blp@gnu.org>
103900         * doc/relocatable.texi: Recommend using as prefix a directory
103901         that does not exist and will never be created.  Based on
103902         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103903         and others.
103905 2007-03-17  Bruno Haible  <bruno@clisp.org>
103907         * lib/fchownat.c: Include lchown.h.
103909 2007-03-17  Bruno Haible  <bruno@clisp.org>
103911         Fix endless loop when the given allocated size was > INT_MAX.
103912         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103913         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103914         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103915         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103916         * lib/sprintf.c (sprintf): Likewise.
103918 2007-03-17  Bruno Haible  <bruno@clisp.org>
103920         * tests/test-argp-2.sh (func_compare): Output a context diff.
103922 2007-03-17  Bruno Haible  <bruno@clisp.org>
103924         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103925         locale's decimal-point character.
103927 2007-03-17  Bruno Haible  <bruno@clisp.org>
103929         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103930         before comparing it. Needed because on some platforms (e.g. x86) a
103931         'long double' occupies less bytes than sizeof (long double).
103933 2007-03-17  Bruno Haible  <bruno@clisp.org>
103935         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103936         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103937         * tests/test-getaddrinfo.c (simple): Likewise.
103938         * tests/test-read-file.c (main): Likewise.
103940 2007-03-17  Bruno Haible  <bruno@clisp.org>
103942         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103944 2007-03-17  Bruno Haible  <bruno@clisp.org>
103946         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103947         unused variable.
103949 2007-03-17  Bruno Haible  <bruno@clisp.org>
103951         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103952         * tests/test-c-strncasecmp.c: Likewise.
103954 2007-03-17  Bruno Haible  <bruno@clisp.org>
103956         * modules/stdlib (Depends-on): Add unistd.
103957         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103958         Needed for MacOS X 10.3.
103960 2007-03-17  Bruno Haible  <bruno@clisp.org>
103962         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103964 2007-03-17  Bruno Haible  <bruno@clisp.org>
103966         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103968 2007-03-17  Bruno Haible  <bruno@clisp.org>
103970         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103971         to reflect files copied from gnulib (with or without modifications).
103972         Suggested by Jim Meyering.
103974 2007-03-17  Eric Blake  <ebb9@byu.net>
103976         * NEWS: Document stdlib change from 2007-02-18.
103978 2007-03-17  Jim Meyering  <jim@meyering.net>
103980         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103981         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103982         someone uses a name containing shell meta-characters.
103983         Reported by Alfred M. Szmidt.
103985         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103987 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103989         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103990         and copy gettext configuration files only if configure.ac contains
103991         a use of AM_GNU_GETTEXT_VERSION.
103993 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103995         * build-aux/bootstrap (gnulib_name): New variable.
103996         (gnulib_tool_options): Use it.
103998 2007-03-13  Simon Josefsson  <simon@josefsson.org>
104000         * tests/test-des.c: Use new namespace.
104002 2007-03-15  Bruno Haible  <bruno@clisp.org>
104004         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
104005         Reported by James Youngman <jay@gnu.org>.
104007 2007-03-15  Bruno Haible  <bruno@clisp.org>
104009         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
104010         declared prototype. Needed with cc on OSF/1 5.1.
104012 2007-03-15  Bruno Haible  <bruno@clisp.org>
104014         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
104015         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
104016         (struct gl_list_implementation): Add dispose_fn argument to the
104017         'create_empty', 'create' methods.
104018         (struct gl_list_impl_base): Add field 'dispose_fn'.
104019         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
104020         argument.
104021         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
104022         dispose_fn argument.
104023         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
104024         dispose_fn on the dropped values.
104025         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
104026         dispose_fn argument.
104027         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
104028         dropped values.
104029         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
104030         (gl_tree_remove_node): Call dispose_fn on the dropped value.
104031         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
104032         (gl_tree_remove_node): Call dispose_fn on the dropped value.
104033         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
104034         argument.
104035         (gl_tree_list_free): Call dispose_fn on the dropped values.
104036         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
104037         the dropped values.
104038         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
104039         Add dispose_fn argument.
104040         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
104041         Call dispose_fn on the dropped values.
104042         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
104043         Add dispose_fn argument.
104044         (gl_sublist_create): Initialize the 'dispose_fn' field.
104045         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
104046         * tests/test-array_list.c (main): Update.
104047         * tests/test-carray_list.c (main): Update.
104048         * tests/test-avltree_list.c (main): Update.
104049         * tests/test-rbtree_list.c (main): Update.
104050         * tests/test-avltreehash_list.c (main): Update.
104051         * tests/test-rbtreehash_list.c (main): Update.
104052         * tests/test-linked_list.c (main): Update.
104053         * tests/test-linkedhash_list.c (main): Update.
104054         * tests/test-array_oset.c (main): Update.
104056 2007-03-15  Bruno Haible  <bruno@clisp.org>
104058         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
104059         (gl_oset_create_empty): Add dispose_fn argument.
104060         (struct gl_oset_implementation): Add dispose_fn argument to
104061         'create_empty' method.
104062         (struct gl_oset_impl_base): Add dispose_fn field.
104063         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
104064         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
104065         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
104066         values.
104067         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
104068         (gl_tree_oset_free): Call dispose_fn on the dropped values.
104069         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
104070         dropped value.
104071         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
104072         dropped value.
104073         * tests/test-array_oset.c (main): Update.
104074         * tests/test-avltree_oset.c (main): Update.
104075         * tests/test-rbtree_oset.c (main): Update.
104076         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
104078 2007-03-13  Bruno Haible  <bruno@clisp.org>
104080         * tests/test-stdbool.c (i): Update after last patch.
104082 2007-03-12  Bruno Haible  <bruno@clisp.org>
104084         * lib/quotearg.c: Include <wctype.h> early, before the definition of
104085         the iswprint macro. Needed on Solaris 2.5.1.
104087 2007-03-12  Bruno Haible  <bruno@clisp.org>
104089         * tests/test-printf-frexp.c (main): Declare x as volatile.
104091 2007-03-12  Simon Josefsson  <simon@josefsson.org>
104093         * doc/gnulib.texi (Build robot for gnulib): New section.
104095 2007-03-12  Jim Meyering  <jim@meyering.net>
104097         * build-aux/bootstrap: New file.
104098         * build-aux/bootstrap.conf: New file, from coreutils.
104100 2007-03-11  Bruno Haible  <bruno@clisp.org>
104102         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
104104 2007-03-12  Simon Josefsson  <simon@josefsson.org>
104106         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
104107         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
104108         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
104110 2007-03-11  Bruno Haible  <bruno@clisp.org>
104112         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
104113         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
104115 2007-03-11  Bruno Haible  <bruno@clisp.org>
104117         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
104118         formula. Needed for SunPRO C 5.0.
104120 2007-03-11  Bruno Haible  <bruno@clisp.org>
104122         * modules/long-options (Depends-on): Add getopt.
104124 2007-03-11  Bruno Haible  <bruno@clisp.org>
104126         * modules/modechange (Depends-on): Add stdbool.
104128 2007-03-11  Bruno Haible  <bruno@clisp.org>
104130         * modules/i-ring (Depends-on): Add stdbool.
104132 2007-03-11  Bruno Haible  <bruno@clisp.org>
104134         * modules/gc-des (Depends-on): Add stdbool.
104136 2007-03-11  Bruno Haible  <bruno@clisp.org>
104138         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
104140 2007-03-11  Bruno Haible  <bruno@clisp.org>
104142         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
104144 2007-03-11  Bruno Haible  <bruno@clisp.org>
104146         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
104148 2007-03-11  Bruno Haible  <bruno@clisp.org>
104150         * lib/vasnprintf.c (sprintf): Undefine.
104152 2007-03-11  Bruno Haible  <bruno@clisp.org>
104154         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
104155         initializers in SunPRO C and Compaq C compilers.
104157 2007-03-11  Bruno Haible  <bruno@clisp.org>
104159         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
104160         decrementing code ANSI C compliant.
104162 2007-03-11  Bruno Haible  <bruno@clisp.org>
104164         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
104165         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
104167 2007-03-11  Bruno Haible  <bruno@clisp.org>
104169         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
104170         <stdbool.h> substitute doesn't pass.
104172 2007-03-11  Bruno Haible  <bruno@clisp.org>
104174         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
104176 2007-03-11  Bruno Haible  <bruno@clisp.org>
104178         * gnulib-tool (func_create_megatestdir): Create also an autobuild
104179         script, for submission to autobuild.josefsson.org.
104181 2007-03-10  Bruno Haible  <bruno@clisp.org>
104183         * modules/canonicalize-lgpl-tests: New file.
104184         * tests/test-canonicalize-lgpl.sh: New file.
104185         * tests/test-canonicalize-lgpl.c: New file.
104187         * modules/c-strcase-tests: New file.
104188         * tests/test-c-strcase.sh: New file.
104189         * tests/test-c-strcasecmp.c: New file.
104190         * tests/test-c-strncasecmp.c: New file.
104192         * modules/atexit-tests: New file.
104193         * tests/test-atexit.sh: New file.
104194         * tests/test-atexit.c: New file.
104196 2007-03-10  Bruno Haible  <bruno@clisp.org>
104198         * tests/test-binary-io.sh: Use temporary filenames that are not so
104199         likely to clash with those of other tests (in a parallel make).
104200         * tests/test-binary-io.c: Likewise.
104202 2007-03-10  Bruno Haible  <bruno@clisp.org>
104204         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
104205         fallback; use #error instead.
104206         Suggested by Simon Josefsson.
104208 2007-03-10  Bruno Haible  <bruno@clisp.org>
104210         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
104211         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
104212         first and the last.
104214 2007-03-10  Bruno Haible  <bruno@clisp.org>
104216         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
104218 2007-03-10  Bruno Haible  <bruno@clisp.org>
104220         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
104221         "make distcheck".
104222         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
104223         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
104224         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
104226 2007-03-10  Bruno Haible  <bruno@clisp.org>
104228         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
104229         variable.
104230         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
104231         variable.
104233 2007-03-09  Eric Blake  <ebb9@byu.net>
104234         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
104236         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
104237         types are not being provided by gnulib.
104238         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
104239         types are supported.
104241 2007-03-10  Bruno Haible  <bruno@clisp.org>
104243         * lib/stdio_.h (__attribute__): New macro.
104244         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
104245         vsprintf): Specify __attribute__ __format__ for GCC.
104246         Suggested by Eric Blake.
104248 2007-03-09  Bruno Haible  <bruno@clisp.org>
104250         * modules/printf-posix-tests: New file.
104251         * tests/test-printf-posix.sh: New file.
104252         * tests/test-printf-posix.c: New file.
104254         * modules/printf-posix: New file.
104255         * lib/printf.c: New file.
104256         * m4/printf-posix-rpl.m4: New file.
104257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
104258         REPLACE_PRINTF.
104259         * lib/stdio_.h (printf): New declaration.
104260         (format, __format__, ____printf____, ____scanf____, ____strftime____,
104261         ____strfmon____): New macros.
104262         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
104263         REPLACE_PRINTF.
104265 2007-03-09  Bruno Haible  <bruno@clisp.org>
104267         * tests/test-vasnprintf-posix2.sh: New file.
104268         * tests/test-vasnprintf-posix2.c: New file.
104269         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
104270         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
104271         (Makefile.am): Activate test-vasnprintf-posix2.sh.
104273         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
104274         a locale dependent decimal point, rather than always '.'.
104276 2007-03-09  Eric Blake  <ebb9@byu.net>
104278         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
104279         spite of platforms like Tandem/NSK that define it to -1.
104281 2007-03-08  Bruno Haible  <bruno@clisp.org>
104283         * modules/vprintf-posix-tests: New file.
104284         * tests/test-vprintf-posix.sh: New file.
104285         * tests/test-vprintf-posix.c: New file.
104286         * tests/test-printf-posix.h: New file.
104288         * modules/vprintf-posix: New file.
104289         * lib/vprintf.c: New file.
104290         * m4/vprintf-posix.m4: New file.
104291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
104292         REPLACE_VPRINTF.
104293         * lib/stdio_.h (vprintf): New declaration.
104294         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
104295         REPLACE_VPRINTF.
104297 2007-03-08  Bruno Haible  <bruno@clisp.org>
104299         * modules/fprintf-posix-tests: New file.
104300         * tests/test-fprintf-posix.sh: New file.
104301         * tests/test-fprintf-posix.c: New file.
104303         * modules/fprintf-posix: New file.
104304         * lib/fprintf.c: New file.
104305         * m4/fprintf-posix.m4: New file.
104306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
104307         REPLACE_FPRINTF.
104308         * lib/stdio_.h (fprintf): New declaration.
104309         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
104310         REPLACE_FPRINTF.
104312 2007-03-08  Bruno Haible  <bruno@clisp.org>
104314         * modules/vfprintf-posix-tests: New file.
104315         * tests/test-vfprintf-posix.sh: New file.
104316         * tests/test-vfprintf-posix.c: New file.
104317         * tests/test-fprintf-posix.h: New file.
104318         * tests/test-fprintf-posix.out: New file.
104320         * modules/vfprintf-posix: New file.
104321         * lib/vfprintf.c: New file.
104322         * m4/vfprintf-posix.m4: New file.
104323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
104324         REPLACE_VFPRINTF.
104325         * lib/stdio_.h (vfprintf): New declaration.
104326         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
104327         REPLACE_VFPRINTF.
104329 2007-03-08  Bruno Haible  <bruno@clisp.org>
104331         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
104333 2007-03-08  Bruno Haible  <bruno@clisp.org>
104335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
104336         instead of 'expr' invocations.
104337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104341         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104342         Suggested by Paul Eggert.
104344 2007-03-08  Bruno Haible  <bruno@clisp.org>
104346         * modules/fseterr-tests: New file.
104347         * tests/test-fseterr.c: New file.
104349         * modules/fseterr: New file.
104350         * lib/fseterr.h: New file.
104351         * lib/fseterr.c: New file.
104353 2007-03-08  Bruno Haible  <bruno@clisp.org>
104355         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
104356         * lib/getopt_.h: Likewise.
104357         * lib/mbswidth.h: Likewise.
104358         * lib/setenv.h: Likewise.
104359         * lib/vasnprintf.h: Likewise.
104360         * lib/vasprintf.h: Likewise.
104361         * lib/verror.h: Likewise.
104362         * lib/xsetenv.h: Likewise.
104363         * lib/xvasprintf.h: Likewise.
104365 2007-03-08  Jim Meyering  <jim@meyering.net>
104367         * users.txt: Add parted.
104369         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
104371 2007-03-07  Bruno Haible  <bruno@clisp.org>
104373         * m4/printf.m4: Make the shell script snippets copy&pastable.
104375 2007-03-02  Bruno Haible  <bruno@clisp.org>
104377         * lib/netinet_in_.h: New file.
104378         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
104379         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
104380         * modules/netinet_in (Files): Add lib/netinet_in_.h.
104381         (Depends-on): Add absolute-header.
104382         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
104383         into netinet/in.h.
104385 2007-03-03  Bruno Haible  <bruno@clisp.org>
104387         * lib/sys_select_.h: New file.
104388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
104389         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
104390         * modules/sys_select (Files): Add lib/sys_select_.h.
104391         (Depends-on): Add absolute-header.
104392         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
104393         into sys/select.h.
104395 2007-03-02  Bruno Haible  <bruno@clisp.org>
104397         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
104398         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
104399         values.
104400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
104401         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
104402         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
104403         * modules/sys_socket (Depends-on): Add absolute-header.
104404         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
104405         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
104406         (Include): Remove requirement of inclusion of <sys/types.h>.
104408 2007-03-02  Bruno Haible  <bruno@clisp.org>
104410         * lib/byteswap_.h (bswap_32): Fix formula.
104412 2007-03-06  Bruno Haible  <bruno@clisp.org>
104414         * modules/sprintf-posix-tests: New file.
104415         * tests/test-sprintf-posix.c: New file.
104417         * modules/sprintf-posix: New file.
104418         * lib/sprintf.c: New file.
104419         * m4/sprintf-posix.m4: New file.
104420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
104421         REPLACE_SPRINTF.
104422         * lib/stdio_.h (sprintf): New declaration.
104423         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
104424         REPLACE_SPRINTF.
104426 2007-03-06  Bruno Haible  <bruno@clisp.org>
104428         * modules/vsprintf-posix-tests: New file.
104429         * tests/test-vsprintf-posix.c: New file.
104430         * tests/test-sprintf-posix.h: New file.
104432         * modules/vsprintf-posix: New file.
104433         * lib/vsprintf.c: New file.
104434         * m4/vsprintf-posix.m4: New file.
104435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
104436         REPLACE_VSPRINTF.
104437         * lib/stdio_.h (vsprintf): New declaration.
104438         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
104439         REPLACE_VSPRINTF.
104441 2007-03-06  Bruno Haible  <bruno@clisp.org>
104443         * modules/vsnprintf (Depend-on): Remove minmax.
104445 2007-03-06  Bruno Haible  <bruno@clisp.org>
104447         * modules/snprintf-posix-tests: New file.
104448         * tests/test-snprintf-posix.c: New file.
104450         * modules/snprintf-posix: New file.
104451         * m4/snprintf-posix.m4: New file.
104452         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
104453         gl_FUNC_SNPRINTF.
104454         (gl_FUNC_SNPRINTF): Invoke it.
104455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
104456         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
104457         is set.
104458         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
104460 2007-03-06  Bruno Haible  <bruno@clisp.org>
104462         * modules/vsnprintf-posix-tests: New file.
104463         * tests/test-vsnprintf-posix.c: New file.
104464         * tests/test-snprintf-posix.h: New file.
104466         * modules/vsnprintf-posix: New file.
104467         * m4/vsnprintf-posix.m4: New file.
104468         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
104469         gl_FUNC_VSNPRINTF.
104470         (gl_FUNC_VSNPRINTF): Invoke it.
104471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
104472         * lib/stdio_.h (vsnprintf): Define as a replacement if
104473         REPLACE_VSNPRINTF is set.
104474         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
104476 2007-03-06  Bruno Haible  <bruno@clisp.org>
104478         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
104479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
104481 2007-03-06  Bruno Haible  <bruno@clisp.org>
104483         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
104484         (asinl): Declare also if HAVE_DECL_ASINL is set.
104485         (atanl): Declare also if HAVE_DECL_ATANL is set.
104486         (ceill): Declare also if HAVE_DECL_CEILL is set.
104487         (cosl): Declare also if HAVE_DECL_COSL is set.
104488         (expl): Declare also if HAVE_DECL_EXPL is set.
104489         (floorl): Declare also if HAVE_DECL_FLOORL is set.
104490         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
104491         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
104492         (logl): Declare also if HAVE_DECL_LOGL is set.
104493         (sinl): Declare also if HAVE_DECL_SINL is set.
104494         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
104495         (tanl): Declare also if HAVE_DECL_TANL is set.
104496         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
104497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
104498         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
104499         declaration of frexpl, ldexpl.
104500         * modules/printf-frexpl (Depends-on): Add math.
104501         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
104503 2007-03-05  Bruno Haible  <bruno@clisp.org>
104505         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
104506         frexpl and ldexpl are declared.
104507         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
104509 2007-03-05  Bruno Haible  <bruno@clisp.org>
104511         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
104512         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
104514 2007-03-05  Bruno Haible  <bruno@clisp.org>
104516         * lib/stdio_.h: Include <stddef.h>.
104518 2007-03-05  Bruno Haible  <bruno@clisp.org>
104520         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
104522 2007-03-05  Bruno Haible  <bruno@clisp.org>
104524         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
104525         NetBSD 4, from Ralf Wildenhues.
104527 2007-03-04  Bruno Haible  <bruno@clisp.org>
104529         * lib/vasprintf.h: Update #if logic for the case when the functions
104530         exist but are overridden.
104532 2007-03-04  Bruno Haible  <bruno@clisp.org>
104534         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
104535         implementations: glibc-2.4 and MacOS X 10.3.
104536         * tests/test-vasnprintf-posix.c (test_function): Test also the case
104537         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
104538         * tests/test-vasprintf-posix.c (test_function): Likewise.
104540 2007-03-04  Bruno Haible  <bruno@clisp.org>
104542         * modules/vasprintf-posix-tests: New file.
104543         * tests/test-vasprintf-posix.c: New file.
104545         * modules/vasprintf-posix: New file.
104546         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
104547         defined.
104548         * m4/vasprintf-posix.m4: New file.
104549         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
104550         gl_FUNC_VASPRINTF.
104551         (gl_FUNC_VASPRINTF): Invoke it.
104552         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
104553         here.
104554         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
104556 2007-03-04  Bruno Haible  <bruno@clisp.org>
104558         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
104559         REPLACE_GETTIMEOFDAY.
104560         * modules/sys_time (Makefile.am): Likewise.
104561         * m4/sys_time_h.m4: Likewise.
104562         * m4/gettimeofday.m4: Likewise.
104564 2007-03-04  Bruno Haible  <bruno@clisp.org>
104566         * modules/vasnprintf-posix-tests: New file.
104567         * tests/test-vasnprintf-posix.c: New file.
104569         * modules/vasnprintf-posix: New file.
104570         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
104571         printf-frexpl.h.
104572         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
104573         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
104574         REPLACE_VASNPRINTF is defined.
104575         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
104576         gl_FUNC_VASNPRINTF.
104577         (gl_FUNC_VASNPRINTF): Invoke it.
104578         * m4/vasnprintf-posix.m4: New file.
104579         * m4/printf.m4: New file.
104581 2007-03-04  Bruno Haible  <bruno@clisp.org>
104583         Compile progreloc.c only if --enable-relocatable is specified.
104584         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
104585         if --enable-relocatable was specified.
104586         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
104587         lib_SOURCES.
104589 2007-03-04  Jim Meyering  <jim@meyering.net>
104591         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
104592         Use it consistently, rather than enumerating errno constants.
104594 2007-03-04  Bruno Haible  <bruno@clisp.org>
104596         * modules/xvasprintf-tests: New file.
104597         * tests/test-xvasprintf.c: New file.
104599         * modules/vasprintf-tests: New file.
104600         * tests/test-vasprintf.c: New file.
104602         * modules/vasnprintf-tests: New file.
104603         * tests/test-vasnprintf.c: New file.
104605         * modules/vsnprintf-tests: New file.
104606         * tests/test-vsnprintf.c: New file.
104608         * modules/snprintf-tests: New file.
104609         * tests/test-snprintf.c: New file.
104611 2007-03-04  Bruno Haible  <bruno@clisp.org>
104613         Compile relocatable.c only if --enable-relocatable is specified.
104614         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
104615         gl_RELOCATABLE_LIBRARY.
104616         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
104617         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
104618         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
104619         gl_RELOCATABLE_LIBRARY.
104620         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
104621         (Makefile.am): Remove lib_SOURCES.
104622         * modules/relocatable-lib-lgpl (configure.ac): Invoke
104623         gl_RELOCATABLE_LIBRARY.
104624         (Makefile.am): Remove lib_SOURCES.
104625         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
104626         always.
104627         * modules/relocatable-prog-wrapper (configure.ac): Invoke
104628         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
104630 2007-03-04  Bruno Haible  <bruno@clisp.org>
104632         * modules/argmatch-tests: New file.
104633         * tests/test-argmatch.c: New file.
104635         * tests/test-allocsa.c (main): Halve the number of loop runs.
104637         * modules/alloca-opt-tests: New file.
104638         * tests/test-alloca-opt.c: New file.
104640 2007-03-04  Jim Meyering  <jim@meyering.net>
104642         Work around difference between Linux ACLs and Solaris 10 ZFS.
104643         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
104644         for EINVAL.
104646 2007-03-03  Bruno Haible  <bruno@clisp.org>
104648         * modules/relocatable-prog (Depends-on): Add back progreloc's
104649         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
104651 2007-03-03  Bruno Haible  <bruno@clisp.org>
104653         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
104654         * modules/relocatable-lib: New file.
104656 2007-03-03  Bruno Haible  <bruno@clisp.org>
104658         * modules/relocatable-prog: Renamed from modules/relocatable.
104659         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
104661 2007-03-03  Bruno Haible  <bruno@clisp.org>
104663         * modules/relocatable-script (Files): Add doc/relocatable.texi,
104664         m4/relocatable-lib.m4.
104665         (Depends-on): Remove 'relocatable'.
104666         (configure.ac): Add gl_RELOCATABLE_NOP.
104668 2007-03-03  Bruno Haible  <bruno@clisp.org>
104670         * modules/relocatable-prog-wrapper: New file.
104671         * modules/relocatable (Depends-on): Add it. Remove all other
104672         dependencies except progname.
104673         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
104675         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
104676         (gl_FUNC_STRERROR): Nop.
104677         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
104679         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
104680         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
104682         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
104683         (gl_FUNC_READLINK): Update.
104685         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
104687 2007-03-03  Bruno Haible  <bruno@clisp.org>
104689         * lib/xreadlink.c: Include <unistd.h> unconditionally.
104690         * modules/xreadlink (Depends-on): Add unistd.
104691         * modules/xreadlink-with-size (Depends-on): Likewise.
104693 2007-03-03  Bruno Haible  <bruno@clisp.org>
104695         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
104696         extracted from gt_FUNC_SETENV.
104697         (gt_FUNC_SETENV): Remove macro.
104698         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
104699         remove gt_FUNC_SETENV.
104701 2007-03-03  Bruno Haible  <bruno@clisp.org>
104703         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
104704         ENABLE_RELOCATABLE here.
104705         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
104707 2007-03-03  Bruno Haible  <bruno@clisp.org>
104709         * modules/rbtreehash-list-tests (Depends-on): Add progname.
104710         * tests/test-rbtreehash_list.c: Include progname.h.
104711         (main): Call set_program_name.
104713         * modules/rbtree-oset-tests (Depends-on): Add progname.
104714         * tests/test-rbtree_oset.c: Include progname.h.
104715         (main): Call set_program_name.
104717         * modules/rbtree-list-tests (Depends-on): Add progname.
104718         * tests/test-rbtree_list.c: Include progname.h.
104719         (main): Call set_program_name.
104721         * modules/linked-list-tests (Depends-on): Add progname.
104722         * tests/test-linked_list.c: Include progname.h.
104723         (main): Call set_program_name.
104725 2007-03-03  Bruno Haible  <bruno@clisp.org>
104727         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
104728         All uses of __restrict changed to _Restrict_.
104729         * lib/glob_.h (__restrict): Remove macro.
104731 2007-03-02  Bruno Haible  <bruno@clisp.org>
104733         * modules/gettext (configure.ac): Require gettext infrastructure
104734         from version 0.16.1.
104736 2007-03-02  Bruno Haible  <bruno@clisp.org>
104738         * modules/linkedhash-list-tests (Depends-on): Add progname.
104739         * tests/test-linkedhash_list.c: Include progname.h.
104740         (main): Call set_program_name.
104742         * modules/carray-list-tests (Depends-on): Add progname.
104743         * tests/test-carray_list.c: Include progname.h.
104744         (main): Call set_program_name.
104746         * modules/avltreehash-list-tests (Depends-on): Add progname.
104747         * tests/test-avltreehash_list.c: Include progname.h.
104748         (main): Call set_program_name.
104750         * modules/avltree-oset-tests (Depends-on): Add progname.
104751         * tests/test-avltree_oset.c: Include progname.h.
104752         (main): Call set_program_name.
104754         * modules/avltree-list-tests (Depends-on): Add progname.
104755         * tests/test-avltree_list.c: Include progname.h.
104756         (main): Call set_program_name.
104758         * modules/array-oset-tests (Depends-on): Add progname.
104759         * tests/test-array_oset.c: Include progname.h.
104760         (main): Call set_program_name.
104762         * modules/array-list-tests (Depends-on): Add progname.
104763         * tests/test-array_list.c: Include progname.h.
104764         (main): Call set_program_name.
104766         * modules/argp-tests (Depends-on): Add progname.
104767         * tests/test-argp.c: Include argp.h first. Include progname.h.
104768         (main): Call set_program_name.
104770 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
104772         * doc/gnulib-tool.texi (Initial import): Reword description of
104773         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
104774         limited effect even if defined after the first system include.
104776 2007-03-01  Bruno Haible  <bruno@clisp.org>
104778         * build-aux/config.libpath: Update to libtool-1.5.22.
104779         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
104781 2007-03-01  Bruno Haible  <bruno@clisp.org>
104783         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
104784         foo_CFLAGS.
104785         Reported by Ralf Wildenhues.
104787 2007-03-01  Bruno Haible  <bruno@clisp.org>
104789         * build-aux/install-reloc: Remove object files left over by some
104790         compilers.
104791         Reported by Ralf Wildenhues.
104793 2007-03-01  Bruno Haible  <bruno@clisp.org>
104795         * build-aux/install-reloc: Break long lines.
104797 2007-03-01  Bruno Haible  <bruno@clisp.org>
104799         * doc/relocatable.texi: Document that it may not work on OpenBSD.
104800         Reported by Ralf Wildenhues.
104802 2007-03-01  Bruno Haible  <bruno@clisp.org>
104804         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
104805         include ordering constraints.
104807 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104809         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
104810         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
104811         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
104812         as another example.
104813         * lib/time_.h: Fix misspelling.
104814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
104815         Require gl_HEADER_TIME_H_DEFAULTS.
104816         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
104817         * m4/time_r.m4 (gl_TIME_R): Likewise.
104818         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
104820 2007-03-01  Bruno Haible  <bruno@clisp.org>
104822         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
104823         * m4/utimens.m4 (gl_UTIMENS): Likewise.
104825 2007-03-01  Jim Meyering  <jim@meyering.net>
104827         * modules/xreadlink (Maintainer): Add my name.
104828         * modules/xreadlink-with-size (Depends-on): Alphabetize.
104830 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
104831             Bruno Haible  <bruno@clisp.org>
104833         * build-aux/install-reloc: Compile also c-ctype.c.
104834         * build-aux/relocatable.sh.in: New file.
104835         * doc/relocatable.texi: New file.
104836         * doc/relocatable-maint.texi: New file.
104837         * doc/gnulib.texi: Include relocatable-maint.texi.
104838         * lib/progreloc.c: Include unistd.h unconditionally.
104839         * lib/relocwrapper.c: Include unistd.h unconditionally.
104840         Include c-ctype.h.
104841         (add_dotbin): Use c_tolower.
104842         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
104843         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
104844         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
104845         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
104846         to m4/relocatable-lib.m4.
104847         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
104848         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
104849         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
104850         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
104851         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
104852         * modules/relocatable: New file.
104853         * modules/relocatable-lib: New file.
104854         * modules/relocatable-script: New file.
104856 2007-02-28  Bruno Haible  <bruno@clisp.org>
104858         Import --enable-relocatable infrastructure.
104859         * build-aux/config.libpath: New file, from GNU gettext.
104860         * build-aux/install-reloc: New file, from GNU gettext.
104861         * build-aux/reloc-ldflags: New file, from GNU gettext.
104862         * lib/relocatable.h: New file, from GNU gettext.
104863         * lib/relocatable.c: New file, from GNU gettext.
104864         * lib/relocwrapper.c: New file, from GNU gettext.
104865         * m4/relocatable.m4: New file, from GNU gettext.
104867 2007-02-28  Bruno Haible  <bruno@clisp.org>
104869         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
104871         * modules/xreadlink: New file, from GNU gettext with modifications.
104872         * lib/xreadlink.c: New file, from GNU gettext.
104873         * lib/xreadlink.h: Add comments.
104874         (xreadlink): New declaration.
104876         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
104877         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
104878         lib/xreadlink-with-size.c.
104879         (configure.ac): Remove gl_XREADLINK invocation.
104880         (Makefile.am): Augment lib_SOURCES.
104881         * m4/xreadlink.m4: Remove file.
104882         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
104883         (xreadlink_with_size): Renamed from xreadink.
104884         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
104885         * modules/canonicalize (Depends-on): Replace xreadlink with
104886         xreadlink-with-size.
104887         * lib/canonicalize.c (canonicalize_filename_mode): Update.
104889 2007-02-25  Jim Meyering  <jim@meyering.net>
104891         * build-aux/announce-gen: When complaining about excess arguments,
104892         list them.
104894 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104896         * README: Document signed integer overflow situation more
104897         accurately.
104899 2007-02-25  Bruno Haible  <bruno@clisp.org>
104901         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104902         'a' or 'A' conversion.
104904 2007-02-25  Bruno Haible  <bruno@clisp.org>
104906         * modules/filename: Renamed from modules/pathname.
104907         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104908         lib/concatpath.c with lib/concat-filename.c.
104909         (Makefile.am): Update.
104910         (Include): Replace pathname.h with filename.h.
104911         * lib/filename.h: Renamed from lib/pathname.h.
104912         (concatenated_filename): Renamed from concatenated_pathname.
104913         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104914         (concatenated_filename): Renamed from concatenated_pathname.
104915         * lib/findprog.c: Include filename.h instead of pathname.h.
104916         (find_in_path): Update.
104917         * lib/javacomp.c: Include filename.h instead of pathname.h.
104918         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104919         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104920         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104921         is_oldgcj_14_13_usable, is_javac_usable): Update.
104922         * lib/javaexec.c: Include filename.h instead of pathname.h.
104923         (execute_java_class): Update.
104924         * modules/findprog: Update.
104925         * modules/javacomp: Update.
104926         * modules/javaexec: Update.
104927         * MODULES.html.sh (File system functions): Add 'filename', remove
104928         'pathname'.
104930 2007-02-25  Bruno Haible  <bruno@clisp.org>
104932         * modules/printf-frexpl-tests: New file.
104933         * tests/test-printf-frexpl.c: New file.
104935         * modules/printf-frexpl: New file.
104936         * lib/printf-frexpl.h: New file.
104937         * lib/printf-frexpl.c: New file.
104938         * m4/printf-frexpl.m4: New file.
104940 2007-02-25  Bruno Haible  <bruno@clisp.org>
104942         * modules/printf-frexp-tests: New file.
104943         * tests/test-printf-frexp.c: New file.
104945         * modules/printf-frexp: New file.
104946         * lib/printf-frexp.h: New file.
104947         * lib/printf-frexp.c: New file.
104948         * m4/printf-frexp.m4: New file.
104950 2007-02-25  Bruno Haible  <bruno@clisp.org>
104952         Assume automake >= 1.10 for the tests.
104953         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104954         * modules/arctwo-tests: Likewise.
104955         * modules/argp-tests: Likewise.
104956         * modules/avltree-list-tests: Likewise.
104957         * modules/avltree-oset-tests: Likewise.
104958         * modules/avltreehash-list-tests: Likewise.
104959         * modules/carray-list-tests: Likewise.
104960         * modules/crc-tests: Likewise.
104961         * modules/des-tests: Likewise.
104962         * modules/gc-arcfour-tests: Likewise.
104963         * modules/gc-arctwo-tests: Likewise.
104964         * modules/gc-des-tests: Likewise.
104965         * modules/gc-hmac-md5-tests: Likewise.
104966         * modules/gc-hmac-sha1-tests: Likewise.
104967         * modules/gc-md2-tests: Likewise.
104968         * modules/gc-md4-tests: Likewise.
104969         * modules/gc-md5-tests: Likewise.
104970         * modules/gc-pbkdf2-sha1-tests: Likewise.
104971         * modules/gc-rijndael-tests: Likewise.
104972         * modules/gc-sha1-tests: Likewise.
104973         * modules/gc-tests: Likewise.
104974         * modules/getaddrinfo-tests: Likewise.
104975         * modules/hmac-md5-tests: Likewise.
104976         * modules/hmac-sha1-tests: Likewise.
104977         * modules/linked-list-tests: Likewise.
104978         * modules/linkedhash-list-tests: Likewise.
104979         * modules/lock-tests: Likewise.
104980         * modules/md2-tests: Likewise.
104981         * modules/md4-tests: Likewise.
104982         * modules/md5-tests: Likewise.
104983         * modules/rbtree-list-tests: Likewise.
104984         * modules/rbtree-oset-tests: Likewise.
104985         * modules/rbtreehash-list-tests: Likewise.
104986         * modules/read-file-tests: Likewise.
104987         * modules/rijndael-tests: Likewise.
104988         * modules/stdint-tests: Likewise.
104989         * modules/tls-tests: Likewise.
104991 2007-02-24  Bruno Haible  <bruno@clisp.org>
104993         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104994         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104995         function; instead check whether isnan with a double argument links.
104996         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104997         function; instead check whether isnan with a 'long double' argument
104998         links.
104999         Reported by Eric Blake <ebb9@byu.net>.
105001 2007-02-24  Bruno Haible  <bruno@clisp.org>
105003         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
105004         defined.
105005         * lib/isnanl.c: Remove all code. Just include isnan.c.
105006         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
105008 2007-02-25  Jim Meyering  <jim@meyering.net>
105010         Avoid conflicting types for 'unsetenv' on FreeBSD.
105011         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
105012         conflicting with FreeBSD's (5.0 and 6.1) function declaration
105013         in stdlib.h.
105015 2007-02-24  Bruno Haible  <bruno@clisp.org>
105017         * modules/isnanl-nolibm-tests: New file.
105018         * tests/test-isnanl.c: New file.
105020         * modules/isnanl-nolibm: New file.
105021         * lib/isnanl.h: New file.
105022         * lib/isnanl.c: New file.
105023         * m4/isnanl.m4: New file.
105025 2007-02-24  Bruno Haible  <bruno@clisp.org>
105027         * modules/isnan-nolibm-tests: New file.
105028         * tests/test-isnan.c: New file.
105030         * modules/isnan-nolibm: New file.
105031         * lib/isnan.h: New file.
105032         * lib/isnan.c: New file.
105033         * m4/isnan.m4: New file.
105035 2007-02-24  Bruno Haible  <bruno@clisp.org>
105037         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
105038         assume that an exponent fits in 20 bits.
105040 2007-02-24  Jim Meyering  <jim@meyering.net>
105042         * m4/regex.m4: Update the description of the configure-time option,
105043         --without-included-regex, to state accurately what the defaults are,
105044         and perhaps to give people an idea why using this option is risky.
105046 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
105048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
105049         loops on small arguments.  This attempts to avoid the problem
105050         Bruno Haible reported for AIX 4.3.2 in
105051         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
105053 2007-02-23  Bruno Haible  <bruno@clisp.org>
105055         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
105056         Needed for help2man.
105058 2007-02-23  Karl Berry  <karl@gnu.org>
105060         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
105061         exists, foo.h should be cvs-ignored, not committed.
105063 2007-02-23  Eric Blake  <ebb9@byu.net>
105065         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
105066         * lib/stat-time.h (includes): Likewise.
105067         * lib/utimecmp.c (includes): Likewise.
105068         * lib/utimens.h (includes): Likewise.
105069         * lib/getdate.y (includes): Also include "timespec.h" for use
105070         internal to the module.
105071         * modules/utimens (Depends-on): Revert yesterday's patch.
105072         * modules/nanosleep (Depends-on): Add missing dependency.
105074 2007-02-22  Bruno Haible  <bruno@clisp.org>
105076         * lib/glob.c: Don't include getlogin_r.h.
105078 2007-02-22  Jim Meyering  <jim@meyering.net>
105080         * modules/utimens (Depends-on): Add timespec, required for
105081         utimens.h's inclusion of timespec.h.
105083 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
105085         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
105086         long unreadable paths in GNU/Linux.  Problem reported by Andreas
105087         Schwab in
105088         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
105089         I'll try to think of a better way to fix the Solaris problem.
105091         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
105092         like glibc; on Solaris 10, it fails with errno == EINVAL.
105093         POSIX says the behavior is unspecified if the first argument is NULL,
105094         so play it safe and never pass NULL to the system getcwd.
105096 2007-02-21  Jim Meyering  <jim@meyering.net>
105098         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
105099         of gettimeofday.  It would conflict with the one now always
105100         provided via sys_time_.h.  Reported by Matthew Woehlke, as
105101         an IRIX 6.5 build failure.
105103 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
105105         Minor fixups to port to Solaris 10 with Sun C 5.8.
105106         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
105107         * modules/getcwd (Depends-on): Add dirfd.
105108         * lib/putenv.c (putenv): #undef it.
105109         (rpl_putenv): New decl.
105110         (malloc, free): Include <stdlib.h> rather than prototyping separately.
105112 2007-02-20  Bruno Haible  <bruno@clisp.org>
105114         * modules/stdio-tests: New file.
105115         * tests/test-stdio.c: New file.
105117         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
105118         (Depends-on): Add stdio.
105119         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
105120         (Include): Use <stdio.h> instead of vsnprintf.h.
105121         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
105122         HAVE_DECL_VSNPRINTF.
105123         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
105125         * modules/snprintf (Files): Remove lib/snprintf.h.
105126         (Depends-on): Add stdio.
105127         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
105128         (Include): Use <stdio.h> instead of snprintf.h.
105129         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
105130         HAVE_DECL_SNPRINTF.
105131         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
105132         * lib/getaddrinfo.c: Likewise.
105134         * modules/stdio: New file.
105135         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
105136         * lib/snprintf.h: Remove file.
105137         * lib/vsnprintf.h: Remove file.
105138         * lib/.cppi-disable: Remove snprintf.h.
105139         * m4/stdio_h.m4: New file.
105140         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
105142 2007-02-20  Jim Meyering  <jim@meyering.net>
105144         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
105145         used by e.g., mingw.  From Bruno Haible.
105147 2007-02-19  Bruno Haible  <bruno@clisp.org>
105149         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
105150         warnings.
105151         Reported by Ben Pfaff <blp@cs.stanford.edu>.
105153 2007-02-19  Bruno Haible  <bruno@clisp.org>
105155         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
105156         from mingw users.
105158 2007-02-19  Bruno Haible  <bruno@clisp.org>
105160         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
105161         warnings.
105162         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
105164 2007-02-19  Jim Meyering  <jim@meyering.net>
105166         Don't use FD after a successful "fdopendir (fd)".
105167         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
105168         Reset it by calling dirfd on the just-obtained DIR*.
105170         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
105171         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
105173 2007-02-18  Bruno Haible  <bruno@clisp.org>
105175         * lib/readlink.c: Include <unistd.h>.
105176         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
105177         HAVE_READLINK.
105178         * modules/readlink (Depends-on): Add unistd.
105179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105180         (Include): Add <unistd.h>.
105182         * lib/getlogin_r.h: Remove file.
105183         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
105184         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
105185         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
105186         HAVE_DECL_GETLOGIN_R.
105187         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
105188         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105189         (Include): Use <unistd.h> instead of getlogin_r.h.
105191         * lib/getcwd.h: Remove file.
105192         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
105193         * lib/xgetcwd.c: Likewise.
105194         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
105195         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
105196         * modules/getcwd (Files): Remove lib/getcwd.h.
105197         (Depends-on): Add unistd.
105198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105199         (Include): Use <unistd.h> instad of getcwd.h.
105201         * lib/ftruncate.c: Include <unistd.h> first.
105202         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
105203         Set HAVE_FTRUNCATE.
105204         * modules/ftruncate (Depends-on): Add unistd.
105205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105207         * lib/fchdir.c: Include <unistd.h> first.
105208         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
105209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
105210         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
105211         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105212         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
105214         * lib/dup2.c: Include <unistd.h> first.
105215         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
105216         HAVE_DUP2.
105217         * modules/dup2 (Depends-on): Add unistd.
105218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105220         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
105221         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
105222         REPLACE_CHOWN. Don't define chown as a macro here.
105223         * modules/chown (Depends-on): Add unistd.
105224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
105226         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
105227         Add definition for GL_LINK_WARNING.
105228         (chown, dup2): New declarations.
105229         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
105230         link warning.
105231         (ftruncate): New declaration.
105232         (getcwd): New declaration, taken from old getcwd.h.
105233         (getlogin_r): New declaration, taken from old getlogin_r.h.
105234         (readlink): New declaration.
105235         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
105236         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
105237         (gl_PREREQ_UNISTD): Remove macro.
105238         (gl_UNISTD_MODULE_INDICATOR): New macro.
105239         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
105240         many new variables. Don't set UNISTD_H.
105241         * modules/unistd (Description): Change.
105242         (Depends-on): Add link-warning.
105243         (configure.ac): Update.
105244         (Makefile.am): Create unistd.h always. Substitute many new variables
105245         into it.
105247 2007-02-18  Bruno Haible  <bruno@clisp.org>
105249         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
105250         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
105251         HAVE_GETSUBOPT.
105252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
105253         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
105254         * lib/getsubopt.h: Remove file.
105255         * modules/getsubopt (Files): Remove lib/getsubopt.h.
105256         (Depends-on): Add stdlib.
105257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
105258         (Includes): Use <stdlib.h> instead of getsubopt.h.
105259         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
105260         Set HAVE_GETSUBOPT.
105261         * lib/getsubopt.c: Don't include getsubopt.h.
105263 2007-02-18  Bruno Haible  <bruno@clisp.org>
105265         * modules/fchdir (Depends-on): Add dup2.
105267 2007-02-18  Bruno Haible  <bruno@clisp.org>
105269         * lib/stdlib_.h: Handle glibc's special invocation convention
105270         specially.
105272 2007-02-18  Bruno Haible  <bruno@clisp.org>
105274         * modules/stdlib-tests: New file.
105275         * tests/test-stdlib.c: New file.
105277         * modules/mkstemp (Files): Remove lib/mkstemp.h.
105278         (Depends-on): Add stdlib.
105279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
105280         (Includes): Use <stdlib.h> instead of mkstemp.h.
105281         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
105282         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
105283         * lib/mkstemp.c: Don't include mkstemp.h.
105284         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
105285         * lib/stdlib--.h: Don't include mkstemp.h.
105287         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
105288         (Depends-on): Add stdlib.
105289         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
105290         (Includes): Use <stdlib.h> instead of mkdtemp.h.
105291         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
105292         HAVE_MKDTEMP.
105293         * lib/mkdtemp.c: Don't include mkdtemp.h.
105294         * lib/clean-temp.c: Don't include mkdtemp.h.
105296         * modules/exit (Files): Remove lib/exit.h.
105297         (Depends-on): Add stdlib.
105298         (Makefile.am): Remove lib_SOURCES.
105299         (Include): Use <stdlib.h> instead of exit.h.
105300         * lib/argmatch.c: Don't include exit.h.
105301         * lib/execute.c: Likewise.
105302         * lib/pagealign_alloc.c: Likewise.
105303         * lib/pipe.c: Likewise.
105304         * lib/wait-process.c: Likewise.
105305         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
105306         * lib/exitfail.c: Likewise.
105307         * lib/savewd.c: Likewise.
105308         * lib/xsetenv.c: Likewise.
105310         * modules/stdlib: New file.
105311         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
105312         and extra comments about mkstemp().
105313         * lib/exit.h: Remove file.
105314         * lib/mkdtemp.h: Remove file.
105315         * lib/mkstemp.h: Remove file.
105316         * m4/stdlib_h.m4: New file.
105317         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
105319 2007-02-18  Bruno Haible  <bruno@clisp.org>
105321         * modules/math-tests: New file.
105322         * tests/test-math.c: New file.
105324         * modules/math: New file.
105325         * modules/mathl (Files): Remove lib/mathl.h.
105326         (Depends-on): Add math.
105327         (Makefile.am): Don't mention mathl.h.
105328         (Include): Use <math.h> instead of mathl.h.
105329         * lib/math_.h: New file.
105330         * lib/mathl.h: Remove file.
105331         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
105332         mathl.h.
105333         * lib/asinl.c: Likewise.
105334         * lib/atanl.c: Likewise.
105335         * lib/ceill.c: Likewise.
105336         * lib/cosl.c: Likewise.
105337         * lib/expl.c: Likewise.
105338         * lib/floorl.c: Likewise.
105339         * lib/frexpl.c: Likewise.
105340         * lib/ldexpl.c: Likewise.
105341         * lib/logl.c: Likewise.
105342         * lib/sincosl.c: Likewise.
105343         * lib/sinl.c: Likewise.
105344         * lib/sqrtl.c: Likewise.
105345         * lib/tanl.c: Likewise.
105346         * lib/trigl.c: Likewise.
105347         * m4/math_h.m4: New file.
105348         * MODULES.html.sh (Mathematics): Add math.
105350 2007-02-17  Bruno Haible  <bruno@clisp.org>
105352         * modules/wctype-tests: New file.
105353         * tests/test-wctype.c: New file.
105355         * modules/wchar-tests: New file.
105356         * tests/test-wchar.c: New file.
105358         * modules/unistd-tests: New file.
105359         * tests/test-unistd.c: New file.
105361         * modules/time-tests: New file.
105362         * tests/test-time.c: New file.
105364         * modules/sysexits-tests: New file.
105365         * tests/test-sysexits.c: New file.
105367         * modules/sys_time-tests: New file.
105368         * tests/test-sys_time.c: New file.
105370         * modules/sys_stat-tests: New file.
105371         * tests/test-sys_stat.c: New file.
105373         * modules/sys_socket-tests: New file.
105374         * tests/test-sys_socket.c: New file.
105376         * modules/sys_select-tests: New file.
105377         * tests/test-sys_select.c: New file.
105379         * modules/string-tests: New file.
105380         * tests/test-string.c: New file.
105382         * modules/stdbool-tests: New file.
105383         * tests/test-stdbool.c: New file.
105385         * modules/netinet_in-tests: New file.
105386         * tests/test-netinet_in.c: New file.
105388         * modules/inttypes-tests: New file.
105389         * tests/test-inttypes.c: New file.
105391         * modules/fcntl-tests: New file.
105392         * tests/test-fcntl.c: New file.
105394         * modules/byteswap-tests: New file.
105395         * tests/test-byteswap.c: New file.
105397         * modules/arpa_inet-tests: New file.
105398         * tests/test-arpa_inet.c: New file.
105400 2007-02-17  Bruno Haible  <bruno@clisp.org>
105402         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
105403         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
105404         if the corresponding module is not enabled. Emit link warnings if
105405         the function is used nevertheless.
105406         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
105407         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
105408         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
105409         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
105410         * modules/inttypes (Depends-on): Add link-warning.
105411         (Makefile.am): Copy the contents of build-aux/link-warning.h into
105412         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
105413         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
105414         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
105415         * modules/imaxdiv (configure.ac): Likewise.
105416         * modules/strtoimax (configure.ac): Likewise.
105417         * modules/strtoumax (configure.ac): Likewise.
105419 2007-02-17  Bruno Haible  <bruno@clisp.org>
105421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
105422         gl_STRING_MODULE_INDICATOR_DEFAULTS.
105423         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
105424         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
105426 2007-02-17  Bruno Haible  <bruno@clisp.org>
105428         * modules/link-warning: New file.
105429         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
105430         * lib/string_.h (GL_LINK_WARNING): Remove definition.
105431         * modules/string (Depends-on): Add link-warning.
105432         (Makefile.am): Copy the contents of build-aux/link-warning.h into
105433         string.h.
105434         * MODULES.html.sh (Support for building libraries and executables): Add
105435         link-warning.
105437 2007-02-17  Bruno Haible  <bruno@clisp.org>
105439         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
105440         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
105441         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
105442         long lines.
105444 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
105445             Bruno Haible  <bruno@clisp.org>
105447         * modules/tmpfile: New file.
105448         * lib/tmpfile.c: New file.
105449         * m4/tmpfile.m4: New file.
105450         * MODULES.html.sh (func_all_modules): New section "Input/output".
105452 2007-02-15  Bruno Haible  <bruno@clisp.org>
105454         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
105455         (supports_delete_on_close): New function.
105456         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
105458 2007-02-14  Bruno Haible  <bruno@clisp.org>
105460         * modules/mbspcasecmp-tests: New file.
105461         * tests/test-mbspcasecmp.sh: New file.
105462         * tests/test-mbspcasecmp.c: New file.
105464         New module mbspcasecmp.
105465         * modules/mbspcasecmp: New file.
105466         * lib/mbspcasecmp.c: New file.
105467         * lib/string_.h (strncasecmp): Change warning message.
105468         (mbspcasecmp): New declaration.
105469         * m4/mbspcasecmp.m4: New file.
105470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105471         GNULIB_MBSPCASECMP.
105472         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
105473         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
105475 2007-02-14  Bruno Haible  <bruno@clisp.org>
105477         * modules/mbsncasecmp-tests: New file.
105478         * tests/test-mbsncasecmp.sh: New file.
105479         * tests/test-mbsncasecmp.c: New file.
105481         New module mbsncasecmp.
105482         * modules/mbsncasecmp: New file.
105483         * lib/mbsncasecmp.c: New file.
105484         * lib/string_.h (mbsncasecmp): New declaration.
105485         * m4/mbsncasecmp.m4: New file.
105486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105487         GNULIB_MBSNCASECMP.
105488         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
105489         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
105491 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
105493         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
105494         Verify that it doesn't overlap with our flags.
105495         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
105496         do not have the desired effect in multibyte locales; instead, use
105497         mbscasecmp.
105498         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
105499         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
105500         we don't require GNU fnmatch ourselves (if our users require it, they
105501         should do so explicitly).
105503         Fix regex code so it doesn't rely on strcasecmp.
105504         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
105505         Otherwise, include gnulib's langinfo.h.
105506         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
105507         undesirable behavior in non-C locales.  Instead, rely on localecharset.
105508         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
105509         * modules/regex (FILES): Remove m4/codeset.m4.
105510         (Depends-on): Add localcharset.  Remove strcase.
105512 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105514         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
105515         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
105517 2007-02-13  Bruno Haible  <bruno@clisp.org>
105519         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
105520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105522 2007-02-12  Bruno Haible  <bruno@clisp.org>
105524         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105525         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
105526         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
105527         time warning rather than a link error.
105529 2007-02-12  Bruno Haible  <bruno@clisp.org>
105531         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
105532         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
105533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105535 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105537         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
105538         args, not 2.
105540 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105542         New module 'time', so that apps can include <time.h> as per
105543         POSIX and GNU instead of separate include files like time_r.h
105544         and timegm.h.  This implementation tries out a simpler approach
105545         for replacing decls in standard include files (as compared to
105546         the string module), somewhat as an experiment.
105548         * config/srclist.txt: Comment out mktime.c for now.
105549         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
105550         since it doesn't apply any more.  Use generic wording instead.
105551         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
105552         'time'.
105553         * lib/time_.h, m4/time_h.m4, modules/time: New files.
105554         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
105555         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
105556         Don't include <sys/types.h>; no longer needed since we assume C89.
105557         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
105558         * lib/strftime.c: Likewise.
105559         * lib/time_r.c: Likewise.
105560         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
105561         * lib/nanosleep.c: Include <time.h> first, to check interface.
105562         * lib/strptime.c: Likewise.
105563         * lib/time_r.c: Likewise.
105564         * lib/timegm.c: Likewise.
105565         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
105566         needed.
105567         * lib/timegm.c: Don't include timegm.h; no longer needed.
105568         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
105569         time.h now handles any problems in that area.
105570         (struct timespec, nanosleep): Remove; time.h now arranges for these.
105571         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
105572         that time.h defines struct timespec.
105573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
105574         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
105575         handles that.
105576         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
105577         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
105578         needed.  Set REPLACE_LOCALTIME.
105579         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
105580         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
105581         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
105582         nanosleep; time_h.m4 now does that.  Don't require
105583         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
105584         module handles this now.
105585         * modules/getdate (Depends-on): Remove timespec.  Add time.
105586         * modules/nanosleep (Depends-on): Likewise.
105587         * modules/stat-time (Depends-on): Likewise.
105588         * modules/nanosleep (Include): Include time.h, not timespec.h.
105589         * modules/strptime (Files): Remove lib/strptime.h.
105590         (Depends-on): Add extensions, time.
105591         (Include): Include time.h, not strptime.h.
105592         * modules/time_r (Files): Remove lib/time_r.h.
105593         (Depends-on): Add time.
105594         (Include): Include time.h, not time_r.h.
105595         * modules/timegm: Likewise.
105596         * modules/timespec (Description): Now does timespec-related decls
105597         of our own, instead of struct timespec itself.
105598         (Depends-on): Add time; remove extensions.
105599         (Maintainer): Add self.
105600         * modules/utimecmp (Depends-on): Add time; remove timespec.
105601         * modules/utimens (Depends-on): Likewise.
105602         * modules/xnanosleep (Depends-on): Likewise.
105604 2007-02-11  Bruno Haible  <bruno@clisp.org>
105606         * lib/c-strstr.c: Include allocsa.h.
105607         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105608         * lib/c-strcasestr.c: Include allocsa.h.
105609         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105610         * lib/strcasestr.c: Include allocsa.h.
105611         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105612         * lib/mbsstr.c: Include allocsa.h.
105613         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105614         allocsa/freesa instead of malloc/free.
105615         * lib/mbscasestr.c: Include allocsa.h.
105616         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105617         allocsa/freesa instead of malloc/free.
105618         * modules/c-strstr (Depends-on): Add allocsa.
105619         * modules/c-strcasestr (Depends-on): Likewise.
105620         * modules/strcasestr (Depends-on): Likewise.
105621         * modules/mbsstr (Depends-on): Likewise.
105622         * modules/mbscasestr (Depends-on): Likewise.
105624 2007-02-11  Bruno Haible  <bruno@clisp.org>
105626         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
105628         * modules/mbsspn-tests: New file.
105629         * tests/test-mbsspn.sh: New file.
105630         * tests/test-mbsspn.c: New file.
105632 2007-02-11  Bruno Haible  <bruno@clisp.org>
105634         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
105636         * modules/mbspbrk-tests: New file.
105637         * tests/test-mbspbrk.sh: New file.
105638         * tests/test-mbspbrk.c: New file.
105640 2007-02-11  Bruno Haible  <bruno@clisp.org>
105642         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
105643         unneeded cast.
105645         * modules/mbscspn-tests: New file.
105646         * tests/test-mbscspn.sh: New file.
105647         * tests/test-mbscspn.c: New file.
105649 2007-02-11  Bruno Haible  <bruno@clisp.org>
105651         * modules/mbscasecmp-tests: New file.
105652         * tests/test-mbscasecmp.sh: New file.
105653         * tests/test-mbscasecmp.c: New file.
105655 2007-02-11  Bruno Haible  <bruno@clisp.org>
105657         Ensure O(n) worst-case complexity of mbscasestr.
105658         * lib/mbscasestr.c: Include stdbool.h.
105659         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105660         functions.
105661         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
105662         the bookkeeping indicates that it's worth it.
105663         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
105665         * modules/mbscasestr-tests: New file.
105666         * tests/test-mbscasestr1.c: New file.
105667         * tests/test-mbscasestr2.sh: New file.
105668         * tests/test-mbscasestr2.c: New file.
105669         * tests/test-mbscasestr3.sh: New file.
105670         * tests/test-mbscasestr3.c: New file.
105671         * tests/test-mbscasestr4.sh: New file.
105672         * tests/test-mbscasestr4.c: New file.
105673         * m4/locale-tr.m4: New file.
105675 2007-02-11  Bruno Haible  <bruno@clisp.org>
105677         Ensure O(n) worst-case complexity of mbsstr.
105678         * lib/mbsstr.c: Include stdbool.h.
105679         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105680         functions.
105681         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
105682         bookkeeping indicates that it's worth it.
105683         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
105685         * modules/mbsstr-tests: New file.
105686         * tests/test-mbsstr1.c: New file.
105687         * tests/test-mbsstr2.sh: New file.
105688         * tests/test-mbsstr2.c: New file.
105689         * tests/test-mbsstr3.sh: New file.
105690         * tests/test-mbsstr3.c: New file.
105691         * m4/locale-fr.m4: New file.
105693 2007-02-11  Bruno Haible  <bruno@clisp.org>
105695         * lib/mbsrchr.c (mbsrchr): Fix bug.
105697         * modules/mbsrchr-tests: New file.
105698         * tests/test-mbsrchr.sh: New file.
105699         * tests/test-mbsrchr.c: New file.
105701 2007-02-11  Bruno Haible  <bruno@clisp.org>
105703         * lib/mbschr.c (mbschr): Fix bug.
105705         * modules/mbschr-tests: New file.
105706         * tests/test-mbschr.sh: New file.
105707         * tests/test-mbschr.c: New file.
105708         * m4/locale-zh.m4: New file.
105710 2007-02-11  Bruno Haible  <bruno@clisp.org>
105712         Support for copying multibyte string iterators.
105713         * lib/mbiter.h: Include <string.h>.
105714         (mbiter_multi_copy): New function.
105715         (mbi_copy): New macro.
105716         * lib/mbuiter.h: Include <string.h>.
105717         (mbuiter_multi_copy): New function.
105718         (mbui_copy): New macro.
105720 2007-02-11  Bruno Haible  <bruno@clisp.org>
105722         New module mbslen.
105723         * modules/mbslen: New file.
105724         * lib/mbslen.c: New file.
105725         * lib/string_.h (mbslen): New declaration.
105726         * m4/mbslen.m4: New file.
105727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105728         GNULIB_MBSLEN.
105729         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
105730         * MODULES.html.sh (Internationalization functions): Add mbslen.
105732 2007-02-11  Bruno Haible  <bruno@clisp.org>
105734         Ensure O(n) worst-case complexity of strcasestr substitute.
105735         * lib/strcasestr.c: Include stdbool.h.
105736         (knuth_morris_pratt): New function.
105737         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105738         bookkeeping indicates that it's worth it.
105739         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
105741         * modules/strcasestr-tests: New file.
105742         * tests/test-strcasestr.c: New file.
105744 2007-02-11  Bruno Haible  <bruno@clisp.org>
105746         Ensure O(n) worst-case complexity of c_strcasestr.
105747         * lib/c-strcasestr.c: Include stdbool.h, string.h.
105748         (knuth_morris_pratt): New function.
105749         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
105750         the bookkeeping indicates that it's worth it.
105751         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
105753         * modules/c-strcasestr-tests: New file.
105754         * tests/test-c-strcasestr.c: New file.
105756 2007-02-11  Bruno Haible  <bruno@clisp.org>
105758         Ensure O(n) worst-case complexity of c_strstr.
105759         * lib/c-strstr.c: Include stdbool.h, string.h.
105760         (knuth_morris_pratt): New function.
105761         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105762         bookkeeping indicates that it's worth it.
105763         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
105765         * lib/c-strstr.c: Complete rewrite for maintainability.
105767         * modules/c-strstr-tests: New file.
105768         * tests/test-c-strstr.c: New file.
105770 2007-02-11  Bruno Haible  <bruno@clisp.org>
105772         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
105773         5.2.1 and earlier, whereby \055 was treated just like the range
105774         delimiter '-'.
105775         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
105777 2007-02-08  Bruno Haible  <bruno@clisp.org>
105779         * modules/regex (Depends-on): Add stdbool.
105780         Reported by Dalibor Topic <robilad@kaffe.org>.
105782 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
105784         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
105785         Prefer returning from main to exiting from it.
105786         Remove unnecessary parens after sizeof.
105788 2007-02-05  Bruno Haible  <bruno@clisp.org>
105790         New module mbssep.
105791         * modules/mbssep: New file.
105792         * lib/mbssep.c: New file.
105793         * lib/string_.h (strsep): Add a conditional link warning.
105794         (mbssep): New declaration.
105795         * m4/mbssep.m4: New file.
105796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105797         GNULIB_MBSSEP.
105798         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
105799         * MODULES.html.sh (Internationalization functions): Add mbssep.
105801 2007-02-05  Bruno Haible  <bruno@clisp.org>
105803         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
105804         Optimize search in case of 1 delimiter.
105806 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105808         * lib/acl.h: Include sys/types.h before sys/acl.h.
105810 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105812         Merge upstream fix for glibc bugzilla #3957:
105814         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
105816         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
105817         bit for RE_HAT_LISTS_NOT_NEWLINE.
105818         (build_charclass_op): Remove bogus comment.
105820 2007-02-05  Simon Josefsson  <simon@josefsson.org>
105822         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
105824 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105826         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
105827         * lib/memmem.c [!defined _LIBC]: Include config.h.
105829 2007-02-04  Bruno Haible  <bruno@clisp.org>
105831         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
105832         warning message.
105834 2007-02-04  Bruno Haible  <bruno@clisp.org>
105836         New module mbstok_r.
105837         * modules/mbstok_r: New file.
105838         * lib/mbstok_r.c: New file.
105839         * lib/string_.h (strtok_r): Change argument names to match the
105840         comments. Add a conditional link warning.
105841         (mbstok_r): New declaration.
105842         * m4/mbstok_r.m4: New file.
105843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105844         GNULIB_MBSTOK_R.
105845         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
105846         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
105848 2007-02-04  Bruno Haible  <bruno@clisp.org>
105850         New module mbsspn.
105851         * modules/mbsspn: New file.
105852         * lib/mbsspn.c: New file.
105853         * lib/string_.h (strspn): Add a conditional link warning.
105854         (mbsspn): New declaration.
105855         * m4/mbsspn.m4: New file.
105856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105857         GNULIB_MBSSPN.
105858         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
105859         * MODULES.html.sh (Internationalization functions): Add mbsspn.
105861 2007-02-04  Bruno Haible  <bruno@clisp.org>
105863         New module mbspbrk.
105864         * modules/mbspbrk: New file.
105865         * lib/mbspbrk.c: New file.
105866         * lib/string_.h (strpbrk): Add a conditional link warning.
105867         (mbspbrk): New declaration.
105868         * m4/mbspbrk.m4: New file.
105869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105870         GNULIB_MBSPBRK.
105871         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
105872         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
105874 2007-02-04  Bruno Haible  <bruno@clisp.org>
105876         New module mbscspn.
105877         * modules/mbscspn: New file.
105878         * lib/mbscspn.c: New file.
105879         * lib/string_.h (strcspn): Add a conditional link warning.
105880         (mbscspn): New declaration.
105881         * m4/mbscspn.m4: New file.
105882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105883         GNULIB_MBSCSPN.
105884         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
105885         * MODULES.html.sh (Internationalization functions): Add mbscspn.
105887 2007-02-04  Bruno Haible  <bruno@clisp.org>
105889         New module mbscasestr, reduced goal of strcasestr.
105890         * modules/mbscasestr: New file.
105891         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
105892         (mbscasestr): Renamed from strcasestr.
105893         * lib/strcasestr.c: Don't include mbuiter.h.
105894         (strcasestr): Remove support for multibyte locales.
105895         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105896         Change the conditional link warning.
105897         (mbscasestr): New declaration.
105898         * m4/mbscasestr.m4: New file.
105899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105900         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105901         REPLACE_STRCASESTR.
105902         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105904         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105906         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105907         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105908         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105909         (Depends-on): Remove mbuiter.
105910         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105912 2007-02-04  Bruno Haible  <bruno@clisp.org>
105914         Simplify handling of strncasecmp.
105915         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105916         the conditional link warning.
105917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105918         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105919         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105920         * modules/strcase (configure.ac): Don't invoke
105921         gl_STRING_MODULE_INDICATOR.
105922         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105924 2007-02-04  Bruno Haible  <bruno@clisp.org>
105926         New module mbscasecmp, reduced goal of strcasecmp.
105927         * modules/mbscasecmp: New file.
105928         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105929         (mbscasecmp): Renamed from strcasecmp.
105930         * lib/strcasecmp.c: Don't include mbuiter.h.
105931         (strcasecmp): Remove support for multibyte locales.
105932         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105933         Change the conditional link warning.
105934         (mbscasecmp): New declaration.
105935         * m4/mbscasecmp.m4: New file.
105936         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105937         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105938         REPLACE_STRCASECMP.
105939         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105941         GNULIB_MBSCASECMP.
105942         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105943         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105944         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105945         (Depends-on): Remove mbuiter.
105946         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105948 2007-02-04  Bruno Haible  <bruno@clisp.org>
105950         New module mbsstr. Remove module strstr.
105951         * modules/mbsstr: New file.
105952         * modules/strstr: Remove file.
105953         * lib/mbsstr.c: Renamed from lib/strstr.c.
105954         (mbsstr): Renamed from strstr.
105955         * lib/string_.h (strstr): Remove declaration. Change the conditional
105956         link warning.
105957         (mbsstr): New declaration.
105958         * m4/mbsstr.m4: New file.
105959         * m4/strstr.m4: Remove file.
105960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105961         REPLACE_STRSTR.
105962         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105963         Don't initialize GNULIB_STRSTR.
105964         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105965         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105966         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105967         (Support for systems lacking ANSI C 89): Remove strstr.
105969 2007-02-04  Bruno Haible  <bruno@clisp.org>
105971         New module mbsrchr.
105972         * modules/mbsrchr: New file.
105973         * lib/mbsrchr.c: New file.
105974         * lib/string_.h (strrchr): Add a conditional link warning.
105975         (mbsrchr): New declaration.
105976         * m4/mbsrchr.m4: New file.
105977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105978         GNULIB_MBSRCHR.
105979         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105980         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105982 2007-02-04  Bruno Haible  <bruno@clisp.org>
105984         New module mbschr.
105985         * modules/mbschr: New file.
105986         * lib/mbschr.c: New file.
105987         * lib/string_.h (strchr): Add a conditional link warning.
105988         (mbschr): New declaration.
105989         * m4/mbschr.m4: New file.
105990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105991         GNULIB_MBSCHR.
105992         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105993         * MODULES.html.sh (Internationalization functions): Add mbschr.
105995 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105997         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105999         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
106001 2007-02-04  Bruno Haible  <bruno@clisp.org>
106003         New module description section 'configure.ac-early'.
106004         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
106005         (func_get_autoconf_early_snippet): New function.
106006         (func_import, func_create_testdir): Use it. Remove special cases for
106007         modules 'extensions' and 'lock'.
106008         * modules/extensions (configure.ac-early): Require
106009         gl_USE_SYSTEM_EXTENSIONS.
106010         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
106012 2007-02-04  Bruno Haible  <bruno@clisp.org>
106014         Make use of gcj-4.3's -fsource and -ftarget option.
106015         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
106016         and if so try the options -fsource and -ftarget.
106017         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
106018         source_version, ftarget_option, target_version arguments.
106019         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
106020         (is_envjavac_oldgcj_14_14_usable): Renamed from
106021         is_envjavac_gcj_14_14_usable.
106022         (is_envjavac_oldgcj_14_13_usable): Renamed from
106023         is_envjavac_gcj_14_13_usable.
106024         (is_gcj_present): Update.
106025         (is_gcj_43, is_gcj43_usable): New functions.
106026         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
106027         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
106028         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
106029         try the options -fsource and -ftarget.
106031 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106033         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
106034         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
106035         larger value.
106037 2007-02-03  Jim Meyering  <jim@meyering.net>
106039         Give tools a better chance to allocate space for very large buffers.
106040         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
106042         Make pwd and readlink work also when run with an unreadable parent dir
106043         on systems with openat support.
106044         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
106045         provided getcwd function, even when we have openat support.
106046         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
106048 2007-02-02  Bruno Haible  <bruno@clisp.org>
106050         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
106051         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
106052         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
106053         portability problems if one of these functions is only used on specific
106054         platforms.
106055         Reported by Paul Eggert.
106057 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
106059         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
106060         is causing more trouble than it's curing.
106061         * lib/regex_internal.h (__mempcpy): Remove.
106062         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
106063         (and make the code a tad smaller to boot).
106064         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
106066 2007-02-02  Jim Meyering  <jim@meyering.net>
106068         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
106069         section, not in the Makefile.am: one.
106071 2007-02-02  Eric Blake  <ebb9@byu.net>
106073         * lib/strchrnul.c: Always include config.h first.
106075         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
106076         gnulib strstr is not necessary here.
106078 2007-02-02  Simon Josefsson  <simon@josefsson.org>
106080         * m4/socklen.m4: Fix typo.
106082 2007-02-02  Eric Blake  <ebb9@byu.net>
106084         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
106085         * modules/netinet_in (Makefile.am): Likewise.
106087 2007-02-01  Bruno Haible  <bruno@clisp.org>
106089         * lib/string_.h (GL_LINK_WARNING): New macro.
106090         (strcasecmp, strstr, strcasestr): If provided by the system,
106091         conditionally define as a macro that leads to a warning instead of to
106092         an error.
106093         (strncasecmp): Conditionally define as a macro that leads to a warning.
106095 2007-02-01  Karl Berry  <karl@gnu.org>
106097         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
106099 2007-02-01  Bruno Haible  <bruno@clisp.org>
106101         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
106102         renamings.
106104 2007-02-01  Eric Blake  <ebb9@byu.net>
106106         * modules/regex (Depends-on): Revert dependence on mempcpy.
106107         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
106108         module's definition of mempcpy.
106109         Reported by Paul Eggert.
106111 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
106113         * lib/string_.h: If the gnulib module XYZ is not present, undefine
106114         the symbol XYZ before redefining it.  This fixes a problem with
106115         programs that don't use XYZ, when compiled on systems that define
106116         XYZ to something else.
106118 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
106120         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
106121         occurs when "mkdir -m foo" creates a setgid directory that is (1)
106122         writeable to group or other and (2) is intended to have a special
106123         mode bit that is set or cleared.  In such a case, the directory
106124         should be neither group- nor other-writeable until the special
106125         mode bits are right.
106127 2007-01-31  Eric Blake  <ebb9@byu.net>
106129         * modules/mountlist (Depends-on): Add strstr.
106131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
106132         bug.
106133         * modules/string (Makefile.am): Remove redundant replacement.
106134         * modules/regex (Depends-on): Add mempcpy.
106136 2007-01-31  Bruno Haible  <bruno@clisp.org>
106138         New module description field 'Link'.
106139         * gnulib-tool (func_usage): Document --extract-link-directive.
106140         (sed_extract_prog): Recognize 'Link' directive.
106141         (func_get_link_directive): New function.
106142         (func_import): Show summary of link directives.
106143         Handle --extract-link-directive option.
106144         * modules/acl (Link): New section.
106145         * modules/clock-time (Link): New section.
106146         * modules/euidaccess (Link): New section.
106147         * modules/gettext (Link): New section.
106148         * modules/iconv (Link): New section.
106149         * modules/lock (Link): New section.
106150         * modules/nanosleep (Link): New section.
106151         * modules/readline (Link): New section.
106153 2007-01-27  Bruno Haible  <bruno@clisp.org>
106155         Enforce the use of gnulib modules for unportable <string.h> functions.
106156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
106157         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
106158         (gl_HEADER_STRING_H_BODY): Require it.
106159         * lib/string_.h: If the gnulib module XYZ is not present, redefine
106160         the symbol XYZ to one that gives a link error.
106161         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
106162         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
106163         * modules/mempcpy (configure.ac): Likewise.
106164         * modules/memrchr (configure.ac): Likewise.
106165         * modules/stpcpy (configure.ac): Likewise.
106166         * modules/stpncpy (configure.ac): Likewise.
106167         * modules/strcase (configure.ac): Likewise.
106168         * modules/strcasestr (configure.ac): Likewise.
106169         * modules/strchrnul (configure.ac): Likewise.
106170         * modules/strdup (configure.ac): Likewise.
106171         * modules/strndup (configure.ac): Likewise.
106172         * modules/strnlen (configure.ac): Likewise.
106173         * modules/strpbrk (configure.ac): Likewise.
106174         * modules/strsep (configure.ac): Likewise.
106175         * modules/strstr (configure.ac): Likewise.
106176         * modules/strtok_r (configure.ac): Likewise.
106178 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
106180         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
106182 2007-01-30  Jim Meyering  <jim@meyering.net>
106184         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
106186 2007-01-29  Bruno Haible  <bruno@clisp.org>
106188         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
106189         * lib/execute.c: Likewise.
106190         * lib/pipe.c: Likewise.
106191         * lib/printf-args.h: Likewise.
106192         * lib/printf-args.c: Likewise.
106193         * lib/printf-parse.c: Likewise.
106194         * lib/vasnprintf.c: Likewise.
106196 2007-01-29  Eric Blake  <ebb9@byu.net>
106198         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
106199         declaration.
106201 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
106203         * lib/strptime.h (strptime): Use 'restrict' for args where
106204         POSIX requires this.
106205         * lib/strptime.c (strptime): Likewise.
106206         Change license notice from LGPL to GPL, since gnulib-tool will
106207         change this as needed.
106208         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
106209         defined.
106210         Include "strptime.h" first, to check interface.
106211         Do not #undef _LIBC and _NL_CURRENT.
106212         Do not include <stdlib.h>; no longer needed.
106213         Include "time_r.h" and declare ptime_locale_status
106214         only if _LIBC is not defined.
106215         (__P): Remove unused macro.
106216         (match_string): Bring back glibc version, but use it only if _LIBC
106217         is defined.
106218         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
106219         Remove unnecessary assertion and abort() call.
106220         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
106221         * m4/strptime.m4: Fix serial number comment.
106222         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
106223         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
106224         (Depends-on): Add time_r.
106226 2007-01-29  Bruno Haible  <bruno@clisp.org>
106228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106229         strptime.
106230         * modules/strptime (Depends-on): Add stdbool.
106231         * lib/strptime.h: Include <time.h> always. Add comments.
106233 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106235         * modules/strptime: New file.
106236         * lib/strptime.h: New file.
106237         * lib/strptime.c: New file.
106238         * m4/strptime.m4: New file.
106240 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106242         * MODULES.html.sh: New module mpsort.
106243         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
106245         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
106246         a circularity problem with HP-UX ia64 reported by Bob Proulx in
106247         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
106248         All uses changed.
106249         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
106250         All uses changed.
106251         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
106252         to _Restrict_.
106253         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
106254         the parameter matches the prototype.
106256 2007-01-28  Jim Meyering  <jim@meyering.net>
106258         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
106259         sys/time.h here, reverting that part of the previous patch:
106260         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
106262 2007-01-28  Bruno Haible  <bruno@clisp.org>
106264         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
106265         value of $(SYS_TIME_H).
106266         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
106267         remove it conditionally, too. [added by Jim Meyering]
106268         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
106269         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106270         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
106271         GETTIMEOFDAY_REPLACEMENT to 1.
106273 2007-01-28  Bruno Haible  <bruno@clisp.org>
106275         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
106276         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
106277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
106278         Set UNISTD_H instead of UNISTD_H2.
106279         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
106281 2007-01-28  Bruno Haible  <bruno@clisp.org>
106283         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
106284         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
106286 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106288         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
106289         (func_create_testdir): Ensure C locale for `grep' and `tr'
106290         character ranges.
106291         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
106292         ACLOCAL_AMFLAGS parsing state machine.
106294 2007-01-27  Bruno Haible  <bruno@clisp.org>
106296         * modules/unistr/base: Update.
106298 2007-01-27  Bruno Haible  <bruno@clisp.org>
106300         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
106301         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
106302         * modules/unistr/u32-mbtouc-unsafe: Renamed from
106303         modules/unistr/u32-mbtouc.
106304         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
106305         * lib/unistr.h: Update.
106306         * lib/linebreak.c: Update.
106307         * modules/unistr/u32-mbtouc: Renamed from
106308         modules/unistr/u32-mbtouc-safe.
106309         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
106310         * lib/unistr.h: Update.
106311         * lib/unistr/u32-to-u8.c: Update.
106312         * lib/unistr/u32-to-u16.c: Update.
106314 2007-01-27  Bruno Haible  <bruno@clisp.org>
106316         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
106317         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
106318         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
106319         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
106320         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
106321         * modules/unistr/u16-mbtouc-unsafe: Renamed from
106322         modules/unistr/u16-mbtouc.
106323         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
106324         * lib/unistr.h: Update.
106325         * lib/linebreak.c: Update.
106326         * modules/linebreak: Update.
106327         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
106328         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
106329         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
106330         * modules/unistr/u16-mbtouc: Renamed from
106331         modules/unistr/u16-mbtouc-safe.
106332         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
106333         * lib/unistr.h: Update.
106334         * lib/unistr/u16-to-u8.c: Update.
106335         * modules/unistr/u16-to-u8: Update.
106336         * lib/unistr/u16-to-u32.c: Update.
106337         * modules/unistr/u16-to-u32: Update.
106339 2007-01-27  Bruno Haible  <bruno@clisp.org>
106341         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
106342         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
106343         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
106344         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
106345         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
106346         * modules/unistr/u8-mbtouc-unsafe: Renamed from
106347         modules/unistr/u8-mbtouc.
106348         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
106349         * lib/unistr.h: Update.
106350         * lib/striconveh.c: Update.
106351         * modules/striconveh: Update.
106352         * lib/linebreak.c: Update.
106353         * modules/linebreak: Update.
106354         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
106355         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
106356         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
106357         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
106358         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
106359         * lib/unistr.h: Update.
106360         * lib/striconveh.c: Update.
106361         * modules/striconveh: Update.
106362         * lib/unistr/u8-to-u16.c: Update.
106363         * modules/unistr/u8-to-u16: Update.
106364         * lib/unistr/u8-to-u32.c: Update.
106365         * modules/unistr/u8-to-u32: Update.
106367 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106369         Sync from Libtool.
106370         * lib/argz.c: Do not include strings.h nor memory.h, include
106371         string.h unconditionally.  Patch by Simon Josefsson.
106373 2007-01-27  Bruno Haible  <bruno@clisp.org>
106375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
106376         from gl_HEADER_STRING_H_BODY.
106377         (gl_HEADER_STRING_H_BODY): Require it.
106378         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
106379         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
106380         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
106381         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
106382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
106383         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
106384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
106385         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
106386         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
106387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
106388         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
106389         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
106390         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
106391         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
106392         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
106394 2007-01-27  Bruno Haible  <bruno@clisp.org>
106396         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
106397         check_PROGRAMS into noinst_PROGRAMS.
106398         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
106399         check_PROGRAMS in this case.
106400         (func_import): Set for_test to false.
106401         (func_create_testdir): Set for_test to true.
106403 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106404             Bruno Haible  <bruno@clisp.org>
106406         * modules/strcasestr (Files): Remove lib/strcasestr.h.
106407         (Depends-on): Add string.
106408         (Includes): Use <string.h> instead of strcasestr.h.
106409         * modules/string (Makefile.am): Also substitute the value of
106410         REPLACE_STRCASESTR.
106411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
106412         assume strcasestr is declared in <string.h> not <strings.h>. Also
106413         set REPLACE_STRCASESTR.
106414         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
106415         REPLACE_STRCASESTR.
106416         * lib/strcasestr.h: Remove file.
106417         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
106418         * lib/string_.h (strcasestr): New declaration.
106420 2007-01-27  Bruno Haible  <bruno@clisp.org>
106422         * lib/string_.h: Use 'extern'.
106424 2007-01-27  Jim Meyering  <jim@meyering.net>
106426         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
106427         of set-but-not-used local, "q".
106429         * lib/mempcpy.c: Include <config.h> before <string.h>.
106430         This fixes a compilation error on HP-UX, due to the system's
106431         "restrict"-using mempcpy prototype.
106433 2007-01-26  Bruno Haible  <bruno@clisp.org>
106435         Small optimization.
106436         * lib/javacomp.c: Include c-strstr.h.
106437          (is_envjavac_gcj): Use c_strstr instead of strstr.
106438         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
106440 2007-01-26  Bruno Haible  <bruno@clisp.org>
106442         * MODULES.html.sh (Unicode string functions): Add the new modules.
106444         * modules/uniconv/u32-strconv-to-locale: New file.
106445         * lib/uniconv/u32-strconv-to-locale.c: New file.
106447         * modules/uniconv/u16-strconv-to-locale: New file.
106448         * lib/uniconv/u16-strconv-to-locale.c: New file.
106450         * modules/uniconv/u8-strconv-to-locale: New file.
106451         * lib/uniconv/u8-strconv-to-locale.c: New file.
106453         * modules/uniconv/u32-strconv-from-locale: New file.
106454         * lib/uniconv/u32-strconv-from-locale.c: New file.
106456         * modules/uniconv/u16-strconv-from-locale: New file.
106457         * lib/uniconv/u16-strconv-from-locale.c: New file.
106459         * modules/uniconv/u8-strconv-from-locale: New file.
106460         * lib/uniconv/u8-strconv-from-locale.c: New file.
106462         * modules/uniconv/u32-strconv-to-enc: New file.
106463         * lib/uniconv/u32-strconv-to-enc.c: New file.
106464         * modules/uniconv/u32-strconv-to-enc-tests: New file.
106465         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
106467         * modules/uniconv/u16-strconv-to-enc: New file.
106468         * lib/uniconv/u16-strconv-to-enc.c: New file.
106469         * lib/uniconv/u-strconv-to-enc.h: New file.
106470         * modules/uniconv/u16-strconv-to-enc-tests: New file.
106471         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
106473         * modules/uniconv/u8-strconv-to-enc: New file.
106474         * lib/uniconv/u8-strconv-to-enc.c: New file.
106475         * modules/uniconv/u8-strconv-to-enc-tests: New file.
106476         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
106478         * modules/uniconv/u32-strconv-from-enc: New file.
106479         * lib/uniconv/u32-strconv-from-enc.c: New file.
106480         * modules/uniconv/u32-strconv-from-enc-tests: New file.
106481         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
106483         * modules/uniconv/u16-strconv-from-enc: New file.
106484         * lib/uniconv/u16-strconv-from-enc.c: New file.
106485         * modules/uniconv/u16-strconv-from-enc-tests: New file.
106486         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
106488         * modules/uniconv/u8-strconv-from-enc: New file.
106489         * lib/uniconv/u8-strconv-from-enc.c: New file.
106490         * lib/uniconv/u-strconv-from-enc.h: New file.
106491         * modules/uniconv/u8-strconv-from-enc-tests: New file.
106492         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
106494         * modules/uniconv/u32-conv-from-enc: New file.
106495         * lib/uniconv/u32-conv-from-enc.c: New file.
106496         * modules/uniconv/u32-conv-from-enc-tests: New file.
106497         * tests/uniconv/test-u32-conv-from-enc.c: New file.
106499         * modules/uniconv/u16-conv-from-enc: New file.
106500         * lib/uniconv/u16-conv-from-enc.c: New file.
106501         * lib/uniconv/u-conv-from-enc.h: New file.
106502         * modules/uniconv/u16-conv-from-enc-tests: New file.
106503         * tests/uniconv/test-u16-conv-from-enc.c: New file.
106505         * modules/uniconv/u8-conv-from-enc: New file.
106506         * lib/uniconv/u8-conv-from-enc.c: New file.
106507         * modules/uniconv/u8-conv-from-enc-tests: New file.
106508         * tests/uniconv/test-u8-conv-from-enc.c: New file.
106510         * modules/uniconv/base: New file.
106511         * lib/uniconv.h: New file.
106513 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
106515         * doc/gnulib-tool.texi (Initial import): Update to match current
106516         behavior with strdup module.
106517         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
106518         * lib/memmem.h: Remove; all uses removed.  This is now done
106519         by <string.h>.
106520         * lib/mempcpy.h: Likewise.
106521         * lib/memrchr.h: Likewise.
106522         * lib/stpcpy.h: Likewise.
106523         * lib/stpncpy.h: Likewise.
106524         * lib/strcase.h: Likewise.
106525         * lib/strchrnul.h: Likewise.
106526         * lib/strdup.h: Likewise.
106527         * lib/strndup.h: Likewise.
106528         * lib/strnlen.h: Likewise.
106529         * lib/strpbrk.h: Likewise.
106530         * lib/strsep.h: Likewise.
106531         * lib/strstr.h: Likewise.
106532         * lib/strtok_r.h: Likewise.
106533         * lib/string_.h: New file.
106534         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
106535         Rely on <string.h> instead.
106536         * lib/canon-host.c: Likewise.
106537         * lib/chdir-long.c: Likewise.
106538         * lib/concatpath.c: Likewise.
106539         * lib/exclude.c: Likewise.
106540         * lib/fchdir.c: Likewise.
106541         * lib/getaddrinfo.c: Likewise.
106542         * lib/getcwd.c: Likewise.
106543         * lib/getsubopt.c: Likewise.
106544         * lib/glob.c: Likewise.
106545         * lib/hard-locale.c: Likewise.
106546         * lib/iconvme.c: Likewise.
106547         * lib/javacomp.c: Likewise.
106548         * lib/mempcpy.c: Likewise.
106549         * lib/memrchr.c: Likewise.
106550         * lib/regex_internal.h: Likewise.
106551         * lib/stpncpy.c: Likewise.
106552         * lib/strcasecmp.c: Likewise.
106553         * lib/strchrnul.c: Likewise.
106554         * lib/strdup.c: Likewise.
106555         * lib/striconv.c: Likewise.
106556         * lib/striconveh.c: Likewise.
106557         * lib/striconveha.c: Likewise.
106558         * lib/strncasecmp.c: Likewise.
106559         * lib/strndup.c: Likewise.
106560         * lib/strnlen.c: Likewise.
106561         * lib/strsep.c: Likewise.
106562         * lib/strstr.c: Likewise.
106563         * lib/strtok_r.c: Likewise.
106564         * lib/userspec.c: Likewise.
106565         * lib/w32spawn.h: Likewise.
106566         * lib/xstrndup.c: Likewise.
106567         * lib/mountlist.c (strstr): Remove decl.
106568         * m4/string_h.m4: New file.
106569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
106570         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
106571         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
106572         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
106573         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
106574         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
106575         Set REPLACE_STRCASECMP if necessary.
106576         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
106577         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
106578         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
106579         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
106580         HAVE_DECL_STRDUP if necessary.
106581         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
106582         since gl_FUNC_STRNDUP does that now.
106583         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
106584         Check for decl here...
106585         (gl_PREREQ_STRNLEN): ... not here.
106586         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
106587         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
106588         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
106589         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
106590         necessary.
106591         * modules/string: New file.
106592         * modules/memmem (Files): Remove special-purpose include file.
106593         (Depends-on): Add string.
106594         (Include): Include <string.h>, not the removed file.
106595         * modules/mempcpy: Likewise.
106596         * modules/memrchr: Likewise.
106597         * modules/stpcpy: Likewise.
106598         * modules/stpncpy: Likewise.
106599         * modules/strcase: Likewise.
106600         * modules/strchrnul: Likewise.
106601         * modules/strdup: Likewise.
106602         * modules/strndup: Likewise.
106603         * modules/strnlen: Likewise.
106604         * modules/strpbrk: Likewise.
106605         * modules/strsep: Likewise.
106606         * modules/strstr: Likewise.
106607         * modules/strtok_r: Likewise.
106608         * tests/test-dirname.c: Don't include "strdup.h", since
106609         <string.h> now suffices.
106610         * tests/test-memmem.c: Don't include "memmem.h", since
106611         <string.h> now suffices.
106613 2007-01-25  Bruno Haible  <bruno@clisp.org>
106615         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
106616         *resultp is 0.
106618         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
106619         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
106620         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
106621         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
106623         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
106624         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
106625         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
106626         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
106627         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
106628         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
106630 2007-01-24  Bruno Haible  <bruno@clisp.org>
106632         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
106633         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
106634         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
106635         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
106636         gl_FUNC_FTS_CORE.
106637         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
106638         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
106639         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
106640         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
106641         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
106642         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
106643         gl_FUNC_FCHOWNAT.
106644         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
106645         gl_FUNC_STRFTIME.
106646         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
106647         Reported by Ralf Wildenhues.
106649 2007-01-24  Bruno Haible  <bruno@clisp.org>
106651         Drop AC_REQUIRE calls that are redundant with the module dependencies.
106652         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
106653         gl_GETADDRINFO.
106654         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
106655         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
106656         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
106658 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
106660         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
106661         Don't use 'exit'; just return from 'main'.
106662         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
106664         * lib/fnmatch_.h: Readjust white space and comments to match
106665         glibc, to avoid spurious diffs.
106667 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106669         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
106670         2004-12-01 change by Jakub Jelinek, since this code won't compile
106671         if !LIBC.  Problem reported by Bob Proulx.
106673 2007-01-23  Bruno Haible  <bruno@clisp.org>
106675         * lib/striconveh.c: Include c-strcaseeq.h.
106676         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
106677         * modules/striconveh (Depends-on): Add c-strcaseeq.
106679 2007-01-23  Bruno Haible  <bruno@clisp.org>
106681         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
106683         * modules/c-strcaseeq: New file.
106684         * lib/c-strcaseeq.h: New file.
106686         * modules/streq: New file.
106687         * lib/streq.h: New file.
106689 2007-01-23  Bruno Haible  <bruno@clisp.org>
106691         * modules/striconveha-tests: New file.
106692         * tests/test-striconveha.c: New file.
106694         * lib/striconveha.h: Include <stdbool.h>.
106695         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
106696         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
106697         (mem_iconveha_notranslit): Renamed from mem_iconveha.
106698         (mem_iconveha): New function.
106699         (str_iconveha_notranslit): Renamed from str_iconveha.
106700         (str_iconveha): New function.
106701         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
106702         c-strcase.
106704 2007-01-23  Bruno Haible  <bruno@clisp.org>
106706         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
106707         encodings without forgiving before trying any encoding with handler.
106708         (str_iconveha): Try all encodings without forgiving before trying any
106709         encoding with handler.
106711 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106713         Import the following changes from libc.
106715         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106717         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
106719         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
106721         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
106722         normal_bracket label.
106724         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
106726         [BZ #361]
106727         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
106728         to normal_bracket after fetching the next character.
106730 2007-01-22  Bruno Haible  <bruno@clisp.org>
106732         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
106733         argument.
106734         * lib/striconveh.c (iconv_carefully_1): New function.
106735         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
106736         argument.
106737         (str_cd_iconveh): Update.
106738         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
106739         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
106740         * tests/test-striconveh.c (MAGIC): New macro.
106741         (new_offsets): New function.
106742         (main): Test call with and without offsets.
106744 2007-01-22  Bruno Haible  <bruno@clisp.org>
106746         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
106747         * modules/sys_select (Makefile.am): Likewise.
106748         * modules/sys_socket (Makefile.am): Likewise.
106749         * modules/sys_time (Makefile.am): Likewise.
106751 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
106753         * modules/gettimeofday (License): Change from GPL to LGPL, since
106754         gettimeofday is a library function.
106756 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106758         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
106760 2007-01-21  Bruno Haible  <bruno@clisp.org>
106762         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
106764 2007-01-21  Bruno Haible  <bruno@clisp.org>
106766         * modules/striconveha: New file.
106767         * lib/striconveha.h: New file.
106768         * lib/striconveha.c: New file.
106769         * MODULES.html.sh (Internationalization functions): Add striconveha.
106770         * lib/striconv.c (str_iconv): Optimize the case of an empty input
106771         string.
106772         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
106774 2007-01-21  Bruno Haible  <bruno@clisp.org>
106776         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
106777         * lib/striconveh.c (str_iconveh): Likewise.
106779 2007-01-21  Bruno Haible  <bruno@clisp.org>
106781         * lib/striconveh.h (mem_iconveh): New declaration.
106782         * lib/striconveh.c (mem_iconveh): New function.
106783         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
106785 2007-01-21  Bruno Haible  <bruno@clisp.org>
106787         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
106789         * lib/striconveh.h (mem_cd_iconveh): Change specification.
106790         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
106791         original result buffer.
106792         (str_cd_iconveh): Update.
106793         * tests/test-striconveh.c (main): Update.
106795         * lib/striconv.h (mem_cd_iconv): Change specification.
106796         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
106797         result buffer.
106798         (str_cd_iconv): Update.
106799         * tests/test-striconv.c (main): Update.
106801 2007-01-21  Bruno Haible  <bruno@clisp.org>
106803         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
106805 2007-01-20  Jim Meyering  <jim@meyering.net>
106807         * lib/userspec.c (parse_with_separator): If a user or group string
106808         starts with "+", skip the corresponding name-to-ID look-up, since
106809         such a look-up must fail: user and group names may not include "+".
106811 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106813         * lib/poll.c: Include sys/time.h and time.h unconditionally,
106814         since we now assume the sys_time module.
106815         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
106816         check for sys/time.h; no longer needed.
106817         * modules/poll (Depends-on): Depend on sys_time.
106819 2007-01-18  Bruno Haible  <bruno@clisp.org>
106821         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
106822         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106824         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
106825         gettimeofday.
106827         * tests/test-gettimeofday.c: Include <time.h>.
106828         (dummy): Remove variable.
106830         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
106831         gl_HEADER_SYS_TIME_H.
106832         (gl_HEADER_SYS_TIME_H): New macro.
106834         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
106835         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106836         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
106837         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
106838         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106839         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
106840         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
106841         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106842         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
106843         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
106844         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106846         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
106847         last change; it caused a compilation error when cross-compiling to
106848         Cygwin.
106850 2007-01-18  Jim Meyering  <jim@meyering.net>
106852         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
106853         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
106854         than the race-prone "test -d sys || mkdir sys".
106855         (configure.ac): Use AC_PROG_MKDIR_P.
106856         * modules/sys_select: Likewise.
106857         * modules/sys_socket: Likewise.
106858         * modules/sys_time: Likewise.
106860 2007-01-18  Eric Blake  <ebb9@byu.net>
106862         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
106863         replace gettimeofday.
106864         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
106865         name, to avoid infinite recursion.
106867 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
106869         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
106870         module sys_time.
106871         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
106872         assume timespec.h defines struct timeval.
106873         * lib/settime.c: Likewise.
106874         * lib/utimens.c: Likewise.
106875         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
106876         since we now assume the gettimeofday module.
106877         * lib/tempname.c (__gen_tempname): Likewise.
106878         * lib/gettimeofday.h: Remove.
106879         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
106880         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
106881         Include <time.h>, for 'time()'.
106882         (localtime_buffer_addr): Also use this workaround if
106883         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
106884         to simplify the uses.  All uses changed.
106885         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
106886         that #undef is inside {}, and 'const' follows type name consistently.
106887         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
106888         (gettimeofday): Do not use the maximum possible value for
106889         tv->tv_usec, since that might break usages other than ls.c.
106890         Instead, we'll leave ls.c alone.  This undoes today's patch
106891         by Bruno.  Add a compile-time warning for 1s-clock resolution;
106892         we've never observed the problem but might as well keep the
106893         canary.
106894         * lib/nanosleep.c: Include timespec.h first, for interface check.
106895         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106896         now assume the sys_time module.
106897         * lib/tempname.c: Likewise.
106898         * lib/timespec.h: Likewise.
106899         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106900         needed.
106901         * lib/strftime.c: Likewise.
106902         * lib/timespec.h: Likewise.
106903         * lib/posixtm.c: Include posixtm.h first, for interface check.
106904         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106905         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106906         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106907         * lib/sys_time_.h: New file.
106908         * lib/timespec.h (struct timespec): Use long int, not long.
106909         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106910         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106911         Remove obsolescent call to AC_HEADER_TIME.
106912         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106914         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106915         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106916         Likewise.
106917         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106918         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106920         into the sys_time module.  Check for gettimeofday just once.
106921         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106922         for gettimeofday signature to just check the signature.  Merely
106923         compile it, since linking doesn't test signature.  Improve test for
106924         whether gettimeofday.o is actually needed.
106925         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106926         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106927         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106928         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106929         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106930         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106931         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106932         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106933         than worrying about sys/time.h.
106934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106935         Don't bother worrying about TIME_WITH_SYS_TIME.
106936         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106937         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106938         * m4/sys_time_h.m4: New file.
106939         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106940         Don't include sys/time.h.  Return from main rather than exiting.
106941         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106942         all uses changed.
106943         * modules/gethrxtime (Depends-on): Add sys_time.
106944         * modules/gettime (Depends-on): Likewise.
106945         * modules/gettimeofday (Depends-on): Likewise.
106946         * modules/nanosleep (Depends-on): Likewise.
106947         * modules/settime (Depends-on): Likewise.
106948         * modules/tempname (Depends-on): Likewise.
106949         * modules/utimens (Depends-on): Likewise.
106950         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106951         (Include): Change back to <sys/time.h>.
106952         (Maintainer): Add self.
106953         * modules/sys_time: New file.
106954         * modules/tempname (Depends-on): Add gettimeofday.
106955         * tests/test-gettimeofday.c: Include <sys/time.h>
106956         rather than gettimeofday.h.
106958 2007-01-17  Bruno Haible  <bruno@clisp.org>
106960         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106961         the license default to GPL.
106962         (func_create_testdir): Don't complain if a module is LGPL and its
106963         tests module depends on GPLed modules.
106965 2007-01-17  Bruno Haible  <bruno@clisp.org>
106967         * lib/gettimeofday.c (gettimeofday): Add code for the case
106968         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106969         maximum possible value for tv->tv_usec, rather than the minimum one.
106971 2005-10-08  Martin Lambers  <marlam@marlam.de>
106972 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106973 2007-01-16  Bruno Haible  <bruno@clisp.org>
106975         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106976         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106977         gl_FUNC_GETTIMEOFDAY.
106978         (Include): Add gettimeofday.h.
106979         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106980         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106981         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106982         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106983         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106984         * lib/gettimeofday.h: New file.
106985         * lib/gettimeofday.c: Include <sys/timeb.h>.
106986         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106987         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106988         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106989         fall back on time().
106991         * tests/test-gettimeofday.c: New file.
106992         * modules/gettimeofday-tests: New file.
106994 2007-01-16  Eric Blake  <ebb9@byu.net>
106996         * modules/fnmatch (Depends-on): Depend on wchar.
106997         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106998         * m4/fnmatch.m4: Likewise.
106999         * modules/mbchar (Makefile.am): Assume <wchar.h>.
107000         * m4/mbchar.m4: Likewise.
107001         * modules/mbswidth (Depends-on): Depend on wchar.
107002         * lib/mbswidth.c: Assume <wchar.h>.
107003         * m4/mbswidth.m4: Likewise.
107004         * modules/quotearg (Depends-on): Depend on wchar.
107005         * lib/quotearg.c: Assume <wchar.h>.
107006         * m4/quotearg.m4: Likewise.
107007         * modules/regex (Depends-on): Depend on wchar.
107008         * lib/regex_internal.h: Assume <wchar.h>.
107009         * m4/regex.m4: Likewise.
107010         * modules/stdint (Depends-on): Depend on wchar.
107011         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
107012         * m4/stdint.m4: Likewise.
107013         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
107014         * modules/strftime (Depends-on): Depend on wchar.
107015         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
107016         * modules/strtol (Depends-on): Depend on wchar.
107017         * lib/strtol.c: Assume <wchar.h>.
107018         * modules/wcwidth (Depends-on): Depend on wchar.
107019         * lib/wcwidth.h: Assume <wchar.h>.
107020         * m4/wcwidth.m4: Likewise.
107022 2007-01-16  Bruno Haible  <bruno@clisp.org>
107024         * modules/csharpexec-script: New, created from...
107025         * modules/csharpexec: ... this.
107027 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
107029         * modules/javaexec-script: New, created from...
107030         * modules/javaexec: ... this.
107032 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107034         * modules/poll (Dependencies): Add sys_select.
107036 2007-01-15  Jim Meyering  <jim@meyering.net>
107038         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
107039         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
107040         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
107041         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
107043 2007-01-15  Bruno Haible  <bruno@clisp.org>
107045         * modules/striconveh: New file.
107046         * lib/striconveh.h: New file.
107047         * lib/striconveh.c: New file.
107048         * MODULES.html.sh (Internationalization functions): Add striconveh.
107050         * modules/striconveh-tests: New file.
107051         * tests/test-striconveh.c: New file.
107053 2007-01-15  Bruno Haible  <bruno@clisp.org>
107055         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
107056         not from GNU libiconv or GNU libc.
107058 2007-01-15  Bruno Haible  <bruno@clisp.org>
107060         * doc/gnulib-intro.texi (Copyright): Explain the different license
107061         terms for module descriptions, autoconf macros, tests, documentation.
107063 2007-01-14  Bruno Haible  <bruno@clisp.org>
107065         * modules/striconv-tests: New file.
107066         * tests/test-striconv.c: New file.
107068 2007-01-14  Bruno Haible  <bruno@clisp.org>
107070         * modules/iconv-tests: New file.
107071         * tests/test-iconv.c: New file.
107073 2007-01-14  Bruno Haible  <bruno@clisp.org>
107075         * gnulib-tool (func_get_license): For test modules, use the license of
107076         the main module.
107078 2007-01-14  Bruno Haible  <bruno@clisp.org>
107080         * modules/iconv (Include): Clarify that <iconv.h> can only be included
107081         if iconv is found to exist.
107083 2007-01-14  Bruno Haible  <bruno@clisp.org>
107085         * modules/c-ctype-tests: New file.
107086         * tests/test-c-ctype.c: New file.
107088 2007-01-14  Bruno Haible  <bruno@clisp.org>
107090         * modules/binary-io-tests: New file.
107091         * tests/test-binary-io.sh: New file.
107092         * tests/test-binary-io.c: New file.
107094 2007-01-14  Bruno Haible  <bruno@clisp.org>
107096         * modules/array-oset-tests: New file.
107097         * tests/test-array_oset.c: New file.
107099 2007-01-14  Bruno Haible  <bruno@clisp.org>
107101         * modules/array-list-tests: New file.
107102         * tests/test-array_list.c: New file.
107104 2007-01-14  Bruno Haible  <bruno@clisp.org>
107106         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
107107         and make.
107108         Reported by Simon Josefsson in
107109         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
107111 2007-01-14  Bruno Haible  <bruno@clisp.org>
107113         * modules/allocsa-tests: New file.
107114         * tests/test-allocsa.c: New file.
107116 2007-01-14  Bruno Haible  <bruno@clisp.org>
107118         * modules/fchdir (Depends-on): Add absolute-header.
107119         * modules/unistd (Depends-on): Likewise.
107121 2006-12-30  Bruno Haible  <bruno@clisp.org>
107123         * modules/fchdir: New file.
107124         * modules/unistd (Files): Add lib/unistd_.h.
107125         (Makefile.am): Generate unistd.h from unistd_.h.
107126         * lib/fchdir.c: New file.
107127         * lib/dirent_.h: New file.
107128         * lib/unistd_.h: New file.
107129         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
107130         * m4/fchdir.m4: New file.
107131         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
107132         (gl_HEADER_UNISTD): Invoke it.
107133         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
107134         function.
107135         * lib/backupfile.c (opendir, closedir): Undefine.
107136         * lib/chown.c (open, close): Undefine.
107137         * lib/clean-temp.c (open, close): Undefine.
107138         * lib/copy-file.c (open, close): Undefine.
107139         * lib/execute.c (open, close): Undefine.
107140         * lib/fsusage.c (open, close): Undefine.
107141         * lib/gc-gnulib.c (open, close): Undefine.
107142         * lib/getcwd.c (opendir, closedir): Undefine.
107143         * lib/glob.c (opendir, closedir): Undefine.
107144         * lib/javacomp.c (open, close): Undefine.
107145         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
107146         * lib/openat-proc.c (open, close): Undefine.
107147         * lib/pagealign_alloc.c (open, close): Undefine.
107148         * lib/pipe.c (open, close): Undefine.
107149         * lib/progreloc.c (open, close): Undefine.
107150         * lib/savedir.c (opendir, closedir): Undefine.
107151         * lib/utime.c (open, close): Undefine.
107152         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
107154 2007-01-10  Bruno Haible  <bruno@clisp.org>
107156         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
107158 2007-01-12  Eric Blake  <ebb9@byu.net>
107160         Provide a robust <wchar.h>.  Further simplifications are now
107161         possible in other modules, but not included here.
107162         * modules/wchar: New module.
107163         * m4/wchar.m4: New file.
107164         * lib/wchar_.h: Likewise.
107165         * modules/mbchar (Depends-on): Depend on wchar, as the first use
107166         of the new module.
107167         * MODULES.html.sh (Extended multibyte and wide character utilities):
107168         New section.
107170 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
107172         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
107173         to a reasonable default for memory allocation.
107174         (xreadlink): Don't allocate a huge buffer, to work around a buggy
107175         file system that reports garbage st_size values for symlinks.
107176         Problem reported by Liyang Hu.
107178 2007-01-11  Simon Josefsson  <simon@josefsson.org>
107180         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
107181         Emacs .#* auto-save files).
107183 2007-01-11  Bruno Haible  <bruno@clisp.org>
107185         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
107186         directory.
107188 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
107190         Use @...@ consistently in lib/wctype_.h.
107191         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
107192         on it being set to 1 or 0.
107193         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
107194         go back to AC_SUBSTing it.
107195         * modules/wctype (Makefile.am): Undo previous change.
107197 2007-01-10  Eric Blake  <ebb9@byu.net>
107199         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
107200         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
107201         * modules/wctype (Makefile.am): Likewise.
107202         Reported by Chris McGuire.
107204 2007-01-10  Jim Meyering  <jim@meyering.net>
107206         fts.c: a small readability/maintainability improvement
107207         * lib/fts.c (fts_read): Make this code slightly more readable and
107208         maintainable by hoisting the "sp->fts_cur = p" assignments to
107209         immediately follow the statements that set P.  Derived from
107210         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
107212 2007-01-10  Eric Blake  <ebb9@byu.net>
107214         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
107215         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
107216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
107217         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
107218         Reported by Chris McGuire.
107220 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107222         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
107223         in sed script.
107225 2007-01-09  Bruno Haible  <bruno@clisp.org>
107227         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
107228         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
107229         variables.
107230         (func_module): Use them.
107232 2007-01-09  Bruno Haible  <bruno@clisp.org>
107234         * modules/unistr/base: New file.
107235         * lib/unistr.h: New file.
107237         * modules/unistr/u8-to-u16: New file.
107238         * lib/unistr/u8-to-u16.c: New file.
107240         * modules/unistr/u8-to-u32: New file.
107241         * lib/unistr/u8-to-u32.c: New file.
107243         * modules/unistr/u16-to-u8: New file.
107244         * lib/unistr/u16-to-u8.c: New file.
107246         * modules/unistr/u16-to-u32: New file.
107247         * lib/unistr/u16-to-u32.c: New file.
107249         * modules/unistr/u32-to-u8: New file.
107250         * lib/unistr/u32-to-u8.c: New file.
107252         * modules/unistr/u32-to-u16: New file.
107253         * lib/unistr/u32-to-u16.c: New file.
107255         * modules/unistr/u8-check: New file.
107256         * modules/unistr/u16-check: New file.
107257         * modules/unistr/u32-check: New file.
107258         * lib/unistr/u8-check.c: New file.
107259         * lib/unistr/u16-check.c: New file.
107260         * lib/unistr/u32-check.c: New file.
107262         * modules/unistr/u8-chr: New file.
107263         * modules/unistr/u16-chr: New file.
107264         * modules/unistr/u32-chr: New file.
107265         * lib/unistr/u8-chr.c: New file.
107266         * lib/unistr/u16-chr.c: New file.
107267         * lib/unistr/u32-chr.c: New file.
107269         * modules/unistr/u8-cmp: New file.
107270         * modules/unistr/u16-cmp: New file.
107271         * modules/unistr/u32-cmp: New file.
107272         * lib/unistr/u8-cmp.c: New file.
107273         * lib/unistr/u16-cmp.c: New file.
107274         * lib/unistr/u32-cmp.c: New file.
107276         * modules/unistr/u8-cpy: New file.
107277         * modules/unistr/u16-cpy: New file.
107278         * modules/unistr/u32-cpy: New file.
107279         * lib/unistr/u8-cpy.c: New file.
107280         * lib/unistr/u16-cpy.c: New file.
107281         * lib/unistr/u32-cpy.c: New file.
107282         * lib/unistr/u-cpy.h: New file.
107284         * modules/unistr/u8-cpy-alloc: New file.
107285         * modules/unistr/u16-cpy-alloc: New file.
107286         * modules/unistr/u32-cpy-alloc: New file.
107287         * lib/unistr/u8-cpy-alloc.c: New file.
107288         * lib/unistr/u16-cpy-alloc.c: New file.
107289         * lib/unistr/u32-cpy-alloc.c: New file.
107290         * lib/unistr/u-cpy-alloc.h: New file.
107292         * modules/unistr/u8-endswith: New file.
107293         * modules/unistr/u16-endswith: New file.
107294         * modules/unistr/u32-endswith: New file.
107295         * lib/unistr/u8-endswith.c: New file.
107296         * lib/unistr/u16-endswith.c: New file.
107297         * lib/unistr/u32-endswith.c: New file.
107298         * lib/unistr/u-endswith.h: New file.
107300         * modules/unistr/u8-mblen: New file.
107301         * modules/unistr/u16-mblen: New file.
107302         * modules/unistr/u32-mblen: New file.
107303         * lib/unistr/u8-mblen.c: New file.
107304         * lib/unistr/u16-mblen.c: New file.
107305         * lib/unistr/u32-mblen.c: New file.
107307         * modules/unistr/u8-mbtouc: New file.
107308         * modules/unistr/u16-mbtouc: New file.
107309         * modules/unistr/u32-mbtouc: New file.
107310         * lib/unistr/u8-mbtouc.c: New file.
107311         * lib/unistr/u16-mbtouc.c: New file.
107312         * lib/unistr/u32-mbtouc.c: New file.
107314         * modules/unistr/u8-mbtouc-safe: New file.
107315         * modules/unistr/u16-mbtouc-safe: New file.
107316         * modules/unistr/u32-mbtouc-safe: New file.
107317         * lib/unistr/u8-mbtouc-safe.c: New file.
107318         * lib/unistr/u16-mbtouc-safe.c: New file.
107319         * lib/unistr/u32-mbtouc-safe.c: New file.
107321         * modules/unistr/u8-move: New file.
107322         * modules/unistr/u16-move: New file.
107323         * modules/unistr/u32-move: New file.
107324         * lib/unistr/u8-move.c: New file.
107325         * lib/unistr/u16-move.c: New file.
107326         * lib/unistr/u32-move.c: New file.
107327         * lib/unistr/u-move.h: New file.
107329         * modules/unistr/u8-next: New file.
107330         * modules/unistr/u16-next: New file.
107331         * modules/unistr/u32-next: New file.
107332         * lib/unistr/u8-next.c: New file.
107333         * lib/unistr/u16-next.c: New file.
107334         * lib/unistr/u32-next.c: New file.
107336         * modules/unistr/u8-prev: New file.
107337         * modules/unistr/u16-prev: New file.
107338         * modules/unistr/u32-prev: New file.
107339         * lib/unistr/u8-prev.c: New file.
107340         * lib/unistr/u16-prev.c: New file.
107341         * lib/unistr/u32-prev.c: New file.
107343         * modules/unistr/u8-set: New file.
107344         * modules/unistr/u16-set: New file.
107345         * modules/unistr/u32-set: New file.
107346         * lib/unistr/u8-set.c: New file.
107347         * lib/unistr/u16-set.c: New file.
107348         * lib/unistr/u32-set.c: New file.
107349         * lib/unistr/u-set.h: New file.
107351         * modules/unistr/u8-startswith: New file.
107352         * modules/unistr/u16-startswith: New file.
107353         * modules/unistr/u32-startswith: New file.
107354         * lib/unistr/u8-startswith.c: New file.
107355         * lib/unistr/u16-startswith.c: New file.
107356         * lib/unistr/u32-startswith.c: New file.
107357         * lib/unistr/u-startswith.h: New file.
107359         * modules/unistr/u8-stpcpy: New file.
107360         * modules/unistr/u16-stpcpy: New file.
107361         * modules/unistr/u32-stpcpy: New file.
107362         * lib/unistr/u8-stpcpy.c: New file.
107363         * lib/unistr/u16-stpcpy.c: New file.
107364         * lib/unistr/u32-stpcpy.c: New file.
107365         * lib/unistr/u-stpcpy.h: New file.
107367         * modules/unistr/u8-stpncpy: New file.
107368         * modules/unistr/u16-stpncpy: New file.
107369         * modules/unistr/u32-stpncpy: New file.
107370         * lib/unistr/u8-stpncpy.c: New file.
107371         * lib/unistr/u16-stpncpy.c: New file.
107372         * lib/unistr/u32-stpncpy.c: New file.
107373         * lib/unistr/u-stpncpy.h: New file.
107375         * modules/unistr/u8-strcat: New file.
107376         * modules/unistr/u16-strcat: New file.
107377         * modules/unistr/u32-strcat: New file.
107378         * lib/unistr/u8-strcat.c: New file.
107379         * lib/unistr/u16-strcat.c: New file.
107380         * lib/unistr/u32-strcat.c: New file.
107381         * lib/unistr/u-strcat.h: New file.
107383         * modules/unistr/u8-strchr: New file.
107384         * modules/unistr/u16-strchr: New file.
107385         * modules/unistr/u32-strchr: New file.
107386         * lib/unistr/u8-strchr.c: New file.
107387         * lib/unistr/u16-strchr.c: New file.
107388         * lib/unistr/u32-strchr.c: New file.
107390         * modules/unistr/u8-strcmp: New file.
107391         * modules/unistr/u16-strcmp: New file.
107392         * modules/unistr/u32-strcmp: New file.
107393         * lib/unistr/u8-strcmp.c: New file.
107394         * lib/unistr/u16-strcmp.c: New file.
107395         * lib/unistr/u32-strcmp.c: New file.
107397         * modules/unistr/u8-strcpy: New file.
107398         * modules/unistr/u16-strcpy: New file.
107399         * modules/unistr/u32-strcpy: New file.
107400         * lib/unistr/u8-strcpy.c: New file.
107401         * lib/unistr/u16-strcpy.c: New file.
107402         * lib/unistr/u32-strcpy.c: New file.
107403         * lib/unistr/u-strcpy.h: New file.
107405         * modules/unistr/u8-strcspn: New file.
107406         * modules/unistr/u16-strcspn: New file.
107407         * modules/unistr/u32-strcspn: New file.
107408         * lib/unistr/u8-strcspn.c: New file.
107409         * lib/unistr/u16-strcspn.c: New file.
107410         * lib/unistr/u32-strcspn.c: New file.
107411         * lib/unistr/u-strcspn.h: New file.
107413         * modules/unistr/u8-strdup: New file.
107414         * modules/unistr/u16-strdup: New file.
107415         * modules/unistr/u32-strdup: New file.
107416         * lib/unistr/u8-strdup.c: New file.
107417         * lib/unistr/u16-strdup.c: New file.
107418         * lib/unistr/u32-strdup.c: New file.
107419         * lib/unistr/u-strdup.h: New file.
107421         * modules/unistr/u8-strlen: New file.
107422         * modules/unistr/u16-strlen: New file.
107423         * modules/unistr/u32-strlen: New file.
107424         * lib/unistr/u8-strlen.c: New file.
107425         * lib/unistr/u16-strlen.c: New file.
107426         * lib/unistr/u32-strlen.c: New file.
107427         * lib/unistr/u-strlen.h: New file.
107429         * modules/unistr/u8-strmblen: New file.
107430         * modules/unistr/u16-strmblen: New file.
107431         * modules/unistr/u32-strmblen: New file.
107432         * lib/unistr/u8-strmblen.c: New file.
107433         * lib/unistr/u16-strmblen.c: New file.
107434         * lib/unistr/u32-strmblen.c: New file.
107436         * modules/unistr/u8-strmbtouc: New file.
107437         * modules/unistr/u16-strmbtouc: New file.
107438         * modules/unistr/u32-strmbtouc: New file.
107439         * lib/unistr/u8-strmbtouc.c: New file.
107440         * lib/unistr/u16-strmbtouc.c: New file.
107441         * lib/unistr/u32-strmbtouc.c: New file.
107443         * modules/unistr/u8-strncat: New file.
107444         * modules/unistr/u16-strncat: New file.
107445         * modules/unistr/u32-strncat: New file.
107446         * lib/unistr/u8-strncat.c: New file.
107447         * lib/unistr/u16-strncat.c: New file.
107448         * lib/unistr/u32-strncat.c: New file.
107449         * lib/unistr/u-strncat.h: New file.
107451         * modules/unistr/u8-strncmp: New file.
107452         * modules/unistr/u16-strncmp: New file.
107453         * modules/unistr/u32-strncmp: New file.
107454         * lib/unistr/u8-strncmp.c: New file.
107455         * lib/unistr/u16-strncmp.c: New file.
107456         * lib/unistr/u32-strncmp.c: New file.
107458         * modules/unistr/u8-strncpy: New file.
107459         * modules/unistr/u16-strncpy: New file.
107460         * modules/unistr/u32-strncpy: New file.
107461         * lib/unistr/u8-strncpy.c: New file.
107462         * lib/unistr/u16-strncpy.c: New file.
107463         * lib/unistr/u32-strncpy.c: New file.
107464         * lib/unistr/u-strncpy.h: New file.
107466         * modules/unistr/u8-strnlen: New file.
107467         * modules/unistr/u16-strnlen: New file.
107468         * modules/unistr/u32-strnlen: New file.
107469         * lib/unistr/u8-strnlen.c: New file.
107470         * lib/unistr/u16-strnlen.c: New file.
107471         * lib/unistr/u32-strnlen.c: New file.
107472         * lib/unistr/u-strnlen.h: New file.
107474         * modules/unistr/u8-strpbrk: New file.
107475         * modules/unistr/u16-strpbrk: New file.
107476         * modules/unistr/u32-strpbrk: New file.
107477         * lib/unistr/u8-strpbrk.c: New file.
107478         * lib/unistr/u16-strpbrk.c: New file.
107479         * lib/unistr/u32-strpbrk.c: New file.
107480         * lib/unistr/u-strpbrk.h: New file.
107482         * modules/unistr/u8-strrchr: New file.
107483         * modules/unistr/u16-strrchr: New file.
107484         * modules/unistr/u32-strrchr: New file.
107485         * lib/unistr/u8-strrchr.c: New file.
107486         * lib/unistr/u16-strrchr.c: New file.
107487         * lib/unistr/u32-strrchr.c: New file.
107489         * modules/unistr/u8-strspn: New file.
107490         * modules/unistr/u16-strspn: New file.
107491         * modules/unistr/u32-strspn: New file.
107492         * lib/unistr/u8-strspn.c: New file.
107493         * lib/unistr/u16-strspn.c: New file.
107494         * lib/unistr/u32-strspn.c: New file.
107495         * lib/unistr/u-strspn.h: New file.
107497         * modules/unistr/u8-strstr: New file.
107498         * modules/unistr/u16-strstr: New file.
107499         * modules/unistr/u32-strstr: New file.
107500         * lib/unistr/u8-strstr.c: New file.
107501         * lib/unistr/u16-strstr.c: New file.
107502         * lib/unistr/u32-strstr.c: New file.
107503         * lib/unistr/u-strstr.h: New file.
107505         * modules/unistr/u8-strtok: New file.
107506         * modules/unistr/u16-strtok: New file.
107507         * modules/unistr/u32-strtok: New file.
107508         * lib/unistr/u8-strtok.c: New file.
107509         * lib/unistr/u16-strtok.c: New file.
107510         * lib/unistr/u32-strtok.c: New file.
107511         * lib/unistr/u-strtok.h: New file.
107513         * modules/unistr/u8-uctomb: New file.
107514         * modules/unistr/u16-uctomb: New file.
107515         * modules/unistr/u32-uctomb: New file.
107516         * lib/unistr/u8-uctomb.c: New file.
107517         * lib/unistr/u16-uctomb.c: New file.
107518         * lib/unistr/u32-uctomb.c: New file.
107520         * MODULES.html.sh (Unicode string functions): Add the new modules.
107522 2007-01-08  Bruno Haible  <bruno@clisp.org>
107524         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
107525         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
107526         subdirectories.
107528 2007-01-08  Karl Berry  <karl@gnu.org>
107530         * doc/error.texi: mention that main() fns must set program_name
107531         when progname is used.
107533 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
107535         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
107536         WCTYPE_H is empty, for the benefit of builds from non-distclean
107537         directories.  Problem reported by Eric Blake in
107538         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
107540 2007-01-08  Bruno Haible  <bruno@clisp.org>
107542         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
107543         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
107544         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
107545         PROVIDE_CANONICALIZE_FILENAME_MODE.
107546         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
107548 2007-01-08  Bruno Haible  <bruno@clisp.org>
107550         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
107551         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
107552         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
107553         * lib/fts.c: Likewise.
107554         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
107556 2006-12-25  Bruno Haible  <bruno@clisp.org>
107558         * modules/utf8-ucs4-safe: New file.
107559         * lib/utf8-ucs4-safe.h: New file.
107560         * lib/unistr/utf8-ucs4-safe.c: New file.
107562         * modules/utf16-ucs4-safe: New file.
107563         * lib/utf16-ucs4-safe.h: New file.
107564         * lib/unistr/utf16-ucs4-safe.c: New file.
107566         * MODULES.html.sh (Unicode string functions): Add the new modules.
107568 2007-01-08  Bruno Haible  <bruno@clisp.org>
107570         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
107571         (Depends-on): Add unitypes.
107572         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107573         (u8_mbtouc_aux): Move out to separate file.
107574         (u8_mbtouc): Use ucs4_t, uint8_t types.
107575         * lib/unistr/utf8-ucs4.c: New file.
107577         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
107578         (Depends-on): Add unitypes.
107579         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107580         (u16_mbtouc_aux): Move out to separate file.
107581         (u16_mbtouc): Use ucs4_t, uint16_t types.
107582         * lib/unistr/utf16-ucs4.c: New file.
107584         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
107585         (Depends-on): Add unitypes.
107586         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
107587         (u8_uctomb_aux): Move out to separate file.
107588         (u8_uctomb): Use ucs4_t, uint8_t types.
107589         * lib/unistr/ucs4-utf8.c: New file.
107591         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
107592         (Depends-on): Add unitypes.
107593         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
107594         (u16_uctomb_aux): Move out to separate file.
107595         (u16_uctomb): Use ucs4_t, uint16_t types.
107596         * lib/unistr/ucs4-utf16.c: New file.
107598 2006-12-25  Bruno Haible  <bruno@clisp.org>
107600         * modules/unitypes: New file.
107601         * lib/unitypes.h: New file.
107602         * MODULES.html.sh (func_all_modules): New section "Unicode string
107603         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
107604         this section. Add unitypes.
107606 2007-01-08  Bruno Haible  <bruno@clisp.org>
107608         Avoid variable names that conflict with those from libtool.
107609         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
107610         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
107611         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
107612         library_names_spec to acl_library_names_spec, hardcode_* to
107613         acl_hardcode_*.
107614         Reported by Ralf Wildenhues.
107616 2007-01-08  Bruno Haible  <bruno@clisp.org>
107618         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
107619         definition.
107620         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
107621         definition.
107622         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
107623         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
107624         definition.
107625         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
107626         definition.
107627         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
107628         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
107629         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
107630         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
107631         definition.
107632         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
107633         definition.
107634         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
107635         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
107636         GC_USE_<algorithm>.
107637         * lib/gc-libgcrypt.c: Likewise.
107638         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
107639         * modules/gc-arctwo (configure.ac): Likewise.
107640         * modules/gc-des (configure.ac): Likewise.
107641         * modules/gc-hmac-md5 (configure.ac): Likewise.
107642         * modules/gc-hmac-sha1 (configure.ac): Likewise.
107643         * modules/gc-md2 (configure.ac): Likewise.
107644         * modules/gc-md4 (configure.ac): Likewise.
107645         * modules/gc-md5 (configure.ac): Likewise.
107646         * modules/gc-random (configure.ac): Likewise.
107647         * modules/gc-rijndael (configure.ac): Likewise.
107648         * modules/gc-sha1 (configure.ac): Likewise.
107650 2007-01-08  Bruno Haible  <bruno@clisp.org>
107652         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
107653         macro definition.
107654         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
107655         definition.
107656         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
107657         definition.
107658         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
107659         * modules/fcntl-safer (configure.ac): Likewise.
107660         * modules/fopen-safer (configure.ac): Likewise.
107661         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
107662         GNULIB_FWRITEERROR macro definition.
107664 2007-01-08  Bruno Haible  <bruno@clisp.org>
107666         * m4/gnulib-common.m4: New file.
107667         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
107668         (func_get_filelist): Add m4/gnulib-common.m4.
107670 2007-01-08  Bruno Haible  <bruno@clisp.org>
107672         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
107673         command.
107675 2007-01-08  Jim Meyering  <jim@meyering.net>
107677         Use a more robust test for a "can't happen" condition.
107678         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
107679         narrowed the st_size value.  Presuming the "can't happen" condition
107680         is true, that narrowing could conceivably convert an invalid st_size
107681         value into a valid one.  Instead, use a change based on Matthew
107682         Woehlke's original patch.
107684         Slight readability improvement: use an assert-like macro
107685         in place of literal "abort ()" uses.
107686         * lib/fts.c (fts_assert): Define.
107687         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
107688         Use this macro instead of a bare 'abort'.
107690 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
107692         Don't worry about using IRIX 5.3's wctype.h broken definitions;
107693         simply work around them.
107694         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
107695         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
107696         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
107697         declaring.
107698         Don't bother to define as macros, since the standard doesn't require it.
107699         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
107700         longer worry about IRIX 5.3.
107701         (HAVE_WCTYPE_CTMP_BUG): Remove.
107703 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107705         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
107706         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
107707         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
107708         Problems reported by Georg Schwarz for IRIX 5.3.
107710         * gnulib-tool (autoconf_minversion): Take the maximum version number
107711         found, not the minimum.  Problem reported by James Youngman.
107713 2007-01-03  Karl Berry  <karl@gnu.org>
107715         * doc/error.texi: new file, explaining interaction with progname.
107716         * doc/gnulib.texi: include it.  Update copyright.
107718 2007-01-03  Simon Josefsson  <simon@josefsson.org>
107720         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
107721         AC_CANONICAL_HOST, to improve autobuild outputs.
107723 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
107724             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
107726         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
107727         sockets, server sockets, and other file descriptors.  Count errors
107728         to compute the return value.  Reorder the code a bit to be easier
107729         to follow.  Don't set event bits that were not requested (except
107730         POLLERR and POLLHUP).
107732 2007-01-01  Bruno Haible  <bruno@clisp.org>
107734         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
107736 2007-01-03  Jim Meyering  <jim@meyering.net>
107738         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
107740 2007-01-02  Bruno Haible  <bruno@clisp.org>
107742         * modules/settime (Include): Require timespec.h.
107743         * modules/nanosleep (Include): Likewise.
107745 2007-01-01  Bruno Haible  <bruno@clisp.org>
107747         * gnulib-tool (func_emit_copyright_notice): Bump year.
107748         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
107750 2007-01-01  Bruno Haible  <bruno@clisp.org>
107752         Improve support for OpenBSD.
107753         * build-aux/config.rpath (libname_spec): Export.
107754         (library_names_spec): New variable. Export.
107755         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
107756         library_names_spec from the config.rpath output. Locate shared library
107757         through the name pattern in library_names_spec.
107759 2007-01-01  Eric Blake  <ebb9@byu.net>
107761         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
107763 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
107765         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
107766         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
107767         assume the C locale, and avoid an "eval" that could cause trouble.
107768         Problem with SORT reported by Bob Proulx.
107770         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
107771         Define.  Trivial patch from Henning Nielsen Lund, originally
107772         sent to bug-grep@gnu.org today.
107774 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
107776         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
107777         struct stat.  Problem reported by Henning Nielsen Lund.
107778         * lib/acl.c: Include acl.h first, to check interface.  Don't
107779         bother to include sys/types.h and sys/stat.h again.
107781 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107783         Import the following change from libc; problem reported by
107784         Sven Verdoolaege.
107786         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
107788         [BZ #1373]
107789         * lib/argp.h: Remove __NTH for __argp_usage inline function.
107791 2006-12-28  Jim Meyering  <jim@meyering.net>
107793         * build-aux/announce-gen: Do not assume that the package
107794         builds any of tar.gz, tar.bz2, and .xdelta files.
107795         Suggestion from Simon Josefsson.
107797 2006-12-28  Simon Josefsson  <simon@josefsson.org>
107799         * modules/announce-gen: New file.
107801 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
107803         * lib/mbchar.h: Just include <wctype.h>; the wctype module
107804         handles its gotchas now.
107805         * lib/mbswidth.c: Likewise.
107806         * lib/wcwidth.h: Likewise.
107807         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
107808         and iswcntrl; the wctype module does this stuff now.
107809         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
107810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
107811         * modules/mbchar (Depends-on): Add wctype.
107812         * modules/mbswidth (Depends-on): Likewise.
107813         * modules/wcwidth (Depends-on): Likewise.
107815 2006-12-27  Eric Blake  <ebb9@byu.net>
107817         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
107818         module uses more than what <wctype.h> is required to provide.
107820 2006-12-26  Eric Blake  <ebb9@byu.net>
107822         * gnulib-tool (sed_extract_prog): Avoid space-tab.
107824 2006-12-26  Eric Blake  <ebb9@byu.net>
107826         * modules/absolute-header: New module.
107827         * modules/fcntl (Depends-on): Depend on it.
107828         * modules/inttypes (Depends-on): Likewise.
107829         * modules/stdint (Depends-on): Likewise.
107830         * modules/sys_stat (Depends-on): Likewise.
107831         * modules/wctype (Depends-on): Likewise.
107832         * MODULES.html.sh (Support for building libraries and
107833         executables): Document it.
107835 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
107837         * gnulib-tool (SED): Remove, undoing previous change.
107838         The problem was that it broke coreutils on Solaris, because
107839         "sed --posix" leaked into a makefile.
107840         (sed): New alias, if 'alias' and GNU sed.
107842 2006-12-24  Jim Meyering  <jim@meyering.net>
107844         Work around an fchownat bug in glibc-2.4:
107845         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
107846         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
107847         in spite of the -P option.
107848         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
107849         New macros.
107850         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
107851         * modules/openat (Files): Add lib/fchownat.c.
107852         * lib/openat.c (fchownat): Don't define here.  Move to...
107853         * lib/fchownat.c: ...this new file.
107855 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107857         Fix bug reported by Bruno Haible in
107858         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
107859         where quotearg.c didn't compile on Mac OS X 10.2 because it
107860         lacks <wchar.h> and wint_t.
107861         * lib/wctype_.h (__wctype_wint_t): New type.
107862         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
107863         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
107864         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
107865         Arg is now of type __wctype_wint_t, not wint_t.
107866         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
107867         substitute HAVE_WINT_T.
107868         * modules/wctype (Files): Add m4/wint_t.m4.
107869         (wctype.h): Substitute HAVE_WINT_T.
107871 2006-12-23  Bruno Haible  <bruno@clisp.org>
107873         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
107875 2006-12-23  Bruno Haible  <bruno@clisp.org>
107877         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
107878         S_ISLNK.
107879         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
107880         mingw.
107882 2006-12-22  Bruno Haible  <bruno@clisp.org>
107884         * lib/copy-file.c: Include acl.h.
107885         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
107886         Close the file descriptors only after being done with copy_acl.
107887         * modules/copy-file (Depends-on): Add acl.
107889 2006-12-22  Bruno Haible  <bruno@clisp.org>
107891         * gnulib-tool (SED): New variable.
107892         Use $SED instead of sed everywhere.
107894 2006-12-22  Bruno Haible  <bruno@clisp.org>
107896         * modules/no-c++: New file.
107897         * m4/no-c++.m4: New file.
107898         * MODULES.html.sh (Support for building libraries and executables):
107899         Add no-c++.
107901 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107903         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107904         Include <limits.h>, and use its INT_MAX to rewrite the
107905         j loop so that it does not overflow 'int'.  Problem reported by
107906         Ralf Wildenhues in
107907         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107908         Play it safe by shifting left by 1 rather than multiplying by 2,
107909         as GCC is less likely to optimize this away when the value
107910         is signed (when it assumes overflow leads to undefined behavior).
107911         Also, don't assume time_t uses two's complement.
107913 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107915         * MODULES.html.sh: New module wctype.
107916         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107917         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107918         <wctype.h>, since the new wctype module should fix this.
107919         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107920         the wctype module should arrange for it.
107921         * lib/regex_internal.h: Likewise.
107922         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107923         since the wctype module should handle this now.
107924         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107925         * modules/fnmatch (Depends-on): Add wctype.
107926         * modules/quotearg (Depends-on): Likewise.
107927         * modules/regex (Depends-on): Likewise.
107929 2006-12-19  Bruno Haible  <bruno@clisp.org>
107931         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107932         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107934 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107936         * modules/savewd (Depends-on): Fix dependency on fcntl.
107938 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107940         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107941         conforms to C99, rather than relying on the user's environment
107942         setting of STDINT_H.
107944 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107945         and Eric Blake  <ebb9@byu.net>
107947         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107948         This is more consistent with the other defines here.
107949         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107950         Port to z/OS.  Problem reported by Paul Gilmartin.
107951         Change local vars to use gl_ prefix rather than ac_.
107952         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107953         with other defines.
107954         * modules/double-slash-root: New module.
107955         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107956         (Depends-on): Add double-slash-root.
107957         * MODULES.html.sh (File system functions): Mention new module.
107959 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107961         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107962         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107963         This is for the benefit of gzip, which doesn't do i18n.
107965 2006-12-12  Jim Meyering  <jim@meyering.net>
107967         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107968         Reported by Andreas Schwab <schwab@suse.de>.
107970 2006-12-12  Bruno Haible  <bruno@clisp.org>
107972         Merge these changes.
107973         2006-09-05  Bruno Haible  <bruno@clisp.org>
107974         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107975         iconv_alloc succeeded.
107976         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107977         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107978         test for " && dest " at the end - dest is always != NULL there. Call
107979         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107980         with 2xNULL arguments, also to flush the state storage. Handle the
107981         IRIX iconv behaviour. Realloc the final result, to throw away unused
107982         memory.
107984 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107986         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107987         and fchmodat unconditionally, since glibc 2.4 has them.
107988         Problem reported by Arkadiusz Miskiewicz.
107990 2006-12-10  Bruno Haible  <bruno@clisp.org>
107992         * gnulib-tool (func_import): Show the include files only for those
107993         modules that are copied and specified.
107994         Reported by Karl Berry.
107996 2006-12-08  Jim Meyering  <jim@meyering.net>
107998         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107999         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
108001         * build-aux/announce-gen: Add two new options, both optional:
108002         --bootstrap-tools=TOOL_LIST
108003               a comma-separated list of tools, e.g.,
108004               autoconf,automake,bison,gnulib
108005         --gnulib-snapshot-date=DATE
108006               if gnulib is in the bootstrap tool list,
108007               then report this as the snapshot date.
108008               If not specified, use the current date/time.
108009               If you specify a date here, be sure it's UTC.
108011 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108013         * tests/test-argp-2.sh: Fix test to match actual output.
108014         (func_compare): Fix sed script to be portable.
108016 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
108018         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
108019         workaround for this case.  It is not autoconfigured now; offhand
108020         it's hard to see how to autoconfigure it.
108022 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
108024         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
108025         a directory that is about to be chowned.  Such a directory's
108026         initial file permissions should permit the owner only and this
108027         should not be changed until after the chown, since the group and
108028         other bits would be incorrect if they granted permission before
108029         the chown.
108031         Fix porting problem for iswctype reported by Georg Schwarz in:
108032         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
108033         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
108034         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
108035         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
108036         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
108038 2006-12-03  Jim Meyering  <jim@meyering.net>
108040         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
108041         p->fts_statp may not yet be defined.
108042         (fts_read): Instead, set it in the caller, once p->fts_statp is
108043         sure to be defined, and corresponds to a top-level directory.
108044         This bug made du -x fail.  Here's the coreutils test case:
108045         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
108046         Reported by Mike Frysinger.
108048 2006-12-01  Jim Meyering  <jim@meyering.net>
108050         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
108051         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
108052         Reported by Simon Josefsson.
108054 2006-11-30  Jim Meyering  <jim@meyering.net>
108056         * m4/warning.m4: Use the all-permissive copyright notice
108057         recommended by RMS (rather than LGPL).
108058         * m4/vararrays.m4: Likewise.
108059         * m4/flexmember.m4: Likewise.
108061 2006-11-29  Bruno Haible  <bruno@clisp.org>
108063         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
108064         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
108065         using +=.
108066         Reported by Simon Josefsson <simon@josefsson.org>.
108068 2006-11-28  James Youngman  <jay@gnu.org>
108070         * README: Advise users that they might find the bug-gnulib@gnu.org
108071         and autotools-announce@gnu.org mailing lists useful.
108073 2006-11-28  Bruno Haible  <bruno@clisp.org>
108075         * m4/ptrdiff_max.m4: Remove file.
108077 2006-11-21  Bruno Haible  <bruno@clisp.org>
108079         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
108080         _AC_COMPUTE_INT.
108081         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108082         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
108083         _AC_COMPUTE_INT.
108084         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108085         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
108086         _AC_COMPUTE_INT.
108087         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108089 2006-11-28  Jim Meyering  <jim@meyering.net>
108091         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
108092         warning from "gcc -Wshadow" about shadowing the builtin.
108094 2006-11-27  Bruno Haible  <bruno@clisp.org>
108096         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
108097         _AC_COMPUTE_INT.
108098         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
108100 2006-11-27  Bruno Haible  <bruno@clisp.org>
108101             Paul Eggert  <eggert@cs.ucla.edu>
108103         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
108105 2006-11-26  Bruno Haible  <bruno@clisp.org>
108107         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
108108         noinst_LTLIBRARIES.
108110 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
108111             Bruno Haible  <bruno@clisp.org>
108113         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
108114         if compiling with "gcc -ansi".
108116 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
108118         Fix some incompatibilities with gcc -ansi -pedantic.
108119         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
108120         if compiling pedantically with GCC, unless it's C99 or later.
108121         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
108122         it mishandles gcc -ansi -pedantic as well.
108123         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
108124         if gcc -pedantic.
108125         * lib/regexec.c (check_node_accept_bytes): Don't use auto
108126         initializers for struct if -pedantic, unless it's C99 or later.
108128 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
108130         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
108131         Don't close an fd more than once. Identical atimes indicate
108132         success, not failure.
108134 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
108136         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
108138 2006-11-23  Jim Meyering  <jim@meyering.net>
108140         * build-aux/announce-gen: New file.  From coreutils.
108142 2006-11-22  Jim Meyering  <jim@meyering.net>
108144         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
108145         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
108146         (fts_read): Use a temporary to narrow the overused st_size member
108147         before using it in a switch statement.  Reported by Matthew Woehlke.
108149         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
108150         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
108152 2006-11-20  Bruno Haible  <bruno@clisp.org>
108154         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
108155         changequote instead of pairs of brackets.
108156         Reported by Andreas Schwab <schwab@suse.de>.
108158 2006-11-21  Jim Meyering  <jim@meyering.net>
108160         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
108161         so as to remain compatible with older compilers.
108162         Patch from Michael Deutschmann.
108164 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
108166         * MODULES.html.sh (File system functions): Add openat.
108168         * lib/openat.h (rpl_fstatat): New macro, if
108169         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
108170         (fstatat): Define to rpl_fstatat under the same conditions,
108171         unless COMPILING_FSTATAT.
108172         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
108173         seems to have the bug.
108174         * lib/fstatat.c: New file.
108175         * modules/openat (Files): Add it.
108177 2006-11-20  Bruno Haible  <bruno@clisp.org>
108179         * Makefile: New file.
108181 2006-11-20  Jim Meyering  <jim@meyering.net>
108183         The beginnings of syntax-related checks for gnulib.
108184         * lib/Makefile: New file.
108185         * lib/t-idcache: New script.  Ensure that the two halves of
108186         idcache.c stay in sync.
108188         * lib/idcache.c: Adjust comments in user- and group- portions to
108189         be more accurate, and to be consistent with one another.
108191 2006-11-20  Jim Meyering  <jim@meyering.net>
108193         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
108194         continue using the flexible array member (thus, this module performs
108195         half as many malloc calls), with the addition that...
108196         (getgroup, getuser): Consistently record a non-match via an empty
108197         "name" string, and map an empty string match to a NULL return value.
108198         * modules/idcache (Depends-on): Re-add flexmember.
108200         * lib/idcache.c (getuser): Remove all uses of the register keyword.
108201         (getuidbyname, getgroup, getgidbyname): Likewise.
108203         Use cleaner syntax: NULL rather than 0.
108204         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
108206 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
108208         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
108209         It mishandled the case where the group was missing.
108210         Problem reported by Greg Schafer.
108211         * modules/idcache: Likewise.
108213 2006-11-18  Jim Meyering  <jim@meyering.net>
108215         * check-module (%exempt_header): Add exception for some
108216         conditionally-included headers.
108218         * modules/i-ring (Depends-on): Add verify.
108219         (License): Change to LGPL.
108221 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108223         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
108224         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
108225         and inttostr.h.  Use snprintf rather than uinttostr, so that
108226         LGPLed code doesn't depend on GPLed.
108228 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
108230         * modules/inline (License): Change from GPL to LGPL.
108232 2006-11-17  Jim Meyering  <jim@meyering.net>
108234         * modules/d-type (License): Switch to LGPL.
108236 2006-11-15  Bruno Haible  <bruno@clisp.org>
108238         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
108240 2006-11-15  Eric Blake  <ebb9@byu.net>
108242         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
108243         the module dependency.
108245 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108246             Bruno Haible  <bruno@clisp.org>
108248         * gnulib-tool (func_create_testdir): Add license consistency check.
108250 2006-11-15  Eric Blake  <ebb9@byu.net>
108252         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
108253         random "(cached)" in configure output.
108255 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108257         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
108258         test for conforming inttypes.h is both announced and cached.
108260         * MODULES.html.sh (seen_modules, seen_files): New variables.
108261         (func_module): Rewrite to use a few less gnulib-tool and sed
108262         invocations.  Avoid a couple of quadratic algorithms for ...
108263         (missed_modules, missed_files): ... these, with ...
108264         (func_append, func_tmpdir): ... these new functions, from
108265         gnulib-tool.  Analogously, install traps for cleanup.
108267         * tests/test-gc.c (main): Remove unused variables.
108268         * tests/test-read-file.c: Include stdlib.h, for 'free'.
108270 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
108272         * modules/inttostr (License): Change to LGPL.
108274 2006-11-14  Eric Blake  <ebb9@byu.net>
108276         * modules/tempname (License): Change to LGPL.
108278 2006-11-14  Eric Blake  <ebb9@byu.net>
108280         * doc/functions.texi (Function Portability): *printf functions on
108281         Cygwin now understand all POSIX size specifiers.
108283 2006-11-14  Bruno Haible  <bruno@clisp.org>
108285         * modules/c-ctype (License): Change to LGPL.
108287 2006-11-12  Bruno Haible  <bruno@clisp.org>
108289         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
108290         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
108291         for GNOME libraries, for which the include files are installed in
108292         subdirectories of $prefix/include.
108294 2006-11-12  Bruno Haible  <bruno@clisp.org>
108296         * m4/lib-link.m4: Require at least autoconf-2.54.
108297         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
108298         name to underscores for the --with option.
108300 2006-11-13  Bruno Haible  <bruno@clisp.org>
108302         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
108303         the tests directory.
108304         Reported by Ralf Wildenhues.
108306 2006-11-13  Bruno Haible  <bruno@clisp.org>
108308         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
108309         (func_emit_initmacro_end): Undo the override here.
108310         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
108311         Works around the famous automake error in coreutils.
108313 2006-11-13  Eric Blake  <ebb9@byu.net>
108315         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
108316         element, not its node.
108318 2006-11-12  Bruno Haible  <bruno@clisp.org>
108320         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
108321         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
108323 2006-11-12  Bruno Haible  <bruno@clisp.org>
108325         * gnulib-tool: New option --local-symlink.
108326         (func_usage): Document it.
108327         (lsymbolic): New variable.
108328         (func_import, func_create_testdir): If --symlink was not specified,
108329         test whether --local-symlink was specified and the file comes from
108330         the local_gnulib_dir.
108332 2006-11-12  Bruno Haible  <bruno@clisp.org>
108334         * gnulib-tool (func_ln): New function.
108335         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
108337 2006-11-12  Bruno Haible  <bruno@clisp.org>
108339         Finish support for source files in subdirectories.
108340         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
108341         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
108342         AUTOMAKE_OPTIONS.
108343         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
108345 2006-11-12  Bruno Haible  <bruno@clisp.org>
108347         * gnulib-tool (func_get_automake_snippet): Synthesize also an
108348         EXTRA_lib_SOURCES augmentation.
108349         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
108351 2006-11-12  Jim Meyering  <jim@meyering.net>
108353         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
108354         file descriptors.  This also averts a failure on systems with
108355         native openat support when a traversed directory lacks "x" access.
108356         * lib/fts_.h: Include "i-ring.h"
108357         (struct FTS) [fts_fd_ring]: New member.
108358         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
108359         (FCHDIR): Add parentheses.
108360         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
108361         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
108362         When descending, rather than simply closing the previous
108363         fts_cwd_fd value, push that file descriptor onto the ring.
108364         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
108365         (fts_open): Initialize the new fd_ring member.
108366         (fts_close): Clear the ring.
108367         (fts_safe_changedir): When possible, use our new fd_ring to skip
108368         the diropen and fstat and dev/ino comparison that would normally
108369         accompany a virtual `chdir ("..")'.
108371         * modules/fts (Depends-on): Add i-ring.
108372         * modules/i-ring: New module.
108373         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
108374         * m4/i-ring.m4: New file.
108376 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108378         * gnulib-tool (func_create_testdir): Fix replacement of
108379         `build-aux' in configure.ac.  Run autotools in gltests
108380         subdirectory.
108381         (func_create_testdir, func_create_megatestdir, test): There is
108382         no need for '--force' in most autotool invocations in a new
108383         tree.  Actually fail the whole test if any of the tools, or the
108384         configure or make stages fail.
108386         Sync from Automake.
108387         * build-aux/gnupload: Revert last change.  Add pointer to upload
108388         instructions of the GNU Maintenance Instructions.
108389         Suggestion by Karl Berry.
108391 2006-11-10  Jim Meyering  <jim@meyering.net>
108393         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
108395 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108397         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
108398         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
108399         (bind_textdomain_codeset) [! ENABLE_NLS]:
108400         Evaluate all the arguments.  That way, callers get compatible behavior
108401         if the arguments have side effects.  Also, it avoids some GCC
108402         diagnostics in some cases; Joel E. Denny reported problems when Bison
108403         was configured with --enable-gcc-warnigs.
108405 2006-11-10  Jim Meyering  <jim@meyering.net>
108407         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
108408         relevant options in CFLAGS (like -O, -fno-inline) are taken into
108409         account.
108411 2006-11-10  Jim Meyering  <jim@meyering.net>
108413         * modules/inline: New file/module.
108414         * modules/xalloc (Files): Remove m4/inline.m4.
108415         (Depends-on): Add inline, instead.
108416         * modules/oset: Likewise.
108417         * modules/list: Likewise.
108419 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108421         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
108422         Problem reported by Matthew Woehlke.
108424 2006-11-09  Bruno Haible  <bruno@clisp.org>
108426         * lib/tempname.c (gen_tempname): Remove variant that invokes
108427         __gen_tempname.
108428         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
108429         __gen_tempname.
108431 2006-11-08  Bruno Haible  <bruno@clisp.org>
108433         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
108434         to 'yes' instead of 'cross-compiling'.
108436 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
108438         * lib/quotearg.h (quotearg_free): New decl.
108439         * lib/quotearg.c (quotearg_free): New function.
108440         (slot0, nslots, slotvec0, slotvec):
108441         Now file-scope so that quotearg_free can get at them.
108443 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108445         Sync from Automake.
108446         * build-aux/gnupload: Add missing 'gnu' to example URL.
108447         Report by Karl Berry.
108449 2006-11-08  Bruno Haible  <bruno@clisp.org>
108451         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
108452         Suggested by Paul Eggert.
108454 2006-11-08  Jim Meyering  <jim@meyering.net>
108456         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
108457         It's already included if !_LIBC.
108458         (fts_safe_changedir): Add a comment.
108460 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
108462         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
108463         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
108464         Matthew Woehlke.
108466         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
108467         definitions up, to avoid colliding with change below.
108468         (static_inline) [HAVE_INLINE]: New macro.
108469         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
108470         Provide extern decls when !HAVE_INLINE.  Do not define unless
108471         static_inline is defined, either by us or by xmalloc.c.  Use
108472         static_inline rather than static inline.
108473         (XCALLOC): Optimize sizeof(T) = 1 case.
108474         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
108476 2006-11-07  Bruno Haible  <bruno@clisp.org>
108478         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
108479         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
108480         AC_C_INLINE.
108481         * modules/xalloc (Files): Add m4/inline.m4.
108483 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108485         * README: Fix typo.
108486         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
108487         (Miscellanous Notes): ...from this.
108489 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
108491         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
108492         Mention that offsetof should be used instead of sizeof.
108493         From Bruno Haible.
108495 2006-11-07  Bruno Haible  <bruno@clisp.org>
108497         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
108499 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108501         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108502         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
108503         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108504         (gl_tree_add_before, gl_tree_add_after):
108505         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
108506         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
108507         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
108508         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
108509         (gl_linked_add_after, gl_linked_add_at): Likewise.
108510         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
108511         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108512         (gl_tree_add_before, gl_tree_add_after): Likewise.
108513         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
108514         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
108515         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
108517 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108519         * lib/gl_oset.h: Use C comment style, not C++ comment style.
108521 2006-11-06  Bruno Haible  <bruno@clisp.org>
108523         * m4/inline.m4: New file.
108524         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
108525         * modules/list (Files): Add m4/inline.m4.
108526         * modules/oset (Files): Likewise.
108528 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108530         * lib/idcache.c: Include <stddef.h>, for offsetof.
108531         (struct userid.name): Change from char * to a flexible array member.
108532         All uses changed.
108533         * modules/idcache (Depends-on): Add flexmember.
108535         * MODULES.html.sh (Core language properties): New module flexmember.
108536         * modules/flexmember, m4/flexmember.m4: New files.
108538         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
108539         inline functions that are identical with the old xnmalloc_inline,
108540         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
108541         that we can avoid some unnecessary integer multiplications and
108542         divisions in the common case where the element size is known at
108543         compile time.
108544         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
108545         needed.
108546         (xnboundedmalloc): Remove.
108547         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
108548         arguments, for consistency with rest of this header.
108549         (xcharalloc): Rewrite using XNMALLOC.
108550         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
108551         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
108552         versions have been moved to lib/xalloc.h and renamed to be the
108553         non-*_inline versions.
108554         (xmalloc, xrealloc): Implement without reference to the xnmalloc
108555         and xnrealloc functions, since those functions are now inline and
108556         now call us.
108557         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
108558         renaming described above.
108559         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
108560         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
108561         captures the dependency in AC_C_INLINE.
108563         New module canonicalize-lgpl, proposed by Charles Wilson in
108564         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
108565         with a few small changes afterwards.
108566         * MODULES.html.sh (File system functions): New module
108567         canonicalize-lgpl.
108568         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
108569         and canonicalize_file_name.
108570         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
108571         * modules/canonicalize-lgpl: New files.
108573 2006-11-05  Bruno Haible  <bruno@clisp.org>
108575         * gnulib-tool (func_import, func_create_testdir): Create directories
108576         also for files in subdirectories of lib/.
108578 2006-11-05  Bruno Haible  <bruno@clisp.org>
108580         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
108581         ANSI C compliant.
108583 2006-11-03  Bruno Haible  <bruno@clisp.org>
108585         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108586         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
108587         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
108588         (xnboundedmalloc): New inline function.
108589         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
108590         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
108591         xmalloc.
108592         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
108593         xmalloc.
108594         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
108595         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
108596         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
108597         xmalloc.
108598         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108599         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
108600         xmalloc.
108601         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
108602         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108603         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
108604         xmalloc.
108605         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108606         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
108607         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108608         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
108609         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
108610         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
108611         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
108613 2006-11-03  Bruno Haible  <bruno@clisp.org>
108615         * lib/c-ctype.h [C++]: Define functions without name mangling.
108616         * lib/fwriteerror.h [C++]: Likewise.
108617         * lib/gcd.h [C++]: Likewise.
108618         * lib/linebreak.h [C++]: Likewise.
108620 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108622         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
108623         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
108624         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
108625         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
108626         Check for functions and headers just once.
108627         Check for declaration of canonicalize_file_name.
108628         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
108630 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108632         * gnulib-tool (func_import): Fix typo in actioncmd.
108634 2006-11-02  Bruno Haible  <bruno@clisp.org>
108636         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
108637         newline sequence in the Makefile.am snippet as a space, like "make"
108638         does.
108639         Reported by Roger Persson <perrog@gmail.com>.
108641 2006-11-01  Bruno Haible  <bruno@clisp.org>
108643         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
108644         already declared in <string.h>.
108645         * lib/strcase.h (strncasecmp): Don't declare it if yes.
108647 2006-11-01  Bruno Haible  <bruno@clisp.org>
108649         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
108650         * lib/strcase.h: Include <string.h>.
108651         (strcasecmp): Define to rpl_strcasecmp here.
108653 2006-11-01  Bruno Haible  <bruno@clisp.org>
108655         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
108657 2006-11-01  Eric Blake  <ebb9@byu.net>
108659         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
108661         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
108663 2006-10-29  Bruno Haible  <bruno@clisp.org>
108665         Make it compile in C++ mode.
108666         * lib/full-write.c (full_rw): Add a cast.
108668 2006-11-01  Bruno Haible  <bruno@clisp.org>
108670         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
108671         be POSIX compliant.
108672         Reported by Roger Persson <perrog@gmail.com>.
108674 2006-11-01  Eric Blake  <ebb9@byu.net>
108676         * lib/getopt_.h: Fix comments.
108678 2006-10-31  Eric Blake  <ebb9@byu.net>
108680         * modules/tmpdir (Depends-on): Add sys_stat.
108681         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
108682         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
108683         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
108684         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
108685         tempname.
108687 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
108689         Avoid some C++ diagnostics reported by Bruno Haible.
108690         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
108691         xmalloc.
108692         (quotearg_alloc): Use xcharalloc rather than xmalloc.
108693         (struct slotvec): Move to top level.
108694         (quotearg_n_options): Rewrite to avoid xmalloc.
108695         * lib/xalloc.h (xcharalloc): New function.
108696         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
108697         [defined __cplusplus]: Add function template that provides result
108698         type propagation.  This part of the change is from Bruno Haible.
108700 2006-10-29  Bruno Haible  <bruno@clisp.org>
108702         Make it compile in C++ mode.
108703         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
108704         * lib/strnlen1.c (strnlen1): Cast memchr result.
108705         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
108706         * lib/clean-temp.c (string_equals, string_hash): Add casts.
108707         (create_temp_dir): Rename local variable 'template'.
108708         (compile_csharp_using_sscli): Add cast.
108709         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
108710         * lib/findprog.c (find_in_path): Likewise.
108711         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
108712         * lib/wait-process.c (register_slave_subprocess): Likewise.
108714 2006-10-22  Bruno Haible  <bruno@clisp.org>
108716         * modules/tsearch: New file.
108717         * lib/tsearch.h: New file.
108718         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
108719         * m4/tsearch.m4: New file.
108720         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
108722 2006-10-29  Eric Blake  <ebb9@byu.net>
108724         * lib/arcfour.c: Assume config.h.
108725         * lib/arctwo.c: Likewise.
108726         * lib/base64.c: Likewise.
108727         * lib/check-version.c: Likewise.
108728         * lib/crc.c: Likewise.
108729         * lib/des.c: Likewise.
108730         * lib/gc-gnulib.c: Likewise.
108731         * lib/gc-libgcrypt.c: Likewise.
108732         * lib/gc-pbkdf2-sha1.c: Likewise.
108733         * lib/getaddrinfo.c: Likewise.
108734         * lib/getdelim.c: Likewise.
108735         * lib/getline.c: Likewise.
108736         * lib/hmac-md5.c: Likewise.
108737         * lib/hmac-sha1.c: Likewise.
108738         * lib/iconvme.c: Likewise.
108739         * lib/md2.c: Likewise.
108740         * lib/md4.c: Likewise.
108741         * lib/memxor.c: Likewise.
108742         * lib/read-file.c: Likewise.
108743         * lib/readline.c: Likewise.
108744         * lib/rijndael-alg-fst.c: Likewise.
108745         * lib/rijndael-api-fst.c: Likewise.
108746         * lib/xgetdomainname.c: Likewise.
108748 2006-10-28  Eric Blake  <ebb9@byu.net>
108750         * lib/xstrndup.c: Assume config.h.
108752 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
108754         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
108755         stat-macros.h is now for our own macros, whereas stat_h is for
108756         macros in the <sys/stat.h> name space.
108757         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
108758         (STAT_MACROS_H): Remove.
108759         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
108760         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
108761         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
108762         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
108763         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
108764         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
108765         Move these macros to ...
108766         * lib/stat_.h: here.  Don't include stat-macros.h.
108767         * lib/canonicalize.c: Don't include stat-macros.h.
108768         * lib/chown.c: Likewise.
108769         * lib/euidaccess.c: Likewise.
108770         * lib/file-type.c: Likewise.
108771         * lib/filemode.c: Likewise.
108772         * lib/glob.c: Likewise.
108773         * lib/isapipe.c: Likewise.
108774         * lib/lchown.c: Likewise.
108775         * lib/lstat.c: Likewise.
108776         * lib/mkdir-p.c: Likewise.
108777         * lib/rmdir.c: Likewise.
108778         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
108779         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
108780         unless mkdir isn't declared, to speed up 'configure'.
108781         Always create sys/stat.h, since it's unlikely any real sys/stat.h
108782         would define all the S_* symbols.
108783         * modules/canonicalize (Depends-on):
108784         Depend on sys_stat, not stat-macros.
108785         * modules/chown: Likewise.
108786         * modules/euidaccess: Likewise.
108787         * modules/filemode: Likewise.
108788         * modules/file-type: Likewise.
108789         * modules/glob: Likewise.
108790         * modules/isapipe: Likewise.
108791         * modules/lchown: Likewise.
108792         * modules/lstat: Likewise.
108793         * modules/mkancesdirs: Likewise.
108794         * modules/rmdir: Likewise.
108795         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
108796         * modules/modechange: Likewise.
108797         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
108798         (configure.ac): Remove gl_STAT_MACROS.
108799         * modules/sys_stat (Depends-on): Remove stat-macros.
108801 2006-10-27  Bruno Haible  <bruno@clisp.org>
108803         * m4/signed.m4: Remove file.
108804         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
108805         invocation.
108806         * modules/vasnprintf (Files): Remove m4/signed.m4.
108808 2006-10-27  Bruno Haible  <bruno@clisp.org>
108810         Update to GNU gettext 0.16.
108811         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
108812         m4/inttypes-h.m4, m4/signed.m4.
108813         * m4/gettext.m4: Update to GNU gettext 0.16.
108814         * m4/intl.m4: New file, from GNU gettext.
108815         * m4/intldir.m4: New file, from GNU gettext.
108816         * config/srclist.txt: Update
108818 2006-10-27  Eric Blake  <ebb9@byu.net>
108820         * MODULES.html.sh: Document tempname.
108821         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
108822         dependencies.
108823         (Files): Move lib/tempname.c...
108824         * modules/tempname: ...to this new module.
108825         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
108826         (gl_PREREQ_TEMPNAME): Move...
108827         * m4/tempname.m4: ...to this new file.
108828         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
108829         * modules/sys_stat (Depends-on): Add stat-macros.
108830         * lib/stat_.h (includes): Pick up stat macros.
108831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
108832         if stat macros are broken.
108833         * lib/tempname.c (includes): No need to include "stat-macros.h".
108834         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
108835         (direxists, __path_search) [!_LIBC]: Don't compile these in
108836         gnulib; the tmpdir module covers that.
108837         * lib/tempname.h: New file.
108839 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
108841         * COPYING: Explain how gnulib-tool converts licence headers.
108842         Almost all wording by Eric Blake.
108844 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
108846         * lib/mbchar.h (is_basic_table): Make read-only.
108847         * lib/mbchar.c (is_basic_table): Likewise.
108848         Reported by John Darrington.
108850 2006-10-25  Bruno Haible  <bruno@clisp.org>
108852         * lib/progname.h (set_program_name): Undefine before defining.
108854 2006-10-25  Bruno Haible  <bruno@clisp.org>
108856         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
108857         false for non-gcc C++ compilers.
108858         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
108860 2006-10-24  Bruno Haible  <bruno@clisp.org>
108862         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
108863         iconv implementations like Irix iconv.
108865 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108867         * modules/vararrays: New file.
108868         * m4/vararrays.m4: New file, taken from diffutils.
108869         * MODULES.html.sh: New module vararrays.
108871 2006-10-24  Karl Berry  <karl@gnu.org>
108873         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
108874         Don't call GNU Unix.
108876 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108878         * users.txt: Add Libtool.
108880         Sync from Libtool:
108882         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108884         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
108885         to gnulib's policy of including config.h unconditionally.
108887 2006-10-24  Bruno Haible  <bruno@clisp.org>
108889         * modules/wcwidth (Files): Add m4/wint_t.m4.
108890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
108891         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
108893 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108895         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108896         to pacify GCC with some -W flags enabled.  Problem reported by
108897         Bruno Haible.
108899 2006-10-24  Jim Meyering  <jim@meyering.net>
108901         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108902         Reported by Karl Berry.
108904 2006-10-23  Bruno Haible  <bruno@clisp.org>
108906         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108908 2006-10-24  Bruno Haible  <bruno@clisp.org>
108910         * lib/gl_list.h: Use C comment style, not C++ comment style.
108912 2006-10-23  Eric Blake  <ebb9@byu.net>
108914         * lib/getaddrinfo.c (includes): Add missing include.
108916 2006-10-23  Bruno Haible  <bruno@clisp.org>
108917             Paul Eggert  <eggert@cs.ucla.edu>
108919         Ability to rename obstack_free.
108920         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108921         obstack_free.
108922         (obstack_free): Invoke the __obstack_free macro.
108923         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108925 2006-10-23  Bruno Haible  <bruno@clisp.org>
108926             Paul Eggert  <eggert@cs.ucla.edu>
108928         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108929         __argc, __argv from the declaration. (They are defined as macros on
108930         mingw.)
108932 2006-10-22  Bruno Haible  <bruno@clisp.org>
108934         * doc/gnulib-intro.texi: New file.
108935         * doc/gnulib.texi: Include it.
108937 2006-10-21  Bruno Haible  <bruno@clisp.org>
108939         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108940         "Introduction", "Miscellanous Notes", "Particular Modules".
108942 2006-10-21  Bruno Haible  <bruno@clisp.org>
108944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108945         Change mostlyclean-local rule to avoid sh syntax error from bash
108946         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108948 2006-10-23  Jim Meyering  <jim@meyering.net>
108950         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108951         in place of snprintf.
108953         * modules/inttostr (Files): Add lib/uinttostr.c.
108954         * lib/uinttostr.c (inttostr): New file/function.
108955         * lib/inttostr.h (uinttostr): Declare.
108956         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108957         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108958         Add uinttostr.
108959         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108961 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108963         * lib/canonicalize.c (ELOOP): Define if not already defined.
108964         Problem reported by Bruno Haible in
108965         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108967 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108969         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108970         Problem reported by Perry Smith and Ville Laurikari.
108972         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108973         uses.
108975 2006-10-19  Bruno Haible  <bruno@clisp.org>
108977         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108978         for mingw.
108980 2006-10-19  Bruno Haible  <bruno@clisp.org>
108982         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108983         Needed for mingw.
108985 2006-10-19  Bruno Haible  <bruno@clisp.org>
108987         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108989 2006-10-19  Bruno Haible  <bruno@clisp.org>
108991         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108992         it.
108994 2006-10-19  Bruno Haible  <bruno@clisp.org>
108996         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108997         invocation.
108999 2006-10-19  Bruno Haible  <bruno@clisp.org>
109001         * gnulib-tool (func_create_testdir): Don't include ftruncate and
109002         mountlist by default.
109004 2006-10-16  Bruno Haible  <bruno@clisp.org>
109006         * lib/c-strstr.c: Include c-strstr.h.
109008 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
109010         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
109011         in a slash.
109013 2006-10-18  Bruno Haible  <bruno@clisp.org>
109015         * lib/lock.h [C++]: Wrap definitions in extern "C".
109017 2006-10-18  Bruno Haible  <bruno@clisp.org>
109019         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
109020         gl_LIBOBJS list.
109022 2006-10-18  Bruno Haible  <bruno@clisp.org>
109024         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
109026 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
109028         * lib/xstrtol.h: Include gettext.h.
109029         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
109030         Problem reported by Eric Blake.
109031         * modules/xstrtol (Depends-on): Add gettext-h.
109033 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
109035         * lib/strftime.c (advance): New macro.
109036         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
109037         incomplete type, so you can't add 0 to it.  Problem and patch
109038         reported by Eelco Dolstra for dietlibc.
109040 2006-10-18  Jim Meyering  <jim@meyering.net>
109042         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
109043         type for a local, and rename it: s/up/user_proc/.
109045 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
109047         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
109048         READ_UTMP_USER_PROCESS.
109049         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
109051 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
109053         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
109054         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
109056 2006-10-17  Eric Blake  <ebb9@byu.net>
109058         * lib/sigprocmask.c (sigprocmask): Fix typo.
109060         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
109062         * modules/clean-temp (Makefile.am): Don't add to make output...
109063         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
109064         config.h.
109066 2006-10-17  Bruno Haible  <bruno@clisp.org>
109068         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
109069         differently if DEFAULT_TEXT_DOMAIN is set.
109071 2006-10-16  Bruno Haible  <bruno@clisp.org>
109073         * lib/clean-temp.c: Include fwriteerror.h.
109075 2006-10-16  Bruno Haible  <bruno@clisp.org>
109077         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
109079 2006-10-16  Bruno Haible  <bruno@clisp.org>
109081         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
109082         * lib/sigprocmask.h: Include <sys/types.h>.
109083         (sigset_t): Use the system's definition if present.
109085 2006-10-17  Eric Blake  <ebb9@byu.net>
109087         * lib/xvasprintf.c (includes): Assume config.h.
109088         * lib/xasprintf.c (includes): Likewise.
109090 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
109092         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
109093         at least as wide as intmax_t.
109095 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
109097         (Imported from Automake.)
109098         * build-aux/gnupload: Update to version 1.1 of directive file.
109100 2006-10-16  Eric Blake  <ebb9@byu.net>
109102         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
109103         match Automake 1.10a.
109105 2006-10-14  Bruno Haible  <bruno@clisp.org>
109107         * modules/sigprocmask: New file.
109108         * lib/sigprocmask.h: New file.
109109         * lib/sigprocmask.c: New file.
109110         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
109111         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
109112         request sigprocmask.o.
109113         (gl_PREREQ_SIGPROCMASK): New macro.
109114         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
109115         (Depends-on): Add sigprocmask.
109116         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
109117         gt_SIGNALBLOCKING. Test for 'raise' only once.
109118         * lib/fatal-signal.c: Include sigprocmask.h.
109119         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
109120         unblock_fatal_signals): Define always.
109121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109122         sigprocmask.
109124 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
109126         Sync from Automake.
109127         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
109128         which incorrectly sets the mode of an existing destination
109129         directory.  In some cases the unpatched install-sh could do the
109130         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
109131         system.  We hope this is rare in practice, but it's clearly worth
109132         fixing.  Problem reported by Alex Unleashed in
109133         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
109134         Also, don't bother to check for -m bugs unless we're using -m;
109135         suggested by Stepan Kasal.
109137 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109139         Sync from Automake.
109140         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
109141         `-c' flag, so they appear at the same position as in %FASTDEP%
109142         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
109143         which ignores unknown options only after the first non-option.
109144         Bug report against M4 by Nelson H. F. Beebe.
109146 2006-10-13  Jim Meyering  <jim@meyering.net>
109148         Fix a bug in yesterday's change.
109149         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
109150         p->fts_statp->st_dev would be used uninitialized.
109151         Ensures that we always call fts_stat on the very first entry.
109152         Miklos Szeredi reported that find -xdev stopped working.
109154 2006-10-12  Bruno Haible  <bruno@clisp.org>
109156         * gnulib-tool (func_get_automake_snippet): Append an automatically
109157         computed EXTRA_DIST augmentation.
109158         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
109159         * modules/alloca-opt (Makefile.am): Likewise.
109160         * modules/allocsa (Makefile.am): Likewise.
109161         * modules/arcfour (Makefile.am): Likewise.
109162         * modules/arctwo (Makefile.am): Likewise.
109163         * modules/argmatch (Makefile.am): Likewise.
109164         * modules/argz (Makefile.am): Likewise.
109165         * modules/atexit (Makefile.am): Likewise.
109166         * modules/backupfile (Makefile.am): Likewise.
109167         * modules/byteswap (Makefile.am): Likewise.
109168         * modules/c-strtod (Makefile.am): Likewise.
109169         * modules/c-strtold (Makefile.am): Likewise.
109170         * modules/calloc (Makefile.am): Likewise.
109171         * modules/canon-host (Makefile.am): Likewise.
109172         * modules/canonicalize (Makefile.am): Likewise.
109173         * modules/chdir-long (Makefile.am): Likewise.
109174         * modules/chdir-safer (Makefile.am): Likewise.
109175         * modules/check-version (Makefile.am): Likewise.
109176         * modules/chown (Makefile.am): Likewise.
109177         * modules/cloexec (Makefile.am): Likewise.
109178         * modules/close-stream (Makefile.am): Likewise.
109179         * modules/closeout (Makefile.am): Likewise.
109180         * modules/crc (Makefile.am): Likewise.
109181         * modules/csharpexec (Makefile.am): Likewise.
109182         * modules/cycle-check (Makefile.am): Likewise.
109183         * modules/des (Makefile.am): Likewise.
109184         * modules/dev-ino (Makefile.am): Likewise.
109185         * modules/dirfd (Makefile.am): Likewise.
109186         * modules/dirname (Makefile.am): Likewise.
109187         * modules/dup2 (Makefile.am): Likewise.
109188         * modules/eealloc (Makefile.am): Likewise.
109189         * modules/error (Makefile.am): Likewise.
109190         * modules/euidaccess (Makefile.am): Likewise.
109191         * modules/exclude (Makefile.am): Likewise.
109192         * modules/exitfail (Makefile.am): Likewise.
109193         * modules/fcntl-safer (Makefile.am): Likewise.
109194         * modules/fcntl (Makefile.am): Likewise.
109195         * modules/file-type (Makefile.am): Likewise.
109196         * modules/fileblocks (Makefile.am): Likewise.
109197         * modules/filemode (Makefile.am): Likewise.
109198         * modules/filenamecat (Makefile.am): Likewise.
109199         * modules/fnmatch (Makefile.am): Likewise.
109200         * modules/fopen-safer (Makefile.am): Likewise.
109201         * modules/fpending (Makefile.am): Likewise.
109202         * modules/fprintftime (Makefile.am): Likewise.
109203         * modules/free (Makefile.am): Likewise.
109204         * modules/fsusage (Makefile.am): Likewise.
109205         * modules/ftruncate (Makefile.am): Likewise.
109206         * modules/fts (Makefile.am): Likewise.
109207         * modules/gc-arcfour (Makefile.am): Likewise.
109208         * modules/gc-des (Makefile.am): Likewise.
109209         * modules/gc-hmac-md5 (Makefile.am): Likewise.
109210         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
109211         * modules/gc-md4 (Makefile.am): Likewise.
109212         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
109213         * modules/gc-sha1 (Makefile.am): Likewise.
109214         * modules/gc (Makefile.am): Likewise.
109215         * modules/getaddrinfo (Makefile.am): Likewise.
109216         * modules/getcwd (Makefile.am): Likewise.
109217         * modules/getdelim (Makefile.am): Likewise.
109218         * modules/getdomainname (Makefile.am): Likewise.
109219         * modules/getgroups (Makefile.am): Likewise.
109220         * modules/gethostname (Makefile.am): Likewise.
109221         * modules/gethrxtime (Makefile.am): Likewise.
109222         * modules/getline (Makefile.am): Likewise.
109223         * modules/getloadavg (Makefile.am): Likewise.
109224         * modules/getlogin_r (Makefile.am): Likewise.
109225         * modules/getndelim2 (Makefile.am): Likewise.
109226         * modules/getopt (Makefile.am): Likewise.
109227         * modules/getpagesize (Makefile.am): Likewise.
109228         * modules/getpass-gnu (Makefile.am): Likewise.
109229         * modules/getpass (Makefile.am): Likewise.
109230         * modules/getsubopt (Makefile.am): Likewise.
109231         * modules/gettime (Makefile.am): Likewise.
109232         * modules/gettimeofday (Makefile.am): Likewise.
109233         * modules/getugroups (Makefile.am): Likewise.
109234         * modules/getusershell (Makefile.am): Likewise.
109235         * modules/glob (Makefile.am): Likewise.
109236         * modules/group-member (Makefile.am): Likewise.
109237         * modules/hard-locale (Makefile.am): Likewise.
109238         * modules/hash (Makefile.am): Likewise.
109239         * modules/hmac-md5 (Makefile.am): Likewise.
109240         * modules/hmac-sha1 (Makefile.am): Likewise.
109241         * modules/human (Makefile.am): Likewise.
109242         * modules/idcache (Makefile.am): Likewise.
109243         * modules/imaxabs (Makefile.am): Likewise.
109244         * modules/imaxdiv (Makefile.am): Likewise.
109245         * modules/inet_ntop (Makefile.am): Likewise.
109246         * modules/inet_pton (Makefile.am): Likewise.
109247         * modules/intprops (Makefile.am): Likewise.
109248         * modules/inttostr (Makefile.am): Likewise.
109249         * modules/inttypes (Makefile.am): Likewise.
109250         * modules/isapipe (Makefile.am): Likewise.
109251         * modules/javaversion (Makefile.am): Likewise.
109252         * modules/lchmod (Makefile.am): Likewise.
109253         * modules/lchown (Makefile.am): Likewise.
109254         * modules/localcharset (Makefile.am): Likewise.
109255         * modules/long-options (Makefile.am): Likewise.
109256         * modules/lstat (Makefile.am): Likewise.
109257         * modules/malloc (Makefile.am): Likewise.
109258         * modules/mathl (Makefile.am): Likewise.
109259         * modules/mbchar (Makefile.am): Likewise.
109260         * modules/md2 (Makefile.am): Likewise.
109261         * modules/md4 (Makefile.am): Likewise.
109262         * modules/md5 (Makefile.am): Likewise.
109263         * modules/memcasecmp (Makefile.am): Likewise.
109264         * modules/memchr (Makefile.am): Likewise.
109265         * modules/memcmp (Makefile.am): Likewise.
109266         * modules/memcoll (Makefile.am): Likewise.
109267         * modules/memcpy (Makefile.am): Likewise.
109268         * modules/memmem (Makefile.am): Likewise.
109269         * modules/memmove (Makefile.am): Likewise.
109270         * modules/mempcpy (Makefile.am): Likewise.
109271         * modules/memrchr (Makefile.am): Likewise.
109272         * modules/memset (Makefile.am): Likewise.
109273         * modules/memxor (Makefile.am): Likewise.
109274         * modules/mkancesdirs (Makefile.am): Likewise.
109275         * modules/mkdir-p (Makefile.am): Likewise.
109276         * modules/mkdir (Makefile.am): Likewise.
109277         * modules/mkdtemp (Makefile.am): Likewise.
109278         * modules/mkstemp (Makefile.am): Likewise.
109279         * modules/mktime (Makefile.am): Likewise.
109280         * modules/modechange (Makefile.am): Likewise.
109281         * modules/mountlist (Makefile.am): Likewise.
109282         * modules/nanosleep (Makefile.am): Likewise.
109283         * modules/obstack (Makefile.am): Likewise.
109284         * modules/openat (Makefile.am): Likewise.
109285         * modules/pagealign_alloc (Makefile.am): Likewise.
109286         * modules/pathmax (Makefile.am): Likewise.
109287         * modules/physmem (Makefile.am): Likewise.
109288         * modules/poll (Makefile.am): Likewise.
109289         * modules/posixtm (Makefile.am): Likewise.
109290         * modules/posixver (Makefile.am): Likewise.
109291         * modules/putenv (Makefile.am): Likewise.
109292         * modules/quote (Makefile.am): Likewise.
109293         * modules/quotearg (Makefile.am): Likewise.
109294         * modules/raise (Makefile.am): Likewise.
109295         * modules/read-file (Makefile.am): Likewise.
109296         * modules/readline (Makefile.am): Likewise.
109297         * modules/readlink (Makefile.am): Likewise.
109298         * modules/readtokens (Makefile.am): Likewise.
109299         * modules/readutmp (Makefile.am): Likewise.
109300         * modules/realloc (Makefile.am): Likewise.
109301         * modules/regex (Makefile.am): Likewise.
109302         * modules/rename-dest-slash (Makefile.am): Likewise.
109303         * modules/rename (Makefile.am): Likewise.
109304         * modules/rijndael (Makefile.am): Likewise.
109305         * modules/rmdir (Makefile.am): Likewise.
109306         * modules/rpmatch (Makefile.am): Likewise.
109307         * modules/safe-read (Makefile.am): Likewise.
109308         * modules/safe-write (Makefile.am): Likewise.
109309         * modules/same-inode (Makefile.am): Likewise.
109310         * modules/same (Makefile.am): Likewise.
109311         * modules/save-cwd (Makefile.am): Likewise.
109312         * modules/savedir (Makefile.am): Likewise.
109313         * modules/setenv (Makefile.am): Likewise.
109314         * modules/settime (Makefile.am): Likewise.
109315         * modules/sha1 (Makefile.am): Likewise.
109316         * modules/sig2str (Makefile.am): Likewise.
109317         * modules/snprintf (Makefile.am): Likewise.
109318         * modules/stat-macros (Makefile.am): Likewise.
109319         * modules/stat-time (Makefile.am): Likewise.
109320         * modules/stdbool (Makefile.am): Likewise.
109321         * modules/stdint (Makefile.am): Likewise.
109322         * modules/stdlib-safer (Makefile.am): Likewise.
109323         * modules/stpcpy (Makefile.am): Likewise.
109324         * modules/stpncpy (Makefile.am): Likewise.
109325         * modules/strcase (Makefile.am): Likewise.
109326         * modules/strcasestr (Makefile.am): Likewise.
109327         * modules/strchrnul (Makefile.am): Likewise.
109328         * modules/strcspn (Makefile.am): Likewise.
109329         * modules/strdup (Makefile.am): Likewise.
109330         * modules/strerror (Makefile.am): Likewise.
109331         * modules/strftime (Makefile.am): Likewise.
109332         * modules/strndup (Makefile.am): Likewise.
109333         * modules/strnlen (Makefile.am): Likewise.
109334         * modules/strpbrk (Makefile.am): Likewise.
109335         * modules/strsep (Makefile.am): Likewise.
109336         * modules/strstr (Makefile.am): Likewise.
109337         * modules/strtod (Makefile.am): Likewise.
109338         * modules/strtoimax (Makefile.am): Likewise.
109339         * modules/strtok_r (Makefile.am): Likewise.
109340         * modules/strtol (Makefile.am): Likewise.
109341         * modules/strtoll (Makefile.am): Likewise.
109342         * modules/strtoul (Makefile.am): Likewise.
109343         * modules/strtoull (Makefile.am): Likewise.
109344         * modules/strtoumax (Makefile.am): Likewise.
109345         * modules/strverscmp (Makefile.am): Likewise.
109346         * modules/sys_socket (Makefile.am): Likewise.
109347         * modules/sys_stat (Makefile.am): Likewise.
109348         * modules/sysexits (Makefile.am): Likewise.
109349         * modules/time_r (Makefile.am): Likewise.
109350         * modules/timegm (Makefile.am): Likewise.
109351         * modules/timespec (Makefile.am): Likewise.
109352         * modules/tmpfile-safer (Makefile.am): Likewise.
109353         * modules/trim (Makefile.am): Likewise.
109354         * modules/unistd-safer (Makefile.am): Likewise.
109355         * modules/unlinkdir (Makefile.am): Likewise.
109356         * modules/unlocked-io (Makefile.am): Likewise.
109357         * modules/userspec (Makefile.am): Likewise.
109358         * modules/utime (Makefile.am): Likewise.
109359         * modules/utimecmp (Makefile.am): Likewise.
109360         * modules/utimens (Makefile.am): Likewise.
109361         * modules/vasnprintf (Makefile.am): Likewise.
109362         * modules/vasprintf (Makefile.am): Likewise.
109363         * modules/vsnprintf (Makefile.am): Likewise.
109364         * modules/xalloc (Makefile.am): Likewise.
109365         * modules/xgetcwd (Makefile.am): Likewise.
109366         * modules/xnanosleep (Makefile.am): Likewise.
109367         * modules/xreadlink (Makefile.am): Likewise.
109368         * modules/xstrtod (Makefile.am): Likewise.
109369         * modules/xstrtol (Makefile.am): Likewise.
109370         * modules/xstrtold (Makefile.am): Likewise.
109371         * modules/yesno (Makefile.am): Likewise.
109372         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
109374 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
109376         * modules/error (Makefile.am): Distribute files through
109377         EXTRA_DIST, not lib_SOURCES.
109379 2006-10-12  Eric Blake  <ebb9@byu.net>
109381         * modules/error (Makefile.am): Distribute files in /lib.
109382         * modules/obstack (Makefile.am): Likewise.
109384 2006-10-12  Bruno Haible  <bruno@clisp.org>
109386         * modules/acl (Makefile.am): Distribute all files in lib/ through
109387         EXTRA_DIST.
109388         * modules/arcfour (Makefile.am): Likewise.
109389         * modules/arctwo (Makefile.am): Likewise.
109390         * modules/argmatch (Makefile.am): Likewise.
109391         * modules/argz (Makefile.am): Likewise.
109392         * modules/atexit (Makefile.am): Likewise.
109393         * modules/backupfile (Makefile.am): Likewise.
109394         * modules/c-strtod (Makefile.am): Likewise.
109395         * modules/c-strtold (Makefile.am): Likewise.
109396         * modules/calloc (Makefile.am): Likewise.
109397         * modules/canon-host (Makefile.am): Likewise.
109398         * modules/canonicalize (Makefile.am): Likewise.
109399         * modules/chdir-long (Makefile.am): Likewise.
109400         * modules/chdir-safer (Makefile.am): Likewise.
109401         * modules/check-version (Makefile.am): Likewise.
109402         * modules/chown (Makefile.am): Likewise.
109403         * modules/cloexec (Makefile.am): Likewise.
109404         * modules/close-stream (Makefile.am): Likewise.
109405         * modules/closeout (Makefile.am): Likewise.
109406         * modules/crc (Makefile.am): Likewise.
109407         * modules/cycle-check (Makefile.am): Likewise.
109408         * modules/des (Makefile.am): Likewise.
109409         * modules/dirfd (Makefile.am): Likewise.
109410         * modules/dirname (Makefile.am): Likewise.
109411         * modules/dup2 (Makefile.am): Likewise.
109412         * modules/euidaccess (Makefile.am): Likewise.
109413         * modules/exclude (Makefile.am): Likewise.
109414         * modules/exitfail (Makefile.am): Likewise.
109415         * modules/fcntl-safer (Makefile.am): Likewise.
109416         * modules/file-type (Makefile.am): Likewise.
109417         * modules/fileblocks (Makefile.am): Likewise.
109418         * modules/filemode (Makefile.am): Likewise.
109419         * modules/filenamecat (Makefile.am): Likewise.
109420         * modules/fnmatch (Makefile.am): Likewise.
109421         * modules/fopen-safer (Makefile.am): Likewise.
109422         * modules/fpending (Makefile.am): Likewise.
109423         * modules/fprintftime (Makefile.am): Likewise.
109424         * modules/free (Makefile.am): Likewise.
109425         * modules/fsusage (Makefile.am): Likewise.
109426         * modules/ftruncate (Makefile.am): Likewise.
109427         * modules/fts (Makefile.am): Likewise.
109428         * modules/gc (Makefile.am): Likewise.
109429         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
109430         * modules/getaddrinfo (Makefile.am): Likewise.
109431         * modules/getcwd (Makefile.am): Likewise.
109432         * modules/getdelim (Makefile.am): Likewise.
109433         * modules/getdomainname (Makefile.am): Likewise.
109434         * modules/getgroups (Makefile.am): Likewise.
109435         * modules/gethostname (Makefile.am): Likewise.
109436         * modules/gethrxtime (Makefile.am): Likewise.
109437         * modules/getline (Makefile.am): Likewise.
109438         * modules/getloadavg (Makefile.am): Likewise.
109439         * modules/getlogin_r (Makefile.am): Likewise.
109440         * modules/getopt (Makefile.am): Likewise.
109441         * modules/getpass (Makefile.am): Likewise.
109442         * modules/getpass-gnu (Makefile.am): Likewise.
109443         * modules/getsubopt (Makefile.am): Likewise.
109444         * modules/gettime (Makefile.am): Likewise.
109445         * modules/gettimeofday (Makefile.am): Likewise.
109446         * modules/getugroups (Makefile.am): Likewise.
109447         * modules/getusershell (Makefile.am): Likewise.
109448         * modules/glob (Makefile.am): Likewise.
109449         * modules/group-member (Makefile.am): Likewise.
109450         * modules/hard-locale (Makefile.am): Likewise.
109451         * modules/hash (Makefile.am): Likewise.
109452         * modules/hmac-md5 (Makefile.am): Likewise.
109453         * modules/hmac-sha1 (Makefile.am): Likewise.
109454         * modules/human (Makefile.am): Likewise.
109455         * modules/idcache (Makefile.am): Likewise.
109456         * modules/imaxabs (Makefile.am): Likewise.
109457         * modules/imaxdiv (Makefile.am): Likewise.
109458         * modules/inet_ntop (Makefile.am): Likewise.
109459         * modules/inet_pton (Makefile.am): Likewise.
109460         * modules/inttostr (Makefile.am): Likewise.
109461         * modules/isapipe (Makefile.am): Likewise.
109462         * modules/lchown (Makefile.am): Likewise.
109463         * modules/long-options (Makefile.am): Likewise.
109464         * modules/lstat (Makefile.am): Likewise.
109465         * modules/malloc (Makefile.am): Likewise.
109466         * modules/mathl (Makefile.am): Likewise.
109467         * modules/mbchar (Makefile.am): Likewise.
109468         * modules/md2 (Makefile.am): Likewise.
109469         * modules/md4 (Makefile.am): Likewise.
109470         * modules/md5 (Makefile.am): Likewise.
109471         * modules/memcasecmp (Makefile.am): Likewise.
109472         * modules/memchr (Makefile.am): Likewise.
109473         * modules/memcmp (Makefile.am): Likewise.
109474         * modules/memcoll (Makefile.am): Likewise.
109475         * modules/memcpy (Makefile.am): Likewise.
109476         * modules/memmem (Makefile.am): Likewise.
109477         * modules/memmove (Makefile.am): Likewise.
109478         * modules/mempcpy (Makefile.am): Likewise.
109479         * modules/memrchr (Makefile.am): Likewise.
109480         * modules/memset (Makefile.am): Likewise.
109481         * modules/memxor (Makefile.am): Likewise.
109482         * modules/mkancesdirs (Makefile.am): Likewise.
109483         * modules/mkdir (Makefile.am): Likewise.
109484         * modules/mkdir-p (Makefile.am): Likewise.
109485         * modules/mkdtemp (Makefile.am): Likewise.
109486         * modules/mkstemp (Makefile.am): Likewise.
109487         * modules/mktime (Makefile.am): Likewise.
109488         * modules/modechange (Makefile.am): Likewise.
109489         * modules/mountlist (Makefile.am): Likewise.
109490         * modules/nanosleep (Makefile.am): Likewise.
109491         * modules/openat (Makefile.am): Likewise.
109492         * modules/pagealign_alloc (Makefile.am): Likewise.
109493         * modules/physmem (Makefile.am): Likewise.
109494         * modules/poll (Makefile.am): Likewise.
109495         * modules/posixtm (Makefile.am): Likewise.
109496         * modules/posixver (Makefile.am): Likewise.
109497         * modules/putenv (Makefile.am): Likewise.
109498         * modules/quote (Makefile.am): Likewise.
109499         * modules/quotearg (Makefile.am): Likewise.
109500         * modules/raise (Makefile.am): Likewise.
109501         * modules/read-file (Makefile.am): Likewise.
109502         * modules/readline (Makefile.am): Likewise.
109503         * modules/readlink (Makefile.am): Likewise.
109504         * modules/readtokens (Makefile.am): Likewise.
109505         * modules/readutmp (Makefile.am): Likewise.
109506         * modules/realloc (Makefile.am): Likewise.
109507         * modules/regex (Makefile.am): Likewise.
109508         * modules/rename (Makefile.am): Likewise.
109509         * modules/rename-dest-slash (Makefile.am): Likewise.
109510         * modules/rijndael (Makefile.am): Likewise.
109511         * modules/rmdir (Makefile.am): Likewise.
109512         * modules/rpmatch (Makefile.am): Likewise.
109513         * modules/safe-read (Makefile.am): Likewise.
109514         * modules/safe-write (Makefile.am): Likewise.
109515         * modules/same (Makefile.am): Likewise.
109516         * modules/save-cwd (Makefile.am): Likewise.
109517         * modules/savedir (Makefile.am): Likewise.
109518         * modules/setenv (Makefile.am): Likewise.
109519         * modules/settime (Makefile.am): Likewise.
109520         * modules/sha1 (Makefile.am): Likewise.
109521         * modules/sig2str (Makefile.am): Likewise.
109522         * modules/snprintf (Makefile.am): Likewise.
109523         * modules/stdlib-safer (Makefile.am): Likewise.
109524         * modules/stpcpy (Makefile.am): Likewise.
109525         * modules/stpncpy (Makefile.am): Likewise.
109526         * modules/strcase (Makefile.am): Likewise.
109527         * modules/strcasestr (Makefile.am): Likewise.
109528         * modules/strchrnul (Makefile.am): Likewise.
109529         * modules/strcspn (Makefile.am): Likewise.
109530         * modules/strdup (Makefile.am): Likewise.
109531         * modules/strerror (Makefile.am): Likewise.
109532         * modules/strftime (Makefile.am): Likewise.
109533         * modules/strndup (Makefile.am): Likewise.
109534         * modules/strnlen (Makefile.am): Likewise.
109535         * modules/strpbrk (Makefile.am): Likewise.
109536         * modules/strsep (Makefile.am): Likewise.
109537         * modules/strstr (Makefile.am): Likewise.
109538         * modules/strtod (Makefile.am): Likewise.
109539         * modules/strtoimax (Makefile.am): Likewise.
109540         * modules/strtok_r (Makefile.am): Likewise.
109541         * modules/strtol (Makefile.am): Likewise.
109542         * modules/strtoll (Makefile.am): Likewise.
109543         * modules/strtoul (Makefile.am): Likewise.
109544         * modules/strtoull (Makefile.am): Likewise.
109545         * modules/strtoumax (Makefile.am): Likewise.
109546         * modules/strverscmp (Makefile.am): Likewise.
109547         * modules/time_r (Makefile.am): Likewise.
109548         * modules/timegm (Makefile.am): Likewise.
109549         * modules/tmpfile-safer (Makefile.am): Likewise.
109550         * modules/unistd-safer (Makefile.am): Likewise.
109551         * modules/unlinkdir (Makefile.am): Likewise.
109552         * modules/userspec (Makefile.am): Likewise.
109553         * modules/utime (Makefile.am): Likewise.
109554         * modules/utimecmp (Makefile.am): Likewise.
109555         * modules/utimens (Makefile.am): Likewise.
109556         * modules/vasnprintf (Makefile.am): Likewise.
109557         * modules/vasprintf (Makefile.am): Likewise.
109558         * modules/vsnprintf (Makefile.am): Likewise.
109559         * modules/xalloc (Makefile.am): Likewise.
109560         * modules/xgetcwd (Makefile.am): Likewise.
109561         * modules/xnanosleep (Makefile.am): Likewise.
109562         * modules/xreadlink (Makefile.am): Likewise.
109563         * modules/xstrtod (Makefile.am): Likewise.
109564         * modules/xstrtol (Makefile.am): Likewise.
109565         * modules/xstrtold (Makefile.am): Likewise.
109566         * modules/yesno (Makefile.am): Likewise.
109568 2006-10-12  Jim Meyering  <jim@meyering.net>
109570         * m4/getloadavg.m4: Revert the change below.
109572         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
109573         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
109574         fail with a symlink, which is what coreutils' ./bootstrap now
109575         creates by default.
109577 2006-10-12  Bruno Haible  <bruno@clisp.org>
109579         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
109580         mingw.
109581         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
109582         MSVC and mingw explicitly.
109584 2006-10-11  Simon Josefsson  <jas@extundo.com>
109585             Bruno Haible  <bruno@clisp.org>
109587         Add support for multiple gnulib-tool invocations in the scope of a
109588         single configure.ac file.
109589         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
109590         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
109591         with the same contents as the _LIBADD variable.
109592         (func_emit_initmacro_start, func_emit_initmacro_end,
109593         func_emit_initmacro_done): New functions.
109594         (func_import, func_create_testdir): Invoke them. Allow the identifiers
109595         gl_LIBOBJS and gl_LTLIBOBJS.
109597 2006-10-11  Bruno Haible  <bruno@clisp.org>
109599         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
109600         (func_create_testdir): Don't create po/Makefile.am, don't invoke
109601         autoreconf. Instead, invoke autopoint explicitly but move back the
109602         *.m4 files from gnulib.
109604 2006-10-11  Bruno Haible  <bruno@clisp.org>
109606         * gnulib-tool (func_usage): Make module names after --create-testdir
109607         optional.
109608         (func_create_testdir): If no module was specified, use nearly all
109609         modules.
109611 2006-10-12  Jim Meyering  <jim@meyering.net>
109613         Big performance improvement for fts-based tools that use FTS_NOSTAT.
109614         Avoid spurious inode-mismatch problems on non-POSIX file systems.
109615         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
109616         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
109617         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
109618         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
109619         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
109620         (fts_set_stat_required): New function.
109621         (fts_open): Defer the calls to fts_stat, if possible or requested.
109622         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
109623         into fts_stat itself.
109624         (fts_read): Perform any required (deferred) fts_stat call.
109625         (fts_build): Likewise, for the directory we're about to open and read.
109626         In the readdir loop, carefully decide whether each entry will require
109627         an eventual call to fts_stat, using dirent.d_type info if available.
109628         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
109629         a command line argument into this function.  Update all callers.
109630         Map a return value of FTS_DOT to FTS_D for a command line argument.
109631         * modules/fts (Depends-on): Add d-type.  Alphabetize.
109632         Thanks to Miklos Szeredi for his tenacity and for the initial
109633         bug report about "find" failing on a FUSE-based file system.
109635         * lib/fts.c (fts_open): Use consistent indentation.
109637 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
109639         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
109640         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
109641         reported by Jim Meyering.  All uses of cache variables renamed
109642         to match Autoconf's.
109643         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
109644         the other one.
109646         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
109647         Fix misspelling in diagnostic.
109649 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109651         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
109652         defined.  Problem reported by Matthew Woehlke.
109654         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
109655         Add support for Tandem NonStop R series.
109656         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
109657         Use new macro.
109659         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
109660         (has_trailing_slash): Omit size arg; all callers changed.
109661         Omit 'inline', since it doesn't help performance and we'd
109662         need to configure it.
109663         Don't count //, ///, etc. as having a trailing slash.
109664         As a side effect, this removes a C99ism reported by Matthew Woehlke.
109665         (rpl_rename_dest_slash): On failure, use rename's errno rather
109666         than (in some cases) an incorrect or junk errno.
109667         Simplify code by removing need to compute length; this does
109668         cause it to make two passes instead of one over the file name,
109669         but it's worth it.
109671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
109672         change, since Autoconf's version may no longer be appropriate now
109673         that we are using CVS Autoconf's version.  Add support for Tandem.
109675 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109676             Bruno Haible  <bruno@clisp.org>
109678         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
109679         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
109680         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
109681         gl_AC_TYPE_LONG_LONG.
109683         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
109684         instead of HAVE_LONG_LONG.
109685         * lib/printf-args.c (printf_fetchargs): Likewise.
109686         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
109687         * lib/vasnprintf.c (VASNPRINTF): Likewise.
109688         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
109689         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
109690         gl_AC_TYPE_LONG_LONG.
109692 2006-10-11  Bruno Haible  <bruno@clisp.org>
109694         * m4/longlong.m4: Add comments.
109695         * m4/ulonglong.m4: Likewise.
109697 2006-10-10  Bruno Haible  <bruno@clisp.org>
109699         Make it possible to #define stpcpy, strdup to aliases.
109700         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
109701         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
109703 2006-10-10  Bruno Haible  <bruno@clisp.org>
109705         Make it possible to #define gcd to an alias.
109706         * lib/gcd.c: Include config.h.
109708 2006-10-10  Bruno Haible  <bruno@clisp.org>
109710         Make it possible to #define c_isascii to an alias.
109711         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
109712         defined. Undefine the macros before defining them, to avoid gcc
109713         warnings.
109714         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
109715         define NO_C_CTYPE_MACROS early.
109717 2006-10-10  Bruno Haible  <bruno@clisp.org>
109719         Make it possible to #define set_program_name to an alias.
109720         * lib/progname.c: Don't undefine set_program_name; instead, undefine
109721         ENABLE_RELOCATABLE early.
109723 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
109725         Port to Tandem NSK OSS, which has 64-bit signed int but at most
109726         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
109727         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
109728         More generally, don't assume that 64-bit signed int is available
109729         if unsigned int is, and vice versa.
109730         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
109731         unsigned symbols, not on their signed counterparts.
109732         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
109733         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
109734         (UINT64_C, UINTMAX_C):
109735         Likewise.
109736         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
109737         unsigned counterparts.
109738         (Have_long_long, Unsigned): New macros.
109739         (Int): Renamed from INT.
109740         (strtoimax): Use the new macros.
109741         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
109742         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
109743         * modules/inttypes (inttypes.h): Substitute
109744         HAVE_UNSIGNED_LONG_LONG_INT.
109745         * modules/stdint (stdint.h): Likewise.
109746         (Files): Add m4/ulonglong.m4.
109748 2006-10-10  Bruno Haible  <bruno@clisp.org>
109750         Fix a gcc -Wshadow warning.
109751         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
109752         to 'bucket'.
109753         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
109754         gl_linked_indexof_from_to): Likewise.
109755         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
109756         Likewise.
109757         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
109758         Likewise.
109759         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
109760         Reported by Eric Blake.
109762 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
109764         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
109765         for NetBSD.  Problem reported by Bruno Haible.
109767 2006-10-09  Jim Meyering  <jim@meyering.net>
109769         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
109770         Patch from Bruno Haible.
109772 2006-10-09  Jim Meyering  <jim@meyering.net>
109774         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
109775         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
109776         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
109778 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109780         Don't include <config.h> twice; this doesn't work in some cases,
109781         e.g., when config.h has "#define intmax_t long long int" and
109782         we include <config.h>, <inttypes.h>, <config.h> in that order.
109783         Problem reported by Matthew Woehlke in:
109784         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
109785         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
109786         * lib/fts-cycle.c: Don't include config.h.
109787         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
109788         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
109789         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
109790         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
109791         inttypes.h.
109792         * lib/xstrtoumax.c: Likewise.
109793         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
109794         __strtol and the like, so that this module is more like its siblings.
109795         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
109796         Remove; no longer needed now that we assume gnulib inttypes.h.
109798 2006-10-08  Bruno Haible  <bruno@clisp.org>
109800         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
109801         option.
109803 2006-10-07  Jim Meyering  <jim@meyering.net>
109805         * modules/inttypes (inttypes.h): Revert what seems to have been
109806         an inadvertent part of today's change: use "|", not "/" in the
109807         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
109809 2006-10-07  Bruno Haible  <bruno@clisp.org>
109811         * modules/sublist: New file.
109813 2006-10-07  Bruno Haible  <bruno@clisp.org>
109815         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
109816         * modules/argz (argz.h): Likewise.
109817         * modules/arpa_inet (arpa/inet.h): Likewise.
109818         * modules/byteswap (byteswap.h): Likewise.
109819         * modules/configmake (configmake.h): Likewise.
109820         * modules/fcntl (fcntl.h): Likewise.
109821         * modules/fnmatch (fnmatch.h): Likewise.
109822         * modules/getopt (getopt.h): Likewise.
109823         * modules/glob (glob.h): Likewise.
109824         * modules/inttypes (inttypes.h): Likewise.
109825         * modules/netinet_in (netinet/in.h): Likewise.
109826         * modules/poll (poll.h): Likewise.
109827         * modules/stdbool (stdbool.h): Likewise.
109828         * modules/stdint (stdint.h): Likewise.
109829         * modules/sys_select (sys/select.h): Likewise.
109830         * modules/sys_socket (sys/socket.h): Likewise.
109831         * modules/sys_stat (sys/stat.h): Likewise.
109832         * modules/sysexits (sysexits.h): Likewise.
109833         * modules/unistd (unistd.h): Likewise.
109834         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109835         Add a "DO NOT EDIT" comment to the generated file.
109836         (func_import): Likewise for gnulib-comp.m4.
109838 2006-10-07  Bruno Haible  <bruno@clisp.org>
109840         * lib/gl_sublist.h: New file.
109841         * lib/gl_sublist.c: New file.
109843 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
109845         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
109846         name (relative to the original working directory) and the file
109847         name component (relative to the temporary working directory).  All
109848         callers changed.
109849         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
109850         * lib/mkdir-p.c (make_dir_parents): Likewise.
109851         * lib/mkdir-p.h (make_dir_parents): Likewise.
109853 2006-10-06  Eric Blake  <ebb9@byu.net>
109855         Define several macros for use by the clean-temp module.
109856         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
109857         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
109858         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
109860         * lib/clean-temp.h (close_stream_temp): New declaration.
109861         * lib/clean-temp.c (includes): Pull in headers according to what
109862         other modules are in use.
109863         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
109865 2006-10-06  Bruno Haible  <bruno@clisp.org>
109867         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
109868         instead of fopen, fwriteerror.
109870 2006-10-06  Bruno Haible  <bruno@clisp.org>
109872         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
109873         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
109874         int.
109875         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
109876         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
109877         Return an error indicator.
109878         Suggested by Eric Blake.
109880 2006-10-06  Bruno Haible  <bruno@clisp.org>
109882         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
109883         Reported by Eric Blake.
109885 2006-10-06  Bruno Haible  <bruno@clisp.org>
109887         * modules/closeout (Description): Mention stderr too.
109889 2006-10-06  Bruno Haible  <bruno@clisp.org>
109890         and Paul Eggert  <eggert@cs.ucla.edu>
109892         * lib/closeout.c (close_stdout): Also close stderr.
109893         * lib/closeout.h: Update comment.
109895 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109897         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109898         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109899         * lib/dirchownmod.c: Include lchown.h.
109900         * lib/lchown.c: Don't include files that lchown.h now includes.
109901         Don't declare chown, since lchown.h now does that.
109902         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109903         (lchown): Define to rpl_chown if lchown is declared but
109904         does not exist.  Declare using a prototype if lchown is not
109905         declared.  Add a copyright notice.
109906         * lib/mkstemp.h: Include <unistd.h>.
109907         * lib/openat.c: Include lchown.h.
109909         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109910         we now test for that separately.
109911         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109912         rather than O_NOFOLLOW, when testing whether it's possible to
109913         avoid a race condition reliably.
109914         * lib/savewd.c (savewd_chdir): Likewise.
109916         Remove macros that are no longer needed now that stdint.h is
109917         reliable.
109918         * lib/fsusage.c (UINTMAX_MAX): Remove.
109919         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109920         * lib/utimecmp.c (SIZE_MAX): Remove.
109922         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109924         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109925         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109926         O_NOATIME works.
109928 2006-10-05  Bruno Haible  <bruno@clisp.org>
109930         * lib/gl_list.h (gl_sortedlist_search_from_to,
109931         gl_sortedlist_indexof_from_to): New declarations.
109932         (gl_list_implementation): New fields sortedlist_search_from_to,
109933         sortedlist_indexof_from_to.
109934         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109935         inline functions.
109936         * lib/gl_list.c (gl_sortedlist_search_from_to,
109937         gl_sortedlist_indexof_from_to): New functions.
109938         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109939         function.
109940         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109941         (gl_array_sortedlist_search_from_to): New function.
109942         (gl_array_list_implementation): Update.
109943         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109944         function.
109945         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109946         (gl_carray_sortedlist_search_from_to): New function.
109947         (gl_carray_list_implementation): Update.
109948         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109949         gl_linked_sortedlist_indexof_from_to): New functions.
109950         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109951         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109952         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109953         gl_tree_sortedlist_indexof_from_to): New functions.
109954         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109955         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109956         Update.
109957         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109958         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109959         Update.
109961 2006-10-05  Bruno Haible  <bruno@clisp.org>
109963         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109964         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109965         (struct gl_list_implementation): Add fields search_from_to,
109966         indexof_from_to. Remove fields search, indexof.
109967         (gl_list_search): Use the search_from_to method.
109968         (gl_list_search_from, gl_list_search_from_to): New functions.
109969         (gl_list_indexof): Use the indexof_from_to method.
109970         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109971         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109972         (gl_list_search_from, gl_list_search_from_to): New functions.
109973         (gl_list_indexof): Use the indexof_from_to method.
109974         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109975         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109976         gl_array_indexof. Add start_index, end_index arguments.
109977         (gl_array_search_from_to): Renamed from gl_array_search. Add
109978         start_index, end_index arguments.
109979         (gl_array_remove, gl_array_list_implementation): Update.
109980         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109981         gl_carray_indexof. Add start_index, end_index arguments.
109982         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109983         start_index, end_index arguments.
109984         (gl_carray_remove, gl_carray_list_implementation): Update.
109985         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109986         gl_linked_search. Add start_index, end_index arguments.
109987         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109988         start_index, end_index arguments.
109989         (gl_linked_remove): Update.
109990         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109991         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109992         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109993         field to 'size_t'.
109994         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109995         gl_tree_search. Add start_index, end_index arguments.
109996         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109997         start_index, end_index arguments.
109998         (gl_tree_remove): Update.
109999         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
110000         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
110001         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
110002         function.
110003         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
110004         gl_tree_search. Add start_index, end_index arguments.
110005         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
110006         start_index, end_index arguments.
110007         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
110008         Update.
110009         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
110011 2006-10-05  Bruno Haible  <bruno@clisp.org>
110013         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
110015         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
110016         fwriteerror_temp): New declarations.
110017         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
110018         (descriptors): New variable.
110019         (cleanup): First, close the descriptors.
110020         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
110021         fclose_temp, fwriteerror_temp): New functions.
110023 2006-10-04  Jim Meyering  <jim@meyering.net>
110025         * lib/fts.c (fts_open): Tiny comment change.
110027 2006-10-04  Bruno Haible  <bruno@clisp.org>
110029         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
110030         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
110031         gl_LOCK_BODY.
110032         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
110033         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
110034         gl_LOCK_EARLY_BODY.
110035         (gl_LOCK): Require gl_LOCK_BODY.
110037 2006-10-04  Bruno Haible  <bruno@clisp.org>
110039         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
110040         (gl_oset_search_atleast): New declaration.
110041         (struct gl_oset_implementation): Add field 'search_atleast'.
110042         (gl_oset_search_atleast): New inline function.
110043         * lib/gl_oset.c (gl_oset_search_atleast): New function.
110044         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
110045         (gl_array_oset_implementation): Update.
110046         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
110047         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
110048         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
110050 2006-10-04  Bruno Haible  <bruno@clisp.org>
110052         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
110054 2006-10-03  Bruno Haible  <bruno@clisp.org>
110056         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
110057         from gl_avltreehash_list_implementation.
110059 2006-10-03  Bruno Haible  <bruno@clisp.org>
110061         * lib/gl_oset.c (gl_oset_add): Fix return type.
110063 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
110065         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
110067 2006-10-02  Eric Blake  <ebb9@byu.net>
110069         * modules/strnlen (Depends-on): Add extensions.
110071 2006-10-02  Eric Blake  <ebb9@byu.net>
110073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
110074         definition in 2.60+.
110076 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
110078         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
110079         checks.
110081 2006-10-02  Bruno Haible  <bruno@clisp.org>
110083         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
110084         to the AUTOMAKE_OPTIONS.
110085         Reported by Jim Meyering.
110087 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
110089         Work around bug in Solaris 10 /proc file system:
110090         /proc/self/fd/NNN/.. isn't the parent directory of
110091         the directory whose file descriptor is NNN.  This needs to
110092         be worked around at run time, not compile time, since a
110093         program might be built on Solaris 8, where things work, and
110094         run on Solaris 10.
110095         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
110096         to use the following interface instead:
110097         (OPENAT_BUFFER_SIZE): New macro.
110098         (openat_proc_name): New function.
110099         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
110100         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
110101         Likewise.
110102         * lib/openat-proc.c: New file.
110103         * modules/openat (Files): Add lib/openat-proc.c.
110104         (Depends-on): Add same-inode, stdbool.
110105         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
110107 2006-09-29  Bruno Haible  <bruno@clisp.org>
110109         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
110110         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
110111         argument. Set stdout_closed before testing for ferror, not after.
110112         (fwriteerror, fwriteerror_no_ebadf): New functions.
110114 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110116         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
110118 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
110120         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
110121         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
110123 2006-09-28  Jim Meyering  <jim@meyering.net>
110125         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
110126         Include <unistd.h>.
110128 2006-09-28  Bruno Haible  <bruno@clisp.org>
110130         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
110131         * modules/linkedhash-list (Depends-on): Likewise.
110132         * modules/rbtreehash-list (Depends-on): Likewise.
110134 2006-09-28  Bruno Haible  <bruno@clisp.org>
110136         * lib/strndup.h: Simplify the redefinition of strndup.
110137         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
110138         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
110140 2006-09-28  Bruno Haible  <bruno@clisp.org>
110142         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
110143         * lib/gl_linkedhash_list.c: Likewise.
110144         * lib/gl_rbtreehash_list.c: Likewise.
110146 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
110148         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
110149         getaddrinfo.
110151         * lib/__fpending.h: Don't include <stdio_ext.h> unless
110152         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
110153         it causes <stdio_ext.h> to cause a compile-time error.
110154         Problem reported by Nelson H. F. Beebe.
110155         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
110156         of HAVE_DECL___PENDING.
110158         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
110159         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
110160         declaration.
110162 2006-09-27  Jim Meyering  <jim@meyering.net>
110164         This file could end up with a definition for a function
110165         named __strndup, rather than rpl_strndup on a system with
110166         incomplete weak_alias support.
110167         * lib/strndup.c (strndup): Rename from __strndup.
110168         Remove #defines that used to map __strndup to strndup.
110169         Don't use K&R prototypes.
110170         Remove LIBC-related code, since this file is not sync'd with glibc.
110171         * lib/strndup.h: Revamp, accordingly.
110172         * m4/strndup.m4: Modernize.
110174 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
110176         * modules/savewd (Depends-on): Add 'raise'.
110177         * lib/savewd.c: Include <signal.h>, for 'raise'.
110179 2006-09-26  Jim Meyering  <jim@meyering.net>
110181         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
110182         when we detect Darwin 8.7.0's acl_get_file bug.
110183         Rearrange to perform the new (below) run-test while $LIBS
110184         contains any acl-related library.  Set USE_ACL at the end.
110185         (gl_ACL_GET_FILE): New function.
110187 2006-09-26  Eric Blake  <ebb9@byu.net>
110189         * lib/verror.c: Include <config.h> unconditionally.
110191 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
110193         * modules/clock-time (Maintainer): Add self.
110194         * modules/getlogin_r (Depends-on): Add extensions.
110196 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110198         * modules/clock-time: New module.
110199         * modules/nanosleep (Depends-on): Add clock-time.
110200         * modules/gethrxtime (Depends-on): Likewise.
110201         * modules/gettime (Depends-on): Likewise.
110202         * modules/settime (Depends-on): Likewise.
110204         * modules/fts-lgpl: Depend on openat.
110205         * modules/mkancesdirs: Depend on savewd.
110206         * modules/mkdir-p: Likewise.
110208 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110210         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
110212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
110213         `gl_have_arbitrary_file_name_length_limit' to
110214         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
110215         actually works between configure runs.
110217 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110218             Bruno Haible  <bruno@clisp.org>
110220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
110222 2006-09-25  Jim Meyering  <jim@meyering.net>
110224         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
110225         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
110227 2006-09-25  Eric Blake  <ebb9@byu.net>
110229         * gnulib-tool (func_import, func_create_testdir): Fix typos in
110230         exec's in 2006-09-18 patch when shuffling fds.
110232 2006-09-25  Bruno Haible  <bruno@clisp.org>
110234         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
110235         Reported by Jim Meyering.
110237 2006-09-24  Jim Meyering  <jim@meyering.net>
110239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
110240         compare a pointer against a literal "0".  That caused failures with
110241         at least HP-UX's hpcc.
110243 2006-09-22  Simon Josefsson  <jas@extundo.com>
110245         * modules/gc-sha1:
110246         * modules/gc-md4:
110247         * modules/gc-hmac-sha1:
110248         * modules/gc-hmac-md5:
110249         * modules/gc-des:
110250         * modules/gc-arcfour: Distribute more files.
110252 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110254         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
110255         (gl_linked_iterator_from_to): Initialize struct completely.
110256         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
110257         (gl_tree_iterator_from_to): Likewise
110258         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
110259         * lib/gl_array_list.c [lint] (gl_array_iterator)
110260         (gl_array_iterator_from_to): Likewise.
110261         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
110262         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
110263         (gl_carray_iterator_from_to): Likewise.
110265         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
110266         * lib/md4.c (md4_process_block): Remove unused variable.
110267         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
110268         parentheses for clarity.
110270 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110272         * modules/bison-i18n (Depends-on): Add gettext.
110274 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110276         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
110277         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
110278         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
110279         also add missing comma that caused broken test.
110280         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
110281         stdlib.h, for `abort'.
110282         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
110283         variables.
110284         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
110285         include unistd.h if present, for `rmdir'.
110286         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
110287         variables.
110288         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
110289         in the process include standard headers for prototypes.
110290         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
110291         gets declared on GNU/Linux.
110292         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
110293         unistd.h, for `rmdir'.
110294         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
110296         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
110297         always true.
110298         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
110300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
110302 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110304         * gnulib-tool (func_version): Create output all at once.  This
110305         may help avoid triggering unnecessary SIGPIPEs, and at any
110306         rate it doesn't hurt.
110308 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110309             Bruno Haible  <bruno@clisp.org>
110311         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
110312         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110313         * m4/signed.m4 (bh_C_SIGNED): Likewise.
110315         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
110316         (gl_FUNC_VASPRINTF): Invoke it.
110318 2006-09-22  Bruno Haible  <bruno@clisp.org>
110320         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
110321         getloadavg.c as first argument.
110323 2006-09-22  Bruno Haible  <bruno@clisp.org>
110325         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
110326         at the beginning of the gl_INIT macro.
110327         * modules/getloadavg (configure.ac): Pass $gl_source_base to
110328         gl_GETLOADAVG.
110330 2006-09-22  Bruno Haible  <bruno@clisp.org>
110332         * gnulib-tool (func_create_megatestdir): Don't include the config-h
110333         module.
110334         Suggested by Ralf Wildenhues.
110336 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
110338         Import this patch from libc:
110340         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
110342         * lib/regex_internal.c (re_string_reconstruct): Handle
110343         offset < pstr->valid_raw_len && pstr->offsets_needed case.
110344         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
110345         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
110346         re_string_context_at.
110348         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
110349         now requires it.
110350         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
110351         gl_REGEX now does it for us.
110352         (gl_REGEX): Add test taken from
110353         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
110355         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
110356         Check that large offsets work.  Modernize Autoconf usages.
110357         Prefer "yes" to mean a good thing rather than a bad.
110358         Don't put "#define mkstemp" in config.h, as this might interfere
110359         with standard system headers that "#define mkstemp mkstemp64".
110361         * modules/mkstemp (Depends-on): Add extensions, so that
110362         mkstemp is visible on some platforms.
110363         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
110364         (Include): Change to "mkstemp.h" from <stdlib.h>.
110365         (Files): Add mkstemp.h.
110367         * lib/mkstemp.h: New file, since some standard headers
110368         #define mkstemp.
110369         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
110370         Include "mkstemp.h".
110371         Make the _LIBC code resemble glibc original more,
110372         e.g., use K&R style.
110373         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
110374         (mkstemp): Remove, since mkstemp.h does this for us.
110375         * lib/stdlib--.h: Include mkstemp.h.
110377         Import this patch from libc:
110379         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
110381         * lib/tempname.c (__gen_tempname): Change attempts_min
110382         into a macro.  Use preprocessor to decide how to initialize
110383         attempts [Coverity CID 67].
110385 2006-09-20  Bruno Haible  <bruno@clisp.org>
110387         * lib/mkdtemp.c: Import from libc.
110388         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
110389                 * sysdeps/posix/tempname.c (__gen_tempname): Change
110390                 attempts_min into a macro.  Use preprocessor to decide how to
110391                 initialize attempts [Coverity CID 67].
110392         2001-11-27  Paul Eggert  <eggert@twinsun.com>
110393                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
110394                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
110396 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110398         * gnulib-tool (func_exit): New function, to allow to pass the
110399         exit status portably through the trap.  Use everywhere.
110400         (--help, --version): Signal a write error.
110401         (trap): catch SIGPIPE, for write errors.
110402         Exit at the end of the trap, with the correct exit status.
110404 2006-09-19  Karl Berry  <karl@gnu.org>
110406         * doc/gnulib.texi: note about the license texinfo files.
110408 2006-09-19  Eric Blake  <ebb9@byu.net>
110410         * gnulib-tool: Avoid space-tab.
110412 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
110414         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
110415         that prevented coreutils 6.1 from building.  Problem reported
110416         by Petter Reinholdtsen.
110418 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
110420         * gnulib-tool (avoidlist): Fix typo that broke options like
110421         --avoid=lock that are used by coreutils bootstrap.
110423 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
110425         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
110426         more systematically.
110428 2006-09-18  Jim Meyering  <jim@meyering.net>
110430         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
110432 2006-09-18  Bruno Haible  <bruno@clisp.org>
110434         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
110436 2006-09-18  Bruno Haible  <bruno@clisp.org>
110438         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
110439         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
110440         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
110441         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
110442         * m4/gettext.m4: Require autoconf >= 2.52.
110443         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
110444         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
110445         of gl_cv_header_inttypes_h.
110447 2006-09-18  Bruno Haible  <bruno@clisp.org>
110449         * lib/javaversion.c: Include configmake.h.
110451 2006-09-18  Bruno Haible  <bruno@clisp.org>
110453         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
110454         avoid that the while loops be executed in a subshell.
110456 2006-09-18  Bruno Haible  <bruno@clisp.org>
110458         * MODULES.html.sh (func_module): Break long lines.
110459         Suggested by Bruce Korb <bkorb@gnu.org>.
110461 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110463         Speed up by a factor of 1.12.
110464         * gnulib-tool (nl): New variable.
110465         (func_import): Rewrite include directive extraction to only read each
110466         directive once.
110468 2006-09-17  Bruno Haible  <bruno@clisp.org>
110470         * modules/javaversion (Makefile.am): Remove DEFS setting.
110471         (Depends-on): Add configmake, for PKGDATADIR definition.
110473 2006-09-17  Bruno Haible  <bruno@clisp.org>
110475         * gnulib-tool (func_create_testdir): Rewrite all files at once.
110477 2006-09-17  Bruno Haible  <bruno@clisp.org>
110479         * gnulib-tool (func_append): New function, stolen from libtool.m4.
110480         (func_modules_transitive_closure, func_modules_add_dummy,
110481         func_modules_to_filelist, func_import, func_create_testdir,
110482         func_create_megatestdir, ...): Use it wherever possible.
110483         Suggested by Ralf Wildenhues.
110485 2006-09-16  Karl Berry  <karl@gnu.org>
110487         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
110488         to avoid sectioning errors.
110489         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
110490         [ifinfo]: blank line after @center-ed titles.
110491         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
110492         Spell FSF address consistently with others.
110493         (These changes approved by rms.)
110495 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110497         Speed up by a factor of 1.61.
110498         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
110499         already checked module names again.
110501 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110503         Speed up by a factor of 1.13.
110504         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
110505         for new_files, and the input to func_add_or_update.
110507 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110509         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
110510         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
110512 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110514         * modules/mkancesdirs (Depends-on): Add fcntl.
110515         * modules/savewd: New file.
110516         * MODULES.html.sh (File system functions): Add savewd.
110518         * modules/configmake (Makefile.am): Add support for the
110519         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
110521 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110523         * m4/savewd.m4: New file.
110525 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110527         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
110528         (dirchownmod): New arg FD.  All callers changed.
110529         Use FD rather than opening the directory ourself, as opening is
110530         now the caller's responsibility.
110531         * lib/dirchownmod.h: Likewise.
110532         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
110533         hosts that require <sys/types.h> before <sys/stat.h>.  Include
110534         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
110535         (test_dir): Remove.
110536         (mkancesdirs): Return length of prefix of FILE that has already
110537         been made, or -2 if there is a child doing the work.  Redo
110538         algorithm so that it is O(N) rather than O(N**2).  Optimize away
110539         ".", and treat ".." specially since it might stray back into
110540         already-created areas.  Use a subprocess if necessary.  New arg
110541         WD; all users changed.  MAKE_DIR function should now return 1
110542         if it creates a directory that is not readable.  Return -2 if
110543         a child process is spun off.
110544         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
110545         Adjust signature to match code.
110546         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
110547         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
110548         all users changed.
110549         * lib/savewd.c, lib/savewd.h: New files.
110551 2006-09-15  Jim Meyering  <jim@meyering.net>
110553         * modules/rename-dest-slash: New module.
110554         * MODULES.html.sh (posix_compat): Add it here.
110556         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
110558 2006-09-15  Jim Meyering  <jim@meyering.net>
110560         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
110561         file.
110563         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
110565 2006-09-15  Jim Meyering  <jim@meyering.net>
110567         * lib/rename-dest-slash.c (has_trailing_slash): Use
110568         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
110569         (rpl_rename_dest_slash): Perform the cheaper trailing slash
110570         test before testing whether SRC is a directory.
110571         Suggestions from Bruno Haible.
110573         Avoid a warning about an unused variable.
110574         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
110575         into the #ifdef block where it's used.
110577         * lib/rename-dest-slash.c: New file.
110579 2006-09-14  Bruno Haible  <bruno@clisp.org>
110581         * lib/allocsa.c: Include <config.h> unconditionally.
110582         * lib/asnprintf.c: Likewise.
110583         * lib/asprintf.c: Likewise.
110584         * lib/c-strcasecmp.c: Likewise.
110585         * lib/c-strcasestr.c: Likewise.
110586         * lib/c-strncasecmp.c: Likewise.
110587         * lib/c-strstr.c: Likewise.
110588         * lib/classpath.c: Likewise.
110589         * lib/clean-temp.c: Likewise.
110590         * lib/concatpath.c: Likewise.
110591         * lib/copy-file.c: Likewise.
110592         * lib/csharpcomp.c: Likewise.
110593         * lib/csharpexec.c: Likewise.
110594         * lib/execute.c: Likewise.
110595         * lib/fatal-signal.c: Likewise.
110596         * lib/findprog.c: Likewise.
110597         * lib/fwriteerror.c: Likewise.
110598         * lib/gl_array_list.c: Likewise.
110599         * lib/gl_array_oset.c: Likewise.
110600         * lib/gl_avltree_list.c: Likewise.
110601         * lib/gl_avltree_oset.c: Likewise.
110602         * lib/gl_avltreehash_list.c: Likewise.
110603         * lib/gl_carray_list.c: Likewise.
110604         * lib/gl_linked_list.c: Likewise.
110605         * lib/gl_linkedhash_list.c: Likewise.
110606         * lib/gl_list.c: Likewise.
110607         * lib/gl_oset.c: Likewise.
110608         * lib/gl_rbtree_list.c: Likewise.
110609         * lib/gl_rbtree_oset.c: Likewise.
110610         * lib/gl_rbtreehash_list.c: Likewise.
110611         * lib/imaxabs.c: Likewise.
110612         * lib/imaxdiv.c: Likewise.
110613         * lib/javacomp.c: Likewise.
110614         * lib/javaexec.c: Likewise.
110615         * lib/javaversion.c: Likewise.
110616         * lib/linebreak.c: Likewise.
110617         * lib/localcharset.c: Likewise.
110618         * lib/lock.c: Likewise.
110619         * lib/mbchar.c: Likewise.
110620         * lib/mbswidth.c: Likewise.
110621         * lib/mkdtemp.c: Likewise.
110622         * lib/pipe.c: Likewise.
110623         * lib/printf-args.c: Likewise.
110624         * lib/printf-parse.c: Likewise.
110625         * lib/progname.c: Likewise.
110626         * lib/progreloc.c: Likewise.
110627         * lib/readlink.c: Likewise.
110628         * lib/sh-quote.c: Likewise.
110629         * lib/stpcpy.c: Likewise.
110630         * lib/stpncpy.c: Likewise.
110631         * lib/strcasecmp.c: Likewise.
110632         * lib/strcasestr.c: Likewise.
110633         * lib/strcspn.c: Likewise.
110634         * lib/striconv.c: Likewise.
110635         * lib/strncasecmp.c: Likewise.
110636         * lib/strnlen1.c: Likewise.
110637         * lib/strstr.c: Likewise.
110638         * lib/strtok_r.c: Likewise.
110639         * lib/tls.c: Likewise.
110640         * lib/tmpdir.c: Likewise.
110641         * lib/unicodeio.c: Likewise.
110642         * lib/unsetenv.c: Likewise.
110643         * lib/vasnprintf.c: Likewise.
110644         * lib/vasprintf.c: Likewise.
110645         * lib/wait-process.c: Likewise.
110646         * lib/xallocsa.c: Likewise.
110647         * lib/xsetenv.c: Likewise.
110648         * lib/xstriconv.c: Likewise.
110650 2006-09-13  Simon Josefsson  <jas@extundo.com>
110652         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
110653         that internally, suggested by Ralf Wildenhues
110654         <Ralf.Wildenhues@gmx.de>.
110656 2006-09-13  Simon Josefsson  <jas@extundo.com>
110658         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
110659         @LIBOBJS@.
110660         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110662 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
110664         * lib/_fpending.c: Include <config.h> unconditionally, since we no
110665         longer worry about uses that don't define HAVE_CONFIG_H.
110666         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
110667         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
110668         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
110669         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
110670         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
110671         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
110672         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
110673         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
110674         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
110675         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
110676         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
110677         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
110678         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
110679         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
110680         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
110681         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
110682         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
110683         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
110684         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
110685         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
110686         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
110687         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
110688         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
110689         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
110690         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
110691         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
110692         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
110693         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
110694         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
110695         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
110696         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
110697         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
110698         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
110699         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
110700         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
110701         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
110702         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
110703         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
110704         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
110705         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
110706         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
110707         Likewise.
110709 2006-09-13  Eric Blake  <ebb9@byu.net>
110711         * lib/getopt.c: Fix typo in last commit.
110713 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
110715         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
110716         dgettext.
110718 2006-09-12  Jim Meyering  <jim@meyering.net>
110720         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
110721         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
110722         Reported by Nelson H. F. Beebe.
110724 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110726         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
110727         program_invocation_name and program_invocation_short_name are
110728         initialized.
110729         * lib/argp-namefrob.h: Move declarations of program_invocation_name
110730         and program_invocation_short_name to argp.h, so they are visible
110731         to user programs.
110732         * lib/argp.h: Likewise
110734 2006-09-10  Bruno Haible  <bruno@clisp.org>
110736         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110737         m4/inttypes_h.m4, m4/uintmax_t.m4.
110739 2006-09-10  Bruno Haible  <bruno@clisp.org>
110741         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
110742         gl_AC_TYPE_UINTMAX_T.
110744 2006-09-10  Bruno Haible  <bruno@clisp.org>
110746         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
110748 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110750         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
110751         convention.  Text proposed by Bruno Haible.
110752         (struct argp_option): Document the use of N_() wrappers.
110754         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
110755         '\v', and translate the two parts separately, instead of feeding
110756         the whole string to gettext.  This allows to exclude
110757         '\v' from the strings visible to the translator by writing doc
110758         strings as N_("..") "\v" N_("..").
110760 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
110762         * config/srclist.txt: Undo latest change; the bug was fixed.
110764 2006-09-09  Bruno Haible  <bruno@clisp.org>
110766         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
110767         assignments if building a library without libtool.
110768         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
110769         in func_emit_lib_Makefile_am.
110770         (func_import): When building a static library libfoo.a, arrange to
110771         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
110772         (func_create_testdir): Likewise.
110773         * modules/gc (configure.ac, Makefile.am): If building statically,
110774         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
110775         * modules/iconvme (configure.ac, Makefile.am): Likewise.
110776         * modules/striconv (configure.ac, Makefile.am): Likewise.
110777         Based on a suggestion by Ralf Wildenhues.
110779 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110781         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110782         Check for unistd.h too, since Autoconf doesn't assume POSIX.
110783         Also:
110785         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110786         Add year_2050_test to catch glibc bug 2821
110787         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110789         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110790         Prefer #ifdef to #if.
110792         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
110793         Return from 'main' instead of calling 'exit'.
110795 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110797         * lib/mktime.c (guess_time_tm): Fix bug where mktime
110798         returned the maximum time_t value rather than (time_t) -1.
110799         Problem originally reported by William Bardwell
110800         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110802         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110803         Moved to here ...
110804         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110805         ... from here.
110807 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110809         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
110810         2821 is fixed.
110812 2006-09-08  Jim Meyering  <jim@meyering.net>
110814         Don't make generated files read-only.  That would bother too many
110815         people.  However, do retain the ability to work when targets are
110816         read-only: remove the destination and temporary files before writing
110817         them (when generated via sed or echo), or by using the -f option for
110818         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
110819         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110820         * modules/byteswap, modules/configmake, modules/fcntl:
110821         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110822         * modules/localcharset, modules/netinet_in, modules/poll:
110823         * modules/stdbool, modules/stdint, modules/sys_select:
110824         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110826 2006-09-08  Jim Meyering  <jim@meyering.net>
110828         Avoid new build failure on FreeBSD 6.0.
110829         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
110830         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
110831         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
110833 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110835         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
110837 2006-09-07  Jim Meyering  <jim@meyering.net>
110839         Fix global typo in last change: use chmod u-w, not chmod u-x.
110840         Spotted by Paul Eggert and Bruce Korb.
110841         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110842         * modules/byteswap, modules/configmake, modules/fcntl:
110843         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110844         * modules/localcharset, modules/netinet_in, modules/poll:
110845         * modules/stdbool, modules/stdint, modules/sys_select:
110846         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110848 2006-09-06  Jim Meyering  <jim@meyering.net>
110850         Make generated files be read-only.
110851         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
110852         Ensure that each generated file is now read-only.
110853         * modules/argz: Likewise.
110854         * modules/arpa_inet: Likewise.
110855         * modules/byteswap: Likewise.
110856         * modules/configmake: Likewise.
110857         * modules/fcntl: Likewise.
110858         * modules/fnmatch: Likewise.
110859         * modules/getopt: Likewise.
110860         * modules/glob: Likewise.
110861         * modules/inttypes: Likewise.
110862         * modules/netinet_in: Likewise.
110863         * modules/poll: Likewise.
110864         * modules/stdbool: Likewise.
110865         * modules/stdint: Likewise.
110866         * modules/sys_select: Likewise.
110867         * modules/sys_socket: Likewise.
110868         * modules/sys_stat: Likewise.
110869         * modules/sysexits: Likewise.
110870         * modules/localcharset: Same as above, but continue using temporary
110871         file named "t-$@" (why different?) rather than the "$@-t" used
110872         everywhere else.
110874         * modules/sysexits (Makefile.am): Replace literal occurrences
110875         of "sysexit.h" more readable, and more consistent, "$@".
110877 2006-09-06  Bruno Haible  <bruno@clisp.org>
110879         * modules/striconv: New file.
110880         * modules/xstriconv: New file.
110881         * MODULES.html.sh (Internationalization functions): Add striconv,
110882         xstriconv.
110884 2006-09-06  Bruno Haible  <bruno@clisp.org>
110886         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
110887         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
110888         not using libtool correctly.
110890 2006-09-06  Bruno Haible  <bruno@clisp.org>
110892         * lib/striconv.h: New file.
110893         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
110894         iconvstring.c.
110895         * lib/xstriconv.h: New file.
110896         * lib/xstriconv.c: New file.
110898 2006-09-06  Bruno Haible  <bruno@clisp.org>
110900         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110901         lib_..._LDFLAGS.
110903 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110905         * lib/argz_.h: Sync from Libtool.
110907         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110908                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110910         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110912 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110914         * modules/trim: New file.
110916 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110918         * lib/trim.h: New file.
110919         * lib/trim.c: New file.
110921 2006-09-05  Bruno Haible  <bruno@clisp.org>
110923         * MODULES.html.sh (String handling): Add trim.
110925 2006-09-04  Karl Berry  <karl@gnu.org>
110927         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110928         until next release.
110930 2006-09-03  Bruno Haible  <bruno@clisp.org>
110932         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110933         correctly.
110935 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110937         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110938         not gl_GETLOADAVG.  Omit unneeded semicolons.
110939         Problems reported by Ralf Wildenhues in
110940         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110941         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110942         at the end, which is the usual gnulib style.
110944         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110945         of doing all the work ourselves.
110946         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110947         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110949 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110951         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110952         Problem reported by Ralf Wildenhues in
110953         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110955         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110956         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110958 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110960         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110961         yesterday's patch by changing test -n to test -z.
110963 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110965         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110966         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110967         the former is now obsolescent.
110969         * modules/chdir-long (Depends-on): Add fcntl.
110971 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110973         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110974         obsolescent, and programs should use gnulib instead.
110975         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110976         but with prefixes changed.
110978 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110980         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110981         or stdbool.h, because they might not exist while configuring.
110983         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110984         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110985         does that for us.
110986         (O_DIRECTORY): Remove.
110988 2006-08-31  Eric Blake  <ebb9@byu.net>
110990         * gnulib-tool: Don't let emacs change spaces to TAB.
110992 2006-08-31  Bruno Haible  <bruno@clisp.org>
110994         * gnulib-tool: When calling func_import more than once, do it in a
110995         subshell.
110996         Reported by Eric Blake <ebb9@byu.net>.
110998 2006-08-31  Bruno Haible  <bruno@clisp.org>
111000         * gnulib-tool (nl): Remove variable.
111001         (sed_transform_lib_file): Use more robust test for config-h module.
111002         (func_import): Fix typo in 2006-08-25 patch.
111004 2006-08-31  Bruno Haible  <bruno@clisp.org>
111006         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
111007         specified, augment Makefile.am variables instead of assigning them.
111009 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111011         Work around a bug in both the Linux and SunOS 64-bit kernels:
111012         nanosleep mishandles sleeps for longer than 2**31 seconds.
111013         Problem reported by Frank v Waveren in
111014         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
111015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
111016         Check for nanosleep bug.
111017         (LIB_NANOSLEEP): Append clock_gettime library if needed.
111019 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111021         Work around a bug in both the Linux and SunOS 64-bit kernels:
111022         nanosleep mishandles sleeps for longer than 2**31 seconds.
111023         Problem reported by Frank v Waveren in
111024         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
111025         * lib/nanosleep.c (BILLION): New constant.
111026         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
111027         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
111028         implementation.
111030 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111032         * modules/nanosleep (Depends-on): Add gettime.
111034 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
111035         and Simon Josefsson  <jas@extundo.com>
111036         and Oskar Liljeblad  <oskar@osk.mine.nu>
111038         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
111039         * gnulib-tool (func_import): New license type 'unmodifiable license
111040         text'.
111041         * modules/fdl: Use it.  Longer description.
111042         * module/gpl, module/lgpl: New files.
111044 2006-08-30  Jim Meyering  <jim@meyering.net>
111046         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
111047         shadowing the parameter.
111049 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111051         Sync from Libtool:
111053         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111055         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
111056         sharing with gnulib.  Report by Eric Blake.
111058 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111060         * modules/isapipe: New file.
111061         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
111063 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111065         * modules/configmake (Makefile.am): Add a comment, and omit
111066         the CONFIGMAKE_ prefix from generated macro names.  Suggested
111067         by Bruno Haible.
111069 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111071         * m4/isapipe.m4: New file.
111073 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
111075         * lib/isapipe.c, lib/isapipe.h: New files.
111077 2006-08-29  Jim Meyering  <jim@meyering.net>
111079         * modules/configmake (Makefile.am): Make configmake.h depend on
111080         Makefile.  Otherwise, a stale configmake.h could hang around.
111082 2006-08-29  Eric Blake  <ebb9@byu.net>
111084         * lib/error.c (error_at_line, print_errno_message): Match libc, after
111085         resolution of upstream bug 3044.
111087 2006-08-29  Bruno Haible  <bruno@clisp.org>
111089         * modules/localcharset (Depends-on): Add configmake.
111090         (Makefile.am): Remove setting of LIBDIR through DEFS.
111092 2006-08-29  Bruno Haible  <bruno@clisp.org>
111094         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
111095         defined.
111097 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111099         * modules/fcntl: New file.
111100         * modules/chdir-safer (Depends-on): Add fcntl.
111101         * modules/fts: Likewise.
111102         * modules/mkdir-p: Likewise.
111104         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
111105         This undoes the most recent change, since we're now addressing the
111106         problem in a different way.
111108         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
111109         into output, since the output might be called Makefile.am even
111110         if $makefile_name is something different.
111111         (func_import): Use $makefile_am rather than
111112         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
111113         empty.
111115         * modules/inttypes (Files): Add m4/inttypes-h.m4.
111117 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111119         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
111120         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
111121         recent change to stdint.m4, since we're now addressing the problem in a
111122         different way.
111124 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111126         * m4/fcntl_h.m4: New file.
111128 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
111130         * lib/fcntl_.h: New file.
111131         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
111132         the fcntl module.
111133         * lib/dirchownmod.c: Likewise.
111134         * lib/fts.c: Likewise.
111136         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
111137         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
111138         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
111139         just before including <inttypes.h>, to avoid circular inclusion.
111141 2006-08-28  Jim Meyering  <jim@meyering.net>
111143         * doc/visibility.texi: Actually read and correct the grammar of the
111144         sentence affected by yesterday's change.
111146 2006-08-28  Eric Blake  <ebb9@byu.net>
111148         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
111149         needs wrapper.
111151 2006-08-28  Eric Blake  <ebb9@byu.net>
111153         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
111155 2006-08-28  Eric Blake  <ebb9@byu.net>
111157         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
111159 2006-08-28  Bruno Haible  <bruno@clisp.org>
111161         * modules/c-strstr: New file, from GNU gettext.
111162         * MODULES.html.sh (String handling): Add c-strstr.
111164 2006-08-28  Bruno Haible  <bruno@clisp.org>
111166         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
111167         macros.
111168         Reported by Eric Blake.
111170 2006-08-28  Bruno Haible  <bruno@clisp.org>
111172         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
111173         (VASNPRINTF): Return a string of length > INT_MAX without failing.
111174         * lib/vasprintf.c: Include errno.h, limits.h.
111175         (EOVERFLOW): New fallback definition.
111176         (vasprintf): Test here whether the string length is > INT_MAX.
111177         * lib/vsnprintf.c: Include errno.h, limits.h.
111178         (EOVERFLOW): New fallback definition.
111179         (vsnprintf): Fix bug when generated string was too long for the buffer.
111180         Test here whether the string length is > INT_MAX.
111182 2006-08-28  Bruno Haible  <bruno@clisp.org>
111184         * lib/inttypes_.h (SCNX*): Remove definitions.
111185         Reported by Eric Blake.
111187 2006-08-28  Bruno Haible  <bruno@clisp.org>
111189         * lib/c-strstr.h: New file, from GNU gettext.
111190         * lib/c-strstr.c: New file, from GNU gettext.
111192 2006-08-28  Bruno Haible  <bruno@clisp.org>
111194         * gnulib-tool: Reorder some statements.
111196 2006-08-28  Bruno Haible  <bruno@clisp.org>
111198         * gnulib-tool: New option --makefile-name.
111199         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
111200         $makefile_name.
111201         (func_import): Write $makefile_name to the cache file, and read it from
111202         there unless explicitly specified. Use $makefile_name as file name
111203         instead of Makefile.am. Adjust the recommendations accordingly.
111205 2006-08-28  Bruno Haible  <bruno@clisp.org>
111207         * gnulib-tool (func_verify_module): Check against misapplying patch.
111209 2006-08-28  Bruno Haible  <bruno@clisp.org>
111211         * gnulib-tool (func_relativize, func_relconcat): New functions.
111212         Give an error if --local-dir is given with --update.
111213         Remove trailing slashes from $local_gnulib_dir.
111214         (func_import): Store the relativized $local_gnulib_dir in
111215         gnulib-cache.m4, and read it from there if not specified explicitly.
111217 2006-08-28  Bruno Haible  <bruno@clisp.org>
111219         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
111220         is the current directory. Respect also $local_gnulib_dir.
111222 2006-08-28  Bruno Haible  <bruno@clisp.org>
111223             Simon Josefsson  <jas@extundo.com>
111225         BeOS portability.
111226         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
111228 2006-08-27  Jim Meyering  <jim@meyering.net>
111230         * doc/visibility.texi: Remove duplicate word: "pointer".
111232 2006-08-26  Bruno Haible  <bruno@clisp.org>
111234         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
111235         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
111236         (Makefile.am): Create inttypes.h from inttypes_.h.
111237         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
111239         * modules/imaxabs: New file.
111241         * modules/imaxdiv: New file.
111243 2006-08-26  Bruno Haible  <bruno@clisp.org>
111245         * m4/inttypes.m4: New file.
111246         * m4/_inttypes_h.m4: Remove file.
111247         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
111248         PRI_MACROS_BROKEN.
111249         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
111251         * m4/imaxabs.m4: New file.
111253         * m4/imaxdiv.m4: New file.
111255 2006-08-26  Bruno Haible  <bruno@clisp.org>
111257         * lib/inttypes_.h: New file.
111258         * lib/inttypes.h: Remove file.
111259         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
111261         * lib/imaxabs.c: New file.
111263         * lib/imaxdiv.c: New file.
111265 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
111267         New config-h module, so that "make" output needn't be cluttered
111268         by -DHAVE_CONFIG_H.
111269         * MODULES.html.sh (Support for building libraries and executables):
111270         Add config-h.
111271         * modules/config-h: New file.
111272         * gnulib-tool (nl, sed_transform_lib_file): New vars.
111273         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
111274         the config-h module is used.
111276         New configmake module, so that "make" output needn't be cluttered
111277         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
111278         * MODULES.html.sh (Support for building libraries and executables):
111279         Add configmake.
111280         * modules/configmake: New file.
111282 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
111284         * m4/config-h.m4: New file.
111286 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
111288         * config/srclist.txt: Add elisp-comp.
111290 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
111292         * MODULES.html.sh (Support for building libraries and executables):
111293         Add elisp-comp.
111294         * build-aux/elisp-comp: New file.
111295         * modules/elisp-comp: New file.
111297 2006-08-24  Bruno Haible  <bruno@clisp.org>
111299         * gnulib-tool (func_create_testdir): Use non-default values of
111300         sourcebase and m4base.
111302 2006-08-24  Bruno Haible  <bruno@clisp.org>
111304         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
111305         HTML structure.
111307 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
111309         * modules/openat (Depends-on): Add lchown.
111311 2006-08-23  Bruno Haible  <bruno@clisp.org>
111313         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
111314         of gl_LOCK_EARLY instead of gl_LOCK.
111316 2006-08-23  Bruno Haible  <bruno@clisp.org>
111318         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
111319         on OSF/1 to no.
111320         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
111322 2006-08-23  Bruno Haible  <bruno@clisp.org>
111324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
111325         as unusable.
111327         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
111328         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
111329         (gl_LOCK): New macro.
111331 2006-08-22  Simon Josefsson  <jas@extundo.com>
111333         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
111334         to md5 module.
111336 2006-08-22  Simon Josefsson  <jas@extundo.com>
111338         * MODULES.html.sh: Add "Support for maintaining and release
111339         projects".
111341         * build-aux/gnupload: New file, from coreutils.
111343 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
111345         Avoid the need for AC_LIBSOURCES in m4 macros.
111346         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
111347         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
111348         * modules/check-version (EXTRA_DIST): Add check-version.h.
111349         * modules/crc (EXTRA_DIST): Add crc.h.
111350         * modules/des (EXTRA_DIST): Add des.h.
111351         * modules/gc (EXTRA_DIST): Add gc.h.
111352         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
111353         * modules/getline (EXTRA_DIST): Add getline.h.
111354         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
111355         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
111356         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
111357         * modules/md2 (EXTRA_DIST): Add md2.h.
111358         * modules/md4 (EXTRA_DIST): Add md4.h.
111359         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
111360         * modules/read-file (EXTRA_DIST): Add read-file.h.
111361         * modules/readline (EXTRA_DIST): Add readline.h.
111362         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
111363         rijndael-api-fst.h.
111365 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
111367         * m4/rijndael.m4 (gl_ARCFOUR):
111368         * m4/arctwo.m4 (gl_ARCTWO):
111369         * m4/check-version.m4 (gl_CHECK_VERSION):
111370         * m4/crc.m4 (gl_CRC):
111371         * m4/des.m4 (gl_DES):
111372         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
111373         * m4/gc.m4 (gl_GC):
111374         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
111375         * m4/getline.m4 (gl_FUNC_GETLINE):
111376         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
111377         * m4/hmac-md5.m4 (gl_HMAC_MD5):
111378         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
111379         * m4/md2.m4 (gl_MD2):
111380         * m4/md4.m4 (gl_MD4):
111381         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
111382         * m4/read-file.m4 (gl_FUNC_READ_FILE):
111383         * m4/readline.m4 (gl_FUNC_READLINE):
111384         * m4/rijndael.m4 (gl_RIJNDAEL):
111385         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
111386         to get the necessary .h files and whatnot.
111388 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
111390         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
111391         gnulib rather than the other way around.
111392         * config/srclistvars.sh (COREUTILS): Remove.
111394 2006-08-22  Jim Meyering  <jim@meyering.net>
111396         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
111398         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
111400 2006-08-22  Eric Blake  <ebb9@byu.net>
111402         * modules/regexprops-generic: New file.
111403         * MODULES.html.sh (Support for building documentation): List it.
111405 2006-08-22  Eric Blake  <ebb9@byu.net>
111407         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
111408         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
111409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
111410         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
111412 2006-08-22  Bruno Haible  <bruno@clisp.org>
111414         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
111415         and lib_LTLIBRARIES like the other lib_* variables.
111417 2006-08-22  Bruno Haible  <bruno@clisp.org>
111419         * build-aux/x-to-1.in: New file, from GNU gettext.
111421 2006-08-22  Bruno Haible  <bruno@clisp.org>
111423         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
111424         <utmpx.h> exists.
111426 2006-08-22  Bruno Haible  <bruno@clisp.org>
111428         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
111429         <utmpx.h> exists.
111431 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111433         BeOS portability.
111434         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
111435         exist.
111436         Problem reported by Bruno Haible.
111438 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111440         Avoid the need for AC_LIBSOURCES in m4 macros.
111441         * modules/acl (EXTRA_DIST): Add acl.h.
111442         * modules/argmatch (Files): Add m4/argmatch.m4.
111443         (configure.ac): Add gl_ARGMATCH.
111444         (EXTRA_DIST): Renamed from lib_SOURCES, for
111445         consistency with the other modules.  Remove argmatch.c.
111446         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
111447         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
111448         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
111449         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
111450         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
111451         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
111452         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
111453         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
111454         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
111455         * modules/closeout (EXTRA_DIST): Add closeout.h.
111456         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
111457         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
111458         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
111459         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
111460         dirname.h; remove basename.c and stripslash.c.
111461         * modules/exclude (EXTRA_DIST): Add exclude.h.
111462         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
111463         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
111464         * modules/file-type (EXTRA_DIST): Add file-type.h.
111465         * modules/filemode (EXTRA_DIST): Add filemode.h.
111466         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
111467         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111468         * modules/fpending (EXTRA_DIST): Add __fpending.h.
111469         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
111470         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
111471         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
111472         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
111473         * modules/getdate (EXTRA_DIST): Add getdate.c.
111474         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
111475         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
111476         * modules/getpass (EXTRA_DIST): Add getpass.h.
111477         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
111478         * modules/group-member (EXTRA_DIST): Add group-member.h.
111479         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
111480         * modules/hash (EXTRA_DIST): Add hash.h.
111481         * modules/human (EXTRA_DIST): Add human.h.
111482         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
111483         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
111484         * modules/lchown (EXTRA_DIST): Add lchown.h.
111485         * modules/long-options (EXTRA_DIST): Add long-options.h.
111486         * modules/lstat (EXTRA_DIST): Add lstat.h.
111487         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
111488         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
111489         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
111490         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
111491         * modules/memxor (EXTRA_DIST): Add memxor.h.
111492         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
111493         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
111494         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
111495         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
111496         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
111497         * modules/physmem (EXTRA_DIST): Add physmem.h.
111498         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
111499         * modules/posixver (EXTRA_DIST): Add posixver.h.
111500         * modules/quote (EXTRA_DIST): Add quote.h.
111501         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
111502         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
111503         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
111504         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
111505         regex_internal.h regexec.c.
111506         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
111507         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
111508         * modules/same (EXTRA_DIST): Add same.h.
111509         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
111510         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
111511         * modules/savedir (EXTRA_DIST): Add savedir.h.
111512         * modules/sha1 (EXTRA_DIST): Add sha1.h.
111513         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
111514         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
111515         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
111516         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
111517         * modules/strdup (EXTRA_DIST): Add strdup.h.
111518         * modules/strftime (EXTRA_DIST): Add strftime.h.
111519         * modules/strndup (EXTRA_DIST): Add strndup.h.
111520         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
111521         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
111522         * modules/time_r (EXTRA_DIST): Add time_r.h.
111523         * modules/timespec (EXTRA_DIST): Add timespec.h.
111524         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111525         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
111526         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
111527         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
111528         * modules/userspec (EXTRA_DIST): Add userspec.h.
111529         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
111530         * modules/utimens (EXTRA_DIST): Add utimens.h.
111531         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
111532         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
111533         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
111534         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
111535         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
111536         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
111537         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
111538         * modules/yesno (EXTRA_DIST): Add yesno.h.
111540 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111542         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
111544         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
111545         * m4/dev-ino.m4, same-inode.m4: Remove.
111547         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
111548         * m4/acl.m4 (AC_FUNC_ACL):
111549         * m4/backupfile.m4 (gl_BACKUPFILE):
111550         * m4/c-strtod.m4 (gl_C99_STRTOLD):
111551         * m4/canon-host.m4 (gl_CANON_HOST):
111552         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111553         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
111554         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
111555         * m4/cloexec.m4 (gl_CLOEXEC):
111556         * m4/close-stream.m4 (gl_CLOSE_STREAM):
111557         * m4/closeout.m4 (gl_CLOSEOUT):
111558         * m4/dirfd.m4 (gl_FUNC_DIRFD):
111559         * m4/dirname.m4 (gl_DIRNAME):
111560         * m4/exclude.m4 (gl_EXCLUDE):
111561         * m4/exitfail.m4 (gl_EXITFAIL):
111562         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
111563         * m4/file-type.m4 (gl_FILE_TYPE):
111564         * m4/filemode.m4 (gl_FILEMODE):
111565         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
111566         * m4/fpending.m4 (gl_FUNC_FPENDING):
111567         * m4/fprintftime.m4 (gl_FPRINTFTIME):
111568         * m4/fts.m4 (gl_FUNC_FTS):
111569         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
111570         * m4/getdate.m4 (gl_GETDATE):
111571         * m4/gethrxtime.m4 (gl_GETHRXTIME):
111572         * m4/getpagesize.m4 (gl_GETPAGESIZE):
111573         * m4/getpass.m4 (gl_FUNC_GETPASS):
111574         * m4/gettime.m4 (gl_GETTIME):
111575         * m4/getugroups.m4 (gl_GETUGROUPS):
111576         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
111577         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
111578         * m4/hard-locale.m4 (gl_HARD_LOCALE):
111579         * m4/hash.m4 (gl_HASH):
111580         * m4/idcache.m4 (gl_IDCACHE):
111581         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
111582         * m4/lchown.m4 (gl_FUNC_LCHOWN):
111583         * m4/long-options.m4 (gl_LONG_OPTIONS):
111584         * m4/lstat.m4 (gl_FUNC_LSTAT):
111585         * m4/md5.m4 (gl_MD5):
111586         * m4/memcasecmp.m4 (gl_MEMCASECMP):
111587         * m4/memcoll.m4 (gl_MEMCOLL):
111588         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
111589         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
111590         * m4/memxor.m4 (gl_MEMXOR):
111591         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
111592         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
111593         * m4/modechange.m4 (gl_MODECHANGE):
111594         * m4/mountlist.m4 (gl_MOUNTLIST):
111595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
111596         * m4/openat.m4 (gl_FUNC_OPENAT):
111597         * m4/pathmax.m4 (gl_PATHMAX):
111598         * m4/physmem.m4 (gl_PHYSMEM):
111599         * m4/posixtm.m4 (gl_POSIXTM):
111600         * m4/posixver.m4 (gl_POSIXVER):
111601         * m4/quote.m4 (gl_QUOTE):
111602         * m4/quotearg.m4 (gl_QUOTEARG):
111603         * m4/readtokens.m4 (gl_READTOKENS):
111604         * m4/readutmp.m4 (gl_READUTMP):
111605         * m4/regex.m4 (gl_REGEX):
111606         * m4/safe-read.m4 (gl_SAFE_READ):
111607         * m4/safe-write.m4 (gl_SAFE_WRITE):
111608         * m4/same.m4 (gl_SAME):
111609         * m4/save-cwd.m4 (gl_SAVE_CWD):
111610         * m4/savedir.m4 (gl_SAVEDIR):
111611         * m4/settime.m4 (gl_SETTIME):
111612         * m4/sha1.m4 (gl_SHA1):
111613         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
111614         * m4/stat-macros.m4 (gl_STAT_MACROS):
111615         * m4/stat-time.m4 (gl_STAT_TIME):
111616         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
111617         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
111618         * m4/strdup.m4 (gl_FUNC_STRDUP):
111619         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
111620         * m4/strndup.m4 (gl_FUNC_STRNDUP):
111621         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
111622         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
111623         * m4/time_r.m4 (gl_TIME_R):
111624         * m4/timespec.m4 (gl_TIMESPEC):
111625         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
111626         * m4/unlinkdir.m4 (gl_UNLINKDIR):
111627         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
111628         * m4/userspec.m4 (gl_USERSPEC):
111629         * m4/utimecmp.m4 (gl_UTIMECMP):
111630         * m4/utimens.m4 (gl_UTIMENS):
111631         * m4/xalloc.m4 (gl_XALLOC):
111632         * m4/xgetcwd.m4 (gl_XGETCWD):
111633         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
111634         * m4/xreadlink.m4 (gl_XREADLINK):
111635         * m4/xstrtod.m4 (gl_XSTRTOD):
111636         * m4/yesno.m4 (gl_YESNO):
111637         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
111638         to get the necessary .h files and whatnot.
111640 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
111641             Bruno Haible  <bruno@clisp.org>
111643         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
111644         /bin/sh understanding of '!' conditional negation.
111646 2006-08-21  Jim Meyering  <jim@meyering.net>
111648         * modules/openat (Depends-on): Really alphabetize.
111650         * modules/acl (Depends-on): Add error and quote.
111652         * check-module (find_included_lib_files): Add at-func.c to the
111653         ok-to-include-more-than-once white list.
111655         * modules/openat (Depends-on): Add lstat.  Alphabetize.
111657 2006-08-21  Bruno Haible  <bruno@clisp.org>
111659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111660         Emit a pkgdata_DATA variable only if some snippets add contents to it.
111661         Reported by Martin Lambers <marlam@marlam.de>.
111663 2006-08-21  Bruno Haible  <bruno@clisp.org>
111665         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
111666         specify an installation location, don't emit a noinst_LIBRARIES or
111667         noinst_LTLIBRARIES assignment.
111669 2006-08-21  Bruno Haible  <bruno@clisp.org>
111671         BeOS portability.
111672         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
111673         BeOS has mbrtowc() but no <wctype.h>.
111675 2006-08-21  Bruno Haible  <bruno@clisp.org>
111677         BeOS portability.
111678         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
111679         exist.
111681 2006-08-21  Bruno Haible  <bruno@clisp.org>
111683         BeOS portability.
111684         * lib/mbchar.h: Include <wctype.h> only if it exists.
111686 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111688         Remove files that are no longer needed by their respective modules.
111689         * m4/obstack.m4: Remove.
111690         * m4/strerror_r.m4: Remove.
111691         * m4/uint32_t.m4: Remove.
111692         * m4/uintptr_t.m4: Remove.
111693         * m4/ullong_max.m4: Remove.
111694         * m4/xstrtoimax.m4: Remove.
111695         * m4/xstrtoumax.m4: Remove.
111697         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
111698         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
111699         dependencies now capture this.
111701         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
111702         Do not use AC_LIBSOURCES, since gnulib modules now do this.
111703         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
111704         * m4/human.m4 (gl_HUMAN): Likewise.
111705         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
111706         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
111708         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
111710         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
111711         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
111712         stdint.
111713         * m4/human.m4 (gl_HUMAN): Likewise.
111714         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
111715         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
111716         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111717         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111718         * m4/xstrtol (gl_XSTRTOL): Likewise.
111720         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
111721         AC_TYPE_LONG_LONG_INT.
111722         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111723         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
111724         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
111725         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111727         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
111728         on stdbool.
111730         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
111731         (gl_PREREQ_XSTRTOUL): Remove.
111733         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
111735         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
111736         mode.
111738 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111740         Add and change modules to make it easier for coreutils to use
111741         gnulib-tool.
111742         * modules/backupfile (Files): Remove m4/d-ino.m4.
111743         (Depends-on): Add d-ino.
111744         * modules/cycle-check (Depends-on): Add stdint.
111745         (lib_SOURCES): Add cycle-check.h.
111746         * modules/d-ino: New module.
111747         * modules/d-type: New module.
111748         * modules/error (Files): Remove m4/strerror_r.m4.
111749         * modules/filemode (Files): Add m4/st_dm_mode.m4.
111750         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
111751         m4/inttypes_h.m4, m4/uintmax_t.m4.
111752         (Depends-on): Add stdint.
111753         (lib_SOURCES): Add fsusage.h.
111754         * modules/getcwd (Files): Remove d-ino.m4.
111755         (Depends-on): Add d-ino.
111756         * modules/getndelim2 (Depends-on): Add stdint.
111757         * modules/glob (Files): Remove m4/d-type.m4.
111758         (Depends-on): Add d-type.
111759         * modules/host-os: New module.
111760         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
111761         m4/inttypes_h.m4, m4/uintmax_t.m4.
111762         * Depends-on: Add stdint.
111763         (lib_SOURCES): Add human.h.
111764         * modules/inttostr (Files): Remove m4/intmax_t.m4,
111765         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
111766         m4/uintmax_t.m4, m4/ulonglong.m4.
111767         (Depends-on): Add stdint.
111768         (EXTRA_DIST): Add inttostr.h.
111769         * modules/lchmod: New module.
111770         * modules/link-follow: New module.
111771         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
111772         (Depends-on): Add lchmod.
111773         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
111774         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
111775         (Depends-on): Add stdint.
111776         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
111777         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
111778         (Depends-on): Add stdint.
111779         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
111780         * modules/perl: New module.
111781         * modules/regex (Depends-on): Add stdint.
111782         * modules/rmdir-errno: New module.
111783         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111784         m4/intmax_t.m4.
111785         (Depends-on): Add stdint.
111786         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111787         m4/uintmax_t.m4.
111788         (Depends-on): Add stdint.
111789         * modules/unlink-busy: New module.
111790         * modules/utimecmp (Depends-on): Add stdint.
111791         * modules/uptime: New module.
111792         * modules/winsz-ioctl: New module.
111793         * modules/winsz-termios: New module.
111794         * modules/xnanosleep (Depends-on): Add nanosleep.
111795         * modules/ullong_max: Remove.
111796         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
111797         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
111798         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
111799         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
111800         (Depends-on): Add inttypes.
111801         (lib_SOURCES): Add xstrtol.h.
111802         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
111803         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
111804         * MODULES.html.sh: Move 'assert' into the assert section.
111805         Move 'dummy' into the linking section.
111806         Remove ullong_max.
111807         Add section for compatibility checks for POSIX:2001 functions,
111808         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
111809         winsz-ioctl, and winsz-termios into it.
111810         Add lchmod.
111811         Add top-level Misc section and put host-os, perl, and uptime
111812         into it.
111814 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111816         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
111817         now assume the stdint module.  Do not include inttypes.h.
111818         * lib/fsusage.h: Likewise.
111819         * lib/getndelim2.c: Likewise.
111820         * lib/human.h: Likewise.
111821         * lib/inttostr.h: Likewise.
111822         * lib/obstack.c: Likewise.
111823         * lib/regex_internal.h: Likewise.
111824         * lib/tempname.c: Likewise.
111825         * lib/utimecmp.c: Likewise.
111826         * lib/xstrtol.h: Likewise.
111828         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
111830         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
111831         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
111832         * lib/xtime.h: Likewise.
111834 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111836         * modules/openat (Files): Add lib/fchmodat.c.
111837         Fixes problem reported by Jay Youngman.
111839 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111841         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
111842         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
111844 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
111845             Bruno Haible  <bruno@clisp.org>
111847         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
111848         and is a script that invokes bison. Tighten the code. Add comments.
111850 2006-08-18  Jim Meyering  <jim@meyering.net>
111852         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
111853         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
111854         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
111855         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
111857 2006-08-18  Bruno Haible  <bruno@clisp.org>
111859         * modules/bison-i18n: New file.
111860         * MODULES.html.sh (Internationalization functions): Add it.
111862 2006-08-18  Bruno Haible  <bruno@clisp.org>
111864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
111865         sys/statvfs.h. When getmntinfo was found, check its declaration and
111866         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
111868 2006-08-18  Bruno Haible  <bruno@clisp.org>
111870         * m4/bison-i18n.m4: New file, from bison.
111872 2006-08-18  Bruno Haible  <bruno@clisp.org>
111874         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
111875         (ME_DUMMY): Treat "kernfs" as a dummy.
111876         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
111878 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111880         Update from coreutils.
111882         2006-08-15  Jim Meyering  <jim@meyering.net>
111884         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
111886         2006-01-17  Jim Meyering  <jim@meyering.net>
111888         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
111890         2006-01-11  Jim Meyering  <jim@meyering.net>
111892         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
111893         Check for the lchmod function.
111895 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111897         Update from coreutils.
111899         * lib/__fpending.h: Add copyright notice.
111900         * lib/fprintftime.h: Likewise.
111901         * lib/savedir.c: Use (C) in copyright notice.
111902         * lib/savedir.h: Likewise.
111904         2006-08-15  Jim Meyering  <jim@meyering.net>
111906         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111907         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111908         in support of the EXPECTED_ERRNO macro.
111909         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111910         definitions.  Instead, define the appropriate symbols and include
111911         "at-func.c".
111912         * lib/mkdirat.c (mkdirat): Likewise.
111913         * lib/fchmodat.c (fchmodat): Likewise.
111914         (ENOSYS): Remove definition.
111915         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111916         it.  Don't include "unistd--.h" -- it wasn't ever used.
111918         2006-01-17  Jim Meyering  <jim@meyering.net>
111920         Rewrite fts.c not to change the current working directory,
111921         by using openat, fstatat, fdopendir, etc..
111923         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111924         (HAVE_OPENAT_SUPPORT): Define.
111925         [_LIBC] (fchdir): Don't undef or define; no longer used.
111926         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111927         Now, this `function' always succeeds, and consumes its file descriptor
111928         parameter -- so callers must not close such FDs.  Update callers.
111929         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111930         (diropen): Add parameter, SP.  Adjust all callers.
111931         Implement using diropen_fd, rather than open.
111932         (fts_open): Initialize new member, fts_cwd_fd.
111933         Remove fts_rft-setting code.
111934         (fts_close): Close fts_cwd_fd, if necessary.
111935         (__opendir2): Define in terms of opendir or opendirat,
111936         depending on whether the FST_NOCHDIR flag is set.
111937         (fts_build): Since fts_safe_changedir consumes its FD, and since
111938         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111939         and close the dup'd file descriptor upon failure.
111940         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111941         (fts_safe_changedir): Tweak semantics to reflect that this function
111942         now calls cwd_advance_fd and hence consumes its FD argument.
111943         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111944         [struct FTS] (fts_rft): Remove now-unused member.
111945         [struct FTS] (fts_cycle.state): Improve comment.
111947         * lib/openat.c (openat_needs_fchdir): New function.
111948         * lib/openat.h (openat_needs_fchdir): Declare it.
111950 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111952         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111953         Problem and fix reported by Pádraig Brady in
111954         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111956 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111958         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111960 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111962         * lib/memcoll.c (memcoll): Optimize for the common case where the
111963         arguments are bytewise equal.
111965 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111967         * doc/regexprops-generic.texi: Add a copyright notice.
111969 2006-08-15  Bruno Haible  <bruno@clisp.org>
111971         * modules/tmpdir (License): Change to LGPL.
111973 2006-08-15  Bruno Haible  <bruno@clisp.org>
111975         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111976         module.
111978 2006-08-14  Simon Josefsson  <jas@extundo.com>
111980         * config/srclist.txt: Add gnupload.
111982 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111984         Change copyright notice from LGPL 2 to GPL 2, since that's the
111985         standard form used in the gnulib repository.
111986         * tests/test-lock.c: Likewise.
111987         * tests/test-stdint.c: Likewise.
111988         * tests/test-tls.c: Likewise.
111990         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111991         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111992         Add copyright notice.
111994         * check-module: Add copyright notice.  Output a copyright
111995         notice if "--version" is specified.
111996         * modules/COPYING: New file.
111997         * tests/test-getaddrinfo.c: Add copyright notice.
111998         * tests/test-verify.c: Likewise.
112000 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112002         Change copyright notice from LGPL 2 to GPL 2, since that's the
112003         standard form used in the gnulib repository.
112004         * lib/lock.c: LGPL -> GPL.
112005         * lib/lock.h: Likewise.
112006         * lib/strnlen1.c: Likewise.
112007         * lib/strnlen1.h: Likewise.
112008         * lib/tls.c: Likewise.
112009         * lib/tls.h: Likewise.
112010         * lib/tmpdir.c: Likewise.
112012         * lib/TODO: Remove; this belongs only in coreutils.
112014 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112016         Add copyright notices to long-enough files that lack them, since
112017         otherwise the files aren't clearly free.  Use the same notice that
112018         getdate.texi already uses.
112019         * doc/alloca-opt.texi: Add copyright notice.
112020         * doc/alloca.texi: Likewise.
112021         * doc/ctime.texi: Likewise.
112022         * doc/functions.texi: Likewise.
112023         * doc/gcd.texi: Likewise.
112024         * doc/gnulib-tool.texi: Likewise.
112025         * doc/inet_ntoa.texi: Likewise.
112026         * doc/visibility.texi: Likewise.
112028         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
112029         * doc/quote.texi: Add copyright notice.
112031         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
112032         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
112033         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
112034         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
112035         is now obsolete, and give a pointer to the Sun list.
112036         Add copyright notice.
112038 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
112040         * config/srclistvars.sh: Add copyright notice.
112042 2006-08-14  Eric Blake  <ebb9@byu.net>
112044         Import the following change from libc:
112046         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
112048         Upstream bug 2997.
112049         * lib/misc/error.c: Add space between program name and message if file
112050         name is missing.
112052 2006-08-12  Karl Berry  <karl@gnu.org>
112054         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
112055         remove, these originate in gnulib now.
112057 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112059         * doc/Makefile (standards.info standards.html standards.dvi):
112060         Also depend on make-stds.texi.
112062 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
112064         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
112065         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
112067         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
112068         in wchar_t.  Problem reported by Eric Blake.
112070         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
112071         LEN is smaller than SIZE.  Suggested by Bruno Haible.
112072         Also, help the compiler to keep LEN in a register.
112074 2006-08-11  Eric Blake  <ebb9@byu.net>
112076         * users.txt: Sort.  Add tar.
112078 2006-08-11  Bruno Haible  <bruno@clisp.org>
112080         * users.txt: New file.
112082 2006-08-11  Bruno Haible  <bruno@clisp.org>
112084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
112085         before <wchar.h>. Needed for OSF/1 and BSD/OS.
112087 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
112089         * modules/snprintf (Depends-on): Remove minmax.
112090         (Maintainer): Add self and Bruno.
112092 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
112094         * lib/.cppi-disable: Add snprintf.h, socket_.h.
112095         * lib/snprintf.c: Include <errno.h> and <limits.h>.
112096         (EOVERFLOW): Define if the system does not.
112097         Do not include "minmax.h"; it wasn't used.
112098         (snprintf): Don't assume size_t promotes to an unsigned type.
112099         Fix bug when generated string was too long for the buffer: the
112100         buffer's contents are supposed to be the initial prefix of the
112101         output.  Don't assume vasnprintf returns EOVERFLOW if the size
112102         exceeds INT_MAX; do the check ourselves.
112104         Import the following changes from libc:
112106         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
112108         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
112109         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
112110         set wc to the byte which couldn't be converted.
112111         (re_string_reconstruct): Don't clear valid_raw_len before calling
112112         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
112113         tip_context using re_string_context_at.
112115         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
112117         * lib/posix/regex.h: g++ still cannot handled [restrict].
112119         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
112121         * lib/posix/regex.h: Remove special handling for VMS.
112123 2006-08-10  Jim Meyering  <jim@meyering.net>
112125         * modules/same-inode: New module.
112126         * modules/dev-ino: New module.
112127         * modules/cycle-check: Depend on these modules, rather than simply
112128         including their .h files.
112129         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
112130         required via m4/cycle-check.m4.
112131         * modules/same: Depend on new same-inode module, rather than
112132         including same-inode.h.
112133         * modules/chdir-safer: New file.
112135         * modules/chown (Depends-on): Add stat-macros.
112137 2006-08-10  Jim Meyering  <jim@meyering.net>
112139         * m4/cycle-check.m4: New file.
112140         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
112141         * m4/dev-ino.m4, m4/same-inode.m4: New files.
112143 2006-08-10  Eric Blake  <ebb9@byu.net>
112145         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
112146         in from original proposal.
112148 2006-08-10  Eric Blake  <ebb9@byu.net>
112149         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112151         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
112152         namespace.
112154 2006-08-10  Bruno Haible  <bruno@clisp.org>
112156         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
112157         as well.
112159 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
112161         Sync from coreutils.
112163         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
112165         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
112166         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
112168 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
112170         * modules/restrict: Remove; no longer needed now that we assume
112171         Autoconf 2.59 or later.
112172         * MODULES.html.sh: Remove 'restrict'.
112173         * modules/argp (Depends-on): Remove 'restrict'.
112174         * modules/base64 (Depends-on): Likewise.
112175         * modules/gc (Depends-on): Likewise.
112176         * modules/getaddrinfo (Depends-on): Likewise.
112177         * modules/glob (Depends-on): Likewise.
112178         * modules/inet_ntop (Depends-on): Likewise.
112179         * modules/inet_pton (Depends-on): Likewise.
112180         * modules/memxor (Depends-on): Likewise.
112181         * modules/regex (Depends-on): Likewise.
112182         * modules/strtok_r (Depends-on): Likewise.
112183         * modules/time_r (Depends-on): Likewise.
112185 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
112187         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
112188         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
112189         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112190         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
112191         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
112192         * m4/memxor.m4 (gl_MEMXOR): Likewise.
112193         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
112194         gl_C_RESTRICT replaced by AC_C_RESTRICT.
112196         Merge from coreutils.
112197         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
112198         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
112199         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
112200         * m4/time_r.m4 (gl_TIME_R): Likewise.
112202 2006-08-09  Karl Berry  <karl@gnu.org>
112204         * config/srclist.txt: no more gettext-tools, per Bruno.
112206 2006-08-08  Eric Blake  <ebb9@byu.net>
112208         * modules/verror: New module.
112209         * MODULES.html.sh: Document it.
112211 2006-08-08  Eric Blake  <ebb9@byu.net>
112213         * lib/verror.h, lib/verror.c: New files.
112215 2006-08-08  Eric Blake  <ebb9@byu.net>
112217         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
112218         verror_at_line output complies with GNU Coding Standards even when
112219         file is NULL.
112221 2006-08-07  Bruno Haible  <bruno@clisp.org>
112223         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
112224         versions of AIX.
112225         Reported by Ralf Wildenhues.
112227 2006-08-07  Bruno Haible  <bruno@clisp.org>
112229         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
112230         in an AC_DEFUN. Needed so that the autoconf snippets can use
112231         AC_REQUIRE.
112233 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112235         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112236         Initialize pkgdata_DATA.
112237         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
112238         overriding it.
112240 2006-08-06  Eric Blake  <ebb9@byu.net>
112242         * lib/error.h: Fold in some upstream changes from glibc.
112243         * lib/error.c: Likewise.
112245 2006-08-04  Bruno Haible  <bruno@clisp.org>
112247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112248         Make the mostlyclean-local rule depend on mostlyclean-generic.
112249         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
112251 2006-07-31  Bruno Haible  <bruno@clisp.org>
112253         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
112254         <stdlib.h>, <string.h>.
112256 2006-07-30  Bruno Haible  <bruno@clisp.org>
112258         * modules/readlink (License): Change to LGPL.
112260 2006-07-30  Bruno Haible  <bruno@clisp.org>
112262         * modules/javaversion (Makefile.am): Distribute javaversion.java and
112263         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
112264         set PKGDATADIR to point to it.
112266 2006-07-30  Bruno Haible  <bruno@clisp.org>
112268         * modules/csharpexec (configure.ac): Comment out macro invocation.
112269         * modules/javaexec (configure.ac): Likewise.
112270         * modules/javacomp-script (configure.ac): Likewise.
112272         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
112274 2006-07-30  Bruno Haible  <bruno@clisp.org>
112276         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
112277         linked-list.
112279 2006-07-30  Bruno Haible  <bruno@clisp.org>
112281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
112283 2006-07-30  Bruno Haible  <bruno@clisp.org>
112285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112286         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
112287         get removed.
112289 2006-07-29  Bruno Haible  <bruno@clisp.org>
112291         Make it possible for gnulib-tool to work with locally modified or
112292         augmented gnulib repositories.
112293         * gnulib-tool (func_usage): Document --local-dir option.
112294         (local_gnulib_dir): New variable.
112295         Handle --local-dir option.
112296         (func_lookup_file): New function.
112297         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
112298         (func_get_description, func_get_filelist, func_get_description,
112299         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
112300         func_get_automake_snippet, func_get_include_directive,
112301         func_get_license, func_get_maintainer): Use func_lookup_file.
112302         (func_import, func_create_testdir): Use func_lookup_file.
112304 2006-07-29  Bruno Haible  <bruno@clisp.org>
112306         * modules/setenv (Depends-on): Add unistd.
112308 2006-07-29  Bruno Haible  <bruno@clisp.org>
112310         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
112312 2006-07-29  Bruno Haible  <bruno@clisp.org>
112314         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
112316 2006-07-29  Bruno Haible  <bruno@clisp.org>
112318         * gnulib-tool (import, update): If there is no Makefile.am, look at
112319         aclocal.m4, instead of bailing out.
112321 2006-07-29  Bruno Haible  <bruno@clisp.org>
112323         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
112324         Categorize the options by when they are useful.
112326 2006-07-29  Bruno Haible  <bruno@clisp.org>
112328         * gnulib-tool (func_usage): Document option --no-libtool.
112329         Handle option --no-libtool.
112330         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
112331         for changed semantics of $libtool variable.
112332         (func_import): Likewise. If libtool is not used, show this through
112333         an option --no-libtool.
112334         (func_create_testdir): Update.
112336 2006-07-29  Bruno Haible  <bruno@clisp.org>
112338         * gnulib-tool (func_import): Extend error message about missing
112339         --doc-base.
112341 2006-07-29  Bruno Haible  <bruno@clisp.org>
112343         * gnulib-tool (func_import): Don't create the $docbase directory if
112344         there is no file to store there.
112346 2006-07-29  Bruno Haible  <bruno@clisp.org>
112348         * gnulib-tool (autoconf_minversion): If a --dir option is given and
112349         relevant, look for configure.ac there, not in the current directory.
112350         Also use a simple search for AC_PREREQ, not "autoconf --trace".
112352 2006-07-29  Bruno Haible  <bruno@clisp.org>
112354         * gnulib-tool (SORT): New variable.
112355         (func_usage): Undocument --assume-autoconf option.
112356         Remove --assume-autoconf option handling.
112357         (autoconf_minversion): Determine from the contents of configure.ac.
112358         (func_import): Remove autoconf_minversion handling.
112359         Suggested by Eric Blake.
112361 2006-07-29  Bruno Haible  <bruno@clisp.org>
112363         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
112365 2006-07-29  Bruno Haible  <bruno@clisp.org>
112367         * config/srclist.txt (*setenv.[ch]): Remove rules.
112369 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112371         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
112373 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112375         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
112376         arpa/inet.h.
112378 2006-07-28  Simon Josefsson  <jas@extundo.com>
112380         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
112381         * modules/inet_pton (Depends-on): Likewise.
112383 2006-07-28  Simon Josefsson  <jas@extundo.com>
112385         * m4/netinet_in_h.m4: New file.
112387 2006-07-28  Simon Josefsson  <jas@extundo.com>
112389         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
112390         #include's.
112392 2006-07-28  Simon Josefsson  <jas@extundo.com>
112394         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
112395         #include's.
112397 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
112399         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
112400         setgid on directories only if they set these bits.
112401         * lib/modechange.h: Remove obsolete comment about masks.
112403 2006-07-28  Eric Blake  <ebb9@byu.net>
112405         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
112406         macro expansion.
112408 2006-07-28  Bruno Haible  <bruno@clisp.org>
112410         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
112412 2006-07-28  Bruno Haible  <bruno@clisp.org>
112414         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
112416 2006-07-28  Bruno Haible  <bruno@clisp.org>
112418         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
112419         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
112420         Define fallbacks.
112421         Avoids link error on FreeBSD 4.x.
112422         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
112424         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
112425         encoding.
112426         * lib/mbswidth.c (iswcntrl): Likewise.
112428 2006-07-27  Bruno Haible  <bruno@clisp.org>
112430         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
112431         test.
112433 2006-07-27  Bruno Haible  <bruno@clisp.org>
112435         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
112436         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
112437         defined.
112439 2006-07-26  Eric Blake  <ebb9@byu.net>
112441         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
112443 2006-07-26  Eric Blake  <ebb9@byu.net>
112445         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
112446         like mingw that lack mkstemp.
112447         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
112448         avoid compilation warning on mingw.
112450 2006-07-26  Bruno Haible  <bruno@clisp.org>
112452         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
112453         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
112454         INT_FAST*_MIN, INTPTR_MIN.
112456 2006-07-25  Bruno Haible  <bruno@clisp.org>
112458         * modules/version-etc (Depends-on): Add stdarg.
112460 2006-07-25  Bruno Haible  <bruno@clisp.org>
112462         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
112463         complex commands.
112465 2006-07-25  Bruno Haible  <bruno@clisp.org>
112467         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
112468         defined in <stdarg.h> or config.h.
112470 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
112472         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
112473         (gl_STDIO_SAFER): Remove.
112475 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
112477         * MODULES.html.sh (File stream based Input/Output):
112478         Add fopen-safer, tmpfile-safer; remove stdio-safer.
112479         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
112480         * modules/fopen-safer, modules/tmpfile-safer: New files.
112481         * modules/stdio-safer: Remove.
112483 2006-07-24  Bruno Haible  <bruno@clisp.org>
112485         * modules/tmpdir: New file.
112486         * MODULES.html.sh (File system functions): Add it.
112488 2006-07-24  Bruno Haible  <bruno@clisp.org>
112490         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
112491         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
112493 2006-07-24  Bruno Haible  <bruno@clisp.org>
112495         * modules/clean-temp: New file.
112497 2006-07-24  Bruno Haible  <bruno@clisp.org>
112499         * m4/tmpdir.m4: New file, from GNU gettext.
112501 2006-07-24  Bruno Haible  <bruno@clisp.org>
112503         * lib/tmpdir.h: New file, from GNU gettext.
112504         * lib/tmpdir.c: New file, from GNU gettext.
112506 2006-07-24  Bruno Haible  <bruno@clisp.org>
112508         * lib/clean-temp.h: New file, from GNU gettext.
112509         * lib/clean-temp.c: New file, from GNU gettext.
112511 2006-07-23  Eric Blake  <ebb9@byu.net>
112513         * modules/stdio-safer (Files): Add tmpfile-safer.c.
112514         (Depends-on): Add binary-io.
112516 2006-07-23  Eric Blake  <ebb9@byu.net>
112518         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
112520 2006-07-23  Eric Blake  <ebb9@byu.net>
112522         * lib/tmpfile-safer.c: New file.
112523         * lib/stdio-safer.h (fopen_safer): Add prototype.
112524         * lib/stdio--.h (tmpfile): Make safer.
112526 2006-07-23  Bruno Haible  <bruno@clisp.org>
112528         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
112529         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
112530         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
112531         gl_linked_remove_at): Use it.
112533 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112534         and Simon Josefsson <jas@extundo.com>
112536         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
112538         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
112540 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112542         * modules/close-stream: New file.
112543         * modules/closeout (Description): Make it clear that it exits
112544         with a diagnostic on error.
112545         (Depends-on): Add close-stream.  Remove fpending, stdbool.
112546         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
112548 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112550         * m4/close-stream.m4: New file.
112552 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112554         * lib/close-stream.c, lib/close-stream.h: New files.
112556 2006-07-22  Bruno Haible  <bruno@clisp.org>
112558         Merge from GNU gettext 0.15.
112560         2006-05-01  Bruno Haible  <bruno@clisp.org>
112562                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
112564         2006-07-22  Bruno Haible  <bruno@clisp.org>
112566                 * modules/javaversion: New file.
112567                 * MODULES.html.sh (Java): Add javaversion.
112569         2006-03-12  Bruno Haible  <bruno@clisp.org>
112571                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
112573         2005-12-04  Bruno Haible  <bruno@clisp.org>
112575                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
112576                 (untested).
112578         2006-06-21  Bruno Haible  <bruno@clisp.org>
112580                 Avoid warnings from recent versions of mcs.
112581                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
112582                 -o, -L, -r any more. Use options documented since mcs-1.0
112583                 instead. Similarly for -g.
112585         2005-12-04  Bruno Haible  <bruno@clisp.org>
112587                 * build-aux/csharpcomp.sh.in: Suffix for resources is
112588                 .resources, not .resource.
112590         2005-07-09  Bruno Haible  <bruno@clisp.org>
112592                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
112593                 add a .dll suffix.
112594                 Reported by Mark Junker <mjscod@gmx.de>.
112596         2006-07-22  Bruno Haible  <bruno@clisp.org>
112598                 * modules/gettext: Upgrade to gettext-0.15.
112599                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
112600                 m4/visibility.m4.
112601                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
112603 2006-07-22  Bruno Haible  <bruno@clisp.org>
112605         Merge from GNU gettext 0.15.
112607         2006-03-25  Bruno Haible  <bruno@clisp.org>
112609                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
112611         2006-07-21  Bruno Haible  <bruno@clisp.org>
112613                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
112614                 "1.1".
112616         2006-05-09  Bruno Haible  <bruno@clisp.org>
112618                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
112619                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
112620                 for the conftestver execution.
112622         2006-05-01  Bruno Haible  <bruno@clisp.org>
112624                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
112625                 optional target-version argument. Verify that the compiler
112626                 groks source of the specified source-version, or add -source
112627                 option as necessary. Verify that the compiler produces
112628                 bytecode in the specified target-version, or add -target and
112629                 -source options as necessary. Make the result of the test
112630                 available as variable CONF_JAVAC. Also log error output in
112631                 config.log.
112633         2006-03-11  Bruno Haible  <bruno@clisp.org>
112635                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
112637         2006-05-09  Bruno Haible  <bruno@clisp.org>
112639                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
112640                 CLASSPATH_SEPARATOR to a semicolon.
112642         2006-03-12  Bruno Haible  <bruno@clisp.org>
112644                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
112645                 available as variable CONF_JAVA, for subsequent autoconf
112646                 tests. Also log error output in config.log.
112648         2006-07-19  Bruno Haible  <bruno@clisp.org>
112650                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
112651                 that getline works on glibc2 systems. Needed to avoid trouble
112652                 in relocatable.c.
112653                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
112655         2005-12-04  Bruno Haible  <bruno@clisp.org>
112657                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
112658                 launcher (untested).
112660         2005-12-04  Bruno Haible  <bruno@clisp.org>
112662                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
112664         2006-07-22  Bruno Haible  <bruno@clisp.org>
112666                 * gettext.m4: Update from GNU gettext-0.15.
112667                 * nls.m4: Likewise.
112668                 * po.m4: Likewise.
112669                 * inttypes-pri.m4: Likewise.
112670                 * inttypes-h.m4: Renamed from inttypes.m4.
112671                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
112673 2006-07-22  Bruno Haible  <bruno@clisp.org>
112675         Merge from GNU gettext 0.15.
112677         2005-07-05  Bruno Haible  <bruno@clisp.org>
112679                 * printf-args.c (printf_fetchargs): Work around broken
112680                 definition of wint_t on mingw.
112682         2005-02-12  Bruno Haible  <bruno@clisp.org>
112684                 * xallocsa.h: Add extern "C" for C++.
112686         2006-05-17  Bruno Haible  <bruno@clisp.org>
112688                 Cygwin portability.
112689                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
112691         2006-04-30  Bruno Haible  <bruno@clisp.org>
112693                 * progreloc.c: Include <mach-o/dyld.h> if available.
112694                 (find_executable): Use _NSGetExecutablePath when possible.
112696         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112698                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
112699                 function.
112701         2005-12-29  Bruno Haible  <bruno@clisp.org>
112703                 * progreloc.c (set_program_name_and_installdir): Fix
112704                 compilation error.
112706         2005-12-04  Bruno Haible  <bruno@clisp.org>
112708                 Cygwin portability.
112709                 * progreloc.c: Include <windows.h> also on Cygwin.
112710                 (find_executable): Add support for Cygwin.
112711                 (set_program_name_and_installdir): Handle also platforms with
112712                 nonempty EXEEXT.
112714         2006-07-11  Bruno Haible  <bruno@clisp.org>
112716                 * javacomp.c: Fix a comment.
112717                 Reported by Jim Meyering.
112719         2006-04-30  Bruno Haible  <bruno@clisp.org>
112721                 * javacomp.h (compile_java_class): Add source_version,
112722                 target_version arguments.
112723                 * javacomp.c: Rewritten to choose only a compiler that
112724                 respects the specified source_version and target_version.
112726         2006-06-27  Bruno Haible  <bruno@clisp.org>
112728                 Assume correct S_ISDIR macro.
112729                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
112731         2006-07-22  Bruno Haible  <bruno@clisp.org>
112733                 * javaversion.h: New file, from GNU gettext.
112734                 * javaversion.c: New file, from GNU gettext.
112735                 * javaversion.java: New file, from GNU gettext.
112736                 * javaversion.class: New file, from GNU gettext.
112738         2006-05-17  Bruno Haible  <bruno@clisp.org>
112740                 Cygwin portability.
112741                 * javaexec.c (execute_java_class): Test for jview program
112742                 also on Cygwin.
112744         2006-04-09  Bruno Haible  <bruno@clisp.org>
112746                 * fatal-signal.c: Don't include string.h.
112747                 (at_fatal_signal): Use a copying loop instead of memcpy.
112749         2005-12-04  Bruno Haible  <bruno@clisp.org>
112751                 * csharpexec.c: Add support for 'clix' launcher (untested).
112752                 (execute_csharp_using_sscli): New function.
112753                 (execute_csharp_program): Call it.
112755         2006-06-21  Bruno Haible  <bruno@clisp.org>
112757                 Avoid warnings from recent versions of mcs.
112758                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
112759                 -o, -L, -r any more. Use options documented since mcs-1.0
112760                 instead. Similarly for -g.
112762         2005-07-09  Bruno Haible  <bruno@clisp.org>
112764                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
112765                 add a .dll suffix.
112766                 Reported by Mark Junker <mjscod@gmx.de>.
112768         2006-06-17  Bruno Haible  <bruno@clisp.org>
112770                 * config.charset: Update for NetBSD 3.0.
112772         2006-05-17  Bruno Haible  <bruno@clisp.org>
112774                 Cygwin portability.
112775                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
112777         2006-05-16  Bruno Haible  <bruno@clisp.org>
112779                 * localcharset.c [CYGWIN]: Include <windows.h>.
112780                 (get_charset_aliases): For Cygwin, return the same CPxxx
112781                 aliases list as under WIN32.
112782                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
112783                 the environment variables. Fall back to GetACP().
112785         2006-04-05  Bruno Haible  <bruno@clisp.org>
112787                 * config.charset: Update Juan Manuel Guerrero's address.
112789         2005-02-12  Bruno Haible  <bruno@clisp.org>
112791                 * allocsa.h: Add extern "C" for C++.
112793         2005-02-10  Bruno Haible  <bruno@clisp.org>
112795                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
112796                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
112798         2006-07-22  Bruno Haible  <bruno@clisp.org>
112800                 * gettext.h: Update to GNU gettext-0.15.
112802 2006-07-22  Bruno Haible  <bruno@clisp.org>
112804         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
112805         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
112806         lib-prefix.m4, longdouble.m4, ssize_t.m4.
112808 2006-07-21  Eric Blake  <ebb9@byu.net>
112810         * modules/stdlib-safer: New file.
112811         * MODULES.html.sh (File stream based Input/Output): Add
112812         stdlib-safer.
112814 2006-07-21  Eric Blake  <ebb9@byu.net>
112816         * lib/stdlib-safer.h: New file from coreutils, required by
112817         stdlib--.h.
112819 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
112821         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
112823 2006-07-20  Bruno Haible  <bruno@clisp.org>
112825         * gnulib-tool: Recognize new option --assume-autoconf.
112826         (autoconf_minversion): New variable.
112827         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
112829 2006-07-20  Bruno Haible  <bruno@clisp.org>
112831         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
112833 2006-07-19  Derek R. Price  <derek@ximbiot.com>
112835         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
112836         Reindent and repaginate.
112838 2006-07-19  Derek Price  <derek@ximbiot.com>
112840         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
112841         Correct grammar.
112843 2006-07-17  Bruno Haible  <bruno@clisp.org>
112845         * modules/list: New file.
112846         * modules/array-list: New file.
112847         * modules/carray-list, modules/carray-list-tests: New files.
112848         * modules/linked-list, modules/linked-list-tests: New files.
112849         * modules/avltree-list, modules/avltree-list-tests: New files.
112850         * modules/rbtree-list, modules/rbtree-list-tests: New files.
112851         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
112852         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
112853         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
112854         * modules/oset: New file.
112855         * modules/array-oset: New file.
112856         * modules/avltree-oset, modules/avltree-oset-tests: New files.
112857         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
112858         * tests/test-carray_list.c: New file.
112859         * tests/test-linked_list.c: New file.
112860         * tests/test-avltree_list.c: New file.
112861         * tests/test-rbtree_list.c: New file.
112862         * tests/test-linkedhash_list.c: New file.
112863         * tests/test-avltreehash_list.c: New file.
112864         * tests/test-rbtreehash_list.c: New file.
112865         * tests/test-avltree_oset.c: New file.
112866         * tests/test-rbtree_oset.c: New file.
112867         * MODULES.html.sh (Container data structures): New section.
112869 2006-07-17  Bruno Haible  <bruno@clisp.org>
112871         * m4/gl_list.m4: New file.
112873 2006-07-17  Bruno Haible  <bruno@clisp.org>
112875         * lib/gl_list.h: New file.
112876         * lib/gl_list.c: New file.
112877         * lib/gl_array_list.h: New file.
112878         * lib/gl_array_list.c: New file.
112879         * lib/gl_carray_list.h: New file.
112880         * lib/gl_carray_list.c: New file.
112881         * lib/gl_linked_list.h: New file.
112882         * lib/gl_linked_list.c: New file.
112883         * lib/gl_anylinked_list1.h: New file.
112884         * lib/gl_anylinked_list2.h: New file.
112885         * lib/gl_avltree_list.h: New file.
112886         * lib/gl_avltree_list.c: New file.
112887         * lib/gl_anyavltree_list1.h: New file.
112888         * lib/gl_anyavltree_list2.h: New file.
112889         * lib/gl_rbtree_list.h: New file.
112890         * lib/gl_rbtree_list.c: New file.
112891         * lib/gl_anyrbtree_list1.h: New file.
112892         * lib/gl_anyrbtree_list2.h: New file.
112893         * lib/gl_anytree_list1.h: New file.
112894         * lib/gl_anytree_list2.h: New file.
112895         * lib/gl_linkedhash_list.h: New file.
112896         * lib/gl_linkedhash_list.c: New file.
112897         * lib/gl_anyhash_list1.h: New file.
112898         * lib/gl_anyhash_list2.h: New file.
112899         * lib/gl_avltreehash_list.h: New file.
112900         * lib/gl_avltreehash_list.c: New file.
112901         * lib/gl_rbtreehash_list.h: New file.
112902         * lib/gl_rbtreehash_list.c: New file.
112903         * lib/gl_anytreehash_list1.h: New file.
112904         * lib/gl_anytreehash_list2.h: New file.
112906         * lib/gl_oset.h: New file.
112907         * lib/gl_oset.c: New file.
112908         * lib/gl_array_oset.h: New file.
112909         * lib/gl_array_oset.c: New file.
112910         * lib/gl_avltree_oset.h: New file.
112911         * lib/gl_avltree_oset.c: New file.
112912         * lib/gl_rbtree_oset.h: New file.
112913         * lib/gl_rbtree_oset.c: New file.
112914         * lib/gl_anytree_oset.h: New file.
112916 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112918         * m4/mkancesdirs.m4: New file.
112919         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112920         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112921         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112922         it.
112924 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112926         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112927         * lib/mkancesdirs.h: New files.
112928         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112929         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112930         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112931         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112932         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112933         callers changed.  Revamp internals significantly, by not
112934         attempting to create directories that are temporarily more
112935         permissive than the final results.  Do not attempt to use
112936         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112937         This removes some race conditions, fixes some bugs, and simplifies
112938         things.  Use new dirchownmod function to do owner and mode changes.
112939         * lib/mkdir-p.h: Likewise.
112940         * lib/modechange.c (octal_to_mode): New function.
112941         (struct mode_change): New member mentioned.
112942         (make_node_op_equals): New arg mentioned.  All callers changed.
112943         (mode_compile): Keep track of which mode bits the user has explicitly
112944         mentioned.
112945         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112946         New arg PMODE_BITS, to keep track of which mode bits the user
112947         mentioned; it treats S_ISUID and S_ISGID speciall.
112948         All callers changed.
112949         * lib/modechange.h: Likewise.
112951 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112953         * MODULES.html.sh: Add mkancestors.
112954         * modules/mkancesdirs: New module.
112955         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112956         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112957         The chdir-safer and afs files are now orphans; I'll remove them
112958         unless someone speaks up.
112959         Add lib/dirchownmod.c, lib/dirchownmod.h.
112960         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112961         Add lchown, mkancesdirs.
112962         (Maintainer): Add self.
112964 2006-07-15  Karl Berry  <karl@gnu.org>
112966         * gnulib-tool: help message wording/arrangement.
112968 2006-07-14  Simon Josefsson  <jas@extundo.com>
112970         * doc/gnulib.texi (Libtool and Windows): New section.
112972 2006-07-12  Simon Josefsson  <jas@extundo.com>
112974         * modules/gendocs (License): Fix license, approved by Karl.
112976 2006-07-12  Eric Blake  <ebb9@byu.net>
112978         * MODULES.html.sh: Add gendocs.
112980 2006-07-11  Eric Blake  <ebb9@byu.net>
112982         * modules/fdl: New module, to install doc/fdl.texi.
112983         * MODULES.html.sh: Add new section for documentation modules.
112984         * gnulib-tool: Avoid space-tab.
112985         (--doc-base): New option, to manage files from doc.
112987 2006-07-11  Eric Blake  <ebb9@byu.net>
112989         * m4/absolute-header.m4: Fix comments to match recent change.
112991 2006-07-11  Eric Blake  <ebb9@byu.net>
112993         * gnulib-tool: List --doc-base before --tests-base.
112995 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112997         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112999 2006-07-11  Bruno Haible  <bruno@clisp.org>
113001         * README: Mention where to put documentation.
113003 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113005         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
113007 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
113009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
113010         to stdint.m4.
113012 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
113014         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
113015         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
113016         "no/such/file/stdint.h" when there is no such file, so that
113017         the resulting C code can be parsed by dodgy compilers.
113018         Problems reported by Bob Proulx.
113020 2006-07-10  Derek R. Price  <derek@ximbiot.com>
113022         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
113023         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
113024         macros into the GNU _D_EXACT_NAMLEN.
113025         * lib/savedir.c:  Likewise.
113026         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
113028 2006-07-10  Derek R. Price  <derek@ximbiot.com>
113029         and Paul Eggert  <eggert@cs.ucla.edu>
113031         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
113032         * m4/savedir.m4:
113033         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
113034         macros into the GNU _D_EXACT_NAMLEN.
113036 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
113039         around the absolute name, to work around a problem with the HP-UX
113040         11.23 native C compiler, reported by Bob Proulx.
113042 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113044         * doc/maintain.texi, make-stds.texi: Sync from
113045         <http://savannah.gnu.org/projects/gnustandards>.
113047 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
113049         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
113051 2006-07-09  Jim Meyering  <jim@meyering.net>
113053         * m4/glob.m4: Remove a doubled word in a comment.
113055 2006-07-09  Jim Meyering  <jim@meyering.net>
113057         * lib/argp-pv.c: Remove a doubled word in a comment.
113058         * lib/check-version.c (check_version): Likewise.
113059         * lib/javacomp.c (compile_java_class): Likewise.
113061 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
113063         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
113064         for the benefit of people using Autoconf 2.60.  If you want to
113065         support older Autoconf versions you can copy m4/onceonly_2_57.m4
113066         (or m4/onceonly.m4, if pre-2.57) manually.
113068 2006-07-08  Jim Meyering  <jim@meyering.net>
113070         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
113071         comment.
113072         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
113073         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
113074         comment.
113076 2006-07-08  Jim Meyering  <jim@meyering.net>
113078         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
113080 2006-07-07  Simon Josefsson  <jas@extundo.com>
113082         * tests/test-crc.c: Change expected crc value, the test vector
113083         were probably computed using the old broken crc.c?
113085 2006-07-06  Simon Josefsson  <jas@extundo.com>
113087         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
113088         now the canonical place for the M4 file).
113090         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
113091         from the sys_socket dependency now.
113093         * modules/inet_pton (Files): Ditto.
113095         * modules/inet_ntop (Files): Ditto.
113097 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113099         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
113100         not gl_PREREQ_GETUSERSHELL.
113102 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113104         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
113105         with only one argument, for Autoconf 2.60.
113106         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
113107         expand to nothing, so add a shell command to avoid syntax error.
113108         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113110 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113112         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
113114 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113116         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
113117         no longer needed.  Check for isblank decl.
113118         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
113119         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
113120         of existence.
113122 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113124         * lib/getloadavg.c: Use __VMS, not VMS.
113125         * lib/getopt.c: Likewise.
113126         * lib/getpagesize.h: Likewise.
113127         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
113128         and probably does not work.
113130 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
113132         * lib/.cppi-disable: Add wcwidth.
113133         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
113134         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
113135         (ISGRAPH): Remove.  All uses changed to isgraph.
113136         (FOLD) [!defined _LIBC]: Remove special case.
113137         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
113138         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
113139         HAVE_ISBLANK.
113140         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
113141         case.
113143 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
113145         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
113146         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
113147         brackets.  Other minor changes to suppress some compiler
113148         warnings.
113150 2006-07-06  Derek R. Price  <derek@ximbiot.com>
113151         and Paul Eggert  <eggert@cs.ucla.edu>
113153         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
113154         of invoking obsolescent AC_HEADER_DIRENT macro.
113155         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
113156         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
113157         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
113158         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
113159         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
113160         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113161         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
113162         * m4/readdir.m4: Remove; no longer needed.
113164 2006-07-06  Derek R. Price  <derek@ximbiot.com>
113165         and Paul Eggert  <eggert@cs.ucla.edu>
113167         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
113168         Don't worry about this obsolete case any more.
113169         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
113170         directories.
113171         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
113172         worry about this obsolete case any more.
113173         * lib/fts.c: Likewise.
113174         * lib/getcwd.c: Likewise.
113175         * lib/glob.h: Likewise.
113176         * lib/savedir.c: Likewise.
113178 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
113180         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
113181         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
113182         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
113183         needed.
113184         All uses removed.
113185         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
113186         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
113187         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
113188         needed.
113189         * m4/getdate.m4 (gl_GETDATE): Likewise.
113190         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
113191         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
113192         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
113193         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
113194         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
113195         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
113196         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
113197         needed.
113199 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
113201         * lib/memcasecmp.c: Include <limits.h>.
113202         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
113203         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
113204         Don't assume isdigit succeeds only on '0' through '9'.
113206 2006-07-05  Eric Blake  <ebb9@byu.net>
113208         * modules/getaddrinfo (Depends-on): Add snprintf.
113210 2006-07-05  Eric Blake  <ebb9@byu.net>
113212         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
113213         to avoid 'header present but could not be compiled' on cygwin.
113215 2006-07-05  Eric Blake  <ebb9@byu.net>
113217         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
113218         missing from netdb.h.
113219         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
113221 2006-07-05  Derek R. Price  <derek@ximbiot.com>
113223         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
113224         no longer needed.
113225         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
113226         * m4/getdate.m4 (gl_GETDATE): Likewise.
113227         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
113228         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
113229         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
113230         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
113231         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
113233 2006-07-05  Derek R. Price  <derek@ximbiot.com>
113235         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
113236         All uses of is_space replaced by isspace.
113237         * lib/exit.h: Don't talk about STDC_HEADERS.
113238         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
113239         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
113240         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
113241         replaced by isprint etc.
113242         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
113243         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
113244         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
113245         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
113246         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
113247         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
113249 2006-07-05  Bruno Haible  <bruno@clisp.org>
113251         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
113252         the function exists, before testing against AIX.
113253         Reported by Martin Lambers <marlam@marlam.de>.
113255 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
113257         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
113258         From Mark D. Baushke.
113260 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
113262         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
113263         to the absolute name, not just one, to bypass Sun C 5.8's
113264         "warning: #include of /usr/include/... may be non-portable".
113266 2006-07-04  Eric Blake  <ebb9@byu.net>
113268         * modules/dirname-tests: New test module.
113269         * tests/test-dirname.c: New file, replacing dirname.c
113270         TEST_DIRNAME section that was recently deleted.
113272 2006-07-04  Bruno Haible  <bruno@clisp.org>
113274         Assume ANSI C header files and <ctype.h> functions.
113275         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
113276         (mbsnwidth): Use isprint, iscntrl instead.
113278 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113280         Merge from coreutils.
113281         * MODULES.html.sh: Add xstrtold.
113282         * modules/xstrtold: New file.
113283         * modules/cycle-check (Files): Add lib/same-inode.h.
113284         * modules/dirname (Files): Add m4/double-slash-root.m4.
113285         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
113286         * modules/mkdir-p (Files): Add lib/same-inode.h.
113287         * modules/same (Files): Add lib/same-inode.h.
113289 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113291         * m4/absolute-header.m4: Renamed from full-header-path.m4.
113292         This is to keep the terminology clean; POSIX talks about
113293         "absolute pathnames", not "full pathnames", but the GNU
113294         Coding Standards say to use "path" for something else;
113295         so use "absolute" to keep both sides happy.
113296         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
113297         Set gl_absolute_header, not gl_full_header_path.
113298         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
113299         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
113300         All uses changed.
113302         Merge from coreutils.
113304         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
113306         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
113307         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
113308         want to require the building of c-strtod.o.
113309         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
113310         needs -lm directly.
113311         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
113313         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113315         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
113316         --as-needed option if available.  Problem reported by Albert Chin in
113317         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
113318         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
113319         cc merely issues a bunch of annoying warnings for --as-needed
113320         (this problem was reported by Bob Proulx).  Also, try linking with
113321         -lm to detect a bug in binutils 2.16 (this problem was reported
113322         by Ralf Wildenhues).
113324         2006-06-18  Jim Meyering  <jim@meyering.net>
113326         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
113327         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
113328         macro.
113329         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
113330         also check for glibc-2.4's abort-inducing bug.
113332         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
113333         Low-probability clean-up should be to use rmdir to get rid of
113334         the just-created directory, not unlink.
113336         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
113337         configure fail, and request a bug report to inform us about it.
113338         Add a comment that, barring reports to the contrary, in 2007 we'll
113339         assume ftruncate is universally available.
113341         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
113343         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
113345         2006-03-12  Jim Meyering  <jim@meyering.net>
113347         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
113348         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
113349         * m4/same.m4 (gl_SAME): Likewise.
113350         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
113352         2006-03-11  Eric Blake  <ebb9@byu.net>
113354         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
113355         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
113356         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
113357         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
113359 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
113361         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
113362         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
113363         reported by Mark D. Baushke, one in
113364         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
113366         Merge from coreutils.
113368         * lib/.cppi-disable: Add stdint_.h.
113369         * lib/.cvsignore: Add stdint.h.
113371         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
113373         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
113374         both double and long double versions.
113375         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
113376         * lib/xstrtold.c: New file.
113377         * lib/xstrtod.h (xstrtold): New decl.
113379         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
113381         * lib/filemode.c (setst): Remove.
113382         (strmode): Rewrite to avoid setst.  This makes the code shorter,
113383         (arguably) clearer, and the generated code is a bit smaller on my
113384         Debian GNU/Linux stable x86 host.
113386         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
113388         * lib/filemode.c: Include "filemode.h" first, to test the interface.
113389         Assume that filemode.h includes sys/types.h and sys/stat.h.
113390         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
113391         (ftypelet): Reorder to put common cases first, for efficiency.
113392         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
113393         to do 'M'.
113394         (strmode): Renamed from mode_string, and now stores 12 bytes instead
113395         of 10, for compatibility with FreeBSD.  All callers changed.
113396         (filemodestring): Now stores 12 bytes instead of 10, and sets file
113397         types that can't be deduced solely from st_mode.  First arg is now a
113398         const pointer.
113399         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
113400         (strmode): Renamed from mode_string.
113401         (filemodestring): New decl.
113402         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
113403         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
113404         needed.
113405         (S_ISPORT, S_ISWHT): New macros, if not already defined.
113407         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
113409         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
113410         fsusage.h now does that.  Include fsusage.h first, to test interface.
113411         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
113412         at most one method (the old code could have generated decls that
113413         didn't conform to C89, not that this was ever exercised).
113414         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
113416         2006-03-19  Jim Meyering  <jim@meyering.net>
113418         Work even in a chroot where d_ino values for entries in "/"
113419         don't match the stat.st_ino values for the same names.
113420         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
113421         number, iterate through all entries again, using lstat instead.
113422         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
113423         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
113425         * lib/getcwd.c (__getcwd): Clarify a comment.
113426         Use memcpy in place of a call to strcpy.
113428         2006-03-12  Jim Meyering  <jim@meyering.net>
113430         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
113431         matches that of the current directory (which we're about to chdir ".."
113432         out of), then save the dev-ino of the parent, instead.
113434         * lib/same-inode.h (SAME_INODE): New file/macro.
113435         * lib/chdir-safer.c (SAME_INODE): Remove definition.
113436         Include "same-inode.h", instead.
113437         * lib/same.c: Likewise.
113438         * lib/cycle-check.h: Include "same-inode.h".
113439         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
113440         * lib/cycle-check.c (SAME_INODE): Remove definition.
113441         * lib/root-dev-ino.h: Include "same-inode.h".
113443         2006-03-11  Eric Blake  <ebb9@byu.net>
113445         * lib/same.c (same_name): s/base_name/last_component/
113446         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
113447         * lib/filenamecat.c (file_name_concat): Likewise.
113449         2006-03-11  Eric Blake  <ebb9@byu.net>,
113450                     Paul Eggert  <eggert@cs.ucla.edu>
113452         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
113453         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
113454         drive prefix.
113455         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
113456         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
113457         (last_component): New method.
113458         * lib/dirname.c (dir_len): Determine when drive letters need a
113459         subsequent slash.  Preserve // when it is special.
113460         (dir_name): Don't append dot when drive letter is absolute.
113461         [TEST_DIRNAME]: Move into a full-blown gnulib test.
113462         * lib/basename.c (base_name): New semantics - malloc the result.
113463         Preserve // when it is special.  Preserve relative files that look
113464         like drive letters.
113465         (base_len): Preserve // when it is special.
113466         (last_component): New method, similar to old base_name semantics.
113467         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
113468         base_name.  Strip redundant slashes from ///.
113470 2006-07-03  Jim Meyering  <jim@meyering.net>
113472         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
113473         macro is used before the first cycle_check call.
113475 2006-07-03  Eric Blake  <ebb9@byu.net>
113477         * modules/dirname (Depends-on): Add xstrndup.
113479 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
113481         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
113482         test cases, so that config.log is a bit easier to follow.
113484 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
113486         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
113487         both are 64 bits, since this seems to be the tradition, and this
113488         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
113489         we ever run into a host that prefers long long to long in this
113490         case, we'll need another configure-time test.  Problem reported by
113491         Jim Meyering.
113493 2006-07-02  Eric Blake  <ebb9@byu.net>
113495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
113497 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113499         * modules/inttypes (Depends-on): No longer depends on stdint.
113500         * modules/stdint (Description): Say more about assumptions.
113501         Say that the fast types might differ.  Say macros are used.
113502         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
113503         (Makefile.am): Revise list of substituted symbols to match
113504         new stdint.m4.
113505         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
113506         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
113507         * tests/test-stdint.c (verify_same_types)
113508         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
113509         the code conforms to C99/C89.
113510         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
113511         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
113513 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
113516         but fix a bug, by requiring at least 64 bits.
113517         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
113518         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
113519         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
113520         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113522         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
113523         changes.  Make 2.59 a prerequisite.  Check and substitute for
113524         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
113525         inttypes.h.  Do not use special include files; just use the
113526         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
113527         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
113528         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
113529         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
113530         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
113531         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
113532         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
113533         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
113534         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
113535         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
113536         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
113537         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
113538         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
113539         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
113540         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
113541         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
113542         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
113543         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
113544         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
113545         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
113546         WINT_MAX.  Check for C99 conformance more strictly, by detecting
113547         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
113548         not check for things that C99 does not require, e.g., int8_t.  If
113549         a test isn't needed unless <stdint.h> isn't working, and is
113550         unlikely to be needed for any other reason, then don't do it
113551         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
113552         size_t, since we assume C89 freestanding at least.  Do not check
113553         for sig_atomic_t, wchar_t, or wint_t, since the code now does
113554         the right thing even if the types are not defined.  Instead use:
113555         (gl_STDINT_TYPE_PROPERTIES): New macro.
113556         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
113557         testing whether <sys/types.h> clashes, as Autoconf does this for
113558         us now.  All uses removed.
113559         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
113560         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
113561         (gl_CHECK_TYPE_SAME):
113562         Remove; no longer needed.
113563         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
113564         exists, since we'll return 0 anyway in that case.
113565         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
113567 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113569         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
113570         possible collision with system files.
113571         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
113572         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
113573         WCHAR_MIN and WCHAR_MAX in this case.
113574         (<stddef.h>): Do not include; no longer needed.
113575         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
113576         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
113577         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
113578         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
113579         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
113580         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
113581         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
113582         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
113583         !defined(__c99))]: Include in this case too, since it's harmless
113584         now.
113585         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
113586         dangerous to do so.
113587         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
113588         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
113589         (_STDINT_MIN, _STDINT_MAX): New macros.
113590         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
113591         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
113592         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
113593         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
113594         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
113595         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
113596         macros, not typedefs; this simplifies things quite a bit.
113597         Use long int for all types narrower than int64_t.
113598         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
113599         Define in terms of long long int or int64_t or long int,
113600         not int64_t or int32_t.  This saves some compile-time testing.
113601         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
113602         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
113603         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
113604         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
113605         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
113606         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
113607         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
113608         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
113609         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
113610         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
113611         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113612         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113613         undef any previous version and define our own version, for
113614         simplicity and consistency with the new macros for types.
113615         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113616         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113617         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
113618         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
113619         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
113620         @WINT_T_SUFFIX@ to keep things simple here.
113621         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
113622         Simplify by assuming typical 8/16/32/64 host, since we're
113623         already doing that elsewhere anyway.
113624         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
113625         and assume long long int is 64 bits if available.  This
113626         speeds up 'configure'.
113628 2006-07-01  Eric Blake  <ebb9@byu.net>
113630         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
113631         Reported by Andreas Buening.
113633 2006-07-01  Eric Blake  <ebb9@byu.net>
113635         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
113637 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
113639         * lib/getaddrinfo.c: fixed typo
113641 2006-06-29  Jim Meyering  <jim@meyering.net>
113643         * modules/strftime (Maintainer): Add my name, since with the
113644         FPRINTFTIME changes strftime.c has forked from glibc.
113646 2006-06-29  Eric Blake  <ebb9@byu.net>
113648         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
113650 2006-06-29  Eric Blake  <ebb9@byu.net>
113652         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
113654 2006-06-29  Eric Blake  <ebb9@byu.net>
113656         * lib/stat_.h: New file.
113658 2006-06-29  Eric Blake  <ebb9@byu.net>
113660         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
113661         unused static function.
113663 2006-06-29  Eric Blake  <ebb9@byu.net>
113665         * doc/functions.texi (Function Portability): Document missing lstat
113666         on mingw.
113668 2006-06-29  Eric Blake  <ebb9@byu.net>
113670         * MODULES.html.sh: Add sys_stat.
113671         * modules/sys_stat: New module.
113672         * modules/mkstemp (Depends-on): Add sys_stat.
113674 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113676         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
113678 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113680         * m4/c-bs-a.m4: Removed.
113682 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113684         * lib/strftime.c: Assume strftime() exists.
113686 2006-06-29  Derek Price  <derek@ximbiot.com>
113688         * modules/c-bs-a: Removed - \a is C89.
113689         * MODULES.html.sh: Remove c-bs-a.
113691 2006-06-29  Bruno Haible  <bruno@clisp.org>
113693         * modules/wcwidth (License): Change to LGPL.
113695 2006-06-28  Simon Josefsson  <jas@extundo.com>
113697         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
113698         on _WIN32.
113700         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
113701         getnameinfo.
113703 2006-06-28  Simon Josefsson  <jas@extundo.com>
113705         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
113707 2006-06-28  Simon Josefsson  <jas@extundo.com>
113709         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
113710         functions there.  It will succeed on Windows XP, but on Windows
113711         2000 and (presumably) earlier, it will fail, and use the internal
113712         re-implementation.
113713         (use_win32_p): New function.
113714         (getaddrinfo): Use strtoul on servname, to support numeric ports.
113715         Support AI_NUMERICSERV to disable getservbyname.
113716         (getnameinfo): New function, only supports
113717         NI_NUMERICHOST|NI_NUMERICSERV for now.
113719         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
113720         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
113721         getnameinfo.
113723 2006-06-28  Eric Blake  <ebb9@byu.net>
113725         * modules/wcwidth: New file.
113726         * modules/mbchar (Depends-on): Add wcwidth.
113727         * modules/mbswidth (Depends-on): Add wcwidth.
113728         * MODULES.html.sh: Add wcwidth.
113730 2006-06-28  Eric Blake  <ebb9@byu.net>
113732         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
113733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
113735 2006-06-28  Eric Blake  <ebb9@byu.net>
113737         * lib/xvasprintf.h: Fix comments.
113739 2006-06-28  Eric Blake  <ebb9@byu.net>
113741         * lib/mbchar.h (wcwidth): Include wcwidth.h.
113742         * lib/mbswidth.c (wcwidth): Move from here...
113743         * lib/wcwidth.h: ...to this new file.
113745 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113747         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
113749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
113750         it's obsolete.
113751         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
113753 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113755         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
113756         Autoconf 2.60 says this stuff was obsolete.
113758 2006-06-28  Bruno Haible  <bruno@clisp.org>
113760         * modules/wcwidth (Files): Add m4/wchar_t.m4.
113762 2006-06-28  Bruno Haible  <bruno@clisp.org>
113764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
113765         gt_TYPE_WCHAR_T.
113767 2006-06-28  Bruno Haible  <bruno@clisp.org>
113769         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
113770         declaration for wcwidth.
113771         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
113773 2006-06-28  Bruno Haible  <bruno@clisp.org>
113775         * lib/mkdtemp.c [MINGW]: Include <io.h>.
113776         (mkdir): Define using _mkdir.
113778 2006-06-28  Bruno Haible  <bruno@clisp.org>
113780         * lib/getaddrinfo.h: Fix POSIX URL.
113781         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
113782         _WIN32.
113783         (use_win32_p): Make static.
113784         (getaddrinfo): Reject service name if it is empty or does not consist
113785         solely of decimal digits, or if its value is > 65535.
113786         (getnameinfo): Remove useless casts.
113788 2006-06-27  Simon Josefsson  <jas@extundo.com>
113790         * modules/sys_select: New file, suggested by Bruno Haible, Paul
113791         Eggert and Martin Lambers.
113793 2006-06-27  Simon Josefsson  <jas@extundo.com>
113795         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
113796         Eggert and Martin Lambers.
113798 2006-06-27  Bruno Haible  <bruno@clisp.org>
113800         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
113801         result to 0, not to empty.
113802         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
113804 2006-06-27  Bruno Haible  <bruno@clisp.org>
113806         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
113808 2006-06-26  Simon Josefsson  <jas@extundo.com>
113810         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
113811         present.
113813 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
113815         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
113816         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
113817         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
113819 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
113821         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
113823 2006-06-26  Bruno Haible  <bruno@clisp.org>
113825         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
113827 2006-06-26  Bruno Haible  <bruno@clisp.org>
113829         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
113831 2006-06-26  Bruno Haible  <bruno@clisp.org>
113833         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
113834         SGI C compiler in pre-C99 mode.
113835         Suggested by Mark D. Baushke and Larry Jones.
113837 2006-06-26  Bruno Haible  <bruno@clisp.org>
113839         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
113840         WCHAR_MAX.
113841         Reported by Mark D. Baushke and Larry Jones.
113843 2006-06-26  Bruno Haible  <bruno@clisp.org>
113845         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
113846         in pre-C99 mode.
113847         Suggested by Mark D. Baushke and Larry Jones.
113849 2006-06-23  Simon Josefsson  <jas@extundo.com>
113850             Bruno Haible  <bruno@clisp.org>
113852         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
113853         Emit mostlyclean-local rule.
113854         (func_emit_tests_Makefile_am): Likewise.
113855         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
113857 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
113859         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
113861 2006-06-23  Bruno Haible  <bruno@clisp.org>
113863         * tests/test-stdint.c: Update to match ISO C 99 Technical
113864         Corrigendum 1.
113866 2006-06-23  Bruno Haible  <bruno@clisp.org>
113868         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
113870 2006-06-23  Bruno Haible  <bruno@clisp.org>
113872         * lib/stdint_.h: Treat IRIX like OpenBSD.
113874 2006-06-23  Bruno Haible  <bruno@clisp.org>
113876         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
113877         ISO C 99 Technical Corrigendum 1.
113879 2006-06-22  Simon Josefsson  <jas@extundo.com>
113881         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
113882         MinGW.
113884 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113886         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
113887         needed.  Some compiler complained about some of them.  Problem reported
113888         by Larry Jones in
113889         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
113891 2006-06-21  Simon Josefsson  <jas@extundo.com>
113893         * tests/test-getaddrinfo.c: New file.
113895         * modules/getaddrinfo-tests: New file.
113897         * MODULES.html.sh: Add inet_pton.
113899         * modules/inet_pton: New file.
113901 2006-06-21  Simon Josefsson  <jas@extundo.com>
113903         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113904         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113905         of using the (limited) gnulib implementation on Windows XP.
113907         * m4/inet_pton.m4: New file.
113909 2006-06-21  Simon Josefsson  <jas@extundo.com>
113911         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113912         variable.
113914         * lib/socket_.h: Don't define WINVER.
113916         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113917         slightly modified to work in gnulib.
113919 2006-06-21  Simon Josefsson  <jas@extundo.com>
113921         * doc/gnulib.texi (Windows sockets): Add.
113923 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113925         * lib/read-file.c (fread_file): Start with buffer allocation of
113926         0 bytes rather than 1 byte; this simplifies the code.
113927         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113928         code to free buffer and save/restore errno.
113929         (internal_read_file): Remove unused local.
113931 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113933         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113934         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113935         Problem reported by Denis Excoffier in
113936         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113938 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113940         * modules/sys_socket, modules/socklen: Include sys/types since
113941         FreeBSD 4.x's sys/socket.h needs it.
113943 2006-06-19  Simon Josefsson  <jas@extundo.com>
113945         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113947 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113949         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113951 2006-06-19  Bruno Haible  <bruno@clisp.org>
113953         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113954         and FULL_PATH_INTTYPES_H in angle brackets.
113955         Reported by Mark D. Baushke <mdb@gnu.org>.
113957 2006-06-17  Eric Blake  <ebb9@byu.net>
113959         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113960         errno.
113962 2006-06-17  Bruno Haible  <bruno@clisp.org>
113964         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113965         <sys/inttypes.h>.
113967 2006-06-17  Bruno Haible  <bruno@clisp.org>
113969         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113970         whether errno is declared. Assume <errno.h> declares errno.
113972 2006-06-17  Bruno Haible  <bruno@clisp.org>
113974         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113976 2006-06-17  Bruno Haible  <bruno@clisp.org>
113978         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113979         problem on Solaris 2.5.1.
113981 2006-06-16  Eric Blake  <ebb9@byu.net>
113983         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113984         * lib/unicodeio.c [!defined errno]: Likewise.
113985         * lib/strtol.c [!defined errno]: Likewise.
113986         * lib/strtod.c [!defined errno]: Likewise.
113988 2006-06-15  Eric Blake  <ebb9@byu.net>
113990         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113992 2006-06-15  Eric Blake  <ebb9@byu.net>
113994         * config/srclist.txt (ssize_t.m4): Lose sync.
113996 2006-06-15  Bruno Haible  <bruno@clisp.org>
113998         * modules/stdint (Files): Include m4/full-header-path.m4,
113999         m4/size_max.m4, m4/wchar_t.m4.
114000         (Makefile.am): Many more substitutions.
114001         * modules/stdint-tests: New file.
114002         * tests/test-stdint.c: New file.
114004 2006-06-15  Bruno Haible  <bruno@clisp.org>
114006         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
114007         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
114008         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
114009         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
114010         gl_CHECK_TYPE_SAME): New macros.
114012 2006-06-15  Bruno Haible  <bruno@clisp.org>
114014         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
114016 2006-06-15  Bruno Haible  <bruno@clisp.org>
114018         * lib/stdint_.h: Rewritten to be fully auto-configured.
114019         Fixes bug on HP-UX/IA64.
114021 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
114023         * lib/getdate.y (__attribute__): Don't define if already defined.
114024         Problem reported by Larry Jones.
114025         * lib/utimens.c (__attribute__): Likewise.
114027 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
114029         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
114030         reported by Andreas Schwab.
114032 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114033             Bruno Haible  <bruno@clisp.org>
114035         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
114036         check for the declaration of strnlen and a run test that exposes the
114037         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
114038         rpl_strndup.
114040 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114041             Bruno Haible  <bruno@clisp.org>
114043         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
114045 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114047         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
114048         compile test, for Tru64 4.0D.
114050 2006-05-28  Karl Berry  <karl@gnu.org>
114052         * config/srclist.txt (printf-args.c): lose sync.
114054 2006-05-26  Martin Lambers  <marlam@marlam.de>
114056         * lib/getpass.c: Updates the test for the native W32 API, and adds
114057         missing includes, thus fixing compilation warnings.
114059 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114061         * lib/exclude.c (exclude_fnmatch): New function.
114062         (excluded_file_name): Call exclude_fnmatch.
114063         * lib/exclude.h (excluded_file_name): New prototype
114065 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
114067         * lib/tempname.c (small_open, large_open): New macros.
114068         (__open, __open64) [!_LIBC]: Remove.
114069         (__gen_tempname): Use small_open and large_open instead of __open
114070         and __open64.  This fixes a portability bug on HP-UX 11.11i
114071         reported by Simon Wing-Tang in
114072         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
114074 2006-05-24  Bruno Haible  <bruno@clisp.org>
114076         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
114077         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
114078         Reported by Thorsten Maerz <torte@netztorte.de> via
114079         Aaron Stone <aaron@serendipity.cx>.
114081 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
114084         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
114085         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
114086         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
114087         not really conditional on the cache.
114088         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
114090 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
114092         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
114093         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
114094         (my_usleep): Don't mishandle maximum value.
114096 2006-05-19  Jim Meyering  <jim@meyering.net>
114098         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
114100 2006-05-17  Bruno Haible  <bruno@clisp.org>
114102         Cygwin portability.
114103         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
114105 2006-05-17  Bruno Haible  <bruno@clisp.org>
114107         * lib/stdint_.h: Fix recognition of Cygwin.
114109 2006-05-15  Bruno Haible  <bruno@clisp.org>
114111         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
114112         on libtool patch by Ralf Wildenhues.
114114 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
114116         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
114117         test for C99 conformance; (bool) 0.5 is an integer constant
114118         expression, but (bool) -0.5 is not.  Problem reported by Fedor
114119         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
114121 2006-05-11  Simon Josefsson  <jas@extundo.com>
114123         * m4/xvasprintf.m4: Fix obvious typo.
114125 2006-05-11  Jim Meyering  <jim@meyering.net>
114127         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
114128         James Lemley.
114130 2006-05-10  Simon Josefsson  <jas@extundo.com>
114132         * lib/md4.c: Typo fix, update copyright years.
114133         (K1, K2): Don't use L because it turn computations into 64-bit on
114134         64-bit platforms.
114136 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
114138         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
114139         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
114140         unwanted sign propagation, e.g., on hosts with 64-bit int.
114141         There still are some problems with reeelly weird theoretical hosts
114142         (e.g., 33-bit int) but it's not worth worrying about now.
114143         * lib/sha1.c (rol): Likewise.
114144         (K1, K2, K3, K4): Remove unnecessary L suffix.
114146 2006-05-10  Bruno Haible  <bruno@clisp.org>
114148         * lib/des.c: Cast to avoid warnings.
114150 2006-05-09  Bruno Haible  <bruno@clisp.org>
114152         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
114153         (Depends-on): Depend also on xsize, stdarg.
114154         (configure.ac): Add gl_XVASPRINTF.
114156 2006-05-09  Bruno Haible  <bruno@clisp.org>
114158         * m4/xvasprintf.m4: New file.
114160 2006-05-09  Bruno Haible  <bruno@clisp.org>
114162         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
114163         (EOVERFLOW): Define fallback value.
114164         (xstrcat): New function.
114165         (xvasprintf): Recognize the special case of a string concatenation.
114167 2006-05-08  Eric Blake  <ebb9@byu.net>
114169         * gnulib-tool (func_version): Base copyright year on CVS date.
114170         (func_emit_copyright_notice): New function.
114171         (func_emit_lib_Makefile_am): Use it.
114172         (func_emit_tests_Makefile_am): Likewise.
114173         (func_import): Likewise.
114175 2006-05-08  Bruno Haible  <bruno@clisp.org>
114177         * modules/stdarg: New file.
114178         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
114180 2006-05-08  Bruno Haible  <bruno@clisp.org>
114182         * m4/stdarg.m4: New file, from GNU gettext.
114184 2006-05-08  Bruno Haible  <bruno@clisp.org>
114186         * config/srclist.txt (build-aux/config.rpath): different from latest
114187         release.
114189 2006-05-08  Bruno Haible  <bruno@clisp.org>
114191         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
114193 2006-05-05  Jim Meyering  <jim@meyering.net>
114195         * m4/warning.m4: New file, derived from bison's file by the same name.
114197 2006-05-03  Bruno Haible  <bruno@clisp.org>
114199         * lib/stdint_.h: Shorter URL.
114200         * lib/inttypes.h: Likewise.
114202 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
114204         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
114206 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
114208         * lib/verify.h: Document the internals better.  Most of this change
114209         was written by Bruno Haible.
114211 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
114213         * doc/verify.texi: New file, partly based on a proposal by
114214         Bruno Haible.
114216 2006-05-02  Bruno Haible  <bruno@clisp.org>
114218         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
114219         test from here...
114220         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
114222 2006-04-29  Bruno Haible  <bruno@clisp.org>
114224         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
114225         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
114227 2006-04-29  Bruno Haible  <bruno@clisp.org>
114229         * gnulib-tool: Make --update option actually work.
114231 2006-04-29  Bruno Haible  <bruno@clisp.org>
114233         * doc/gcd.texi: New file.
114234         * doc/gnulib.texi: Include it.
114236 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
114238         * lib/getdate.y (get_date): When adding relative date, start with the
114239         initial time, not with the result of the first mktime call.
114241 2006-04-25  Bruno Haible  <bruno@clisp.org>
114243         * gnulib-tool (func_import): Output the include directives in three
114244         blocks, sorted separately.
114245         Reported by Ben Pfaff <blp@cs.stanford.edu>.
114247 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
114249         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
114250         to define main with arguments, for C++.  Reported by Eric Blake.
114251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
114252         Prefer 'int main ()' to 'int main (void)', for C++.
114253         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
114254         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
114255         for 'main', for C99 and C++.
114257 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
114259         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
114260         Don't assume that exit status -1 is valid.
114261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
114262         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
114263         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
114264         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
114265         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
114266         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
114267         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
114268         functions can be used without declaring them, or that you can
114269         exit with status -1.
114270         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
114272 2006-04-24  Karl Berry  <karl@gnu.org>
114274         * config/srclist.txt (longdouble.m4): sync lost.
114276 2006-04-24  Eric Blake  <ebb9@byu.net>
114278         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
114280 2006-04-24  Bruno Haible  <bruno@clisp.org>
114282         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
114283         poll() implementation in AIX.
114284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114286 2006-04-24  Bruno Haible  <bruno@clisp.org>
114288         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
114289         assigned exactly once.
114291 2006-04-23  Claudio Fontana  <claudio@gnu.org>
114292             Bruno Haible  <bruno@clisp.org>
114294         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
114295         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
114296         for AM_CPPFLAGS.
114298 2006-04-23  Bruno Haible  <bruno@clisp.org>
114300         * modules/copy-file: Depend on unistd.
114301         * modules/execute: Likewise.
114302         * modules/fatal-signal: Likewise.
114303         * modules/findprog: Likewise.
114304         * modules/mkdtemp : Likewise.
114305         * modules/pipe: Likewise.
114306         * modules/wait-process: Likewise.
114308 2006-04-23  Bruno Haible  <bruno@clisp.org>
114310         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
114311         condition was already detected.
114312         Reported by Ben Pfaff <blp@cs.stanford.edu>.
114314 2006-04-23  Bruno Haible  <bruno@clisp.org>
114316         * lib/copy-file.c: Include <unistd.h> unconditionally.
114317         * lib/execute.c: Likewise.
114318         * lib/fatal-signal.c: Likewise.
114319         * lib/findprog.c: Likewise.
114320         * lib/mkdtemp.c: Likewise.
114321         * lib/pipe.h: Likewise.
114322         * lib/pipe.c: Likewise.
114323         * lib/wait-process.h: Likewise.
114325 2006-04-23  Bruno Haible  <bruno@clisp.org>
114327         * gnulib-tool (func_usage): Fix --import description. Document
114328         --update.
114329         (func_import): Create temporary file in a temporary directory, if
114330         --dry-run is specified. Silence errors from 'grep' when there are no
114331         m4 files in $m4dir.
114332         (func_create_testdir): Silence errors from 'grep' when there are no
114333         m4 files in $m4dir.
114334         Reported by Karl Berry <karl@freefriends.org>.
114336 2006-04-20  Bruno Haible  <bruno@clisp.org>
114338         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
114339         one argument, so that the code will be portable to Autoconf 2.60.
114340         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
114341         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114342         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
114344 2006-04-19  Derek Price  <derek@ximbiot.com>
114345             Eric Blake  <ebb9@byu.net>
114347         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
114348         rather than "/full/path.h".  Update comment to match.  Shorten &
114349         generalize m4_translit call via AS_TR_CPP.
114351 2006-04-19  Derek Price  <derek@ximbiot.com>
114352             Eric Blake  <ebb9@byu.net>
114354         * lib/inttypes.h: Correct grammar in comment.
114356 2006-04-18  Derek Price  <derek@ximbiot.com>
114357             Paul Eggert  <eggert@cs.ucla.edu>
114359         * modules/inttypes: New file.
114360         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
114362 2006-04-18  Derek Price  <derek@ximbiot.com>
114363             Paul Eggert  <eggert@cs.ucla.edu>
114365         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
114366         New files.
114368 2006-04-18  Derek Price  <derek@ximbiot.com>
114369             Paul Eggert  <eggert@cs.ucla.edu>
114371         * lib/inttypes.h: New file.
114372         * lib/strtoimax.c: Assume <inttypes.h>.
114374 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
114376         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
114377         isn't mounted.  Problem reported by Kir Kolyshkin.
114379 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
114381         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
114382         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
114383         Derek R. Price.
114384         * lib/regex.h (RE_DUP_MAX): Update comment to match current
114385         implementation.
114387 2006-04-12  Eric Blake  <ebb9@byu.net>
114389         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
114390         is now done automatically by the corresponding Autoconf macro.
114392 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
114394         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
114395         time_r.h.
114397 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114399         Merge regex changes from libc, removing some of our
114400         POSIX-conformance changes that were rejected and redoing them in a
114401         less-intrusive way.
114403         * lib/regcomp.c (re_compile_internal, init_dfa):
114404         Length arg is now size_t, not Idx.  All uses changed.
114405         (peek_token): Forward decl now says internal_function.
114406         (__re_error_msgid, __re_error_msgid_idx):
114407         Now static rather than extern with attribute_hidden.
114408         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
114409         For some reason libc prefers K&R style defns for external functions.
114410         (regerror) [!defined _LIBC]: Likewise.
114411         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
114412         (seek_collating_symbol_entry, lookup_collation_sequence_value):
114413         (build_range_exp, build_collating_symbol):
114414         Use K&R-style defn.
114415         (re_compile_fastmap): Use '\0' to memset, not 0.
114416         (utf8_sb_map): Make the calculations more obvious.
114417         (init_dfa, parse_bracket_exp, build_charclass_op):
114418         Call calloc and cast result, as glibc does.
114419         (init_word_char, fetch_token, peek_token, peek_token_bracket):
114420         (build_range_exp, build_collating_symbol):
114421         Now internal functions.
114423         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
114425         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
114426         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
114427         Don't depend on VMS; depend on __VMS instead, for POSIX
114428         namespace cleanness.
114429         (regoff_t): Define to ssize_t, not long int.
114431         Remove the REG_ macros named below.  Instead, make the old names
114432         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
114433         __USE_GNU_REGEX.
114434         (REG_BACKSLASH_ESCAPE_IN_LISTS):
114435         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
114436         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
114437         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
114438         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
114439         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
114440         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
114441         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
114442         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
114443         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
114444         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
114445         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
114446         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
114447         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
114448         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
114449         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
114450         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
114451         (REG_NREGS):
114452         Remove.  All uses replaced by the old RE_* names.
114453         (RE_BACKSLASH_ESCAPE_IN_LISTS):
114454         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
114455         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
114456         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
114457         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
114458         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
114459         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
114460         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
114461         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
114462         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
114463         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
114464         Don't bother having these macros be independent of each others'
114465         values, since they no longer exist in the POSIX name space.
114467         Rename the following member names back to their old names,
114468         unless !__USE_GNU_REGEX.  All uses changed back.
114469         (buffer): Renamed from re_buffer.
114470         (allocated): Renamed from re_allocated.
114471         (used): Renamed from re_used.
114472         (syntax): Renamed from re_syntax.
114473         (fastmap): Renamed from re_fastmap.
114474         (translate): Renamed from re_translate.
114475         (can_be_null): Renamed from re_can_be_null.
114476         (regs_allocated): Renamed from re_regs_allocated.
114477         (fastmap_accurate): Renamed from re_fastmap_accurate.
114478         (no_sub): Renamed from re_no_sub.
114479         (not_bol): Renamed from re_not_bol.
114480         (not_eol): Renamed from re_not_eol.
114481         (newline_anchor): Renamed from re_newline_anchor.
114482         (num_regs): Renamed from rm_num_regs.
114483         (start): Renamed from rm_start.
114484         (end): Renamed from rm_end.
114486         (free_state): Move up a bit.
114488         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
114489         #define to be empty.
114490         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
114491         when that is what is intended.
114492         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
114493         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
114494         (MAX): New macro.
114495         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
114496         All uses changed back to re_malloc, etc.  It's now the caller's
114497         responsibility to check for overflow; all callers changed.
114498         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
114499         (re_x2nrealloc): Remove.
114500         (free_state): Remove decl.
114502         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
114503         (re_set_registers, re_exec):
114504         Use K&R-style defn.
114506         2006-01-31  Roland McGrath  <roland@redhat.com>
114508         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
114509         Reported by Mike Frysinger <vapier@gentoo.org>.
114511         2006-01-15  Andreas Jaeger  <aj@suse.de>
114513         [BZ #1950]
114514         * lib/regex_internal.c (re_string_reconstruct): Adjust for
114515         build_wcs_upper_buffer change.
114516         (build_wcs_upper_buffer): Change return type.
114518         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
114520         * lib/regex_internal.h: Include <stdint.h> if available.
114522         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
114524         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
114526         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
114528         * lib/regcomp.c: Adjust for changed secondary hash function.
114530         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
114532         * lib/regex.h: Pretty printing.
114533         Clean up namespace a bit.
114535         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
114537         * lib/regexec.c (update_cur_sifted_state, check_arrival,
114538         check_arrival_add_next_nodes): Avoid using uninitialized variable.
114540         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
114541                     Ulrich Drepper  <drepper@redhat.com>
114543         [BZ #1302]
114544         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
114545         changed.
114546         (bitset_word_t): Renamed from bitset_word.  All uses changed.
114548         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
114550         [BZ #281]
114551         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
114552         * lib/regcomp.c: Remove unnecessary uses of
114553         unsigned RE_TRANSLATE_TYPE.
114554         * lib/regex_internal.h: Likewise.
114555         * lib/regex_internal.c: Likewise.
114556         * lib/regexec.c: Likewise.
114557         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
114559         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
114561         * lib/regexec.c (find_recover_state): Remove unnecessary
114562         initialization.
114563         (transit_state_bkref): Make DFA a const pointer.
114564         (get_subexp): Likewise.
114565         (check_arrival): Likewise.
114566         (update_cur_sifted_state): Likewise.
114567         (re_search_internal): Likewise.
114568         (prune_impossible_nodes): Likewise.
114569         (acquire_init_state_context): Likewise.
114570         (proceed_next_node): Likewise.
114571         (set_regs): Likewise.
114572         (free_fail_stack_return): Likewise.
114573         (check_arrival_expand_ecl): Mark DFA parameter as const.
114574         (check_arrival_expand_ecl_sub): Likewise.
114575         (check_subexp_limits): Likewise.
114576         (sub_epsilon_src_nodes):  Likewise.
114577         (add_epsilon_src_nodes):  Likewise.
114578         (merge_state_array): Likewise.
114579         (update_regs): Likewise.
114580         (build_trtable): Likewise.
114581         (sift_states_backward): Mark MCTX parameter as const.
114582         (build_sifted_states): Likewise.
114583         (update_cur_sifted_state): Likewise.
114584         (sift_states_mkref): Likewise.
114585         (check_arrival_expand_ecl): Mark eclosure as const.
114586         (check_dst_limits_calc_pos_1): Likewise.
114587         * lib/regex_internal.h (re_match_context_t): Make dfa a const
114588         pointer.
114590         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
114592         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
114593         (transit_state_sb): Likewise.
114594         (transit_state_mb): Likewise.
114595         (sift_states_iter_mb): Likewise.
114596         (check_arrival_add_next_nodes): Likewise.
114597         (check_node_accept_bytes): Change first parameter to pointer-to-const.
114598         [_LIBC] (re_search_2_stub): Use mempcpy.
114600         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
114601         mbrtowc for very simple UTF-8 case.
114603         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
114604         a pointer-to-const.
114605         (re_acquire_state_context): Likewise.
114606         * lib/regex_internal.h: Adjust prototypes.
114608         * lib/regex.c: Prevent using C++ compilers.
114610         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
114611         (re_acquire_state_context): Likewise.
114613 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114615         * modules/regex (Depends-on): Add ssize_t.
114617 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114619         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
114620         translation table.
114622 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114624         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
114626 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
114627             Bruno Haible  <bruno@clisp.org>
114629         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
114630         <sys/types.h> and <inttypes.h>.
114632 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114634         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
114635         `__error_t_defined', so argp.h will not typedef the former.
114637 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
114639         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
114640         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
114641         glibc names.  Even if glibc is changed to conform to POSIX, the
114642         traditional names will be available anyway, since regex depends on
114643         the extensions module.  Also, fix a longstanding typo in the
114644         implementation of Spencer ERE test #75 from grep 2.3.  Problems
114645         reported by Emanuele Giaquinta.  Also, change sense of cached
114646         variable, so that the message makes sense.
114648 2006-03-24  Simon Josefsson  <jas@extundo.com>
114650         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
114651         including some doc fixes.
114652         (base64_encode_alloc): Fix +1 bug on allocation failures.
114654 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114656         * lib/base64.c (base64_encode): Do not read past end of array with
114657         unsanitized input on systems with CHAR_BIT > 8.
114659 2006-03-24  Eric Blake  <ebb9@byu.net>
114661         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
114663 2006-03-22  Karl Berry  <karl@gnu.org>
114665         * config/srclist.txt (*setenv.[ch]): get from coreutils.
114666         * config/srclistvars.sh (COREUTILS): new var.
114668 2006-03-17  Jim Meyering  <jim@meyering.net>
114670         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
114671         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
114673 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114675         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
114676         no longer needs it.  Instead, check that regoff_t is as least
114677         as wide as ptrdiff_t.
114679         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
114680         so that our regex.h stays compatible with the installed regex.
114681         This is helpful for installers who configure --without-included-regex.
114682         Problem reported by Emanuele Giaquinta.
114684 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114686         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
114687         Typedef to long int, not to off_, as POSIX will likely change
114688         in that direction.
114690 2006-03-15  Eric Blake  <ebb9@byu.net>
114692         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
114694 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114696         * lib/argp-help.c (validate_uparams): Fix typo
114697         * lib/argp-parse.c (argp_default_options): Consistently begin help
114698         messages with a lowercase letter.
114700 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
114702         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
114703         overrun buffers and shouldn't be used (much as gets shouldn't be
114704         used).
114705         * lib/time_r.c (asctime_r, ctime_r): Likewise.
114707 2006-03-08  Simon Josefsson  <jas@extundo.com>
114709         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
114710         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114712 2006-03-08  Simon Josefsson  <jas@extundo.com>
114714         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
114715         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114717 2006-03-08  Simon Josefsson  <jas@extundo.com>
114719         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
114720         signal that configure disabled the device.
114722 2006-03-08  Simon Josefsson  <jas@extundo.com>
114724         * build-aux/maint.mk: Fix refresh-po, to handle no translated
114725         languages.
114727 2006-03-07  Simon Josefsson  <jas@extundo.com>
114729         * modules/getopt (Depends-on): Add unistd.
114731         * modules/unistd: New file.
114733 2006-03-07  Simon Josefsson  <jas@extundo.com>
114735         * modules/gc-random: New file.
114737 2006-03-07  Simon Josefsson  <jas@extundo.com>
114739         * m4/unistd_h.m4: New file.
114741 2006-03-07  Simon Josefsson  <jas@extundo.com>
114743         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
114744         test to be side-effect free by storing the result in the cache
114745         variable gl_cv_lib_readline, and moving the assignment of
114746         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
114747         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114749 2006-03-07  Simon Josefsson  <jas@extundo.com>
114751         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
114752         error on missing devices (the functions will return an error).
114754         * m4/gc.m4: Move random stuff to gc-random.m4
114756 2006-03-07  Simon Josefsson  <jas@extundo.com>
114758         * lib/unistd_.h: New file.
114760 2006-03-07  Simon Josefsson  <jas@extundo.com>
114762         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
114764 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114766         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
114767         Problem reported by Juan Manuel Guerrero.
114769 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114771         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
114772         the unistd module.
114773         * lib/getlogin_r.c: Likewise.
114774         * lib/getlogin_r.h: Likewise.
114775         * lib/glob.c: Likewise.
114776         * lib/pagealign_alloc.c: Likewise.
114777         * lib/unistd_.h: Remove; no longer needed.
114779 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114781         * MODULES.html.sh (Support for systems lacking POSIX:2001):
114782         Add unistd.
114783         * modules/c-stack (Depends-on): Add unistd.
114784         * modules/getlogin_r: Likewise.
114785         * modules/glob: Likewise.
114786         * modules/pagealign_alloc: Likewise.
114787         * modules/unistd (Files): Remove lib/unistd_.h.
114788         (EXTRA_DIST): Remove.
114789         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
114790         need unistd_.h.
114791         (MOSTLYCLEANFILES): Remove unistd.h-t.
114793 2006-03-03  Simon Josefsson  <jas@extundo.com>
114795         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
114797 2006-03-03  Simon Josefsson  <jas@extundo.com>
114799         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
114800         libidn and bison.
114802 2006-03-03  Simon Josefsson  <jas@extundo.com>
114804         * build-aux/maint.mk: Add indent target.
114806 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
114808         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
114809         our replacement poll.h in any case, to avoid a differing
114810         declaration from a system header.  Seen on AIX.
114812 2006-03-01  Simon Josefsson  <jas@extundo.com>
114814         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
114815         <kasal@ucw.cz>.
114817 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114819         * modules/gettime (Depends-on): Add extensions module.
114820         * modules/nanosleep (Depends-on): Likewise.
114821         * modules/settime (Depends-on): Likewise.
114823 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114825         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
114826         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
114827         pedantically.
114828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
114829         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
114831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
114832         not "==".  Reported by Ralf Wildenhues.
114834 2006-03-01  Karl Berry  <karl@gnu.org>
114836         * doc/Copyright/request-*: new files, synced from gnuorg.
114838 2006-03-01  Karl Berry  <karl@gnu.org>
114840         * config/srclist.txt (Copyright/*): new entries.
114842 2006-02-28  Simon Josefsson  <jas@extundo.com>
114844         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
114846 2006-02-27  Simon Josefsson  <jas@extundo.com>
114848         * lib/base64.h: Indent #define's.  From Jim Meyering
114849         <jim@meyering.net>.
114851 2006-02-27  Jim Meyering  <jim@meyering.net>
114853         Revert the change of 2006-02-24, so these files can continue
114854         to be sync'd from gettext.
114855         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
114856         of `config.h'.
114858 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114860         * modules/intprops: New file.
114861         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
114862         Add intprops.
114863         * modules/getloadavg (Files): Remove lib/intprops.h.
114864         (Depends-on): Add intprops.
114865         * modules/human: Likewise.
114866         * modules/inttostr: Likewise.
114867         * modules/openat: Likewise.
114868         * modules/sig2str: Likewise.
114869         * modules/userspec: Likewise.
114870         * modules/utimecmp: Likewise.
114871         * modules/xnanosleep: Likewise.
114872         * modules/xstrtol: Likewise.
114874 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
114876         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
114877         * modules/lock-tests (TESTS): Use $(EXEEXT).
114878         * modules/tls-tests: Likewise.
114879         * modules/argp-tests: Likewise.
114880         (check_PROGRAMS): New var, replacing...
114881         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
114883 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114885         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
114886         `config.h'.
114888 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
114890         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
114892 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114894         Sync from coreutils.
114895         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114896         gl_CHDIR_SAFER.
114898 2006-02-22  Jim Meyering  <jim@meyering.net>
114900         Sync from coreutils.
114901         * m4/chdir-safer.m4: New file.
114903 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114905         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114906         AT_FDCWD exceeds INT_MAX.
114907         * lib/openat.h (AT_FDCWD): Likewise.
114909 2006-02-17  Eric Blake  <address@hidden>
114911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114913 2006-02-16  Simon Josefsson  <jas@extundo.com>
114915         * modules/getaddrinfo (Depends-on): Add sys_socket.
114917 2006-02-15  Simon Josefsson  <jas@extundo.com>
114919         * build-aux/maint.mk: Add dsyntax-check rule.
114921 2006-02-15  Eric Blake  <ebb9@byu.net>
114923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114924         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114925         'present but cannot compile' warnings on cygwin.
114926         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114927         use ws2tcpip.h if sys/socket.h works.
114928         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114929         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114931 2006-02-14  Simon Josefsson  <jas@extundo.com>
114933         * modules/maintainer-makefile (Files): Rename.
114935         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114936         and (the local) Makefile.cfg to maint-cfg.mk.
114938         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114939         to the latter.
114941         * modules/maintainer-makefile: New module.
114943         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114944         severaly stripped to make it possible to build it up from scratch
114945         with reliable tests.
114947         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114948         fixes to permit overriding the default actions when configure and
114949         makefile are not available.
114951 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114953         Sync from coreutils.
114954         * modules/lstat (Depends-on): Don't depend on xalloc.
114955         (License): Change from GPL to LGPL, since this is now simply a
114956         replacement for a libc function.
114958 2006-02-14  Jim Meyering  <jim@meyering.net>
114960         Sync from coreutils.
114962         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114963         failure on deficient systems, and simplify gnulib lgpl dependencies.
114964         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114965         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114967         * lib/xalloc-die.c: Remove unused definition of N_.
114969 2006-02-14  Jim Meyering  <jim@meyering.net>
114971         Sync from coreutils.
114972         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114973         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114974         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114975         double-quote uses of that variable, to accommodate the rare case in
114976         which getmntent is available in none of the libraries checked.  This
114977         happens at least on FreeBSD 5.0.
114979 2006-02-13  Simon Josefsson  <jas@extundo.com>
114981         * gnulib-tool (Usage): Fix --import, from
114982         karl@freefriends.org (Karl Berry).
114984 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114986         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114988 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114990         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114991         "autoupdate" on 2005-12-12.
114993 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114995         * modules/closeout (Depends-on): Remove atexit.
114997 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114999         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
115000         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
115002 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
115004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
115005         __EXTENSIONS__ if this causes compilation to fail.  Problem
115006         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
115007         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
115009 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
115011         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
115012         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
115013         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
115014         All uses changed.
115016 2006-01-26  Simon Josefsson  <jas@extundo.com>
115018         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
115019         prototype is visible on mingw32.
115021         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
115022         for mingw32.
115024         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
115025         mingw32).
115027 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
115029         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
115030         attempt to open for write; this always fails, at least on POSIX
115031         hosts.  This reinstates the 2006-01-09 change, which was
115032         inadvertently removed.
115034 2006-01-26  Bruno Haible  <bruno@clisp.org>
115036         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
115037         Reported by Paul Eggert.
115039 2006-01-26  Bruno Haible  <bruno@clisp.org>
115040             Paul Eggert  <eggert@cs.ucla.edu>
115042         * lib/stdbool_.h (_Bool)
115043         [(! (defined __cplusplus || defined __BEOS__)
115044           && !defined __GNUC__
115045           && !(defined __HP_cc || defined __xlc__
115046                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
115047                || defined __sgi))]:
115048         #define to signed char in these cases too; this simplifies
115049         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
115050         etc., separately) and makes it more conservative.
115052 2006-01-25  Simon Josefsson  <jas@extundo.com>
115054         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
115055         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
115056         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
115058 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115060         * lib/argp-namefrob.h: Bugfix. Remove stray #
115062 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
115064         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
115065         so that we test the test.
115066         Check for yet another HP-UX cc bug involving *bool |= bool.
115068 2006-01-25  Karl Berry  <karl@gnu.org>
115070         * config/srclist.txt (vasnprintf.c): sync lost.
115072 2006-01-25  Jim Meyering  <jim@meyering.net>
115074         Sync from the stable (b5) branch of coreutils:
115076         * lib/fts.c (fts_children): Don't let close() clobber errno from
115077         failed fchdir().
115079         * lib/fts.c (fts_stat): When following a symlink-to-directory,
115080         don't necessarily interpret stat-fails+lstat-succeeds as indicating
115081         a dangling symlink.  That can also happen at least for ELOOP.
115082         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
115083         FYI, this bug predates the inclusion of fts.c in coreutils.
115085         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
115086         in their own block, so pre-c99 compilers don't object.
115088         Avoid the double-free (first in fts_read, second in fts_close) that
115089         would occur when an `active' directory is made inaccessible (e.g.,
115090         via chmod a-x) during a traversal.
115091         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
115092         before returning.  Reproduce this failure by
115093         mkdir -p a/b; cd a; chmod a-x . b
115094         Reported by Stavros Passas.
115096 2006-01-25  Jim Meyering  <jim@meyering.net>
115098         * lib/fileblocks.c: Remove more useless parentheses.
115099         * lib/readutmp.h: Likewise.
115101 2006-01-25  Bruno Haible  <bruno@clisp.org>
115103         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
115104         warnings.
115105         Reported by Paul Eggert.
115107 2006-01-25  Bruno Haible  <bruno@clisp.org>
115109         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
115110         rid of a trap command. For Solaris sh.
115111         Reported by Mark D. Baushke <mdb@gnu.org>.
115113 2006-01-24  Simon Josefsson  <jas@extundo.com>
115115         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
115116         Bruno.
115118 2006-01-24  Karl Berry  <karl@gnu.org>
115120         * config/srclist.txt (argp-namefrob.h): sync lost.
115122 2006-01-24  Jim Meyering  <jim@meyering.net>
115124         * modules/openat (Files): Add lib/intprops.h.
115125         From Mark D. Baushke.
115127 2006-01-24  Jim Meyering  <jim@meyering.net>
115129         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
115130         Reported by Mark D. Baushke.
115132 2006-01-24  Jim Meyering  <jim@meyering.net>
115134         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
115136 2006-01-24  Bruno Haible  <bruno@clisp.org>
115138         * modules/strnlen (Maintainer): Change from glibc to all.
115140 2006-01-24  Bruno Haible  <bruno@clisp.org>
115142         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
115143         Patch by Paul Eggert.
115145 2006-01-24  Bruno Haible  <bruno@clisp.org>
115147         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
115148         already has it.
115149         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
115150         2005-11-26.
115152         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
115153         'signed char' to avoid problems with the built-in _Bool type.
115154         Reported by Paul Eggert on 2005-11-26.
115156 2006-01-24  Bruno Haible  <bruno@clisp.org>
115158         * gnulib-tool (func_import): Avoid constructing complicated sed
115159         expressions inside backquote.
115160         Report and solution by Mark D. Baushke <mdb@gnu.org>.
115162 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
115164         These changes imported from libc.
115165         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
115166         test and two separate function calls.
115167         * lib/strndup.c (__strndup): Add libc_hidden_def.
115169 2006-01-23  Simon Josefsson  <jas@extundo.com>
115171         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
115172         Remove the test_*_SOURCES variable: automake infers it by default.
115173         * modules/tls-tests: Likewise.
115175 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
115177         Work around porting bugs reported by Dieter in
115178         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
115179         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
115180         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
115181         Include "getopt.h" first, to check interface.
115182         (getenv): Declare only if defined HAVE_DECL_GETENV &&
115183         !HAVE_DECL_GETENV.
115184         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
115185         (__strndup): Revert to K&R-style function dfns, the glibc style.
115186         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
115187         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
115188         Include strnlen.h first, to get prototype properly.
115189         (strnlen): Renamed from __strnlen.
115190         Remove weak alias.
115192 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
115194         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
115196 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
115198         * config/srclist.txt: Adjust to reflect glibc reorganization.
115199         This affects only comments.
115201 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115203          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
115204          Reported by Bruce Korb <bkorb@gnu.org>.
115206 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
115208         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
115209         to pacify gcc -Wswitch-default.
115211 2006-01-22  Bruno Haible  <bruno@clisp.org>
115213         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
115214         temporary buffer for sprintf, take into account the precision also
115215         for 'd', 'i', 'u', 'o', 'x', 'X'.
115217 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
115219         * modules/argp-tests: New module
115220         * tests/test-argp.c: New file
115221         * tests/test-argp-2.sh: New file
115223 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
115225         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
115226         (__argp_base_name): Removed
115227         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
115228         typo.
115229         (__argp_base_name): Provide macro definition or extern declaration
115230         depending on the configuration
115232 2006-01-20  Simon Josefsson  <jas@extundo.com>
115234         * modules/inet_ntop (Depends-on): Depend on sys_socket.
115236 2006-01-20  Simon Josefsson  <jas@extundo.com>
115238         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
115240 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
115242         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
115243         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
115244         Suggested by Bruno Haible.
115246 2006-01-20  Karl Berry  <karl@gnu.org>
115248         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
115249         until changes propagate, I guess.
115251 2006-01-19  Simon Josefsson  <jas@extundo.com>
115253         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
115255 2006-01-19  Simon Josefsson  <jas@extundo.com>
115257         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
115259 2006-01-19  Simon Josefsson  <jas@extundo.com>
115261         * gnulib-tool: Set check_PROGRAMS.
115263         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
115264         modules/des-tests, modules/gc-arcfour-tests,
115265         modules/gc-arctwo-tests, modules/gc-des-tests,
115266         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
115267         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
115268         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
115269         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
115270         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
115271         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
115272         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
115273         test_*_SOURCES.
115275 2006-01-18  Simon Josefsson  <jas@extundo.com>
115277         * modules/socklen (Depends-on): Depend on sys_socket.
115279 2006-01-18  Simon Josefsson  <jas@extundo.com>
115281         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
115282         modules/des-tests, modules/gc-arcfour-tests,
115283         modules/gc-arctwo-tests, modules/gc-des-tests,
115284         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
115285         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
115286         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
115287         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
115288         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
115289         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
115290         $(EXEEXT) to automake TESTS variable, for mingw32.
115292 2006-01-17  Simon Josefsson  <jas@extundo.com>
115294         * modules/socklen (Include): Need sys/socket.h.
115296 2006-01-17  Bruno Haible  <bruno@clisp.org>
115298         * modules/ssize_t (Include): Add <sys/types.h>.
115300 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
115302         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
115303         it's not portable and it doesn't work with cross-compiles.
115304         Problem reported by Bruno Haible.  Fix missing-$ typo in
115305         'test "gl_cv_ignore_unused_libraries" ...' that prevented
115306         -zignore from being used with Sun's C compiler.
115308 2006-01-12  Simon Josefsson  <jas@extundo.com>
115310         * lib/base64.c: Fix warning, reported by Bruno Haible
115311         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
115313 2006-01-12  Bruno Haible  <bruno@clisp.org>
115315         * modules/ldd: New file.
115316         * build-aux/ldd.sh.in: New file.
115317         * MODULES.html.sh (Support for building libraries and executables): Add
115318         ldd.
115320 2006-01-12  Bruno Haible  <bruno@clisp.org>
115322         * m4/ldd.m4: New file.
115324 2006-01-12  Bruno Haible  <bruno@clisp.org>
115326         * gnulib-tool (func_import, func_create_testdir): Don't go into an
115327         endless loop while replacing $auxdir with build-aux.
115329 2006-01-11  Simon Josefsson  <jas@extundo.com>
115331         * lib/stdint_.h (SIZE_MAX): Add missing (.
115333 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
115335         Sync from coreutils.
115336         * lib/md5.c: Fix commentary typos.
115337         (alignof, UNALIGNED_P): No need for a GCC-specific version.
115338         * lib/md5.h (__attribute__): Remove; unused.
115339         * lib/sha1.c: Fix commentary to match md5 better.
115340         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
115341         so that we don't need to worry about alignment.  All uses changed.
115342         This merges the 2005-10-28 md5 change into sha1.
115344 2006-01-11  Jim Meyering  <jim@meyering.net>
115346         Sync from coreutils.
115347         * lib/md5.c (OP): Fix spacing.
115349 2006-01-11  Bruno Haible  <bruno@clisp.org>
115351         Ensure automatic ordering between gl_LOCK and gl_ARGP.
115352         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
115353         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
115355 2006-01-11  Bruno Haible  <bruno@clisp.org>
115357         Ensure automatic ordering between gl_LOCK and gl_ARGP.
115358         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
115359         the "early" section as well.
115361 2006-01-11  Bruno Haible  <bruno@clisp.org>
115363         Avoid "ar: no archive members specified" error on MacOS X.
115364         * gnulib-tool (func_modules_add_dummy): New function.
115365         (func_import, func_create_testdir): Invoke it.
115367 2006-01-11  Bruno Haible  <bruno@clisp.org>
115369         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
115370         with $auxdir in AC_CONFIG_FILES statements.
115372 2006-01-11  Bruno Haible  <bruno@clisp.org>
115374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115375         Initialize also noinst_HEADERS to empty.
115377 2006-01-11  Bruno Haible  <bruno@clisp.org>
115379         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
115380         variables.
115381         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
115382         autoreconf.
115384 2006-01-11  Bruno Haible  <bruno@clisp.org>
115386         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
115387         overridable by the user.
115388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115390 2006-01-10  Simon Josefsson  <jas@extundo.com>
115392         * modules/sys_socket: New file.
115394 2006-01-10  Simon Josefsson  <jas@extundo.com>
115396         * m4/sys_socket_h.m4: New file.
115398 2006-01-10  Simon Josefsson  <jas@extundo.com>
115400         * lib/socket_.h: New file.
115402 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
115404         * modules/readutmp (Maintainer): Add myself.
115406 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
115408         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
115409         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
115410         People who are still concerned with buggy memcmp implementations
115411         can invoke gl_FUNC_MEMCMP themselves.
115413 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
115415         * lib/regex_internal.h (BITSET_WORD_BITS):
115416         Work around a bug in 64-bit PGC (before version 6.1-2), where the
115417         preprocessor mishandles large unsigned values as if they were signed.
115418         Problem reported by Claudio Fontana in
115419         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
115421 2006-01-10  Jim Meyering  <jim@meyering.net>
115423         Avoid the double-free (first in fts_read, second in fts_close) that
115424         would occur when an `active' directory is made inaccessible (e.g.,
115425         via chmod a-x) during a traversal.
115426         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
115427         before returning.  Reproduce this failure by
115428         mkdir -p a/b; cd a; chmod a-x . b
115429         Reported by Stavros Passas.
115431         Sync from coreutils.
115432         * lib/sha1.c: Tweak grammar in a comment.
115434 2006-01-10  Jim Meyering  <jim@meyering.net>
115436         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
115437         Patch by Joerg Sonnenberger.
115439 2006-01-10  Bruno Haible  <bruno@clisp.org>
115441         * modules/readutmp: Depend on module free.
115442         * modules/strtok_r: Depend on module restrict.
115444 2006-01-10  Bruno Haible  <bruno@clisp.org>
115446         * modules/gettext (configure.ac): Add an invocation of
115447         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
115449 2006-01-10  Bruno Haible  <bruno@clisp.org>
115451         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
115452         Reported by Werner Lemberg <wl@gnu.org>.
115454 2006-01-10  Bruno Haible  <bruno@clisp.org>
115456         * lib/localcharset.c: Update from GNU gettext.
115458 2006-01-10  Bruno Haible  <bruno@clisp.org>
115460         * lib/argp.h (__const): Remove macro. Use const instead.
115461         * lib/argp-fmtstream.h (__const): Likewise.
115462         * lib/glob_.h (__const): Remove macro.
115463         * lib/glob-libc.h: Use const instead of __const.
115465 2006-01-10  Bruno Haible  <bruno@clisp.org>
115467         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
115468         variable.
115469         Needed to avoid an automake error regarding the 'gettext' module.
115471 2006-01-09  Simon Josefsson  <jas@extundo.com>
115473         * modules/inet_ntop (Depends-on): Add restrict.
115475 2006-01-09  Simon Josefsson  <jas@extundo.com>
115477         * modules/gc-rijndael-tests (License): Put under LGPL.
115479         * modules/gc-des-tests (License): Likewise.
115481         * modules/gc-arcfour-tests (License): Likewise.
115483         * modules/gc-arctwo-tests (License): Likewise.
115485         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
115487         * modules/gc-hmac-sha1-tests (Files): Likewise.
115489         * modules/gc-hmac-md5-tests (License): Likewise.
115491         * modules/gc-sha1-tests (License): Likewise.
115493         * modules/gc-md5-tests (License): Likewise.
115495         * modules/gc-md4-tests (License): Likewise.
115497         * modules/gc-md2-tests (License): Likewise.
115499         * modules/gc-tests (License): Likewise.
115501         * modules/des-tests (License): Likewise.
115503         * modules/md4-tests (License): Likewise.
115505         * modules/md2-tests (License): Likewise.
115507 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115509         Sync from coreutils:
115511         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
115512         * modules/lib-ignore: New file.
115513         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
115514         chdir-safer.m4, lchmod.m4.
115515         * modules/openat: Add mkdirat.c, openat-priv.h.
115517 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115519         Sync from coreutils.
115520         * m4/lib-ignore.m4: New file.
115521         * m4/lchmod.m4: New file.
115523 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115525         Sync from coreutils.
115526         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
115527         for write access: POSIX says that must fail.
115528         * lib/fts.c (diropen): Likewise.
115529         * lib/save-cwd.c (save_cwd): Likewise.
115530         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
115531         well, for minor improvements on hosts that lack O_DIRECTORY.
115532         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
115533         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
115534         Fall back on chown if open failed with EACCES.
115536         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
115537         Report an error at compile-time if only a 1-second nominal clock
115538         resolution is found.
115540         * lib/lchmod.h: New file.
115541         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
115542         (make_dir_parents): Use lchown rather than chown, and
115543         lchmod rather than chmod.
115545         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
115546         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
115547         "proc" reported by n0dalus.
115549         * lib/mountlist.c: Include <limits.h>.
115550         (dev_from_mount_options)
115551         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
115552         New function.  It no longer assumes "dev=" has the System V meaning
115553         on Linux (since it doesn't).  It also parses "dev=" more carefully.
115554         (read_file_system_list)
115555         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
115556         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
115557         dev= in that case.
115559         * lib/posixtm.h (PDS_PRE_2000): New macro.
115560         * lib/posixtm.c (year): Arg is now syntax_bits rather than
115561         allow_century.  All usages changed.  Reject dates outside the range
115562         1969-1999 if PDS_PRE_2000 is used.
115564 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115566         Sync from coreutils.
115567         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
115568         (Time of day items): Mention the possibility of leap seconds.
115569         Problem reported by Dr. David Alan Gilbert.
115571 2006-01-09  Jim Meyering  <jim@meyering.net>
115573         Sync from coreutils.
115575         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
115577         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
115579         * lib/modechange.c (mode_compile): Reject an invalid mode string
115580         that starts with an octal digit.  From Andreas Gruenbacher.
115582         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
115583         and dup to open_safer and dup_safer, respectively.
115584         (openat_permissive): Fix typo in comment.
115586         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
115587         "gettext.h"; either no longer needed or are guaranteed by openat.h.
115588         (_): Remove; no longer needed.
115589         (openat): Renamed from rpl_openat; no need for rpl_openat
115590         since openat.h renames openat for us.
115591         Replace most of the body with a call to openat_permissive,
115592         to avoid duplicate code.
115593         Port to (probably hypothetical) environments were mode_t is
115594         wider than int.
115595         (openat_permissive): Require mode arg, so that we can check
115596         types better.  Put it just after flags.  Change cwd failure
115597         indicator from pointer-to-bool to pointer-to-errno-value.
115598         All callers changed.
115599         Invoke openat_save_fail and/or openat_restore_fail if
115600         cwd_errno is null, so that openat can call us.
115601         (openat_permissive, fdopendir, fstatat, unlinkat):
115602         Simplify errno handling to avoid some duplicate code,
115603         as it's OK to set errno on success.
115604         * lib/openat.h: Revamp code so that function macros depend on
115605         __OPENAT_PREFIX only, not also on AT_FDCWD.
115606         (openat_ro): Remove.  Caller changed to use openat_permissive.
115607         (openat_permissive): Now a macro, if not a function.
115608         (openat_restore_fail, openat_save_fail): Now always functions,
115609         since mkdirat needs them even if __OPENAT_PREFIX is defined.
115611         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
115612         and openat.c.
115613         * lib/mkdirat.c: Include openat-priv.h.
115614         Remove definitions of macros defined therein.
115615         * lib/openat.c: Likewise.
115617         * lib/mkdirat.c (mkdirat): New file and function.
115618         * lib/openat.h (mkdirat): Declare.
115620         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
115622         * lib/openat.h (openat_permissive): Declare.
115623         (openat_ro): Define.
115625         * lib/openat.c (EXPECTED_ERRNO): New macro.
115626         (openat_permissive): New function -- used in remove.c rewrite.
115627         (all functions): Set errno just before returning, only if there
115628         was an actual failure.
115629         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
115631         Emulate openat-family functions using Linux's procfs, if possible.
115632         Idea and some code based on Ulrich Drepper's glibc changes.
115634         * lib/openat.c: (BUILD_PROC_NAME): New macro.
115635         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
115636         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
115637         before falling back on save_cwd and restore_cwd.
115638         (fdopendir, fstatat, unlinkat): Likewise.
115640         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
115641         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
115643         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
115644         as second argument to va_arg.  Otherwise, some versions of gcc
115645         warn that `if this code is reached, the program will abort'.
115647 2006-01-09  Jim Meyering  <jim@meyering.net>
115649         Sync from coreutils.
115650         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
115651         Require openat-priv.h.
115653 2006-01-09  Bruno Haible  <bruno@clisp.org>
115655         * modules/strnlen (Include): Use strnlen.h.
115657 2006-01-09  Bruno Haible  <bruno@clisp.org>
115659         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
115661 2006-01-09  Bruno Haible  <bruno@clisp.org>
115663         * lib/sysexit_.h (EX_OK): New macro.
115664         Suggested by Martin Lambers <marlam@marlam.de>.
115666 2006-01-09  Bruno Haible  <bruno@clisp.org>
115668         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
115669         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
115671 2006-01-09  Bruno Haible  <bruno@clisp.org>
115673         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
115674         numbers.
115676 2006-01-09  Bruno Haible  <bruno@clisp.org>
115678         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
115679         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
115680         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
115681         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
115683 2006-01-09  Bruno Haible  <bruno@clisp.org>
115685         * build-aux/javacomp.sh.in: New file, moved from lib/.
115686         * modules/javacomp-script (Files): Update.
115687         (configure.ac): Add AC_CONFIG_FILES invocation.
115688         (EXTRA_DIST): Remove variable.
115690         * build-aux/javaexec.sh.in: New file, moved from lib/.
115691         * modules/javaexec (Files): Update.
115692         (configure.ac): Add AC_CONFIG_FILES invocation.
115693         (EXTRA_DIST): Remove javaexec.sh.in.
115695         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
115696         * modules/csharpcomp-script (Files): Update.
115697         (configure.ac): Add AC_CONFIG_FILES invocation.
115698         (EXTRA_DIST): Remove variable.
115700         * build-aux/csharpexec.sh.in: New file, moved from lib/.
115701         * modules/csharpexec (Files): Update.
115702         (configure.ac): Add AC_CONFIG_FILES invocation.
115703         (EXTRA_DIST): Remove csharpexec.sh.in.
115705 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115707         Sync from coreutils.
115709         Add POSIX ACL support
115710         * lib/acl.h (copy_acl, set_acl): Add declarations.
115711         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
115712         systems other than Linux.
115713         (chmod_or_fchmod): New function: use fchmod when possible,
115714         and chmod otherwise.
115715         (file_has_acl): Add a POSIX ACL implementation, with a
115716         Linux-specific subcase.
115717         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
115718         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
115719         acls are unsupported.
115720         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
115721         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
115722         are unsupported.
115724 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115726         Sync from coreutils.
115727         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
115729 2006-01-07  Bruno Haible  <bruno@clisp.org>
115731         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
115732         gl_EARLY.
115734 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115736         * lib/strftime.c (tzname): Don't declare if it is already #defined.
115737         Problem reported for Mingw by Mark Junker.
115739 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115741         * README: Gnulib normally doesn't generate a tarball.
115743 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
115745         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
115746         long int, not int, for nanosecond counts, so that people who are
115747         used to POSIX struct timespec won't be surprised.  Reported by Jim
115748         Meyering.
115750 2005-12-28  Bruno Haible  <bruno@clisp.org>
115752         * build-aux/config.rpath: Update from GNU gettext.
115754 2005-12-16  Jim Meyering  <jim@meyering.net>
115756         * modules/fprintftime: New module.
115757         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
115759 2005-12-16  Jim Meyering  <jim@meyering.net>
115761         * m4/fprintftime.m4: New file.
115763 2005-12-16  Jim Meyering  <jim@meyering.net>
115765         * lib/fprintftime.c, lib/fprintftime.h: New files.
115767 2005-12-15  Simon Josefsson  <jas@extundo.com>
115769         * modules/socklen (configure.ac): Fix M4 macro name, to align with
115770         new m4/socklen.m4.
115772 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115774         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
115775         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
115777 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115779         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
115780         * lib/argp-help.c (fill_in_uparams): Check if the constructed
115781         struct uparams is valid. Fall back to the default values if it is
115782         not.
115784 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115786         * modules/argp (Files): Add argp-pin.c
115787         (Depends-on): dirname
115788         (lib_SOURCES): Add argp-pin.c
115790 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115792         * m4/argp.m4:  Check if program_invocation_name and
115793         program_invocation_short_name are declared and define appropriate
115794         macros if they are not.
115796 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115798         * lib/argp-help.c (__argp_base_name): New function
115799         (__argp_short_program_name): Rewrite using __argp_base_name
115800         * lib/argp-namefrob.h: Define program_invocation_name and
115801         program_invocation_short_name if requested
115802         (__argp_base_name): Add prototype
115803         * lib/argp-parse.c (argp_def): Use gettext wrappers
115804         (argp_default_parser): Use __argp_base_name
115805         * lib/argp-pin.c: New file. Defines program_invocation_name and
115806         program_invocation_short_name on systems that lack them.
115808 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115810         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
115811         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115812         porting problem reported by Georg Schwarz in
115813         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115815 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115817         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
115818         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115819         porting problem reported by Georg Schwarz in
115820         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115822 2005-12-05  Bruno Haible  <bruno@clisp.org>
115824         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
115825         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
115826         Reported by Mark Junker <mjscod@gmx.de>.
115828 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
115830         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
115831         Use implementation from Albert Chin, with some
115832         comments/corrections by Stepan Kasal and myself.
115834 2005-12-02  Bruno Haible  <bruno@clisp.org>
115836         * gnulib-tool (func_import): Accept GPLed build tool modules when
115837         --lgpl is given.
115838         * modules/csharpcomp-script: New file.
115839         * modules/csharpcomp: Depend on it.
115840         * modules/javacomp-script: New file.
115841         * modules/javacomp: Depend on it.
115842         Suggested by Simon Josefsson.
115844 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
115846         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
115847         statement, to work around an HP-UX 10.20 compiler bug reported by
115848         Peter O'Gorman.
115850 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115852         * modules/savedir (Depends-on): Add openat.
115854 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115856         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
115857         (uintmax_t) [defined uintmax_t]: Do not declare.
115858         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
115859         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
115860         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
115861         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
115862         sake of portability to weird hosts that C allows (though we don't
115863         know of any practical examples).
115865         * lib/savedir.h (fdsavedir): New decl.
115866         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
115867         contains most of the former guts of savedir.
115868         (savedir): Use savedirstream.
115869         Include "openat.h".
115871 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115873         * modules/obstack (Files): Add m4/ulonglong.m4.
115874         Problem reported by Davide Angelocola.
115876 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
115878         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
115879         coreutils no longer futzes with rounding modes.
115881 2005-11-14  Jim Meyering  <jim@meyering.net>
115883         * lib/mkstemp-safer.c: Include <config.h>, required for possible
115884         replacement of mkstemp.
115886 2005-11-10  Simon Josefsson  <jas@extundo.com>
115888         * lib/readline.c: Remove EOL.
115890 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115892         * modules/gethrxtime (Depends-on): Add gettime.
115894 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115896         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115897         or gettimeofday; no longer needed.
115899 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115901         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115902         time business.
115903         (gethrxtime) [! (HAVE_NANOUPTIME
115904         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115905         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115906         our own approximation.
115908 2005-11-08  Eric Blake  <ebb9@byu.net>
115910         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115912 2005-11-08  Eric Blake  <ebb9@byu.net>
115914         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115916 2005-11-04  Bruno Haible  <bruno@clisp.org>
115918         * gnulib-tool: Implement --update mode.
115920 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115922         Fix porting problem reported by Theodoros V. Kalamatianos.
115923         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115924         Don't assume that futimes failing means we must fail.
115926 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115928         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115929         variables to suggest the intended function of the PATH_MAX check.
115931 2005-10-30  Kean Johnston  <jkj@sco.com>
115933         Trivial changes to support SCO systems.
115934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115935         as PATH_MAX.
115936         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115937         where __ptr is null when no I/O is pending.
115939 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115941         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115942         leave errno alone.  Problem reported by Dmitry V. Levin.
115944 2005-10-28  Simon Josefsson  <jas@extundo.com>
115946         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115947         Test more.
115949         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115951         * modules/md2, modules/md2-tests: New files.
115953 2005-10-28  Simon Josefsson  <jas@extundo.com>
115955         * m4/inet_ntop.m4: More tests.
115957         * m4/gc-md2.m4, md2.m4: New file.
115959 2005-10-28  Simon Josefsson  <jas@extundo.com>
115961         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115962         "restrict" keywords, as per POSIX.  Protect the function
115963         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115964         Don't use K&R prototypes.  Check the sprintf return values.
115965         Re-define EAFNOSUPPORT if not present.  Indent.
115967         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115968         suggested by Bruno Haible <bruno@clisp.org>.
115970         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115972         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115974         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115975         libgcrypt).
115977         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115979         * lib/md2.h, lib/md2.c: New files.
115981 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115983         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115984         errno alone.  Problem reported by Frederic Jolliton.
115986 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115988         * modules/verify (License): Change from GPL to LGPL.  This is a
115989         tiny module and there are apparently near-equivalents that are
115990         under the BSD license.
115992 2005-10-24  Simon Josefsson  <jas@extundo.com>
115994         * modules/sha1: Relicense to LGPL.
115996 2005-10-24  Simon Josefsson  <jas@extundo.com>
115998         * lib/md4.h: Shrink buffer size, now that we changed the type.
116000 2005-10-23  Simon Josefsson  <jas@extundo.com>
116002         * gnulib-tool (func_import): Fix --tests-base.
116004 2005-10-22  Simon Josefsson  <jas@extundo.com>
116006         * modules/arcfour (Depends-on): Need stdint.
116008 2005-10-22  Simon Josefsson  <jas@extundo.com>
116010         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
116011         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
116013 2005-10-22  Simon Josefsson  <jas@extundo.com>
116015         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
116016         suggested by Bruno Haible <bruno@clisp.org>.
116018 2005-10-22  Simon Josefsson  <jas@extundo.com>
116020         * lib/crc.h: Include stddef.h, for size_t.
116022 2005-10-22  Simon Josefsson  <jas@extundo.com>
116024         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
116025         arcfour_context struct (simplify test vector testing in GNU
116026         Shishi).
116028 2005-10-21  Simon Josefsson  <jas@extundo.com>
116030         * modules/des, modules/des-tests: New files.
116032         * modules/gc-des, modules/gc-des-tests: New files.
116034         * tests/test-des.c, tests/test-gc-des.c: New file.
116036 2005-10-21  Simon Josefsson  <jas@extundo.com>
116038         * modules/arctwo, modules/arctwo-tests: New files.
116040         * tests/test-arctwo.c: New file.
116042         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
116044         * tests/test-gc-arctwo.c: New file.
116046 2005-10-21  Simon Josefsson  <jas@extundo.com>
116048         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
116049         Bruno Haible <bruno@clisp.org>.
116051         * m4/gc-des.m4: New file.
116053 2005-10-21  Simon Josefsson  <jas@extundo.com>
116055         * m4/arctwo.m4: New file.
116057         * m4/gc-arctwo.m4: New file.
116059 2005-10-21  Simon Josefsson  <jas@extundo.com>
116061         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
116062         block.
116064 2005-10-21  Simon Josefsson  <jas@extundo.com>
116066         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
116067         <bruno@clisp.org>.
116069         * lib/hmac-sha1.c (hmac_sha1): Likewise.
116071         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
116072         Bruno Haible <bruno@clisp.org>.
116074         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
116075         <bruno@clisp.org>.
116077 2005-10-21  Simon Josefsson  <jas@extundo.com>
116079         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
116081 2005-10-21  Simon Josefsson  <jas@extundo.com>
116083         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
116085 2005-10-21  Simon Josefsson  <jas@extundo.com>
116087         * lib/des.h, lib/des.c: New files.
116089         * lib/gc-gnulib.c: Support DES.c
116091 2005-10-21  Simon Josefsson  <jas@extundo.com>
116093         * lib/arctwo.h, lib/arctwo.c: New files.
116095         * lib/gc-gnulib.c: Support ARCTWO.
116097 2005-10-21  Simon Josefsson  <jas@extundo.com>
116099         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
116100         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116102 2005-10-21  Simon Josefsson  <jas@extundo.com>
116104         * gnulib-tool (func_import, func_create_testdir): Define automake
116105         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
116106         Makefile.am snippet),
116107         suggested by Bruno Haible <bruno@clisp.org>.
116109         * modules/gc (Makefile.am): Use it.
116111 2005-10-21  Bruno Haible  <bruno@clisp.org>
116113         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
116114         patch.
116116 2005-10-19  Simon Josefsson  <jas@extundo.com>
116118         * tests/test-gc-rijndael.c: New file.
116120         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
116122 2005-10-19  Simon Josefsson  <jas@extundo.com>
116124         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
116125         interface too.
116127 2005-10-19  Simon Josefsson  <jas@extundo.com>
116129         * tests/test-gc-arcfour.c: New file.
116131         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
116133 2005-10-19  Simon Josefsson  <jas@extundo.com>
116135         * modules/gc-md4, modules/gc-md4-tests: New file.
116137         * tests/test-gc-md4.c: New file.
116139 2005-10-19  Simon Josefsson  <jas@extundo.com>
116141         * m4/gc-md4.m4: New file.
116143 2005-10-19  Simon Josefsson  <jas@extundo.com>
116145         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
116146         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
116147         <kasal@ucw.cz>.
116149 2005-10-19  Simon Josefsson  <jas@extundo.com>
116151         * m4/gc-arcfour.m4: New file.
116153         * m4/gc-rijndael.m4: New file.
116155 2005-10-19  Simon Josefsson  <jas@extundo.com>
116157         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
116159 2005-10-19  Simon Josefsson  <jas@extundo.com>
116161         * lib/gc-gnulib.c: Support ARCFOUR.
116163 2005-10-19  Simon Josefsson  <jas@extundo.com>
116165         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
116166         support.
116168         * lib/gc.h: Add ECB enum type.
116170         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
116172 2005-10-18  Simon Josefsson  <jas@extundo.com>
116174         * tests/test-md5.c: New file.
116176         * modules/md5-tests: New file.
116178 2005-10-18  Simon Josefsson  <jas@extundo.com>
116180         * tests/test-md4.c: New file.
116182         * modules/md4, modules/md4-tests: New files.
116184 2005-10-18  Simon Josefsson  <jas@extundo.com>
116186         * m4/md4.m4: New file.
116188 2005-10-18  Simon Josefsson  <jas@extundo.com>
116190         * lib/md4.h, lib/md4.c: New files, based on md5.?.
116192 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
116194         * gnulib-tool (func_create_testdir): Omit the second check whether
116195         BUILT_SOURCES in nonempty.
116197 2005-10-17  Simon Josefsson  <jas@extundo.com>
116199         * tests/test-rijndael.c: New file.
116201 2005-10-17  Simon Josefsson  <jas@extundo.com>
116203         * modules/sha1: Depend on stdint instead of md5.
116205         * modules/md5: Depend on stdint, remove uint32_t.
116207 2005-10-17  Simon Josefsson  <jas@extundo.com>
116209         * modules/gc-sha1-tests: New file.
116211         * tests/test-gc-sha1.c: New file.
116213 2005-10-17  Simon Josefsson  <jas@extundo.com>
116215         * m4/md5.m4: Remove call to uint32_t.m4.
116217 2005-10-17  Simon Josefsson  <jas@extundo.com>
116219         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
116221         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
116222         md5.h.
116224         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
116226         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
116228 2005-10-17  Simon Josefsson  <jas@extundo.com>
116230         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
116232 2005-10-17  Simon Josefsson  <jas@extundo.com>
116234         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
116236 2005-10-17  Simon Josefsson  <jas@extundo.com>
116238         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
116240         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
116242 2005-10-17  Bruno Haible  <bruno@clisp.org>
116244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
116245         that it can also be used in a test.
116247 2005-10-16  Bruno Haible  <bruno@clisp.org>
116249         * gnulib-tool (func_emit_tests_Makefile_am): Also define
116250         TESTS_ENVIRONMENT, so that individual tests can augment it.
116252         * gnulib-tool (func_create_testdir): Use an intermediate target for
116253         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
116254         macros, like $(ALLOCA_H), which cannot be passed through the command
116255         line.
116257 2005-10-15  Simon Josefsson  <jas@extundo.com>
116259         * modules/rijndael-tests: New file.
116261         * modules/rijndael: New file.
116263 2005-10-15  Simon Josefsson  <jas@extundo.com>
116265         * m4/rijndael.m4: New file.
116267 2005-10-15  Simon Josefsson  <jas@extundo.com>
116269         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
116271         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
116273 2005-10-14  Simon Josefsson  <jas@extundo.com>
116275         * tests/test-arcfour.c: New file.
116277         * modules/arcfour, modules/arcfour-tests: New files.
116279 2005-10-14  Simon Josefsson  <jas@extundo.com>
116281         * m4/arcfour.m4: New file.
116283 2005-10-14  Simon Josefsson  <jas@extundo.com>
116285         * lib/arcfour.h, lib/arcfour.c: New files.
116287 2005-10-14  Roland McGrath  <roland@redhat.com>
116289         Import from libc.  [BZ #1331]
116290         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
116291         macro argument.
116292         Reported by Matej Vela <vela@debian.org>.
116294 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
116296         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
116297         include <wchar.h>; no longer needed.
116299 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
116301         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
116303 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
116304         and  Ulrich Drepper  <drepper@redhat.com>
116306         Import from libc.
116307         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
116308         instead of inline stream orientation test and two separate
116309         function calls.  Pay no attention to USE_IN_LIBIO.
116311 2005-10-13  Simon Josefsson  <jas@extundo.com>
116313         * modules/gc-hmac-md5-tests: New file.
116315         * tests/test-gc-hmac-sha1.c: New file.
116317         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
116319         * modules/gc-hmac-md5-tests: New file.
116321         * tests/test-gc-md5.c: New file.
116323         * modules/gc-md5-tests: New file.
116325 2005-10-13  Simon Josefsson  <jas@extundo.com>
116327         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
116328         Move memory allocation outside of loop.
116330 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
116332         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
116333         intermediate directory is in a read-only file system.  Problem
116334         reported by Eric Blake.
116336 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
116338         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
116340 2005-10-12  Simon Josefsson  <jas@extundo.com>
116342         * tests/test-hmac-sha1.c: New file.
116344         * modules/hmac-sha1-tests: New file.
116346         * modules/hmac-sha1: New file.
116348 2005-10-12  Simon Josefsson  <jas@extundo.com>
116350         * modules/gc-sha1: New file.
116352 2005-10-12  Simon Josefsson  <jas@extundo.com>
116354         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
116356         * tests/test-gc-pbkdf2-sha1.c: New file.
116358 2005-10-12  Simon Josefsson  <jas@extundo.com>
116360         * modules/gc-md5, modules/gc-hmac-md5: New files.
116362         * modules/gc (Files): Remove md5, memxor and hmac files.
116364 2005-10-12  Simon Josefsson  <jas@extundo.com>
116366         * m4/gc-pbkdf2-sha1.m4: New file.
116368         * m4/gc-hmac-sha1.m4: New file.
116370         * m4/gc-sha1: New file.
116372         * m4/hmac-sha1.m4: New file.
116374 2005-10-12  Simon Josefsson  <jas@extundo.com>
116376         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
116378         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
116380 2005-10-12  Simon Josefsson  <jas@extundo.com>
116382         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
116383         suggested by Bruno Haible <bruno@clisp.org>.
116385 2005-10-12  Simon Josefsson  <jas@extundo.com>
116387         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
116389 2005-10-12  Simon Josefsson  <jas@extundo.com>
116391         * lib/gc-pbkdf2-sha1.c: New file.
116393         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
116395 2005-10-12  Simon Josefsson  <jas@extundo.com>
116397         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
116399         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
116401 2005-10-12  Simon Josefsson  <jas@extundo.com>
116403         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
116404         GC_USE_HMAC_MD5, respectively.
116406         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
116407         (gc_md5): Fix typo.
116409         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
116411         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
116413         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
116415 2005-10-12  Bruno Haible  <bruno@clisp.org>
116417         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
116418         Reported by Stepan Kasal <kasal@ucw.cz>.
116420 2005-10-11  Simon Josefsson  <jas@extundo.com>
116422         * tests/test-crc.c: New file.
116424         * modules/crc, modules/crc-tests: New files.
116426 2005-10-11  Simon Josefsson  <jas@extundo.com>
116428         * m4/crc.m4: New file.
116430 2005-10-11  Simon Josefsson  <jas@extundo.com>
116432         * lib/gc.h: Add gc_hash and gc_hash_buffer.
116434         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
116436         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
116438 2005-10-11  Simon Josefsson  <jas@extundo.com>
116440         * lib/crc.h, lib/crc.c: New files.
116442         * lib/gc.h (gc_hash_buffer): Add doc.
116444 2005-10-11  Bruno Haible  <bruno@clisp.org>
116446         * modules/c-strcasestr: New file.
116447         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
116449 2005-10-11  Bruno Haible  <bruno@clisp.org>
116451         * modules/c-strcase: New file.
116452         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
116454 2005-10-11  Bruno Haible  <bruno@clisp.org>
116456         * lib/strcasecmp.c: Include limits.h.
116457         (strcasecmp): Avoid integer overflow on exotic platforms.
116458         * lib/strncasecmp.c: Include limits.h.
116459         (strncasecmp): Avoid integer overflow on exotic platforms.
116460         Reported by Paul Eggert.
116462 2005-10-11  Bruno Haible  <bruno@clisp.org>
116464         * lib/c-strcasestr.h: New file, from GNU gettext.
116465         * lib/c-strcasestr.c: New file, from GNU gettext.
116467 2005-10-11  Bruno Haible  <bruno@clisp.org>
116469         * lib/c-strcase.h: New file, from GNU gettext.
116470         * lib/c-strcasecmp.c: New file, from GNU gettext.
116471         * lib/c-strncasecmp.c: New file, from GNU gettext.
116473 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
116475         * modules/mempcpy (License): GPL -> LGPL.
116476         * modules/strchrnul (License): Likewise.
116477         * modules/sysexits (License): Likewise.
116479 2005-10-08  Simon Josefsson  <jas@extundo.com>
116481         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
116483 2005-10-07  Simon Josefsson  <jas@extundo.com>
116485         * m4/memxor.m4: Remove gl_C_RESTRICT call.
116487 2005-10-06  Simon Josefsson  <jas@extundo.com>
116489         * tests/test-hmac-md5.c: New file.
116491         * modules/hmac-md5-tests: New file.
116493         * modules/hmac-md5: New file.
116495 2005-10-06  Simon Josefsson  <jas@extundo.com>
116497         * m4/hmac-md5.m4: New file.
116499         * m4/memxor.m4: Require gl_C_RESTRICT.
116501 2005-10-06  Simon Josefsson  <jas@extundo.com>
116503         * lib/memxor.c (memxor): Avoid casts and warnings.
116505 2005-10-06  Simon Josefsson  <jas@extundo.com>
116507         * lib/hmac-md5.c: New file.
116509         * lib/hmac.h: New file.
116511 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
116513         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
116514         promotes to int, not unsigned int, to catch the AIX 5.3
116515         compiler bug.
116517 2005-10-05  Simon Josefsson  <jas@extundo.com>
116519         * modules/memxor: New file.
116521         * modules/iconv (Files): Move config.rpath to havelib, it is used
116522         there.
116524         * modules/havelib (Files): Add config.rpath.
116526 2005-10-05  Simon Josefsson  <jas@extundo.com>
116528         * m4/memxor.m4: New file.
116530 2005-10-05  Simon Josefsson  <jas@extundo.com>
116532         * lib/memxor.c (memxor): Fix compiler error.
116534         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
116535         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
116537         * lib/memxor.h, lib/memxor.c: New files.
116539         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
116540         we assume all systems have it, suggested by Jim Meyering
116541         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
116542         any systems lack sys/socket.h; mingw32 is known to lack it, but we
116543         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
116544         same reasons.
116546 2005-10-05  Simon Josefsson  <jas@extundo.com>
116548         * config/srclist.txt: Add glibc bug 1423 for md5.h.
116550 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
116552         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
116553         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
116554         needed, since the source code now assumes these .h files.
116556 2005-10-05  Derek Price  <derek@ximbiot.com>
116558         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
116560 2005-10-05  Bruno Haible  <bruno@clisp.org>
116562         * modules/stdint (License): Change to LGPL.
116564 2005-10-04  Simon Josefsson  <jas@extundo.com>
116566         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
116567         D. Baushke" <mdb@gnu.org>.
116569 2005-10-04  Bruno Haible  <bruno@clisp.org>
116571         * lib/verify.h (verify_true): Provide alternative definition for C++.
116573 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
116575         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
116576         (SSIZE_MAX): New macro, if not already defined.
116577         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
116578         than 2 GiB.
116580 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116582         Sync from coreutils.
116583         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
116584         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
116585         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
116586         ULLONG_MAX doesn't work with 2.7.2.1.
116588 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116590         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
116591         From Ben Pfaff.
116593         * modules/exclude (Depends-on): Depend on verify.
116594         * modules/strtoimax (Depends-on): Likewise.
116595         * modules/utimecmp (Depends-on): Likewise.
116597 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116599         * lib/exclude.c: Include verify.h.
116600         (verify): Remove.  All callers changed to use verify.h's version.
116601         * lib/strtoimax.c: Likewise.
116602         * lib/utimecmp.c: Likewis.e
116604         Sync from coreutils.
116605         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
116606         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
116607         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
116608         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
116609         bother returning ENOSYS if settimeofday or stime fails; just let
116610         them return whatever errno they want to return.
116611         * lib/utimens.c: Include unistd.h, for dup2.
116612         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
116613         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
116615 2005-10-02  Jim Meyering  <jim@meyering.net>
116617         Sync from coreutils.
116618         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
116619         from glibc-2.2.5 that fails for read-only files.
116621 2005-10-02  Jim Meyering  <jim@meyering.net>
116623         Sync from coreutils.
116624         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
116625         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
116626         `#if HAVE_CONFIG_H'.
116627         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
116628         Remove AT_FDCWD test.
116629         Do not consume the fd unless successful.
116630         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
116631         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
116632         block, so that we don't even try to compile it if settimeofday is
116633         available.  This works around a compilation failure on OSF1 V5.1,
116634         due to stime requiring a `long int*' while tv_sec is `int'.
116636 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
116638         Sync from coreutils.
116639         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
116640         against `yes', rather than just testing for nonempty.
116642 2005-10-01  Simon Josefsson  <jas@extundo.com>
116644         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
116645         and Darwin.
116647         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
116648         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
116649         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
116650         freeaddrinfo and gai_strerror are declared by the POSIX headers.
116651         Check if struct addrinfo is declared.
116653 2005-10-01  Simon Josefsson  <jas@extundo.com>
116655         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
116656         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
116657         AI_* and EAI_* definitions.  Protect function declarations.
116659 2005-10-01  Jim Meyering  <jim@meyering.net>
116661         Sync from coreutils.
116663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
116664         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
116665         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
116666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116667         in the inet and nsl libraries.  Required on Solaris 5.7.
116669 2005-10-01  Jim Meyering  <jim@meyering.net>
116671         Sync from coreutils.
116672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116673         in the inet and nsl libraries.  Required on Solaris 5.7.
116675 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
116677         * lib/getdelim.c (getdelim): Remove unused variables.
116679 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
116681         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
116682         so that the code works even with ancient cpp.  Portability problem
116683         with GCC 2.7.2.1 reported by Thomas M.Ott.
116685 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
116687         * modules/regex (Depends-on): Add strcase.
116689         * modules/gethostname (Licence): Change from GPL to LGPL, since
116690         gethostname.c is a trivial implementation of a standard library
116691         function.
116692         * modules/poll (License): Change from GPL to LGPL, since it's
116693         derived from LGPL code.
116695 2005-09-27  Jim Meyering  <jim@meyering.net>
116697         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
116698         HAVE_CONFIG_H.
116700         * lib/intprops.h (signed_type_or_expr__): Define.
116701         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
116702         for unsigned types.
116704 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
116706         * lib/verify.h (verify_expr): Remove, replacing with:
116707         (verify_true): New macro that returns true instead of void.
116708         (verify_type__): Remove.
116709         (verify): Use verify_true rather than verify_type__.
116711 2005-09-26  Bruno Haible  <bruno@clisp.org>
116713         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
116714         is necessary.
116715         (lib_SOURCES): Remove mbchar.c.
116716         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
116717         (Files): Add m4/mbrtowc.m4.
116718         * modules/mbiter: Likewise.
116719         * modules/mbuiter: Likewise.
116721 2005-09-26  Bruno Haible  <bruno@clisp.org>
116723         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
116724         compile mbchar.c if they are not both present.
116725         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
116726         * m4/mbiter.m4 (gl_MBITER): Likewise.
116727         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
116728         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
116729         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
116731 2005-09-25  Jim Meyering  <jim@meyering.net>
116733         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
116734         also uses socklen_t.
116736 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
116738         * lib/utimens.c (ENOSYS): Define if not already defined.
116739         (futimens): Support having a null PATH if the file descriptor
116740         is nonnegative.
116742         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
116743         Remove.
116744         (__attribute): Define to empty unless GCC 3.1 or later.
116745         This works around a core dump on OpenBSD 3.4, which has GCC
116746         2.95.3, which dumps core when given __attribute__(()).  It also
116747         simplifies other tests, since we really don't want to bother with
116748         worrying about which ancient version of GCC supported what.
116749         Original problem reported by Yoann Vandoorselaere, with part of
116750         the fix suggested by Derek Price.
116752 2005-09-24  Jim Meyering  <jim@meyering.net>
116754         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
116755         so we can once again use a positive bitfield width of 1 -- now we
116756         don't have to explain why we were using a bitfield width of 2.
116758 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116760         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
116761         and similarly for the other external symbols.  Problem reported
116762         by James Gallager.
116764         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
116765         bug reported by Jim Meyering.
116767         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
116768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
116769         not needed, since socklen is a prerequisite module.
116771 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116773         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
116774         Problem reported by Eric Blake.
116775         (getaddrinfo): Initialize se so that it's not garbage.
116776         Redo internal storage allocation so that it doesn't make unportable
116777         assumptions about alignment.
116778         Fix a memory leak.
116780         * lib/utimens.c (futimens): Use futimesat if available.
116781         Prefer it to futimes since it doesn't have the futimes bug.
116783         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
116784         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
116785         Instead, declare a function that returns a pointer to an array,
116786         and use verify_type__ to declare the size of the array.
116787         Problem and germ of a solution reported by Bruno Haible.
116788         (verify_type__): Use 2, not 1, for bitfield size, to avoid
116789         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
116791 2005-09-23  Jim Meyering  <jim@meyering.net>
116793         Sync from coreutils.
116794         Correct build failure (socklen_t not defined) on at least
116795         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
116796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
116798 2005-09-23  Jim Meyering  <jim@meyering.net>
116800         * modules/getaddrinfo (Depends-on): Add socklen.
116802 2005-09-23  Bruno Haible  <bruno@clisp.org>
116804         * tests/test-verify.c: New file.
116806 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116808         Sync from coreutils.
116810         * modules/argmatch (Depends-on): Add verify.
116811         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
116812         unistd-safer.
116813         * modules/save-cwd (Depends-on): Likewise.
116815         * modules/openat (Files): Add lib/openat-die.c.
116816         (Depends-on): Remove error, exitfail.
116817         Add dirname.
116819         * modules/verify: New file.
116820         * MODULES.html.sh (Diagnostics <assert.h>): New section,
116821         with "verify" module.
116823 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116825         Sync from coreutils.
116827         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
116828         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
116829         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
116830         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
116831         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
116832         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
116833         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
116834         Don't bother checking for string.h, stdlib.h, unistd.h.
116835         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
116836         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
116837         module's job.
116838         * m4/jm-macros.m4 (gl_MACROS): Likewise.
116839         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
116841         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
116842         (gl_GETDATE): Use it.
116844         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
116846 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116848         Sync from coreutils.
116850         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
116851         stat-time.h.
116852         * lib/argmatch.h: Include verify.h
116853         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
116854         (ARGMATCH_ASSERT): Remove; unused.
116855         * lib/canonicalize.c: Assume STDC_HEADERS.
116856         * lib/exclude.c: Include "strcase.h".
116857         * lib/regex_internal.h [!defined _LIBC]: Likewise.
116858         * lib/getusershell.c: Include stdio--.h rather than stdio.h
116859         and stdio-safer.h.
116860         (getusershell): Call fopen, not fopen_safer.
116861         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
116862         Do not include unistd-safer.h.
116863         (save_cwd): Don't call fd_safer; no longer needed
116864         now that we include fcntl--.h.
116866         * lib/getdate.y (relative_time): New type.
116867         (RELATIVE_TIME_0): New constant.
116868         (parser_control): Use relative_time instead of doing it ourselves.
116869         (%union): Add new relative_time rel member.
116870         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
116871         Now typeless.
116872         (relunit, relunit_snumber): Now of type rel.
116873         (zone, rel, relunit, get_date): Adjust to above changes.
116875         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
116876         Do not include unistd-safer.h.
116877         (getloadavg): Don't call fd_safer; no longer needed
116878         now that we include fcntl--.h.
116880         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
116881         (make_dir_parents): Treat ENOSYS like EEXIST.
116883         Improve quality of diagnostics on restore_cwd failure.
116884         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
116885         (make_dir_parents): Last arg is now int * (for errno), not bool *.
116886         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
116887         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
116888         each time through the loop.  Do not diagnose restore_cwd failure;
116889         that is the caller's job (and perhaps the caller does not care).
116891         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
116892         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
116893         If the file already exists but is not a directory, don't bother
116894         to try to make its parents.
116895         Close potential file descriptor leak if we can't chdir("/") (!).
116896         Don't always return true if chdir($PWD) fails; return true only
116897         if the requested action was done successfully (except for the
116898         chdir($PWD)).
116899         Don't log final directory unless we actually made it.
116900         Refactor to avoid duplicate code to fix up permissions.
116901         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116903         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116904         to make it a bit faster and (I hope) clearer.
116905         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116906         Fix bug in formats like %2N.
116908         * lib/verify.h: New file.
116910 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116912         Sync from coreutils.
116913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116915 2005-09-22  Jim Meyering  <jim@meyering.net>
116917         Sync from coreutils.
116919         * m4/lstat.m4 (gl_FUNC_LSTAT):
116920         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116921         Remove obsolete comment.
116922         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116923         * m4/xstrtod.m4: Likewise.
116925         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116927 2005-09-22  Jim Meyering  <jim@meyering.net>
116929         Sync from coreutils.
116931         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116933         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116934         the .tm_year member, since otherwise gcc-4.0 would now warn about
116935         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116937         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116938         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116940         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116941         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116942         when run in a time zone for which daylight savings time is in effect
116943         for the starting date.
116945         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116946         stop us from restricting permissions of just-created absolute-named
116947         directories.
116948         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116949         to restore initial working directory.
116950         * lib/mkdir-p.c (make_dir_parents): New parameter:
116951         different_working_dir, to tell caller if/when we change the working
116952         directory and are unable to return to the initial one.
116953         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116954         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116955         `return false'.  This fixes a bug introduced on 2004-07-30.
116957         * lib/openat.c (fdopendir): Be sure to close the supplied
116958         file descriptor before returning.  This makes our replacement
116959         implementation a little closer to Solaris's, where fdopendir
116960         ties the file descriptor to the returned DIR* pointer.
116961         * lib/openat.c (unlinkat): New function.
116962         * lib/openat.h (unlinkat): Add prototype.
116963         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116964         (openat_restore_fail): Rename from openat_restore_die.
116965         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116967         Provide an alternative to exiting immediately upon save_cwd or
116968         restore_cwd failure.  Now, an application can arrange e.g.,
116969         to perform a longjump in that case.
116970         * lib/openat.c: Include dirname.h.
116971         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116972         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116973         and openat_restore_die rather than calling error directly.
116974         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116976         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116977         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116978         define.
116980         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116981         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116982                             int utc, int nanoseconds);
116983         Background:
116984         date should not have to allocate a megabyte of virtual memory to
116985         handle a format argument like +%1048575T.  When implemented with
116986         strftime, it must allocate such a buffer, use strftime to fill it
116987         in, print it, then free it.
116988         With fprintftime, it simply prints everything and exits.
116989         With no need for memory allocation, that's one fewer way to fail.
116990         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116991         optional field width, not before, so we accept %9:z, not %:9z.
116992         (my_strftime): Be sure to use L_('x') for literals.
116994         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116995         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116996         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116997         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116998         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116999         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
117000         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
117001         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
117002         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
117003         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
117004         * lib/xgethostname.c, lib/xreadlink.c:
117005         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
117007         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
117008         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
117009         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
117010         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117011         and don't include <sys/file.h>).
117013 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
117015         Sync from coreutils.
117017         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
117018         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
117019         [!LDAV_DONE]: Avoid unused variable warning.
117021 2005-09-21  Bruno Haible  <bruno@clisp.org>
117023         * lib/unicodeio.h (unicode_to_mb): New declaration.
117025 2005-09-20  Derek Price  <derek@ximbiot.com>
117027         * lib/getaddrinfo.c: Don't include <netdb.h> included from
117028         getaddrinfo.h.
117030 2005-09-20  Bruno Haible  <bruno@clisp.org>
117032         * gnulib-tool: Remove trailing slashes from the values specified for
117033         --source-base, --m4-base, --tests-base, --aux-dir.
117034         Suggested by Simon Josefsson <jas@extundo.com>.
117036 2005-09-20  Bruno Haible  <bruno@clisp.org>
117038         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
117039         func_modules_to_filelist, func_import, func_create_testdir): Make all
117040         sorting results locale-independent, so that gnulib-cache.m4 doesn't
117041         change when gnulib-tool is invoked in a different locale.
117043 2005-09-19  Simon Josefsson  <jas@extundo.com>
117045         * m4/socklen.m4: Fix typo.
117047 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117049         Use a consistent style for including <config.h>.
117050         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
117051         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
117052         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
117053         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
117054         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
117055         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
117056         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
117057         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
117058         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
117059         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
117060         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
117061         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
117062         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
117063         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
117064         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
117065         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
117066         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
117067         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
117068         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
117069         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
117070         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
117071         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
117072         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
117073         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
117074         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
117075         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
117076         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
117077         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
117078         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
117079         lib/xstrtoumax.c, lib/yesno.c:
117080         Standardize inclusion of config.h.
117081         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
117082         lib/inttostr.h:  Removed inclusion of config.h from header files.
117083         * lib/inttostr.c:  Adjusted in-tree users.
117084         * lib/timespec.h: Remove superfluous warning to include config.h.
117085         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
117086         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
117087         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
117088         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
117089         config.h with HAVE_CONFIG_H.
117091 2005-09-19  Jim Meyering  <jim@meyering.net>
117093         * modules/pathmax (License): Change to LGPL.
117095 2005-09-19  Derek Price  <derek@ximbiot.com>
117097         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
117099 2005-09-19  Bruno Haible  <bruno@clisp.org>
117101         * gnulib-tool (import): Provide default for --tests-base.
117103 2005-09-19  Bruno Haible  <bruno@clisp.org>
117105         * doc/quote.texi: New file, extracted from gnulib.texi.
117106         * doc/ctime.texi: New file, extracted from gnulib.texi.
117107         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
117108         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
117109         * doc/gnulib.texi: Include them.
117111 2005-09-18  Bruno Haible  <bruno@clisp.org>
117113         Portability fix.
117114         * gnulib-tool (func_readlink): New function.
117115         (func_ln_if_changed): Use it.
117117 2005-09-18  Bruno Haible  <bruno@clisp.org>
117119         * gnulib-tool: Support --with-tests also with --import.
117120         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
117121         (func_import): Use variables $testsbase and $inctests. Emit a
117122         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
117123         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
117124         SUBDIRS += $testsdir.
117125         (func_create_testdir): Update.
117127 2005-09-18  Bruno Haible  <bruno@clisp.org>
117129         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
117130         instead of $dry_run.
117131         (func_cp_if_changed, func_mv_if_changed): Remove functions.
117132         (func_ln_if_changed): Don't handle dry-run here.
117133         (func_import): In dry-run mode, detect more precisely which actions
117134         would be performed, and don't use "...ing" verbs.
117136 2005-09-18  Bruno Haible  <bruno@clisp.org>
117138         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
117139         (func_import): Use join on two temporary files instead of three nested
117140         loops, in order to determine which files are new or old.
117142 2005-09-18  Bruno Haible  <bruno@clisp.org>
117144         * gnulib-tool (func_import): Comment out code that spits out the
117145         new files with --dry-run.
117147 2005-09-18  Bruno Haible  <bruno@clisp.org>
117149         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
117151 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
117153         * lib/stat-time.h: New file.
117154         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
117155         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
117156         in a different way.
117157         (timespec_cmp): New function.
117158         * lib/utimecmp.c: Include stat-time.h.
117159         (SYSCALL_RESOLUTION): Depend on whether various struct stat
117160         members exist, not on the obsolescent ST_MTIM_NSEC.
117161         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
117163 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
117165         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
117167 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
117169         * MODULES.html.sh (File system functions): Add stat-time.
117170         * modules/stat-time: New file.
117171         * modules/timespec (Files): Remove m4/st_mtim.m4; this
117172         is now done in a different way, by the stat-time module.
117173         * modules/utimecmp (Depends-on): Add stat-time.
117175 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
117177         * m4/st_mtim.m4: Remove.  Superseded by...
117178         * m4/stat-time.m4: New file.
117179         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
117180         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
117182 2005-09-15  Derek Price  <derek@ximbiot.com>
117184         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
117186 2005-09-15  Derek Price  <derek@ximbiot.com>
117188         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
117189         * lib/regex_internal.c: Ditto, using this...
117190         (__GNUC_PREREQ): ...new macro.
117191         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
117192         using...
117193         (__GNUC_PREREQ): ...this new macro.
117195         * lib/strstr.h: Include string.h. Define strstr as a macro here.
117197 2005-09-15  Derek Price  <derek@ximbiot.com>
117198             Paul Eggert  <eggert@cs.ucla.edu>
117200         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
117201         changes, consolidating in...
117202         * lib/regex_internal.h: ...this file.
117204 2005-09-13  Jim Meyering  <jim@meyering.net>
117206         * lib/canon-host.c: Filter through gnu indent and reword comments
117207         slightly.
117208         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
117210 2005-09-13  Derek Price  <derek@ximbiot.com>
117212         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
117213         failure.
117214         Reported by Jim Meyering  <jim@meyering.net>.
117216 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117218         * lib/base64.c: Typo.
117219         (base64_encode): Put b64str in initialized data section.
117221 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
117223         Merge glibc and coreutils changes into gnulib, plus a few
117224         extra fixes.
117225         * lib/md5.c: Use #error rather than a string.
117226         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
117227         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
117228         (__attribute__): Define to empty for non recent-GCC.
117229         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
117230         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
117231         Renamed from their non-__ counterparts, with new macros replacing
117232         them if not _LIBC.  Add __THROW attribute.
117233         (rol): Remove.
117234         (struct md5_ctx): Align buffer if using GCC.
117235         * lib/sha1.h (struct sha1_ctx): Likewise.
117236         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
117237         The old name was backwards.
117238         (NOTSWAP): Remove; not used.
117239         (rol): New macro, moved here from md5.h.
117240         (sha1_process_block): Remove a FIXME that doesn't make sense.
117242 2005-09-12  Derek Price  <derek@ximbiot.com>
117244         Return usable errors from canon-host.
117245         * lib/canon-host.h: New file.
117246         * lib/canon-host.c (canon_host): Wrap...
117247         (canon_host_r): ...this new function, which now relies exclusively on
117248         getaddrinfo.
117249         (ch_strerror): New function.
117250         (last_cherror): New global.
117251         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
117252         interface.
117253         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
117254         void *.
117255         (freeaddrinfo): Free ai->ai_canonname when set.
117257 2005-09-12  Derek Price  <derek@ximbiot.com>
117259         Make canon-host require getaddrinfo.
117260         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
117261         AC_LIBSOURCE canon-host.h.  Call...
117262         (gl_PREREQ_CANON_HOST): ...this new function, which requires
117263         gl_GETADDRINFO.
117264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
117266 2005-09-12  Derek Price  <derek@ximbiot.com>
117268         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
117269         LGPL.
117270         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
117272 2005-09-12  Derek Price  <derek@ximbiot.com>
117274         * lib/gai_strerror.c: Include config.h when available.  Include
117275         getaddrinfo.h before other headers to test interface.
117276         Reported by Larry Jones <lawrence.jones@ugs.com>.
117278 2005-09-12  Derek Price  <derek@ximbiot.com>
117279             Paul Eggert  <eggert@cs.ucla.edu>
117281         * modules/glob (Files): Add glob-libc.h.
117283 2005-09-12  Derek Price  <derek@ximbiot.com>
117284             Paul Eggert  <eggert@cs.ucla.edu>
117286         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
117287         glob_.h, glob-libc.h.
117288         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
117290 2005-09-12  Derek Price  <derek@ximbiot.com>
117291             Paul Eggert  <eggert@cs.ucla.edu>
117293         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
117294         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
117295         protecting things that should be done only in gnulib contexts.
117296         * lib/glob_.h: New file, containing only the glob things needed for
117297         gnulib.
117298         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
117299         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
117300         (glob, globfree, glob_pattern_p): Now defined simply in terms of
117301         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
117302         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
117303         and to respect the namespace rules better.
117305 2005-09-08  Simon Josefsson  <jas@extundo.com>
117307         * modules/socklen: New file.
117309 2005-09-08  Simon Josefsson  <jas@extundo.com>
117311         * m4/socklen.m4: New file.
117313 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
117315         * modules/utimens (Files): Add m4/utimbuf.m4, since
117316         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
117317         Reported by Sergey Poznyakoff.
117319 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
117321         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
117322         definitions, since that's the preferred style in glibc.
117323         Fix a minor spacing issue, and update copyright notice to match
117324         glibc's.
117326 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
117328         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
117330 2005-09-06  Simon Josefsson  <jas@extundo.com>
117332         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
117333         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
117335 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117337         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
117338         warning.
117340 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117342         * config/srclist.txt: Add glibc bug 1302.
117344 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
117346         Change bitset word type from unsigned int to unsigned long int,
117347         as this has better performance on typical 64-bit hosts.
117348         Port bitset code to hosts with unusual word sizes.
117349         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
117350         (build_collating_symbol):
117351         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
117352         argument is a bitset.  This is merely a style issue, but it makes
117353         it clearer that an entire array is expected.
117354         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
117355         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
117356         Port to the case where bitset_word is not the same as unsigned int.
117357         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
117358         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
117359         Likewise.
117360         * lib/regexec.c (check_dst_limits_calc_pos_1,
117361         check_subexp_matching_top):
117362         (build_trtable, group_nodes_into_DFAstates):
117363         Likewise.
117364         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
117365         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
117366         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
117367         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
117368         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
117369         * lib/regcomp.c (optimize_subexps, lower_subexp):
117370         Work even if bitset_word has holes in its bitwise representation.
117371         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
117372         * lib/regexec.c (check_dst_limits_calc_pos_1,
117373         check_subexp_matching_top):
117374         Likewise.
117375         * lib/regex_internal.c (re_string_reconstruct):
117376         Don't assume UCHAR_MAX == 255.
117377         * lib/regex_internal.h (bitset_set_all): Likewise.
117378         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
117379         All uses changed.
117380         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
117381         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
117382         All uses changed.
117383         (BITSET_WORD_MAX): New macro.
117384         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
117385         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
117386         (bitset_empty, bitset_copy):
117387         Prefer sizeof (bitset) to multiplying it out ourselves.
117388         (bitset_not_merge): Remove; unused.
117389         (bitset_contain): Return bool, not unsigned int with one bit on.
117390         All callers changed.
117391         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
117392         alignment than re_node_set; do this by defining a new internal
117393         type struct dests_alloc and using it to allocate memory.
117395 2005-09-05  Bruno Haible  <bruno@clisp.org>
117397         * gnulib-tool (func_import): Fix comparison in handling of symbolic
117398         links.
117400 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
117402         * modules/size_max (Makefile.am): Add size_max.h
117404 2005-09-04  Derek Price  <derek@ximbiot.com>
117406         * gnulib-tool (func_import): Fix reversed $symbolic logic.
117408 2005-09-03  Simon Josefsson  <jas@extundo.com>
117410         * gnulib-tool: Fix typo.
117412 2005-09-03  Simon Josefsson  <jas@extundo.com>
117414         * config/srclist.txt: Add glibc bug 1293.
117416 2005-09-03  Derek Price  <derek@ximbiot.com>
117418         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
117419         From Larry Jones <lawrence.jones@ugs.com>.
117421 2005-09-02  Simon Josefsson  <jas@extundo.com>
117423         * modules/socklen: New file.
117425 2005-09-02  Simon Josefsson  <jas@extundo.com>
117427         * modules/havelib: New module.
117429         * modules/gettext, modules/iconv, modules/lock, modules/readline:
117430         Use havelib.
117432 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
117434         Check for arithmetic overflow when calculating sizes, to prevent
117435         some buffer-overflow issues.  These patches are conservative, in the
117436         sense that when I couldn't determine whether an overflow was possible,
117437         I inserted a run-time check.
117438         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
117439         macros.
117440         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
117441         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
117442         (re_xnrealloc, re_x2nrealloc): New inline functions.
117443         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
117444         parse_bracket_exp):
117445         (build_equiv_class, build_charclass): Check for arithmetic overflow
117446         in size expression calculations.
117447         * lib/regex_internal.c (re_string_realloc_buffers):
117448         (build_wcs_upper_buffer, re_node_set_add_intersect):
117449         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
117450         (re_dfa_add_node, register_state): Likewise.
117451         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
117452         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
117453         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
117454         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
117456 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
117458         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
117459         m4/ulonglong.m4.  Problem reported by Martin Lambers.
117461 2005-09-02  Bruno Haible  <bruno@clisp.org>
117463         Support for lib vs. lib64 distinction on biarch platforms.
117464         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
117465         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
117466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
117468 2005-09-02  Bruno Haible  <bruno@clisp.org>
117470         * gnulib-tool (import): In the other first-use case, provide defaults
117471         as well.
117473 2005-09-02  Bruno Haible  <bruno@clisp.org>
117475         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
117476         patches not yet found in the latest gettext release.
117478 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117480         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
117481         to avoid a collision with bits/local_lim.h in glibc.
117482         All uses changed.  Problem reported by Dmitry V. Levin in
117483         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
117485         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
117486         bugs in int versus size_t comparisons.
117487         (re_string_context_at): Fix bug where the code assumed that
117488         Idx is signed.
117490         Use bool where appropriate.
117491         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
117492         All callers changed.
117493         (calc_eclosure_iter): Likewise, for ROOT arg.
117494         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
117495         (build_charclass_op): Likewise, for NON_MATCH arg.
117496         * lib/regex_internal.c (re_string_allocate, re_string_construct):
117497         (re_string_construct_common): Likewise, for ICASE arg.
117498         * lib/regexec.c (re_search_2_stub, re_search_stub):
117499         Likewise, for RET_LEN arg.
117500         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
117501         (set_regs): Likewise, for FL_BACKTRACK arg.
117502         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
117503         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
117504         (calc_eclosure_iter, parse_bracket_exp):
117505         Use bool for internal variables that are booleans.
117506         * lib/regexec.c (re_search_internal, check_matching,
117507         proceed_next_node):
117508         (set_regs, build_sifted_states, sift_states_bkref):
117509         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
117510         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117511         (find_collation_sequence_value):
117512         Likewise.
117513         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
117514         (re_node_set_compare):
117515         Return bool, not int. All callers changed.
117516         * lib/regexec.c (check_halt_node_context, check_dst_limits):
117517         (build_trtable, check_node_accept): Likewise.
117518         * lib/regex_internal.h: Include stdbool.h.
117520         Fix bugs uncovered when converting to bool.
117521         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
117522         failure instead of charging ahead blindly.
117523         * lib/regex_internal.c (register_state): Likewise.
117524         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
117525         for freeing internal storage.
117526         (group_nodes_into_DFA_states): Use unsigned int, not int, for
117527         bitset pieces used as boolean, to avoid undefined behavior
117528         on hosts that do int overflow checking.
117530 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117532         * config/srclist.txt: Add glibc bugs 1285-1287.
117534 2005-09-01  Jim Meyering  <jim@meyering.net>
117536         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
117537         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
117538         Require gl_STAT_MACROS, too.
117540 2005-09-01  Bruno Haible  <bruno@clisp.org>
117542         * gnulib-tool (import): In the first-use case, provide defaults.
117544 2005-09-01  Bruno Haible  <bruno@clisp.org>
117546         * gnulib-tool (func_import): Remove the .tmp files.
117548 2005-09-01  Bruno Haible  <bruno@clisp.org>
117550         * gnulib-tool (func_import): Fix handling of symbolic links.
117552 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117554         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
117555         old glibc regex code mishandles strings longer than 2**31 bytes.
117556         This patch fixes this when the regex code is used in gnulib
117557         (i.e., outside glibc).
117559         This patch should not affect the use of the regex code inside
117560         glibc.  No doubt this problem also needs to be handled for glibc
117561         as well, but the result will be an incompatible change to the
117562         glibc ABI, and the old ABI will have to be supported too.  That
117563         can be the subject for another patch.
117565         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
117566         governing whether the rest of this patch is active.  By default,
117567         the macro is disabled and the patch has no effect.
117568         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
117569         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
117570         (struct re_pattern_buffer, re_search, re_search_2, re_match):
117571         (re_match_2, re_set_registers): Use the new types.
117572         * lib/regex_internal.h (Idx, re_hashval_t): New types.
117573         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
117574         New macros.
117575         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
117576         (re_string_context_at, bin_tree_t, re_dfastate_t):
117577         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
117578         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
117579         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
117580         (re_string_char_size_at, re_string_wchar_at):
117581         (re_string_elem_size_at):
117582         Use the new types and macros to port to 64-bit hosts.
117583         Use unsigned types for internal values, so that the code
117584         mostly works even for arrays larger than SSIZE_MAX.
117585         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
117586         (search_duplicated_node, calc_eclosure_iter, fetch_number):
117587         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
117588         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
117589         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
117590         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
117591         (calc_inveclosure, parse_dup_op, build_range_exp):
117592         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
117593         (fetch_number, create_token_tree, mark_opt_subexp):
117594         Likewise.
117595         * lib/regex_internal.c (re_string_construct_common,
117596         create_ci_newstate):
117597         (create_cd_newstate, re_string_allocate, re_string_construct):
117598         (re_string_realloc_buffers, build_wcs_upper_buffer):
117599         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117600         (re_string_reconstruct, re_string_peek_byte_case):
117601         (re_string_fetch_byte_case, re_string_context_at):
117602         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117603         (re_node_set_init_copy, re_node_set_add_intersect):
117604         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117605         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117606         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117607         (re_acquire_state, re_acquire_state_context, register_state):
117608         Likewise.
117609         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
117610         search_cur_bkref_entry):
117611         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
117612         (re_search_internal, re_search_2_stub, re_search_stub)
117613         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
117614         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
117615         (update_cur_sifted_state, check_dst_limits):
117616         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117617         (check_subexp_limits, sift_states_bkref, merge_state_array):
117618         (check_subexp_matching_top, get_subexp, get_subexp_sub):
117619         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
117620         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117621         (expand_bkref_cache, check_node_accept_bytes):
117622         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
117623         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
117624         (acquire_init_state_context, check_halt_node_context):
117625         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
117626         (sift_states_backward, clean_state_log_if_needed):
117627         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
117628         (find_recover_state, transit_state_sb, transit_state_mb):
117629         (transit_state_bkref, build_trtable, match_ctx_clean):
117630         Likewise.
117631         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
117632         to work around an assumption that REG_MISSING is negative.
117634         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
117635         (seek_collating_symbol_entry) [defined _LIBC]:
117636         (lookup_collation_sequence_value) [defined _LIBC]:
117637         (build_range_exp, build_collating_symbol) [defined _LIBC]:
117638         Use prototypes rather than old-style function definitions.
117639         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
117640         (transit_state_sb) [0]:
117641         (find_collation_sequence_value) [defined _LIBC]: Likewise.
117643         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
117644         rm_eo.
117646         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
117647         (optimize_subexps, lower_subexp):
117648         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
117649         since the signed shift might overflow.  Use 1u<<31 instead.
117650         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
117651         Likewise.
117652         * lib/regexec.c (check_dst_limits_calc_pos_1,
117653         check_subexp_matching_top): Likewise.
117655         * lib/regcomp.c (optimize_subexps, lower_subexp):
117656         Use CHAR_BIT rather than 8, for clarity.
117657         * lib/regexec.c (check_dst_limits_calc_pos_1):
117658         (check_subexp_matching_top): Likewise.
117659         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
117660         have to worry about portability issues when shifting it left.
117661         Remove no-longer-needed test for table_size > 0.
117662         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
117663         in a word, as the resulting behavior is undefined.
117664         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
117665         in one case, a <= should have been an <, and in another case the
117666         whole test was missing.
117667         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
117668         the standard name CHAR_BIT.
117669         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
117670         this is not true on one's complement and signed-magnitude hosts.
117672         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
117673         next_last_offset.
117674         (struct re_dfa_t): Remove unused member states_alloc.
117675         * lib/regcomp.c (init_dfa): Don't initialize unused members.
117677 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117679         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
117680         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
117681         and large-file glibc and in 32-bit large-file Solaris.
117683 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117685         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
117686         lengths fit in regoff_t; this isn't true if regoff_t is the same
117687         width as size_t.
117688         * lib/regex.c (re_search_internal): 5th arg is LAST_START
117689         (= START + RANGE) instead of RANGE.  This avoids overflow
117690         problems when regoff_t is the same width as size_t.
117691         All callers changed.
117692         (re_search_2_stub): Check for overflow when adding the
117693         sizes of the two strings.
117694         (re_search_stub): Check for overflow when adding START
117695         to RANGE; if it occurs, substitute the extreme value.
117697 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117699         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
117701 2005-08-31  Jim Meyering  <jim@meyering.net>
117703         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
117704         a pointer-to-const.
117705         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
117706         (register_state): Likewise.
117707         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
117708         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117709         (group_nodes_into_DFAstates): Likewise.
117711 2005-08-31  Jim Meyering  <jim@meyering.net>
117713         * check-module: Add a FIXME comment.
117715 2005-08-31  Eric Blake  <ebb9@byu.net>
117717         * modules/unistd-safer (Files): Add unistd--.h.
117718         * modules/stdio-safer (Files): Add stdio--.h.
117720 2005-08-31  Derek Price  <derek@ximbiot.com>
117722         * lib/getdelim.c (getdelim): Return EOF on EOF.
117723         Reported by Larry Jones <lawrence.jones@ugs.com>.
117725 2005-08-31  Bruno Haible  <bruno@clisp.org>
117727         Avoid unnecessary diffs in the generated lib/Makefile.am.
117728         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
117729         the generated files.
117730         (func_import): Don't set cmd.
117732 2005-08-31  Bruno Haible  <bruno@clisp.org>
117734         * lib/strstr.c: Include <stddef.h>, for NULL.
117735         * lib/strcasestr.c: Likewise.
117736         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
117738 2005-08-31  Bruno Haible  <bruno@clisp.org>
117740         * gnulib-tool: New option --macro-prefix.
117741         (func_import): Use macro_prefix.
117742         (import): Handle option --macro-prefix.
117744 2005-08-31  Bruno Haible  <bruno@clisp.org>
117746         * gnulib-tool (import): Rename most ac_* variables to cached_*.
117747         Also use new variables cached_lgpl, cached_libtool.
117749 2005-08-31  Bruno Haible  <bruno@clisp.org>
117751         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
117752         always instantiating them.
117754 2005-08-31  Bruno Haible  <bruno@clisp.org>
117756         * gnulib-tool (func_import): Read the previous cached settings
117757         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
117758         earlier added by gnulib but are now dropped. Warn when a gnulib file
117759         overwrites a non-gnulib file.
117761 2005-08-31  Bruno Haible  <bruno@clisp.org>
117763         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
117764         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
117765         projects that don't keep autogenerated files in CVS. Put into
117766         actioncmd only the specified modules, not the transitive closure.
117768 2005-08-31  Bruno Haible  <bruno@clisp.org>
117770         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
117771         Create directories that shall be filled.
117772         (import): Don't look for gl_* macros in configure.ac. Recurse across
117773         all directories containing a gnulib-cache.m4 files, if meaningful.
117775 2005-08-31  Bruno Haible  <bruno@clisp.org>
117777         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
117778         (import): Set seen_libtool when we see gl_LIBTOOL.
117780 2005-08-31  Bruno Haible  <bruno@clisp.org>
117782         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
117783         declaration macro definitions from generated gnulib.m4.
117785 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
117787         * lib/iconvme.h: Add prototype for iconv_alloc.
117789 2005-08-29  Simon Josefsson  <jas@extundo.com>
117791         * lib/iconvme.c: Fix errno.
117793 2005-08-29  Bruno Haible  <bruno@clisp.org>
117795         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
117796         that it works when the directory contains spaces.
117798 2005-08-29  Bruno Haible  <bruno@clisp.org>
117800         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
117802 2005-08-29  Bruno Haible  <bruno@clisp.org>
117804         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
117805         Emit more advice.
117807 2005-08-29  Bruno Haible  <bruno@clisp.org>
117808         and Stepan Kasal  <kasal@ucw.cz>
117810         * check-module: If more parameters are given, check each of them
117811         separately; add more exceptions, as noted by Jim Meyering.
117812         (check_module): New procedure.
117813         (%exempt_header): Now contains all exceptions.
117815 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
117817         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
117819 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
117821         * lib/iconvme.c: Split iconv_string into iconv_alloc.
117823 2005-08-28  Bruno Haible  <bruno@clisp.org>
117825         * m4/gnulib-tool.m4: New file.
117827 2005-08-27  Jim Meyering  <jim@meyering.net>
117829         * modules/unistd-safer (Files): Add pipe-safer.c.
117830         * modules/fcntl-safer (Files): Add creat-safer.c.
117832 2005-08-27  Jim Meyering  <jim@meyering.net>
117834         * m4/stdlib-safer.m4: New file.  From coreutils.
117835         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
117836         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
117837         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
117838         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
117839         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
117841 2005-08-27  Jim Meyering  <jim@meyering.net>
117843         * lib/fopen-safer.c: Merge minor changes from coreutils.
117844         * lib/dup-safer.c: Likewise.
117845         * lib/fd-safer.c: Likewise.
117847         Merge from coreutils.
117848         * lib/stdio--.h: New file.
117849         * lib/stdlib--.h: New file.
117850         * lib/mkstemp-safer.c: New file.
117852         GNU tar needs these.
117853         * lib/pipe-safer.c: New file.
117854         * lib/creat-safer.c: New file.
117855         * lib/fcntl--.h (creat): Define to creat_safer.
117856         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
117857         * lib/unistd--.h (pipe): Define to pipe_safer.
117858         * lib/unistd-safer.h: Declare pipe_safer.
117860 2005-08-26  Simon Josefsson  <jas@extundo.com>
117862         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
117863         Haible <bruno@clisp.org>.
117865 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
117867         * lib/regex_internal.h: Remove all references to
117868         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
117869         or better.
117870         (bitset_not, bitset_merge, bitset_not_merge):
117871         (bitset_mask, re_string_allocate, re_string_construct):
117872         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
117873         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
117874         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
117875         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
117876         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117877         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117878         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
117879         (re_acquire_state_context):
117880         Remove unnecessary forward decls.
117881         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
117882         Put __attribute at function definition,
117883         now that the function decl has been removed.
117884         * lib/regex_internal.c (re_string_peek_byte_case):
117885         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
117886         Likewise.
117888 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
117890         * m4/regex.m4: Add AC_PREREQ(2.50).
117891         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
117893 2005-08-25  Simon Josefsson  <jas@extundo.com>
117895         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117896         __fsetlocking.
117898 2005-08-25  Simon Josefsson  <jas@extundo.com>
117900         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117901         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117902         GLIBC specific code.
117904 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117906         Make regex safe for g++.  This fixes one real bug (an "err"
117907         that should have been "*err").  g++ problem reported by
117908         Sam Steingold.
117909         * lib/regex_internal.h (re_calloc): New macro, consistent with
117910         re_malloc etc.  All callers of calloc changed to use re_calloc.
117911         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117912         not int.  All callers changed.
117913         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117914         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117915         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117916         (find_recover_state): Change "err" to "*err"; this fixes what
117917         appears to be a real bug.
117918         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117919         versus int.
117921 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117923         * modules/regex (Depends-on): Add malloc, since the code
117924         assumes that !malloc(0) means failure.
117926 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117928         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117930         alloca modernization/simplification for regex.
117931         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117932         needs to be at the start of the file, and can be moved into
117933         regex_internal.h and simplified.
117934         * lib/regex_internal.h: Include <alloca.h>.
117935         (__libc_use_alloca) [!defined _LIBC]: New macro.
117936         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117937         now works outside glibc.
117939 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117941         * config/srclist.txt: Add glibc bugs 1241, 1245.
117943 2005-08-25  Jim Meyering  <jim@meyering.net>
117945         * lib/open-safer.c: Include <config.h>.
117946         Otherwise, we'd lose LARGEFILE support in any file using
117947         e.g. "fcntl--.h"
117949 2005-08-25  Bruno Haible  <bruno@clisp.org>
117951         * m4/minmax.m4: Require autoconf 2.52.
117952         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117953         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117954         alternatives of translit over the alphabet.
117955         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117957 2005-08-24  Simon Josefsson  <jas@extundo.com>
117959         * tests/test-getpass.c: New file.
117961 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117963         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117964         for GNU regex features.
117966 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117968         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117969         * lib/regex.h (regerror): Likewise.
117971         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117972         requires this.  (The code never needed it.)
117974         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117975         All uses of recently-renamed identifiers changed to use the new,
117976         POSIX-compliant names.  The code will build and run just fine
117977         without these changes, but it's better to eat our own dog food
117978         and use the standard-conforming names.
117980         * lib/regex.h: Fix a multitude of POSIX name space violations.
117981         These changes have an effect only for programs that define
117982         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117983         do not change anything for programs compiled in the normal way.
117984         Also, there is no effect on the ABI.
117986         (_REGEX_SOURCE): New macro.
117987         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117988         defined and _GNU_SOURCE is not; this fixes a name space violation.
117990         Rename the following macros to obey POSIX requirements.
117991         The old names are still visible as macros if _REGEX_SOURCE is defined.
117992         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117993         RE_BACKSLASH_ESCAPE_IN_LISTS.
117994         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117995         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117996         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117997         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117998         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117999         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
118000         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
118001         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
118002         (REG_INTERVALS): renamed from RE_INTERVALS.
118003         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
118004         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
118005         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
118006         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
118007         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
118008         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
118009         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
118010         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
118011         RE_UNMATCHED_RIGHT_PAREN_ORD.
118012         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
118013         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
118014         (REG_DEBUG): renamed from RE_DEBUG.
118015         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
118016         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
118017         unusual, since we can't clash with the POSIX REG_ICASE.
118018         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
118019         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
118020         (REG_NO_SUB): renamed from RE_NO_SUB.
118021         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
118022         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
118023         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
118024         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
118025         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
118026         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
118027         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
118028         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
118029         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
118030         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
118031         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
118032         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
118033         RE_SYNTAX_POSIX_MINIMAL_BASIC.
118034         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
118035         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
118036         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
118037         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
118038         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
118039         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
118040         (REG_FIXED): Renamed from REGS_FIXED.
118041         (REG_NREGS): Renamed from RE_NREGS.
118043         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
118044         of other REG_* macros, since POSIX says the user is allowed to
118045         #undef these macros selectively.
118047         (reg_errcode_t): Update comment stating what other tables need
118048         to be consistent.
118050         Rename the following enum values to obey POSIX requirements.
118051         The old names are still visible as macros.
118052         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
118053         is not defined, since GNU is supposed to be a superset of POSIX as
118054         much as possible, and since we want reg_errcode_t to be a signed
118055         type for implementation consistency.
118056         (_REG_NOERROR): Renamed from REG_NOERROR.
118057         (_REG_NOMATCH): Renamed from REG_NOMATCH.
118058         (_REG_BADPAT): Renamed from REG_BADPAT.
118059         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
118060         (_REG_ECTYPE): Renamed from REG_ECTYPE.
118061         (_REG_EESCAPE): Renamed from REG_EESCAPE.
118062         (_REG_ESUBREG): Renamed from REG_ESUBREG.
118063         (_REG_EBRACK): Renamed from REG_EBRACK.
118064         (_REG_EPAREN): Renamed from REG_EPAREN.
118065         (_REG_EBRACE): Renamed from REG_EBRACE.
118066         (_REG_BADBR): Renamed from REG_BADBR.
118067         (_REG_ERANGE): Renamed from REG_ERANGE.
118068         (_REG_ESPACE): Renamed from REG_ESPACE.
118069         (_REG_BADRPT): Renamed from REG_BADRPT.
118070         (_REG_EEND): Renamed from REG_EEND.
118071         (_REG_ESIZE): Renamed from REG_ESIZE.
118072         (_REG_ERPAREN): Renamed from REG_ERPAREN.
118073         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
118074         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
118075         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
118076         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
118078         (_REG_RE_NAME, _REG_RM_NAME): New macros.
118079         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
118080         changed.  But support the old name if the new one is not defined
118081         and if _REGEX_SOURCE.
118083         Change the following member names in struct re_pattern_buffer.
118084         The old names are still supported if !_REGEX_SOURCE.
118085         The new names are always supported, regardless of _REGEX_SOURCE.
118086         (re_buffer): Renamed from buffer.
118087         (re_allocated): Renamed from allocated.
118088         (re_used): Renamed from used.
118089         (re_syntax): Renamed from syntax.
118090         (re_fastmap): Renamed from fastmap.
118091         (re_translate): Renamed from translate.
118092         (re_can_be_null): Renamed from can_be_null.
118093         (re_regs_allocated): Renamed from regs_allocated.
118094         (re_fastmap_accurate): Renamed from fastmap_accurate.
118095         (re_no_sub): Renamed from no_sub.
118096         (re_not_bol): Renamed from not_bol.
118097         (re_not_eol): Renamed from not_eol.
118098         (re_newline_anchor): Renamed from newline_anchor.
118100         Change the following member names in struct re_registers.
118101         The old names are still supported if !_REGEX_SOURCE.
118102         The new names are always supported, regardless of _REGEX_SOURCE.
118103         (rm_num_regs): Renamed from num_regs.
118104         (rm_start): Renamed from start.
118105         (rm_end): Renamed from end.
118107         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
118108         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
118109         Prepend __ to parameter names.
118111         Undo yesterday's changes.
118113 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
118115         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
118116         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
118117         lib/regex.c.
118119 2005-08-24  Jim Meyering  <jim@meyering.net>
118121         Sync from coreutils.
118122         * m4/fcntl-safer.m4: New file.
118124         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
118125         and object files for this module.
118127 2005-08-24  Jim Meyering  <jim@meyering.net>
118129         Sync from coreutils.
118130         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
118132 2005-08-24  Jim Meyering  <jim@meyering.net>
118134         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
118135         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
118137 2005-08-24  Jim Meyering  <jim@meyering.net>
118139         * modules/fcntl-safer: New module.
118140         * modules/fts (Depends-on): Add fcntl-safer.
118141         * MODULES.html.sh (File descriptor based Input/Output):
118142         Add fcntl-safer.
118144 2005-08-24  Bruno Haible  <bruno@clisp.org>
118146         Support for unit test modules.
118147         * modules/README: Mention tests modules.
118148         * modules/TEMPLATE-TESTS: New file.
118149         * gnulib-tool: New options --extract-tests-module, --with-tests and
118150         --tests-base (unused for the moment).
118151         (testsbase, inctests): New variables.
118152         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
118153         (func_verify_module): Exclude TEMPLATE-TESTS.
118154         (func_verify_nontests_module, func_verify_tests_module): New functions.
118155         (func_get_dependencies): Add implicit dependency for tests modules.
118156         (func_get_tests_module): New function.
118157         (func_modules_transitive_closure): When --with-tests was specified,
118158         include the unit tests as well, unless explicitly avoided.
118159         (func_emit_lib_Makefile_am): Ignore the tests modules here.
118160         (func_emit_tests_Makefile_am): New function.
118161         (func_create_testdir): When --with-tests was specified, emit a
118162         tests/ directory.
118163         * MODULES.html.sh (Future developments): Update.
118165 2005-08-24  Bruno Haible  <bruno@clisp.org>
118167         * modules/tls-tests: New file.
118168         * tests/test-tls.c: New file, from GNU gettext.
118170 2005-08-24  Bruno Haible  <bruno@clisp.org>
118172         * modules/lock-tests: New file.
118173         * tests/test-lock.c: New file, from GNU gettext.
118175 2005-08-24  Bruno Haible  <bruno@clisp.org>
118177         * lib/lock.h: Add multiple inclusion guard.
118178         * lib/tls.h: Add multiple inclusion guard.
118180 2005-08-24  Bruno Haible  <bruno@clisp.org>
118182         * gnulib-tool: Add support for the --aux-dir option to
118183         --create-testdir, --create-megatestdir, --test, --megatest.
118184         (func_create_testdir, func_create_megatestdir): Optionally emit a
118185         AC_CONFIG_AUX_DIR directive.
118186         (create-testdir, create-megatestdir, test, megatest): Provide a
118187         default value for $auxdir.
118189 2005-08-24  Bruno Haible  <bruno@clisp.org>
118191         * gnulib-tool (import): Use compound statement instead of subshell
118192         where possible.
118194 2005-08-24  Bruno Haible  <bruno@clisp.org>
118196         * gnulib-tool (import): Change --aux-dir default to "build-aux".
118198 2005-08-24  Bruno Haible  <bruno@clisp.org>
118200         * gnulib-tool (func_version): Update.
118202 2005-08-24  Bruno Haible  <bruno@clisp.org>
118204         * gnulib-tool (func_import, func_create_testdir,
118205         func_create_megatestdir): Quote all autoconf macro arguments.
118207 2005-08-24  Bruno Haible  <bruno@clisp.org>
118209         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
118210         option --force, because --force causes the aclocal.m4 of each
118211         subdirectory to be newer than the corresponding config.h.in.
118213 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
118215         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
118216         All contents moved to gl_REGEX.
118217         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
118218         assume that it does.
118220 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
118222         * lib/regex.h (REG_NOSYS)
118223         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
118224         Define, since POSIX requires it as of 2001.
118225         (_REG_ENOSYS)
118226         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
118227         New private symbol, used to keep the enum signed in all cases.
118228         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
118229         Youngman in
118230         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
118232         * lib/regex_internal.c (re_string_skip_chars, register_state):
118233         (calc_state_hash):
118234         Remove forward decls; no longer needed now that we use prototypes.
118235         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
118236         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
118237         (clean_state_log_if_needed): Likewise.
118239 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
118241         * config/srclist.txt: Add glibc bugs 1231-1233.
118243 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
118245         Fix problems reported by Sam Steingold in
118246         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
118247         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
118248         assumed that reg_errcode_t is a signed type, which is not
118249         necessarily true if _XOPEN_SOURCE is not defined.
118250         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
118251         since some compilers warn about it otherwise.
118253 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
118255         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
118256         (init_word_char, create_initial_state, duplicate_node_closure):
118257         (fetch_token, peek_token_bracket, build_range_exp):
118258         (build_collating_symbol): Remove forward decls; no longer needed
118259         now that we use prototypes.
118261         * lib/regcomp.c:
118262         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
118263         (re_compile_fastmap_iter, regcomp, regerror, regfree):
118264         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
118265         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
118266         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
118267         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
118268         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
118269         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
118270         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
118271         (build_range_exp, build_collating_symbol, parse_bracket_exp):
118272         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
118273         (build_charclass, build_charclass_op, fetch_number, create_tree):
118274         (create_token_tree, mark_opt_subexp, duplicate_tree):
118275         Use prototypes rather than old-style definitions.
118277         * lib/regex_internal.c:
118278         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
118279         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
118280         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
118281         (re_string_reconstruct, re_string_peek_byte_case):
118282         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
118283         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
118284         (re_node_set_init_copy, re_node_set_add_intersect):
118285         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
118286         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
118287         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
118288         (re_acquire_state, re_acquire_state_context, register_state):
118289         (create_ci_newstate, create_cd_newstate, free_state):
118290         Likewise.
118291         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
118292         re_search_2):
118293         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
118294         (re_search_internal, prune_impossible_nodes):
118295         (acquire_init_state_context, check_matching, static):
118296         (check_halt_node_context, check_halt_state_context, proceed_next_node):
118297         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
118298         (update_regs, sift_states_backward, build_sifted_states):
118299         (clean_state_log_if_needed, merge_state_array):
118300         (update_cur_sifted_state, add_epsilon_src_nodes):
118301         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
118302         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
118303         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
118304         (find_recover_state, check_subexp_matching_top, transit_state_mb):
118305         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
118306         (check_arrival, check_arrival_add_next_nodes):
118307         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
118308         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
118309         (check_node_accept_bytes, check_node_accept, extend_buffers):
118310         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
118311         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
118312         (sift_ctx_init):
118313         Likewise.
118315         * lib/regex_internal.h:
118316         (re_string_allocate, re_string_construct, re_string_reconstruct):
118317         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
118318         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
118319         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
118320         (re_string_context_at, re_string_peek_byte_case):
118321         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
118322         is defined, since we now use prototypes always.
118324         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
118325         C89 or better.  All uses removed.
118327 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
118329         * config/srclist.txt: Add glibc bugs 1220-1227.
118331 2005-08-20  Jim Meyering  <jim@meyering.net>
118333         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
118334         of unused local, dfa.
118336 2005-08-20  Bruno Haible  <bruno@clisp.org>
118338         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
118340 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118342         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
118343         (re_node_set_insert_last, re_dfa_add_node):
118344         Rename local variables to avoid GCC shadowing warnings.
118346 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118348         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
118349         [defined lint]: Suppress bogus uninitialized-variable warnings.
118351         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
118352         and let the caller return REG_ESPACE if out of space.  This
118353         removes an uninitialied-variable warning with GCC 4.0.1, and also
118354         avoids taking the address of a local variable.  All callers
118355         changed.
118357 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118359         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
118360         $LIBCSRC/posix/regexec.c.
118361         Add glibc bug 1217 for regcomp.c.
118363 2005-08-19  Jim Meyering  <jim@meyering.net>
118365         * lib/regexec.c (proceed_next_node): Redo local variables to
118366         avoid GCC shadowing warnings.
118368 2005-08-18  Bruno Haible  <bruno@clisp.org>
118370         * lib/strstr.c (strstr): Fix return value in multibyte case.
118371         * lib/strcasestr.c (strcasestr): Likewise.
118373 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
118375         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
118377 2005-08-17  Jim Meyering  <jim@meyering.net>
118379         Make the %s format (seconds since the epoch) work for a negative
118380         number and when used with a zero-padded field width, e.g. %015s.
118382         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
118383         label so that it precedes the code to set `digits'.  Otherwise,
118384         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
118385         print `00-22'.  Now, it prints `-0022', as it should.
118387 2005-08-17  Bruno Haible  <bruno@clisp.org>
118389         * modules/strstr (Files): Add m4/mbrtowc.m4.
118390         (Depends-on): Add mbuiter.
118392 2005-08-17  Bruno Haible  <bruno@clisp.org>
118394         * modules/strcasestr: New file.
118395         * MODULES.html.sh (String handling, based on ANSI C 89): Add
118396         strcasestr.
118398 2005-08-17  Bruno Haible  <bruno@clisp.org>
118400         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
118402 2005-08-17  Bruno Haible  <bruno@clisp.org>
118404         * modules/mbuiter: New file.
118405         * MODULES.html.sh (Extended multibyte and wide character utilities):
118406         Add mbuiter.
118408 2005-08-17  Bruno Haible  <bruno@clisp.org>
118410         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
118411         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
118413 2005-08-17  Bruno Haible  <bruno@clisp.org>
118415         * m4/strcasestr.m4: New file.
118417 2005-08-17  Bruno Haible  <bruno@clisp.org>
118419         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
118420         * lib/strstr.c: Completely rewritten, with multibyte locale support.
118422 2005-08-17  Bruno Haible  <bruno@clisp.org>
118424         * lib/strcasestr.h: New file.
118425         * lib/strcasestr.c: New file.
118427 2005-08-17  Bruno Haible  <bruno@clisp.org>
118429         * lib/strcasecmp.c: Use mbuiter.h.
118431 2005-08-17  Bruno Haible  <bruno@clisp.org>
118433         * lib/mbuiter.h: New file.
118435 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
118437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
118438         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
118439         and gl_GETOPT are both invoked via different paths (as happens
118440         with GNU tar CVS because it uses both argp and getopt), the former
118441         wins.
118443 2005-08-16  Bruno Haible  <bruno@clisp.org>
118445         * modules/tls: New file.
118446         * MODULES.html.sh (Multithreading): Add tls.
118448 2005-08-16  Bruno Haible  <bruno@clisp.org>
118450         * modules/strnlen1: New file.
118451         * MODULES.html.sh (String handling): Add strnlen1.
118453 2005-08-16  Bruno Haible  <bruno@clisp.org>
118455         * modules/strcase (Files): Add m4/mbrtowc.m4.
118456         (Depends-on): Add strnlen1, mbchar.
118458 2005-08-16  Bruno Haible  <bruno@clisp.org>
118460         * modules/mbiter: New file.
118461         * MODULES.html.sh (Extended multibyte and wide character utilities):
118462         Add mbiter.
118464 2005-08-16  Bruno Haible  <bruno@clisp.org>
118466         * modules/mbfile: New file.
118467         * MODULES.html.sh (Extended multibyte and wide character utilities):
118468         Add mbfile.
118470 2005-08-16  Bruno Haible  <bruno@clisp.org>
118472         * modules/mbchar: New file.
118473         * MODULES.html.sh (Extended multibyte and wide character utilities):
118474         New section.
118476 2005-08-16  Bruno Haible  <bruno@clisp.org>
118478         * m4/tls.m4: New file, from GNU gettext.
118480 2005-08-16  Bruno Haible  <bruno@clisp.org>
118482         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
118483         always.
118484         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
118486 2005-08-16  Bruno Haible  <bruno@clisp.org>
118488         * m4/mbiter.m4: New file.
118490 2005-08-16  Bruno Haible  <bruno@clisp.org>
118492         * m4/mbfile.m4: New file.
118494 2005-08-16  Bruno Haible  <bruno@clisp.org>
118496         * m4/mbchar.m4: New file.
118498 2005-08-16  Bruno Haible  <bruno@clisp.org>
118500         * lib/tls.h: New file, from GNU gettext.
118501         * lib/tls.c: New file, from GNU gettext.
118503 2005-08-16  Bruno Haible  <bruno@clisp.org>
118505         * lib/strnlen1.h: New file.
118506         * lib/strnlen1.c: New file.
118508 2005-08-16  Bruno Haible  <bruno@clisp.org>
118510         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
118511         (mbi_init): Update.
118512         (mbi_avail, mbi_advance): Let the iteration end before the terminating
118513         NUL byte, not after it.
118515 2005-08-16  Bruno Haible  <bruno@clisp.org>
118517         * lib/strcase.h (strcasecmp): Add note in comments.
118518         * lib/strncasecmp.c: Use code from strcasecmp.c.
118519         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
118520         (strcasecmp): Work correctly in multibyte locales.
118522 2005-08-16  Bruno Haible  <bruno@clisp.org>
118524         * lib/mbiter.h: New file.
118526 2005-08-16  Bruno Haible  <bruno@clisp.org>
118528         * lib/mbfile.h: New file.
118530 2005-08-16  Bruno Haible  <bruno@clisp.org>
118532         * lib/mbchar.h: New file.
118533         * lib/mbchar.c: New file.
118535 2005-08-16  Bruno Haible  <bruno@clisp.org>
118537         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
118538         the valid ones. Makes the comparison operations transitive:
118539         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
118540         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
118542 2005-08-15  Simon Josefsson  <jas@extundo.com>
118544         * modules/ssize_t (License): Change to 'unlimited'.
118546         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
118548 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
118550         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
118551         Add comments for each pending glibc patch.
118553 2005-08-15  Bruno Haible  <bruno@clisp.org>
118555         * lib/regex.h (__restrict_arr): Don't define to __restrict if
118556         __cplusplus is defined.
118558 2005-08-14  Jim Meyering  <jim@meyering.net>
118560         Sync from coreutils.
118562         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
118563         Use the hash-table-based cycle-detection code not just when
118564         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
118565         Reported by James Youngman in
118566         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
118567         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
118568         FTS_TIGHT_CYCLE_CHECK.
118569         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
118570         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
118571         once again.
118572         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
118573         * lib/fts.c (fd_safer): Remove decl.
118574         Include fcntl--.h rather than unistd-safer.h
118575         (fts_safe_changedir): Don't call fd_safer; no longer needed
118576         now that we include fcntl--.h.
118578 2005-08-12  Simon Josefsson  <jas@extundo.com>
118580         * modules/getndelim2: Use ssize_t module.
118581         * modules/getnline: Likewise.
118582         * modules/safe-read: Likewise.
118583         * modules/xreadlink: Likewise.
118585         * modules/ssize_t: New file.
118587 2005-08-12  Simon Josefsson  <jas@extundo.com>
118589         * m4/readline.m4: Look for termcap, curses or ncurses if required.
118591 2005-08-12  Simon Josefsson  <jas@extundo.com>
118593         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118594         ssize_t.
118596 2005-08-12  Simon Josefsson  <jas@extundo.com>
118598         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
118599         readline, getdelim and check_version.
118600         (Support for systems lacking ISO C 99: Sizes of integer types):
118601         Add size_max.
118603 2005-08-12  Bruno Haible  <bruno@clisp.org>
118605         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
118607 2005-08-11  Simon Josefsson  <jas@extundo.com>
118609         * modules/readline: New file.
118611         * modules/strnlen (Files): Add strnlen.h.
118613 2005-08-11  Simon Josefsson  <jas@extundo.com>
118615         * m4/readline.m4: New file.
118617 2005-08-11  Simon Josefsson  <jas@extundo.com>
118619         * lib/readline.h, readline.c: New file.
118621 2005-08-11  Simon Josefsson  <jas@extundo.com>
118623         * doc/gnulib.texi (Initial import, Finishing touches): Mention
118624         gl_AVOID.
118626 2005-08-11  Bruno Haible  <bruno@clisp.org>
118628         * lib/strnlen.h (strnlen): Change parameter name to match comment.
118630 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
118632         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
118634 2005-08-10  Simon Josefsson  <jas@extundo.com>
118636         * tests/test-iconvme.c: New file.
118638 2005-08-10  Simon Josefsson  <jas@extundo.com>
118640         * m4/strnlen.m4: New file.
118642         * m4/strndup.m4: Don't check for strnlen declaration, done in
118643         strnlen.m4.
118645 2005-08-10  Simon Josefsson  <jas@extundo.com>
118647         * lib/strndup.c: Use strnlen.h.
118649         * lib/strnlen.h: New file.
118651 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118653         * README: Typos.
118655 2005-08-02  Simon Josefsson  <jas@extundo.com>
118657         * modules/readline: New file.
118659 2005-08-02  Simon Josefsson  <jas@extundo.com>
118661         * modules/getdelim: New file.
118663         * modules/getline: Rewrite, don't use getndelim2.
118665 2005-08-02  Simon Josefsson  <jas@extundo.com>
118667         * m4/getline.m4: Separate out getdelim stuff into separate module.
118669         * m4/getdelim.m4: New file.
118671 2005-08-02  Simon Josefsson  <jas@extundo.com>
118673         * lib/getline.h, getline.c: Rewrite.
118675         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
118677 2005-07-31  Bruno Haible  <bruno@clisp.org>
118679         * lib/lock.h (gl_lock_initializer): New macro.
118680         (gl_lock_define_initialized): Use it.
118681         (gl_rwlock_initializer): New macro.
118682         (gl_rwlock_define_initialized): Use it.
118683         (gl_recursive_lock_initializer): New macro.
118684         (gl_recursive_lock_define_initialized): Use it.
118686 2005-07-30  Karl Berry  <karl@gnu.org>
118688         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
118689         Report from Ben Pfaff, regarding getopt.
118691 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
118693         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
118694         normal way.
118695         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
118696         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
118697         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
118698         (gl_GETOPT): Use the new macros.  Most of the implementation
118699         is moved to the new macros.  This is for programs like Emacs
118700         that don't want all the functionality of gl_GETOPT.
118702 2005-07-26  Bruno Haible  <bruno@clisp.org>
118704         * m4/lock.m4: Update from GNU gettext.
118706 2005-07-26  Bruno Haible  <bruno@clisp.org>
118708         * lib/lock.h: Update from GNU gettext.
118709         * lib/lock.c: Update from GNU gettext.
118711 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
118713         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
118714         obsolescent AC_TRY_RUN.  Include the default includes files, for
118715         'exit'.
118717 2005-07-24  Bruno Haible  <bruno@clisp.org>
118719         * modules/visibility: New file.
118720         * MODULES.html.sh (Misc): Add visibility.
118722 2005-07-24  Bruno Haible  <bruno@clisp.org>
118724         * m4/visibility.m4: New file.
118726 2005-07-24  Bruno Haible  <bruno@clisp.org>
118728         * doc/visibility.texi: New file.
118730 2005-07-22  Bruno Haible  <bruno@clisp.org>
118732         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
118733         $(ALLOCA_H), redundant through BUILT_SOURCES.
118734         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
118735         redundant through BUILT_SOURCES.
118736         * modules/byteswap (Makefile.am): Remove explicit dependency on
118737         $(BYTESWAP_H), redundant through BUILT_SOURCES.
118738         * modules/fnmatch (Makefile.am): Remove explicit dependency on
118739         $(FNMATCH_H), redundant through BUILT_SOURCES.
118740         * modules/getopt (Makefile.am): Remove explicit dependency on
118741         $(GETOPT_H), redundant through BUILT_SOURCES.
118742         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
118743         redundant through BUILT_SOURCES.
118744         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
118745         redundant through BUILT_SOURCES.
118746         * modules/stdbool (Makefile.am): Remove explicit dependency on
118747         $(STDBOOL_H), redundant through BUILT_SOURCES.
118748         * modules/stdint (Makefile.am): Remove explicit dependency on
118749         $(STDINT_H), redundant through BUILT_SOURCES.
118750         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
118751         Remove explicit dependency on $(SYSEXITS_H).
118752         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
118754 2005-07-18  Simon Josefsson  <jas@extundo.com>
118756         * lib/check-version.c (check_version): Accept identical versions too.
118758 2005-07-18  Bruno Haible  <bruno@clisp.org>
118760         * modules/lock: New file.
118761         * MODULES.html.sh (Multithreading): New section.
118763 2005-07-18  Bruno Haible  <bruno@clisp.org>
118765         * m4/lock.m4: New file, from GNU gettext.
118767 2005-07-18  Bruno Haible  <bruno@clisp.org>
118769         * lib/lock.h: New file, from GNU gettext.
118770         * lib/lock.c: New file, from GNU gettext.
118772 2005-07-18  Bruno Haible  <bruno@clisp.org>
118774         * lib/lock.h (gl_once_t): New type.
118775         (gl_once_define, gl_once): New macros.
118776         * lib/lock.c (fresh_once): New variable.
118777         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
118778         functions.
118780 2005-07-16  Simon Josefsson  <jas@extundo.com>
118782         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
118783         workaround, suggested by Bruno.
118785 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118787         * modules/xalloc (Depends-on): Add xalloc-die.
118788         * modules/xvasprintf (Depends-on): Add xalloc-die.
118790 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118792         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
118793         with a minor change.
118795 2005-07-15  Bruno Haible  <bruno@clisp.org>
118797         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
118798         When using lib/poll.c, define poll as rpl_poll.
118800 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
118802         * modules/argp (Depends-on): Remove unlocked-io.
118804 2005-07-14  Derek Price  <derek@ximbiot.com>
118806         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
118807         for glob symlink bug.
118809 2005-07-14  Bruno Haible  <bruno@clisp.org>
118811         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
118812         Instead, test for *_unlocked function declarations directly.
118814 2005-07-11  Simon Josefsson  <jas@extundo.com>
118816         * modules/size_max: New file.
118818         * modules/xsize: Depend on size_max module for size_max.m4.
118820 2005-07-11  Simon Josefsson  <jas@extundo.com>
118822         * lib/size_max.h: New file.
118824 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
118826         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
118827         copyright symbol and the year.
118828         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
118829         (version_etc_va): Use parameterized copyright notice.
118830         Reword to conform to the current GNU coding standards.
118832 2005-07-11  Karl Berry  <karl@gnu.org>
118834         * doc/gnulib.texi (Quoting): new node.
118835         (Initial import): more info, from Patrice.
118837 2005-07-11  Bruno Haible  <bruno@clisp.org>
118839         * gnulib-tool (func_usage): Document option --avoid.
118840         (Command line options): Handle --avoid.
118841         (func_acceptable): New function.
118842         (func_modules_transitive_closure): Use it.
118844 2005-07-11  Bruno Haible  <bruno@clisp.org>
118846         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
118847         Reported by Jim Meyering.
118849 2005-07-10  Bruno Haible  <bruno@clisp.org>
118851         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
118852         Needed when size_t is smaller than 'unsigned int'.
118853         Reported by Paul Eggert.
118855 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118857         * modules/argp (Depends-on): Add unlocked-io
118859 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118861         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
118862         block of defines.
118864 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
118866         * config/srclist.txt: Comment out regcomp.c, since we have a porting
118867         fix now.
118869 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
118870         and Paul Eggert  <eggert@cs.ucla.edu>
118872         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
118873         in wint_t, not wchar_t.  Remove now-unnecessary cast.
118875 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118877         * modules/regex (Files): Add lib/regex_internal.c,
118878         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
118879         (Depends-on): Add extensions.
118880         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
118882 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118884         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
118885         pathconf.
118886         * m4/same.m4 (gl_SAME): Likewise.
118887         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
118889         * m4/regex.m4: Adjust to new libc regex implementation.
118890         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
118891         all the .c and .h parts of (the new) regex.
118892         Quote the m4 stuff better.
118893         Check for RE_ICASE bug of old gnulib.
118894         Check for REG_STARTEND of recent libc.
118895         Rename local variables from jm_* to gl_*.
118896         Quote operand of "test -f".
118897         Say "recent enough" version of libc, not "version 2".
118898         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118899         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118900         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118901         Remove check for btowc, isascii.
118902         Require AM_LANGINFO_CODESET.
118904 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118906         * lib/regex.c, regex.h: Sync from libc.
118907         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118908         * lib/regexec.c:
118909         New files, synced from libc, except that regex_internal.h
118910         currently has a small porting fix.
118912 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118914         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118915         regex_internal.c, regexec.c.
118916         Add regex_internal.h too, but as a comment, since the libc version
118917         is currently broken in gnulib mode.
118919 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118921         Support programs like Emacs that use gnulib but not gettext.
118922         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118923         * modules/gettext-h: New file.
118924         * modules/gettext (Files): Remove lib/gettext.h.
118925         (Depends-on): Add gettext-h.
118926         (Makefile.am): Remove lib_SOURCES.
118927         * modules/argmatch, modules/c-stack, modules/closeout:
118928         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118929         * modules/execute, modules/file-type, modules/getaddrinfo:
118930         * modules/getopt, modules/human, modules/javacomp:
118931         * modules/javaexec, modules/mkdir-p, modules/obstack:
118932         * modules/openat, modules/pagealign_alloc, modules/pipe:
118933         * modules/quotearg, modules/regex, modules/rpmatch:
118934         * modules/unicodeio, modules/userspec, modules/version-etc:
118935         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118936         * modules/xsetenv:
118937         Depend on gettext-h, not gettext.
118939 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118941         * gnulib-tool (func_import): Add support for 'public domain' license.
118942         * modules/alloca, modules/atexit, modules/memmove:
118943         Now public domain, not GPL.
118944         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118945         * modules/realloc, modules/strerror, modules/strtod:
118946         Now LGPL, not GPL.
118948 2005-07-05  Bruno Haible  <bruno@clisp.org>
118950         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118951         autoconf CVS. Needed for mingw.
118953 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118955         Remove the dependency of the strftime module on the tzset module.
118956         * modules/strftime (Depends-on): Remove dependency on tzset.
118958 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118960         Remove the dependency of the strftime module on the tzset module.
118961         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118962         gl_FUNC_TZSET_CLOBBER.
118964 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118966         Remove the dependency of the strftime module on the tzset module.
118967         * lib/strftime.c (my_strftime)
118968         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118969         Copy the input structure, to work around some of the bug with
118970         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118971         Solaris releases, you should also use the tzset module, but we won't
118972         require it as a dependency any more since we don't want LGPLed code
118973         to depend on GPLed code.
118975 2005-07-02  Jim Meyering  <jim@meyering.net>
118977         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118978         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118979         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118980         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118982 2005-07-02  Jim Meyering  <jim@meyering.net>
118984         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118986 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118988         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118989         declares only 'struct timespec;' (!).
118991 2005-07-01  Jim Meyering  <jim@meyering.net>
118993         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118994         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118995         * lib/save-cwd.c, tempname.c:
118996         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118997         and don't include <sys/file.h>).
118999 2005-06-29  Jim Meyering  <jim@meyering.net>
119001         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
119002         type name.  Use the variable name instead.
119003         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
119004         Likewise.
119006 2005-06-28  Simon Josefsson  <jas@extundo.com>
119008         * modules/check-version (Files): Add check-version.m4.
119010 2005-06-28  Simon Josefsson  <jas@extundo.com>
119012         * m4/check-version.m4: New file, suggested by Jim Meyering
119013         <jim@meyering.net>.
119015 2005-06-28  Simon Josefsson  <jas@extundo.com>
119017         * lib/check-version.h, lib/check-version.c: New files.
119019 2005-06-28  Simon Josefsson  <jas@extundo.com>
119021         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
119022         collision with global variable.  Better indentation.  Don't
119023         increment buffer pointer beyond buffer end.  Based on comments
119024         from Paul Eggert <eggert@cs.ucla.edu>.
119026         * lib/base64.h: Indent.
119028 2005-06-28  Simon Josefsson  <jas@extundo.com>
119030         * doc/gnulib.texi (Library version handling): New section.
119032 2005-06-28  Jim Meyering  <jim@meyering.net>
119034         * check-module (find_included_lib_files): Hard-code another
119035         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
119036         but modules/fts-lgpl (correctly) does not list those files.
119038         * modules/canonicalize (Files): Add lib/pathmax.h.
119040 2005-06-25  Simon Josefsson  <jas@extundo.com>
119042         * modules/check-version: New file.
119044 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
119046         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
119047         initializer of struct addrinfo, as an indication that we don't
119048         care how many members the structure has.
119050 2005-06-24  Derek Price  <derek@ximbiot.com>
119051         and Bruno Haible  <bruno@clisp.org>
119053         Remove stat module & update lstat.
119054         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
119055         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
119056         * m4/stat.m4: Remove this file.
119058 2005-06-24  Derek Price  <derek@ximbiot.com>
119059         and Bruno Haible  <bruno@clisp.org>
119061         Remove stat module & update lstat.
119062         * lib/stat.c: Remove this file...
119063         (slash_aware_lstat): ...moving this content and its support...
119064         * lib/lstat.c (rpl_lstat): ...into here.
119065         * lib/lstat.h: New file.
119067 2005-06-24  Derek Price  <derek@ximbiot.com>
119068         and Bruno Haible  <bruno@clisp.org>
119070         Remove stat module & update lstat.
119071         * config/srclist.txt (libc sources): Remove stat.
119073 2005-06-24  Derek Price  <derek@ximbiot.com>
119074         and Bruno Haible  <bruno@clisp.org>
119076         Remove stat module & update lstat.
119077         * MODULES.html.sh (stat): Remove.
119078         * MODULES.html: Regenerated.
119079         * modules/lstat (Description): Correct function name.
119080         (Files): Add "lstat.h".
119081         (Depends-on): Remove stat, add xalloc, stat-macros.
119082         * modules/stat: Remove this file.
119083         (Include): Add "lstat.h", remove <sys/stat.h>.
119085 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
119087         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
119088         (ranged_convert): Don't save conversion in a temporary struct.
119089         This causes a warning with GCC 4.0.0, and anyway in the typical
119090         case it's not worth the extra 100 bytes or so of code.
119091         (ranged_convert, __mktime_internal): When calling a function via a
119092         pointer P, use P () rather than (*P) (), as we now assume C89 or
119093         better.
119095 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119097         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
119098         "who -r" failed to give output.  Problem reported by Tim Waugh.
119100         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
119101         (xcalloc): Use it to avoid needless tests.
119102         Problem reported by Jim Meyering.
119104 2005-06-20  Derek Price  <derek@ximbiot.com>
119106         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
119107         unnecessary for Autoconfs > 2.59c.
119109 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119111         * lib/argp.h (__option_is_short): Check upper limit of
119112         __key. Isprint() requires its argument to have the value
119113         of an unsigned char or EOF.
119115 2005-06-16  Jim Meyering  <jim@meyering.net>
119117         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
119118         when either N or S is zero.
119120 2005-06-16  Derek Price  <derek@ximbiot.com>
119122         * m4/bison.m4: Declare YACC & YFLAGS precious.
119124 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
119126         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
119127         multibyte string or pattern, fall back on unibyte matching.
119128         Problem reported by James Youngman.
119130 2005-06-08  Bruno Haible  <bruno@clisp.org>
119132         * modules/csharpcomp: New file.
119133         * MODULES.html.sh (C#): Add csharpcomp.
119135 2005-06-08  Bruno Haible  <bruno@clisp.org>
119137         * m4/csharpcomp.m4: New file, from GNU gettext.
119139 2005-06-08  Bruno Haible  <bruno@clisp.org>
119141         * lib/csharpcomp.h: New file, from GNU gettext.
119142         * lib/csharpcomp.c: New file, from GNU gettext.
119143         * lib/csharpcomp.sh.in: New file, from GNU gettext.
119145 2005-06-08  Bruno Haible  <bruno@clisp.org>
119147         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
119148         warning on mingw.
119150 2005-06-07  Derek Price  <derek@ximbiot.com>
119152         Sync from CVS.
119153         * lib/glob_.h: Indent nested #ifdef.
119155 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
119157         Sync from coreutils.
119158         Use "file name" when talking about file names, instead of "filename"
119159         or "path", as per the GNU coding standards.
119160         * lib/mkdir-p.c: Renamed from makepath.c.
119161         (make_dir_parents): Renamed from make_path.  All callers changed.
119162         * lib/mkdir-p.h: Likewise.  All includers changed.
119163         * lib/filenamecat.c: Renamed from path-concat.c.
119164         (file_name_concat): Renamed from path_concat.  All callers changed.
119165         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
119166         * lib/filenamecat.h: Likewise.  All includers changed.
119167         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
119168         in comments or local variable names.
119169         * lib/basename.c: Likewise.
119170         * lib/canonicalize.c, canonicalize.h: Likewise.
119171         * lib/dirname.c, dirname.h: Likewise.
119172         * lib/euidaccess.c: Likewise.
119173         * lib/exclude.c: Likewise
119174         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
119175         * lib/fsusage.c, fsuage.h: Likewise.
119176         * lib/fts.c, fts_.h: Likewise.
119177         * lib/getcwd.c: Likewise.
119178         * lib/getloadavg.c: Likewise.
119179         * lib/mkstemp.c: Likewise.
119180         * lib/mountlist.c, mountlist.h: Likewise.
119181         * lib/openat.c, openat.h: Likewise.
119182         * lib/readlink-stub.c: Likewise.
119183         * lib/readutmp.c, readutmp.h: Likewise.
119184         * lib/rename.c: Likewise.
119185         * lib/rmdir.c: Likewise.
119186         * lib/same.c: Likewise.
119187         * lib/savedir.c: Likewise.
119188         * lib/stripslash.c: Likewise.
119189         * lib/tempname.c: Likewise.
119190         * lib/xreadlink.c: Likewise.
119191         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
119192         All uses changed.
119193         * lib/exclude.h: Likewise.
119195         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
119196         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
119197         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
119198         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
119199         * lib/pathmax.h: Include <limits.h> unconditionally, since other
119200         files have been getting away with it for years (MORE/BSD 4.3
119201         is extinct now).
119202         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
119203         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
119205         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
119206         Define to 256, not 255, as per modern POSIX.
119208 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
119210         Sync from coreutils.
119211         Use "file name" when talking about file names, instead of "filename"
119212         or "path", as per the GNU coding standards.
119213         * MODULES.html.sh: mkdir-p renamed from makepath.
119214         filenamecat renamed from path-concat.
119215         * modules/filenamecat: Renamed from modules/path-concat.
119216         (Files): filenamecat.h and filenamecat.c renamed from
119217         path-concat.h and path-concat.c.
119218         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
119219         (Include): filenamecat.h, not path-concat.h.
119220         * modules/mkdir-p: Renamed from modules/makepath.
119221         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
119222         makepath.c.
119223         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
119224         (Include): mkdir-p.h, not makepath.h.
119226 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
119228         Sync from coreutils.
119229         * m4/mkdir-p.m4: Renamed from makepath.m4.
119230         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
119231         Rename files from makepath.c to mkdir-p.c, and from
119232         makepath.h to mkdir-p.h.
119233         * m4/filenamecat.m4: Renamed from path-concat.m4.
119234         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
119235         Rename files from path-concat.c to filenamecat.c,
119236         and from path-concat.h to filenamecat.h.
119237         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
119238         "file name" in local variables or comments.
119239         * m4/rename.m4: Likewise.
119241 2005-06-01  Bruno Haible  <bruno@clisp.org>
119243         * modules/csharpexec: New file.
119244         * MODULES.html.sh (C#): New section.
119246 2005-06-01  Bruno Haible  <bruno@clisp.org>
119248         * m4/csharp.m4: New file, from GNU gettext.
119249         * m4/csharpexec.m4: New file, from GNU gettext.
119251 2005-06-01  Bruno Haible  <bruno@clisp.org>
119253         * lib/csharpexec.h: New file, from GNU gettext.
119254         * lib/csharpexec.c: New file, from GNU gettext.
119255         * lib/csharpexec.sh.in: New file, from GNU gettext.
119257 2005-05-31  Derek Price  <derek@ximbiot.com>
119258             Paul Eggert  <eggert@cs.ucla.edu>
119260         Sync from cvs.
119261         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
119263 2005-05-31  Derek Price  <derek@ximbiot.com>
119264             Paul Eggert  <eggert@cs.ucla.edu>
119266         Sync from cvs.
119267         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
119269 2005-05-29  Derek Price  <derek@ximbiot.com>
119271         * config/srclist.txt (glob_.h, glob.c): Add these files.
119273 2005-05-29  Derek Price  <derek@ximbiot.com>
119275         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
119276         * modules/glob: New file.
119277         * modules/getlogin_r: Add link to POSIX spec in description.
119279 2005-05-29  Derek Price  <derek@ximbiot.com>
119280             Paul Eggert  <eggert@cs.ucla.edu>
119282         * m4/glob.m4: New file.
119284 2005-05-29  Derek Price  <derek@ximbiot.com>
119285             Paul Eggert  <eggert@cs.ucla.edu>
119287         * lib/glob_.h, lib/glob.c: New files.
119289 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
119291         * modules/fts (Files): Remove m4/inttypes-pri.m4.
119292         * modules/fts-lgpl (Depends-on): Remove gettext.
119294 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
119296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
119297         and don't require gt_INTTYPES_PRI.
119299 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
119301         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
119303         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
119304         the configuration hassle isn't worth it.
119305         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
119306         (LONGEST_MODIFIER, PRIuMAX): Remove.
119308 2005-05-27  Bruno Haible  <bruno@clisp.org>
119310         * lib/getlogin_r.h: Remove second include of <stddef.h>.
119312 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
119314         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
119315         _POSIX_PTHREAD_SEMANTICS for Solaris.
119317 2005-05-25  Derek Price  <derek@ximbiot.com>
119319         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
119321 2005-05-25  Derek Price  <derek@ximbiot.com>
119322             Paul Eggert  <eggert@cs.ucla.edu>
119324         * modules/getlogin_r, m4/getlogin_r.m4: New files.
119325         * lib/getlogin_r.c, getlogin_r.h: New files.
119327 2005-05-25  Bruno Haible  <bruno@clisp.org>
119328             Derek Price  <derek@ximbiot.com>
119330         * lib/getlogin_r.h: Simplify API documentation.
119332 2005-05-23  Derek Price  <derek@ximbiot.com>
119334         * modules/minmax (Files): Add m4/minmax.m4.
119335         (configure.ac): Add gl_MINMAX.
119337 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
119339         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
119340         so that unistd-safer.h (GPL'ed code) need not be included.
119342 2005-05-22  Bruno Haible  <bruno@clisp.org>
119344         * m4/minmax.m4: New file.
119345         Based on a patch by Derek Price <derek@ximbiot.com>.
119347 2005-05-22  Bruno Haible  <bruno@clisp.org>
119349         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
119350         (INT64_MIN): Fix definition.
119351         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
119353         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
119354         NEED_SIGNED_INT_TYPES.
119356         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
119357         HAVE_SYSTEM_INTTYPES.
119359 2005-05-22  Bruno Haible  <bruno@clisp.org>
119361         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
119362         Also include <sys/param.h> if it defines MIN, MAX.
119363         Based on a patch by Derek Price <derek@ximbiot.com>.
119365 2005-05-21  Jim Meyering  <jim@meyering.net>
119367         * modules/fts (Files): Add m4/inttypes-pri.m4.
119368         (Depends-on): Add lstat and remove gettext.  Alphabetize.
119370 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119372         New fts module.
119373         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
119374         (setup_dir, free_dir): New functions.
119375         (enter_dir, leave_dir): Define trivial
119376         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
119377         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
119378         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
119379         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
119380         Move to fts-cycle.c.
119381         (fts_open): Use setup_dir.
119382         (fts_close): Use free_dir.
119383         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
119384         This adds a label and some gotos, but the alternatives were messier.
119385         Check for memory allocation failure when entering a dir.
119386         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
119387         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
119388         (FTS): New member fts_cycle, that is a union that contains the
119389         old active_dir_ht and cycle_state.  All uses changed to mention
119390         fts_cycle.ht and fts_cycle.state.
119391         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
119392         fts.c, with the following changes:
119393         (setup_dir, free_dir): New functions.
119394         (enter_dir): Now returns bool.  Return true if successful, false
119395         if memory exhausted.  All callers changed.
119396         Do not bother partly cleaning up on
119397         memory allocation failure; that is free_dir's job.
119398         However, free ad if hash_insert fails, to avoid memory leak.
119399         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
119400         fts->fts_options to see which union member to use.
119402 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119404         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
119405         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
119407 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119409         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
119411 2005-05-20  Jim Meyering  <jim@meyering.net>
119413         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
119414         Now a macro, to pacify GCC.
119416 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
119418         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
119419         of -1.
119421 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
119423         * lib/chown.c (rpl_chown): Return -1 on failure.
119425 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
119427         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
119428         Don't check for stddef.h.
119429         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
119430         don't use its results.
119431         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
119432         since we include them unconditionally.  Don't require
119433         AM_STDBOOL_H, since stdbool is a prerequisite.
119434         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
119435         since we assume C89 or better.
119436         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
119437         as we don't use their results.
119438         Don't check for fchdir, memmove, memset, strrchr, as we use
119439         them unconditionally.
119440         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
119441         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
119443 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
119445         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
119446         Include <stddef.h> unconditionally, since we assume C89 now.
119447         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
119448         * lib/fts.c: Include fts_.h first, to check interface.
119449         Do not include intprops.h; no longer needed.
119450         Include cycle-check.h and hash.h, since fts_.h no longer does.
119451         Remove unnecessary casts of closedir to void.
119452         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
119453         decide whether to decrement nlinks.
119454         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
119455         (FTS): Use struct hash_table * instead of Hash_table, so that
119456         we no longer need to include hash.h here.
119458 2005-05-18  Jim Meyering  <jim@meyering.net>
119460         * modules/dirfd (License): Change to LGPL.  Most of the code
119461         is already in the public domain.
119463 2005-05-18  Jim Meyering  <jim@meyering.net>
119465         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
119466         Reported by Yoann Vandoorselaere.
119468 2005-05-17  Jim Meyering  <jim@meyering.net>
119470         * m4/fts.m4: New file, from coreutils.
119472 2005-05-17  Jim Meyering  <jim@meyering.net>
119474         * lib/fts.c, lib/fts_.h: New files, from coreutils.
119476 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119478         Sync from coreutils.
119479         * m4/unlinkdir.m4: New file.
119481 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119483         Sync from coreutils.
119484         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
119485         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
119486         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
119487         White space changes only.
119488         * lib/makepath.c (make_path): Port to hosts where leading "//" is
119489         special.
119490         * lib/yesno.c: Include getline.h, not ctype.h.
119491         (yesno): Don't remove leading white space; POSIX doesn't allow it.
119492         Use getline to remove arbitrary restriction on response length.
119494 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119496         * config/srclist-update: Spell out "Street" in FSF postal
119497         mail address; this is the style the FSF seems to prefer.
119499         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
119500         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
119501         this updates FSF postal mail address.
119503         Sync from coreutils.
119504         * modules/unlinkdir: New file.
119505         * modules/yesno (Depends-on): Add getline.
119506         * MODULES.html.sh (File system functions): Add unlinkdir.
119508 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119510         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
119511         lib/strsep.h:
119512         Change the initial comment to refer to GPL, not LGPL.
119513         gnulib-tool will change it to LGPL as needed.
119515         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
119516         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
119517         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
119518         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
119519         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
119520         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
119521         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
119522         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
119523         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
119524         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
119525         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
119526         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
119527         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
119528         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
119529         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
119530         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
119531         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
119532         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
119533         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
119534         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
119535         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
119536         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
119537         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
119538         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
119539         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
119540         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
119541         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
119542         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
119543         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
119544         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
119545         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
119546         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
119547         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
119548         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
119549         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
119550         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
119551         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
119552         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
119553         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
119554         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
119555         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
119556         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
119557         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
119558         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
119559         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
119560         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
119561         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
119562         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
119563         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
119564         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
119565         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
119566         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
119567         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
119568         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
119569         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
119570         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
119571         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
119572         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
119573         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
119574         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
119575         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
119576         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
119577         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
119578         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
119579         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
119580         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
119581         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
119582         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
119583         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
119584         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
119585         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
119586         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
119587         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
119588         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
119589         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
119590         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
119591         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
119592         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
119593         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
119594         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
119595         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
119596         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
119597         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
119598         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
119599         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
119600         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
119601         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
119602         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
119603         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
119604         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
119605         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
119606         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
119607         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
119608         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
119609         lib/yesno.c, lib/yesno.h:
119610         Update FSF postal mail address.
119612 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119614         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
119615         tests/test-memmem.c, tests/test-stpncpy.c:
119616         Update FSF postal mail address.
119618 2005-05-13  Bruno Haible  <bruno@clisp.org>
119620         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
119621         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
119622         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
119623         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
119624         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
119625         Add support for 64-bit integers in the MSVC compiler.
119627 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119629         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
119631 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
119633         * gnulib-tool (func_import): Sort and uniquify recommended includes.
119635 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
119637         * doc/getdate.texi (General date syntax): Don't say that date
119638         date --iso-8601=ns generates acceptable dates; it doesn't yet.
119639         Problem reported by Nic Ferrier.
119641 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119643         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
119644         specified in ai_socktype. Fix invalid ai_protocol
119645         check. ai_protocol is usually set to 0 or depending on
119646         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
119647         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
119648         ai_socktype / ai_protocol in the returned addrinfo structure.
119650 2005-05-10  Simon Josefsson  <jas@extundo.com>
119652         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
119653         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119655 2005-05-10  Karl Berry  <karl@gnu.org>
119657         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
119658         (from http://www.gnu.org/licenses).
119659         * doc/COPYING.LIB: also rename to COPYING.LESSER.
119660         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
119661         fdl.texi suffices.
119663 2005-05-10  Karl Berry  <karl@gnu.org>
119665         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
119666         (COPYING.DOC): remove.
119668         * config/srclist-update: new FSF address.
119670 2005-05-10  Derek Price  <derek@ximbiot.com>
119672         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
119673         possible.
119675 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119676             Bruno Haible  <bruno@clisp.org>
119678         * modules/inet_ntop: New file.
119679         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119680         inet_ntop.
119682 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119683             Bruno Haible  <bruno@clisp.org>
119685         * m4/inet_ntop.m4: New file.
119687 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119688             Bruno Haible  <bruno@clisp.org>
119690         * lib/inet_ntop.h: New file.
119691         * lib/inet_ntop.c: New file, from glibc with modifications.
119693 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
119695         * modules/time_r (License): Change to LGPL.
119696         * modules/extensions (License): Change to LGPL.  Actually,
119697         the license is more permissive than that, but currently gnulib-tool
119698         doesn't know how to handle more-permissive licenses.
119700         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
119701         Problem reported by Dave Love.
119703 2005-05-08  Jim Meyering  <jim@meyering.net>
119705         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
119706         blank.
119708 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
119710         * modules/argmatch (Depends-on): Add stdbool.
119711         * modules/backupfile (Depends-on): Likewise.
119712         * modules/chdir-long (Depends-on): Likewise.
119713         * modules/closeout (Depends-on): Likewise.
119714         * modules/cycle-check (Depends-on): Likewise.
119715         * modules/dirname (Depends-on): Likewise.
119716         * modules/fnmatch (Depends-on): Likewise.
119717         * modules/fsusage (Depends-on): Likewise.
119718         * modules/fwriteerror (Depends-on): Likewise.
119719         * modules/getcwd (Depends-on): Likewise.
119720         * modules/getloadavg (Depends-on): Likewise.
119721         * modules/hard-locale (Depends-on): Likewise.
119722         * modules/makepath (Depends-on): Likewise.
119723         * modules/mountlist (Depends-on): Likewise.
119724         * modules/nanosleep (Depends-on): Likewise.
119725         * modules/posixtm (Depends-on): Likewise.
119726         * modules/quotearg (Depends-on): Likewise.
119727         * modules/readtokens (Depends-on): Likewise.
119728         * modules/readtokens0 (Depends-on): Likewise.
119729         * modules/readutmp (Depends-on): Likewise.
119730         * modules/save-cwd (Depends-on): Likewise.
119731         * modules/strftime (Depends-on): Likewise.
119732         * modules/userspec (Depends-on): Likewise.
119733         * modules/utimecmp (Depends-on): Likewise.
119734         * modules/xgetcwd (Depends-on): Likewise.
119735         * modules/xnanosleep (Depends-on): Likewise.
119736         * modules/xstrtod (Depends-on): Likewise.
119737         * modules/yesno (Depends-on): Likewise.
119739 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
119741         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
119742         needless checks.
119744 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119746         Merge from coreutils.  Among other things,
119747         add bulletproofing for cases where stdin, stdout, or stderr are closed.
119748         * lib/fd-safer.c: New file.
119749         * lib/fcntl-safer.h, open-safer.c: Remove.
119750         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
119751         * lib/dup-safer.c: Include unistd-safer.h first.
119752         Don't include errno.h.
119753         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
119754         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
119755         * lib/file-type.c: Rely on file-type.h change.
119756         * lib/getloadavg.c: Include unistd-safer.h.
119757         (getloadavg): Use safer open.
119758         * lib/getusershell.c: Include "stdio-safer.h".
119759         (getusershell): Use safer fopen.
119760         * lib/long-options.c (long_options): Use NULL rather than 0.
119761         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
119762         'free'.
119763         * lib/modechange.c: Likewise.
119764         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
119765         (MODE_DONE): New constant.
119766         (struct mode_change): Remove 'next' member.
119767         (make_node_op_equals): New function; like the old one of the
119768         same name, except it allocates an array.
119769         (mode_compile, mode_create_from_ref): Use it.
119770         (mode_compile): Allocate result as an array, not a linked list.
119771         Parse octal string ourself, so that we catch mistakes like "+0".
119772         (mode_adjust): Arg is an array, not a linked list.
119773         * lib/modechange.c: Include stat-macros.h, xalloc.h.
119774         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
119775         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
119776         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
119777         Remove.  This is now stat-macros.h's job.
119778         (talloc): Remove.  All callers replaced by xalloc, so that
119779         our invokers don't have to worry about reporting memory failures.
119780         (make_node_op_equals): Remove.
119781         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119782         New constants.
119783         (struct mode_change): Moved here from modechange.h.
119784         (mode_append_entry): Remove.
119785         (mode_compile): Remove MASKED_OPS arg, since it encouraged
119786         apps to have incorrect behavior.  Use simpler algorithm for head
119787         and tail.  Don't futz with umask; that's now the job of mode_adjust.
119788         Detect more invalid usages rather than having somewhat-random behavior.
119789         Don't insert an "a=" action, as that leads to incorrect behavior.
119790         (mode_compile, mode_create_from_ref): Return NULL on error instead
119791         of an enum, since now there's only one way to have an error.  All
119792         callers changed.
119793         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
119794         at the correct time.  Simplify calculation of "+u" and its ilk.
119795         Don't mishandle "+X".
119796         (mode_free): Remove "register" and localize decls.
119797         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119798         (struct mode_change): Move to modechange.c; callers don't
119799         need to see this stuff.
119800         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
119801         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
119802         (mode_change, mode_adjust): Reflect the new signatures noted above.
119803         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
119804         that might redefine system include files.
119805         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
119806         (my_usleep): Use NULL rather than (void *) 0.
119807         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
119808         Use siginterrupt to specify that system calls should be interrupted.
119809         (rpl_nanosleep): Move initialization of suspended closer to call of
119810         my_usleep.
119811         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
119812         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
119813         (desirable_utmp_entry): New function.
119814         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
119815         using x2nrealloc, to simplify logic.
119816         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
119817         size calculation.  Do not assume utmp file is a regular file.
119818         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
119819         (READ_UTMP_CHECK_PIDS): New constant.
119820         * lib/save-cwd.c: Include unistd-safer.h.
119821         (save_cwd): Use fd_safer.
119822         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
119823         [!_LIBC] Include "stat-macros.h" instead.
119824         * lib/unistd-safer.h (fd_safer): New decl.
119826 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119828         * modules/getloadavg (Depends-on): Add unistd-safer.
119829         * modules/getusershell (Depends-on): Add stdio-safer.
119830         * modules/lstat (Depends-on): Remove xalloc.
119831         * modules/mkstemp (Depends-on): Add stat-macros.
119832         * modules/modechange (Depends-on): Remove xstrtol.
119833         Add stat-macros, xalloc.
119834         * modules/save-cwd (Depends-on): Add unistd-safer.
119835         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
119836         * modules/unistd-safer (Files): Add lib/fd-safer.c
119837         (Makefile.am): Remove lib_SOURCES.
119839         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
119840         Remove fcntl-safer; unistd-safer supersedes it.
119842 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119844         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
119845         AC_HEADER_STAT.
119846         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
119847         (gl_PREREQ_CHOWN): Remove.
119848         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
119849         it.  Don't require AC_HEADER_STAT.
119850         (gl_PREREQ_LSTAT): Remove.
119851         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
119852         Don't require AC_HEADER_STAT.
119853         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
119854         (gl_PREREQ_RMDIR): Remove.
119855         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
119856         mention stat-macros.h or AC_HEADER_STAT, since we'll make
119857         the stat-macros module a prerequisite.
119858         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
119859         * m4/filemode.m4 (gl_FILEMODE): Likewise.
119860         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
119861         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
119862         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
119863         variable names.
119864         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
119865         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
119866         variable prefixes.
119867         * m4/fcntl-safer.m4: Remove.
119868         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
119869         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
119870         Invoke gl_PREREQ_FD_SAFER.
119871         (gl_PREREQ_FD_SAFER): New macro.
119872         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
119873         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
119874         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
119875         Remove duplicate call to AC_LIBOBJ(readutmp).
119876         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
119878         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
119879         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
119881 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119883         * MODULES.html.sh (Misc): Add byteswap.
119885 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119887         * modules/getcwd (Depends-on): Add extensions.
119888         * modules/openat (Depends-on): Likewise.
119890 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119892         * modules/byteswap: New file.
119894 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119896         * m4/byteswap.m4: New file.
119898 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119900         * lib/byteswap_.h: New file.
119902 2005-04-25  Karl Berry  <karl@gnu.org>
119904         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119906 2005-04-25  Albert Chin  <china@thewrittenword.com>
119908         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119909         Toolkit C bug.
119911 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119913         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119914         (func_ln_if_changed): Remove forcibly for no error message
119915         in case file does not exist.
119917 2005-04-19  Simon Josefsson  <jas@extundo.com>
119919         * gnulib-tool (Options): Make --symlink mean --symbolic.
119921 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119923         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119925 2005-04-16  Simon Josefsson  <jas@extundo.com>
119927         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119929 2005-04-15  Simon Josefsson  <jas@extundo.com>
119931         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119933 2005-04-15  Simon Josefsson  <jas@extundo.com>
119935         * gnulib-tool: Rename --symlink to --symbolic.
119937 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119939         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119940         symbolic links to files instead of copying/moving.  Add --aux-dir,
119941         specifying directory relative --dir where auxiliary build tools
119942         are placed.
119944 2005-04-14  Bruno Haible  <bruno@clisp.org>
119946         * modules/allocsa (License): Change to LGPL.
119947         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119949 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119951         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119952         that "UTC +1 second" continues to work.  Problem reported
119953         by Dmitry V. Levin.
119954         (relunit_snumber): New rule.
119955         (relunit): Use it.
119957 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119959         * lib/getdate.y (universal_time_zone_table): New constant.
119960         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119961         universal_time_zone_table.
119962         (lookup_zone): Prefer universal_time_zone_table to
119963         local_time_zone_table, so that "GMT" time stamps are allowed in
119964         London during the summer.  Problem reported by Ian Abbott.
119966 2005-04-12  Jim Meyering  <jim@meyering.net>
119968         * lib/human.c (humblock): Set *options even when returning due to
119969         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119970         warning from gcc-4.
119972 2005-04-09  Jim Meyering  <jim@meyering.net>
119974         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119975         -Wuninitialized: initialize tm0.tm_year.
119977 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119979         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119980         count, since there's no maximum.  All uses changed.
119981         Add member dsts_seen.
119982         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119983         not being INT_MAX.
119984         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119985         Use pc_rels_seen to decide whether a date is absolute.
119987         * lib/getdate.y (number): Don't overwrite year.
119988         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119989         check.
119991 2005-04-02  Simon Josefsson  <jas@extundo.com>
119993         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119994         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119996 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119998         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119999         where no absolute path name can be longer than PATH_MAX.
120001 2005-03-27  Jim Meyering  <jim@meyering.net>
120003         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
120005 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
120007         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
120008         "one's complement" -> "ones' complement" in comment, as per Knuth.
120009         "value of type" -> "type or expression" in comment.
120010         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
120012 2005-03-26  Jim Meyering  <jim@meyering.net>
120014         Comment nits.
120015         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
120016         Correct typos: s/or/of/.
120018 2005-03-26  Jim Meyering  <jim@meyering.net>
120020         * modules/check-include-files: Move to ../ and rename to...
120021         * check-module: ...this.
120023 2005-03-25  Jim Meyering  <jim@meyering.net>
120025         * modules/xvasprintf (Files): Add xalloc.h.
120027 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
120029         * modules/gettext (Files): config/config.rpath ->
120030         build-aux/config.rpath
120031         * modules/iconv (Files): Likewise.
120032         Problem reported by Oskar Liljeblad.
120034 2005-03-23  Jim Meyering  <jim@meyering.net>
120036         * modules/check-include-files: New script to check for
120037         missing dependencies, multiple includes, etc.
120039         * modules/c-strtold (Depends-on): Add xalloc.
120040         * modules/c-strtod (Depends-on): Add xalloc.
120041         * modules/hash (Depends-on): Add xalloc.
120042         (Files): Remove lib/xalloc.h.
120044         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
120045         * modules/userspec (Files): Add lib/inttostr.h.
120047 2005-03-23  Jim Meyering  <jim@meyering.net>
120049         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
120051 2005-03-22  Jim Meyering  <jim@meyering.net>
120053         * modules/stat-macros: New module.
120054         * modules/canonicalize, modules/euidaccess, modules/file-type,
120055         * modules/filemode, modules/lchown, modules/makepath,
120056         * modules/rmdir, modules/stat: Depend on new stat-macros module
120057         rather than listing lib/stat-macros.h manually.
120058         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
120060 2005-03-22  Jim Meyering  <jim@meyering.net>
120062         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
120064 2005-03-22  Bruno Haible  <bruno@clisp.org>
120066         * config/srclist.txt: Replace target directory 'config' with
120067         'build-aux'.
120068         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
120069         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
120070         ../build-aux/.
120072 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
120074         * modules/chdir-long (Depends-on): Add mempcpy.
120076         * modules/acl, modules/backupfile, modules/c-strtod,
120077         modules/c-strtold, modules/canon-host, modules/canonicalize,
120078         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
120079         modules/exclude, modules/exitfail, modules/file-type,
120080         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
120081         modules/getdate, modules/getline, modules/getpagesize,
120082         modules/getpass, modules/getugroups, modules/group-member,
120083         modules/hard-locale, modules/hash, modules/human, modules/idcache,
120084         modules/inttostr, modules/long-options, modules/makepath,
120085         modules/md5, modules/memcasecmp, modules/memcoll,
120086         modules/modechange, modules/mountlist, modules/path-concat,
120087         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
120088         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
120089         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
120090         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
120091         modules/strftime, modules/strndup, modules/strverscmp,
120092         modules/timespec, modules/unlocked-io, modules/userspec,
120093         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
120094         modules/yesno:
120095         Remove lib_SOURCES line from Makefile.am section, as this is now
120096         done automatically by the corresponding Autoconf macro.
120098 2005-03-21  Jim Meyering  <jim@meyering.net>
120100         Changes imported from coreutils.
120102         * lib/cycle-check.c: Don't include xalloc.h.
120104         * lib/path-concat.c: Don't include assert.h.
120105         (path_concat): Remove assertion that would have triggered
120106         for ABASE starting with more than one slash.
120107         Reported by Andreas Schwab.
120109         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
120110         properly when ABASE is an absolute file name.
120111         Correct the description of this function.
120112         Include <assert.h>.
120113         Add an assertion and a test driver.
120114         This fixes a bug introduced on 2004-07-02.
120115         Andreas Schwab reported the resulting failure of cp --parents:
120116         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
120118 2005-03-21  Jim Meyering  <jim@meyering.net>
120120         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
120121         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
120123 2005-03-21  Jim Meyering  <jim@meyering.net>
120124         and  Paul Eggert  <eggert@cs.ucla.edu>
120126         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
120127         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
120128         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
120129         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
120130         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
120131         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
120132         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
120133         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
120134         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
120135         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
120136         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
120137         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
120138         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
120139         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
120140         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
120141         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
120142         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
120143         for these modules.
120145 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
120147         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
120148         (which shouldn't happen), generate nothing instead of returning 0
120149         immediately, so that nstrftime (NULL, ...) doesn't return 0.
120151 2005-03-16  Bruno Haible  <bruno@clisp.org>
120153         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
120154         HAVE_LONGLONG_64BIT.
120156 2005-03-16  Bruno Haible  <bruno@clisp.org>
120158         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
120159         HAVE_LONGLONG_64BIT.
120161 2005-03-16  Bruno Haible  <bruno@clisp.org>
120163         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
120164         HAVE_LONGLONG_64BIT.
120166 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
120168         * lib/strftime.c (my_strftime): Prepend space to format so that we can
120169         reliably distinguish strftime failure from empty output on POSIX
120170         hosts.
120172 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
120174         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
120175         (iconv_string): Don't guess a size-zero buffer, as that might cause
120176         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
120177         result would be 'too large', where 'too large' is (heuristically)
120178         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
120179         overflow concerns.  This will prevent some unwanted malloc failures
120180         when the inputs are very large.
120182 2005-03-15  Karl Berry  <karl@gnu.org>
120184         * config/srclist.txt (config.rpath): from gettext.
120185         * config/config.rpath: update.
120187 2005-03-15  Bruno Haible  <bruno@clisp.org>
120189         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
120190         to 'negate'.
120192         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
120193         variable.
120195         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
120196         results.
120198 2005-03-14  Simon Josefsson  <jas@extundo.com>
120200         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
120201         <fx@gnu.org>.
120203 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
120205         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
120206         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
120207         intprops.h.
120208         * lib/strtol.c: Likewise.
120210 2005-03-14  Jim Meyering  <jim@meyering.net>
120212         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
120213         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
120214         to be nonzero so that we (and caller) can detect the difference
120215         between a valid zero-length expansion and an error return, even
120216         when the underlying strftime fails before writing anything into
120217         that location.
120219 2005-03-14  Bruno Haible  <bruno@clisp.org>
120221         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
120222         Update from GNU gettext 0.14.3.
120224 2005-03-10  Jim Meyering  <jim@meyering.net>
120226         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
120228 2005-03-10  Jim Meyering  <jim@meyering.net>
120230         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
120231         so that this module works on systems without fchdir.
120233 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
120235         Factor int-properties macros into a single file, except for
120236         glibc-related files.
120237         * lib/intprops.h: New file.
120238         * lib/getloadavg.c: Include it instead of limits.h.
120239         (INT_STRLEN_BOUND): Remove.
120240         * lib/human.c: Include intprops.h.
120241         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
120242         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
120243         302/1000.
120244         * lib/inttostr.h: Include intprops.h instead of limits.h.
120245         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
120246         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
120247         for consistency with intprops.h.
120248         (time_t_is_integer, twos_complement_arithmetic): Use them.
120249         * lib/sig2str.h: Include <signal.h>, intprops.h.
120250         (INT_STRLEN_BOUND): Remove.
120251         * lib/strftime.c (TYPE_SIGNED): Remove.
120252         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
120253         * lib/strtol.c: Adjust comments to match intprops.h.
120254         * lib/userspec.c: Include intprops.h.
120255         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
120256         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
120257         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
120258         instead of rolling our own expressions.
120259         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
120261         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
120262         instead of int.
120263         (my_strftime): Do not mishandle years close to INT_MAX, by doing
120264         the right thing even if adding 1900 would overflow.  Similarly
120265         for tm_mon + 1 and tm_yday + 1.
120266         Make %Y always equivalent to %C%y, and similarly for %G and %g.
120267         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
120268         (DO_SIGNED_NUMBER): New macro.
120269         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
120271 2005-03-07  Bruno Haible  <bruno@clisp.org>
120273         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
120275 2005-03-07  Bruno Haible  <bruno@clisp.org>
120277         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
120279 2005-03-04  Derek R. Price  <derek@ximbiot.com>
120281         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
120282         (func_import): Only replace files via --import when they have actually
120283         changed.
120285 2005-03-03  Derek R. Price  <derek@ximbiot.com>
120287         * m4/mmap-anon.m4: New file.
120288         * m4/pagealign_alloc.m4: New file.
120290 2005-03-03  Derek R. Price  <derek@ximbiot.com>
120291             Bruno Haible  <bruno@clisp.org>
120293         * modules/pagealign_alloc: New file.
120294         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
120296 2005-03-03  Derek R. Price  <derek@ximbiot.com>
120297             Bruno Haible  <bruno@clisp.org>
120299         * lib/pagealign_alloc.h: New file.
120300         * lib/pagealign_alloc.c: New file.
120302 2005-03-03  Bruno Haible  <bruno@clisp.org>
120304         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
120305         Use an all-permissive copyright notice, recommended by RMS.
120307 2005-03-02  Bruno Haible  <bruno@clisp.org>
120309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
120310         of AIX, the replacement has to be done only after <string.h> is
120311         included, therefore not in config.h. stpncpy.h does the replacement,
120312         and stpncpy.c uses it.
120314 2005-03-02  Bruno Haible  <bruno@clisp.org>
120316         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
120317         stpncpy.c uses it.
120319 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
120321         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
120322         The workaround isn't strictly needed for POSIX conformance, and
120323         it's too much of a pain to configure and maintain.  We'll ask
120324         people to fix their kernels instead.
120325         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
120326         (NANOSLEEP_BUG_WORKAROUND): Remove.
120327         (xnanosleep): Remove the workaround.
120329 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
120331         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
120332         Reported by Derek Price.
120333         (Include): Add "timespec.h".
120335         * modules/xnanosleep (Depends-on): Remove gethrxtime.
120337 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
120339         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
120340         to detect nanosleep bug.
120342 2005-03-01  Bruno Haible  <bruno@clisp.org>
120344         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
120346 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
120348         * modules/gethrxtime: New file.
120349         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
120350         (Depends-on): Add gethrxtime.
120351         (configure.ac): Add gl_XNANOSLEEP.
120352         (Makefile.am): Remove lib_SOURCES line.
120354 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
120356         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
120357         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
120359 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
120361         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
120362         * lib/timespec.h (gettime): Return void, since it always
120363         succeeds now.  All uses changed.
120364         * lib/gettime.c (gettime): Likewise.
120365         [HAVE_NANOTIME]: Prefer nanotime.
120366         Assume gettimeofday succeeds, as POSIX requires.
120367         Assime time () succeeds, since other code already does.
120368         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
120369         (timespec_subtract): Remove.
120370         (NANOSLEEP_BUG_WORKAROUND): New constant.
120371         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
120372         things considerably.  Use it only on GNU/Linux hosts, since the
120373         workaround shouldn't be needed elsewhere.
120375 2005-02-24  Bruno Haible  <bruno@clisp.org>
120377         * modules/gettext (Files): Add m4/glibc2.m4.
120379 2005-02-24  Bruno Haible  <bruno@clisp.org>
120381         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
120382         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
120383         * m4/progtest.m4:
120384         Update from GNU gettext 0.14.2.
120385         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
120387 2005-02-24  Bruno Haible  <bruno@clisp.org>
120389         * lib/localcharset.c: Update from GNU gettext 0.14.2.
120390         * lib/config.charset: Update from GNU gettext 0.14.2.
120392 2005-02-24  Bruno Haible  <bruno@clisp.org>
120394         * lib/gettext.h: Update from GNU gettext 0.14.2.
120396 2005-02-23  Simon Josefsson  <jas@extundo.com>
120398         * m4/iconvme.m4: New file.
120400 2005-02-23  Jim Meyering  <jim@meyering.net>
120402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
120403         change.
120404         Thanks to Bruno Haible for catching it.
120406 2005-02-22  Simon Josefsson  <jas@extundo.com>
120408         * modules/iconvme: New file.
120410         * MODULES.html.sh: Add iconvme.
120412 2005-02-22  Simon Josefsson  <jas@extundo.com>
120414         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
120416 2005-02-22  Simon Josefsson  <jas@extundo.com>
120418         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
120420 2005-02-22  Jim Meyering  <jim@meyering.net>
120422         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
120423         s/ifndef/ifdef/.
120425 2005-02-20  Neil Conway  <neilc@samurai.com>
120427         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
120428         returned by OSX/Darwin if the specified buffer is not large
120429         enough for the hostname.
120431 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120433         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
120434         pass it to _help, otherwise the latter coredumps trying to
120435         dereference state.root_argp.
120437 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120439         * modules/chdir-long (Depends-on): Add memrchr.
120440         * modules/memrchr (Files): Add lib/memrchr.h.
120441         (Include): "memrchr.h".
120443 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120445         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
120447 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120449         * lib/memrchr.h: New file.
120450         * lib/chdir-long.c: Include it.
120451         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
120452         Don't bother including stddef.h.
120454 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
120456         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
120457         inclusion.
120458         Include <sys/types.h>, for dev_t.
120459         (ME_DUMMY, ME_REMOTE): Move from here....
120460         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
120461         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
120462         Dmitry V. Levin.
120463         Include mountlist.h first, to test the interface.
120465 2005-01-29  Bruno Haible  <bruno@clisp.org>
120467         * lib/progname.c (program_name): Initialize.
120468         Needed when linking statically on MacOS X.
120470 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
120472         Sync from coreutils.
120473         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
120474         (Depends-on): Add c-strtod.
120475         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
120477 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
120479         Sync from coreutils.
120480         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
120482         Remove files that are specific to coreutils.
120483         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
120485 2005-01-28  Bruno Haible  <bruno@clisp.org>
120487         * modules/javacomp: New file.
120488         * MODULES.html.sh (Java): Add javacomp.
120490 2005-01-28  Bruno Haible  <bruno@clisp.org>
120492         * m4/javacomp.m4: New file, from GNU gettext.
120494 2005-01-28  Bruno Haible  <bruno@clisp.org>
120496         * lib/javacomp.sh.in: New file, from GNU gettext.
120497         * lib/javacomp.h: New file, from GNU gettext.
120498         * lib/javacomp.c: New file, from GNU gettext.
120500 2005-01-26  Simon Josefsson  <jas@extundo.com>
120502         * lib/gai_strerror.c: Use GPL in header.
120504 2005-01-26  Bruno Haible  <bruno@clisp.org>
120506         * modules/javaexec: New file.
120507         * MODULES.html.sh (Java): Add javaexec.
120509 2005-01-26  Bruno Haible  <bruno@clisp.org>
120511         * m4/javaexec.m4: New file, from GNU gettext.
120513 2005-01-26  Bruno Haible  <bruno@clisp.org>
120515         * lib/javaexec.sh.in: New file, from GNU gettext.
120516         * lib/javaexec.h: New file, from GNU gettext.
120517         * lib/javaexec.c: New file, from GNU gettext.
120519 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120521         * modules/lchown (Depends-on): Remove lchown.h
120523 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120525         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
120526         must be defined if the header file was not found, in order
120527         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
120529 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120531         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
120532         initializers for struct pentry_state.
120533         (__argp_error): Check return value of __asprintf
120534         (__argp_failure): Translate error message
120536         * lib/argp-parse.c: Removed braces around the expansion of N_()
120538 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
120540         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
120541         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
120542         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
120543         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
120544         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
120545         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
120546         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
120547         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
120548         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
120549         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
120550         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
120551         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
120552         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
120553         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
120554         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
120555         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
120556         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
120557         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
120558         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
120559         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
120560         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
120561         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
120562         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
120563         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
120564         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
120565         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
120566         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
120567         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
120568         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
120569         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
120570         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
120571         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
120572         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
120573         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
120574         xstrtol.m4, xstrtoumax.m4, yesno.m4:
120575         Use an all-permissive copyright notice, recommended by RMS.
120577 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
120579         * modules/chdir-long (Depends-on): Remove mempcpy.
120581 2005-01-21  Jim Meyering  <jim@meyering.net>
120583         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
120584         same value as for Solaris 9.
120586         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
120587         component length.  This included changing the parameter to be
120588         of type `char *' rather than `char const *'.
120589         * lib/chdir-long.h (chdir_long): Update prototype.
120591         * lib/openat.c (fdopendir, fstatat): New functions.
120592         * lib/openat.h: Include headers required for use of DIR and struct
120593         stat.
120594         [AT_SYMLINK_NOFOLLOW]: Define.
120595         (fdopendir, fstatat): Add prototypes.
120597 2005-01-21  Bruno Haible  <bruno@clisp.org>
120599         * modules/classpath: New file.
120600         * MODULES.html.sh (Java): Add classpath.
120602 2005-01-21  Bruno Haible  <bruno@clisp.org>
120604         * lib/classpath.h: New file, from GNU gettext.
120605         * lib/classpath.c: New file, from GNU gettext.
120607 2005-01-20  Simon Josefsson  <jas@extundo.com>
120609         * modules/version-etc-fsf: New file.
120611 2005-01-20  Simon Josefsson  <jas@extundo.com>
120613         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
120614         * lib/version-etc.c: Remove version_etc_copyright.
120615         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
120616         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
120618 2005-01-20  Simon Josefsson  <jas@extundo.com>
120620         * lib/base64.h (isbase64): Add.
120622         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
120623         using a unsigned prototype, don't inline.
120624         (base64_decode): Use it.
120626 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120628         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
120629         it.
120631 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120633         * lib/save-cwd.c (save_cwd): Remove code to support the case
120634         where fchdir is missing or flaky.
120636 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120638         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
120640 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
120642         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
120643         AC_LIBSOURCES now does this.
120644         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
120645         with new ullong_max module.
120647 2005-01-19  Bruno Haible  <bruno@clisp.org>
120649         * modules/sh-quote: New file.
120650         * MODULES.html.sh (Executing programs): Add sh-quote.
120652 2005-01-19  Bruno Haible  <bruno@clisp.org>
120654         * lib/sh-quote.h: New file, from GNU gettext.
120655         * lib/sh-quote.c: New file, from GNU gettext.
120657 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120659         Merge from coreutils.
120660         * m4/ullong_max.m4: New file.
120661         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
120662         (gl_MACROS): Assume localeconv exists.
120664 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120666         Merge changes from coreutils, as described below in several
120667         changelogs dated today.
120669         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
120670         (O_DIRECTORY): Remove; not needed here, since "." must be
120671         a directory.  All uses removed.
120672         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
120673         universal on Suns, and we also need to test for IRIX.
120674         Revamp code to use 'if' rather than '#if'.
120675         Avoid unnecessary comparison of cwd->desc to 0.
120677         * lib/utimens.c (futimens): Robustify the previous patch, by checking
120678         for known valid error numbers rather than observed invalid ones.
120680 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120682         * modules/ullong_max: New file.
120684         * modules/chdir-long, modules/openat: New files.
120685         * modules/save-cwd (Depends-on): Depend on chdir-long.
120686         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
120688 2005-01-18  Jim Meyering  <jim@meyering.net>
120690         Merge from coreutils.
120691         * m4/chdir-long.m4, m4/openat.m4: New files.
120692         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
120693         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
120694         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
120695         is sane and DOES follow symlinks.  Besides, testing 20 different
120696         systems found no broken chown implementations.
120697         Prompted by a change in rsync's copy of this macro.
120698         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
120700         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
120702         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
120703         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
120704         NULL-means-set-to-current-time semantics.
120705         Remove temporary file immediately, rather than waiting
120706         for configure's at-exit trap code to do it.
120708 2005-01-18  Jim Meyering  <jim@meyering.net>
120710         * lib/version-etc.c (version_etc_copyright): Update copyright date.
120712         * lib/utimens.c (futimens): Account for the fact that futimes
120713         can also fail with errno == ENOSYS or errno == ENOENT.
120714         Patch from Dmitry V. Levin.
120716         Change the name of the robust chdir function from chdir to chdir_long.
120717         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
120718         (restore_cwd): Use chdir_long, not chdir.
120719         * lib/chdir-long.c: Renamed from chdir.c.
120720         * lib/chdir-long.h: Renamed from chdir.h.
120721         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
120722         Hurd.
120724 2005-01-18  Bruno Haible  <bruno@clisp.org>
120726         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
120727         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
120728         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
120729         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
120730         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
120731         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
120732         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
120733         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
120734         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
120735         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
120736         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
120737         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
120738         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
120739         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
120740         Use an all-permissive copyright notice, recommended by RMS.
120742 2005-01-18  Bob Proulx  <bob@proulx.com>
120744         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
120745         simplify offsetof() macro construct to avoid compile failure with
120746         native HP-UX 11.0 ANSI C compiler.
120748 2005-01-17  Bruno Haible  <bruno@clisp.org>
120750         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
120751         redundant because stpncpy.m4 takes care of it.
120753 2005-01-17  Bruno Haible  <bruno@clisp.org>
120755         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
120757 2005-01-17  Bruno Haible  <bruno@clisp.org>
120759         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
120760         used.
120762 2005-01-17  Bruno Haible  <bruno@clisp.org>
120764         * lib/fwriteerror.h (fwriteerror): Change specification to include
120765         fclose.
120766         * lib/fwriteerror.c: Include <stdbool.h>.
120767         (fwriteerror): At the end, close the file stream. Record whether
120768         stdout was already closed.
120770 2005-01-17  Bruno Haible  <bruno@clisp.org>
120772         * lib/execute.c (environ): Declare if needed.
120773         * lib/pipe.c (environ): Likewise.
120774         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
120776 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120778         * modules/argp: Depend on vsnprintf
120780 2005-01-10  Jim Meyering  <jim@meyering.net>
120782         * modules/closeout (Depends-on): Add atexit.
120784 2005-01-06  Bruno Haible  <bruno@clisp.org>
120786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
120788 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
120790         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
120791         definitions to be after all include files, to avoid collisions.
120792         Problem reported by Bob Proulx.
120794 2005-01-04  Jim Meyering  <jim@meyering.net>
120796         Changes imported from coreutils.
120797         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
120798         as the mkstemp template, use a temporary directory and an
120799         8.3-friendly template to avoid trouble on systems like DJGPP.
120800         Reported by Juan M. Guerrero via Stepan Kasal.
120801         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
120802         close. Remove the temporary directory right away, rather than waiting
120803         for configure's at-exit trap code to do it.
120804         Suggestion from Stepan Kasal.
120806 2005-01-01  Simon Josefsson  <jas@extundo.com>
120808         * gnulib-tool: Print #include directives when --import'ing.
120810 2004-12-28  Simon Josefsson  <jas@extundo.com>
120812         * tests/test-base64.c: Include required header files.  Remove
120813         unused variables.
120815 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120817         * modules/error (Depends-on): Remove gettext.
120819 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120821         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
120822         not needed.  This removes a dependency on the gettext module.
120823         [defined _LIBC]: Do not include <libintl.h>; not needed.
120825 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120827         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
120828         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
120830 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120832         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
120833         HAVE_DECL_STRTOLD.
120835 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120837         * modules/getdate (Depends-on): Remove alloca-opt.
120839 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120841         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
120843 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120845         * lib/argp-parse.c: Include <stddef.h>.
120846         (alignof, alignto): New macros.
120847         (parser_init): Don't assume that void * is aligned sufficiently
120848         for struct option.
120850         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
120851         need to extend the stack.
120852         (YYINITDEPTH): New macro, so that the initial stack isn't overly
120853         large.
120855 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120857         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
120859 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120861         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
120862         (2004-10-24) change.  Apparently this was a false alarm.
120864         * modules/getdate: Depend on alloca-opt, not alloca.
120866 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120868         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
120869         Remove now-obsolete comment about AIX.
120870         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
120871         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
120872         (YYMAXDEPTH): New macro.
120874 2004-12-18  Simon Josefsson  <jas@extundo.com>
120876         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
120878 2004-12-18  Bruno Haible  <bruno@clisp.org>
120880         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
120882 2004-12-18  Bruno Haible  <bruno@clisp.org>
120884         * lib/fatal-signal.c (fatal_signals): Make non-const.
120885         (init_fatal_signals): New function.
120886         (uninstall_handlers, install_handlers): Ignore signals that were set to
120887         SIG_IGN.
120888         (at_fatal_signal): Call init_fatal_signals.
120889         (init_fatal_signal_set): Likewise. Ignore signals that were set to
120890         SIG_IGN.
120891         Reported by Paul Eggert.
120893 2004-12-18  Bruno Haible  <bruno@clisp.org>
120895         * doc/alloca.texi: New file.
120896         * doc/alloca-opt.texi: New file.
120898 2004-12-17  Jim Meyering  <jim@meyering.net>
120900         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120901         Otherwise, install-sh could exit with improper exit status when
120902         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120904 2004-12-16  Simon Josefsson  <jas@extundo.com>
120906         * tests/test-base64.c: Add license.
120908 2004-12-15  Stepan Kasal  <address@hidden>
120910         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120912 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120914         * modules/getcwd (Files): Add m4/d-ino.m4.
120915         Suggested by Mark D. Baushke.
120917 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120919         * lib/getdate.y (textint): New member "negative".
120920         (time_zone_hhmm): New function.
120921         Expect 14 shift-reduce conflicts, not 13.
120922         (o_colon_minutes): New rule.
120923         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120924         (yylex): Set the "negative" member of signed numbers.
120926 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120928         * doc/getdate.texi (Time of day items, Time zone items):
120929         Describe new formats +00:00, UTC+00:00.
120931 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120933         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120934         spurious "-l"s.  Problem reported by Stepan Kasal.
120936 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120938         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120939         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120941 2004-12-04  Simon Josefsson  <jas@extundo.com>
120943         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120944         Vandoorselaere <yoann@prelude-ids.org>.
120946 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120948         Changes imported from coreutils.
120949         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120950         exist.
120951         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120953 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120955         Changes imported from coreutils.
120956         * lib/hard-locale.c: Assume <locale.h> exists.
120957         Include "strdup.h".
120958         (GLIBC_VERSION): New macro.
120959         (hard_locale): Assume setlocale exists.
120960         Rewrite to avoid #ifdef.
120961         Use strdup rather than malloc + strcpy.
120962         * lib/human.c: Assume <locale.h> exists.
120963         (human_readable): Assume localeconv exists.
120965 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120967         * modules/hard-locale (Depends-on): Add strdup.
120969 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120971         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120972         convert T2, not T.  (Imported from libc.)
120974 2004-11-30  Simon Josefsson  <jas@extundo.com>
120976         * modules/restrict (License): Change to LGPL.
120978 2004-11-30  Simon Josefsson  <jas@extundo.com>
120980         * m4/restrict.m4: Add copyright and copying conditions.
120982 2004-11-30  Simon Josefsson  <jas@extundo.com>
120984         * m4/base64.m4: New file.
120986 2004-11-30  Simon Josefsson  <jas@extundo.com>
120988         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120989         base64.
120991         * tests/test-base64.c: New file.
120993         * modules/base64: New file.
120995 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120997         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120998         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
121000         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
121002 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
121004         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
121005         (__getcwd.c): Don't restore errno; glibc doesn't.
121006         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
121007         first, falling back to our code only if its results look suspicious.
121008         Ensure that the resulting buffer is only as large as necessary.
121010         * lib/readutmp.c: Include readutmp.h first.
121011         Include <errno.h>, since readutmp.h no longer does that.
121012         * lib/readutmp.h: Don't include <errno.h>,
121013         <sys/param.h>, <time.h>; not needed to establish interface.
121014         (errno): Remove decl.
121015         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
121016         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
121017         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
121019 2004-11-28  Simon Josefsson  <jas@extundo.com>
121021         * lib/base64.h, base64.c: New file.
121023 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
121025         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
121027 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
121029         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
121030         (Depends-on): Remove pathmax, same.  Add mempcpy.
121031         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
121032         (Makefile.am): Append getcwd.h to lib_SOURCES.
121033         (Include): Add getcwd.h.
121034         (Maintainer): Change from Jim Meyering to "all, glibc",
121035         since getdate now uses intended-for-glibc code.
121036         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
121037         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
121039 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
121041         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
121042         HP's ANSI C compiler.
121043         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
121044         Declaring int functions causes warnings on some modern systems and
121045         shouldn't be needed to compile on ancient ones.
121046         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
121047         defined.
121049         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
121050         with the following changes.
121051         (__set_errno): Parenthesize properly.
121052         Include <stdbool.h>.
121053         (MIN, MAX, MATCHING_INO): New macros.
121054         (__getcwd): Define with prototype, not K&R form.
121055         Use heuristics to allocate default buffer on stack if possible.
121056         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
121057         behavior, and to avoid the PATH_MAX limit when computing
121058         ../../../../...
121059         Use MATCHING_INO to compare inode number to file.
121060         Check for arithmetic overflow in size calculations.
121061         Fix bug in reallocation of dot array that caused getcwd to fail
121062         on directories nested deeper than 75.
121063         Be more careful about saving errno on error.
121064         Do not use realloc; use only free+malloc, as this is a bit
121065         more flexible and avoids a needless copy operation.
121066         Do not inspect st_dev and st_ino for symbolic links; POSIX
121067         doesn't specify the latter.
121068         Check for closedir errors.
121069         Avoid needless casts.
121070         Use "#ifdef weak_alias" around weak_alias, to be like other
121071         glibc code.
121072         The following changes to getcwd.c have effect only when used in
121073         gnulib; they have no effect inside glibc proper.
121074         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
121075         as alloca isn't used.
121076         (alloca, __alloca): Likewise.
121077         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
121078         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
121079         unconditionally, as gnulib assumes C89 or better.
121080         Do not include <sys/param.h>.
121081         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
121082         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
121083         better.
121084         (NULL) [!defined NULL]: Remove; we assume C89 or better.
121085         Include <dirent.h> in a way that is compatible with modern Autoconf.
121086         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
121087         New macros, if not already defined.
121088         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
121089         Use "_LIBC", not "defined _LIBC", for consistency.
121090         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
121091         a mempcpy module.
121092         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
121093         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
121094         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
121095         credit only to Jim Meyering and adjust the copyright dates.
121096         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
121097         <stdlib.h>, <unistd.h>, "pathmax.h".
121098         Instead, include "xgetcwd.h" (first) and "getcwd.h".
121099         (INITIAL_BUFFER_SIZE): Remove.
121100         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
121102 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
121104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
121105         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
121106         Use the _ONCE methods, for efficiency.
121107         Check for fcntl.h.  In test program, include <errno.h>
121108         and <fcntl.h> if available.  Remove old K&R cruft from
121109         test program.  Check for common errors in GNU/Linux,
121110         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
121111         don't do AC_LIBOBJ, as that's getcwd.m4's job.
121112         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
121113         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
121114         name accordingly.
121115         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
121116         accommodate new getcwd.c.
121117         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
121118         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
121119         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
121120         that's all we need now.
121122 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121124         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
121125         argp-parse.c depends on getopt internals, that means we should
121126         always use our getopt, to be on the safe side.
121127         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
121128         order not to spoil the result of an eventual previous invocation
121129         of gl_GETOPT_SUBSTITUTE.
121131 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121133         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
121134         redefinition warnings. To avoid them, include the defines
121135         in `#if !defined __need_getopt ... #endif'. The only place
121136         where __getopt_argv_const is used is in definitions
121137         of getopt_long and getopt_long_only below, which are as well
121138         protected by `#ifndef __need_getopt'.
121139         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
121140         __need_getopt after including <stdio.h> and <unistd.h> These
121141         headers might have defined it.
121143 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
121145         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
121147 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
121149         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
121150         (futimens): New function, which uses futimes if available.
121151         (futimens, utimens): Support timespec==NULL, with same semantics
121152         as utime and utimens.
121153         * lib/utimens.h (futimens): New decl.
121155 2004-11-23  Jim Meyering  <jim@meyering.net>
121157         * lib/getopt_.h: Remove trailing blanks.
121159 2004-11-23  Jim Meyering  <jim@meyering.net>
121161         * lib/__fpending.c: Add comment.
121163 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
121165         * modules/canonicalize (Depends-on): Add xreadlink.
121166         Problem reported by James Youngman.
121168 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
121170         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
121171         New macros.
121172         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
121173         optopt): Use them instead of invoking ## directly; otherwise, the
121174         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
121176 2004-11-19  Bruno Haible  <bruno@clisp.org>
121178         * lib/strtok_r.c: Move comments from here...
121179         * lib/strtok_r.h: ... to here.
121181 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
121183         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
121184         implementations that mishandle size_t overflow.
121186 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
121188         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
121189         might fail.  Problem reported by Yoann Vandoorselaere.
121190         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
121191         implementations that mishandle size_t overflow.
121193 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
121195         * modules/canon-host (Depends-on): Add strdup.
121197 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
121199         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
121201 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
121203         * lib/canon-host.c: Include "strdup.h".
121204         (canon_host): Use getaddrinfo if available, so that IPv6 works.
121205         Use strdup instead of malloc/strcpy to duplicate strings.
121207         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
121208         (human_space_before_unit): New constant.
121209         * lib/human.c (human_readable): Support it.
121211         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
121212         (xgetcwd): Set errno correctly when failing.
121213         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
121214         the failure is actually due to a PATH_MAX problem.
121216         Further getopt changes to make it more likely that glibc will
121217         buy the changes back.
121218         * lib/getopt.c (POSIXLY_CORRECT): New constant.
121219         (getopt): Use it, so to preserve glibc semantic
121220         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
121221         when compiling for libc.
121222         * lib/getopt_.h (__getopt_argv_const): Bring it back.
121223         (getopt_long, getopt_long_only): Use it.
121225         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
121226         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
121227         (getopt): Argv is now char * const *, as per standard.
121228         (_getopt_internal_r, _getopt_internal): Argv is now char **,
121229         not char *__getopt_argv_const *.
121230         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
121231         _getopt_long_only_r): Likewise.
121232         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
121233         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
121234         _getopt_long_r, _getopt_long_only_r): Likewise.
121235         * lib/getopt_.h (__getopt_argv_const): Remove.
121236         (getopt): Argv is now char * const *, as per standard.
121238         * lib/getdate.y (tORDINAL): New token.
121239         (day, relunit): Allow it for relative times.
121240         (relative_time_table): Use tORDINAL for ordinals.
121242 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
121244         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
121245         Document that "second" isn't allowed as an ordinal number.
121247 2004-11-16  Jim Meyering  <jim@meyering.net>
121249         * modules/closeout (Depends-on): Add fpending.
121251 2004-11-15  Jim Meyering  <jim@meyering.net>
121253         * lib/closeout.c: Include "__fpending.h" once again.
121254         Include <stdbool.h>.
121255         (close_stdout): Don't fail just because stdout was closed initially,
121256         since some programs don't write to stdout in the normal course of
121257         operation (other than --version and --help), and we don't want this
121258         function to make e.g. `touch file >&-' fail.
121259         But do fail if it was closed and someone has tried to write to it.
121260         E.g., `printf foo >&-' must fail.
121262 2004-11-13  Jim Meyering  <jim@meyering.net>
121264         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
121266 2004-11-12  Simon Josefsson  <jas@extundo.com>
121268         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
121269         small doc fix is still pending.
121271 2004-11-11  Simon Josefsson  <jas@extundo.com>
121273         * modules/strtok_r: New file.
121275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121276         strtok_r.
121278 2004-11-11  Simon Josefsson  <jas@extundo.com>
121280         * m4/strtok_r.m4: New file.
121282         * m4/getopt.m4: Replace opterr.
121284 2004-11-11  Simon Josefsson  <jas@extundo.com>
121286         * lib/strtok_r.h, strtok_r.c: New file.
121288 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
121290         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
121291         of replacing opterr, getopt, etc.  This should handle the
121292         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
121294 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
121296         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
121297         we can stop lying to compilers about the constness of argv when we
121298         are compiled outside glibc.
121299         (getopt, getopt_long, getopt_long_only): Use it.
121300         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
121301         _getopt_internal, getopt): Likewise.
121302         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
121303         _getopt_long_only_r): Likewise.
121304         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
121305         _getopt_long_r, _getopt_long_only_r): Likewise.
121307         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
121308         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
121309         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
121310         the other external symbols.
121311         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
121312         declaration, since the above renaming now works around collisions.
121314 2004-11-11  Jim Meyering  <jim@meyering.net>
121316         * lib/linebreak.c: Remove trailing blanks.
121317         * lib/alloca_.h: Likewise.
121318         * lib/acosl.c: Likewise.
121319         * lib/euidaccess.c: Likewise.
121320         * lib/allocsa.h: Likewise.
121322 2004-11-10  Simon Josefsson  <jas@extundo.com>
121324         * m4/getaddrinfo.m4: New file.
121326 2004-11-10  Simon Josefsson  <jas@extundo.com>
121328         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
121330 2004-11-10  Simon Josefsson  <jas@extundo.com>
121332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121333         getaddrinfo.
121335         * modules/getaddrinfo: New file.
121337 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
121339         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
121341 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
121343         * lib/mktime.c (SHR): New macro, which is a portable
121344         substitute for >> that should work even on Crays.
121345         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
121346         Problem reported by Mark D. Baushke in
121347         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
121348         * lib/getdate.y (SHR): Likewise.
121349         (tm_diff): Use it.
121350         * lib/strftime.c (SHR): Likewise.
121351         (tm_diff): Use it.
121352         * lib/quotearg.c (struct quoting_options): Use unsigned int for
121353         quote_these_too, so that right shifts are well defined.  All uses
121354         changed.
121356 2004-11-10  Jim Meyering  <jim@meyering.net>
121358         Ensure that no close failure goes unreported.
121359         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
121360         return early when it seems there's nothing to flush.
121361         Don't include __fpending.h.
121363 2004-11-10  Jim Meyering  <jim@meyering.net>
121365         * modules/closeout (Depends-on): Remove fpending.
121367 2004-11-10  Jim Meyering  <jim@meyering.net>
121369         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
121371 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
121373         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
121374         gl_FUNC_STRFTIME.
121375         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
121376         and AC_REQUIRE when possible, to avoid duplicate checks.
121377         Check for <wchar.h>.
121379 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
121381         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
121383 2004-11-09  Bruno Haible  <bruno@clisp.org>
121385         * m4/sockpfaf.m4: New file.
121387 2004-11-05  Bruno Haible  <bruno@clisp.org>
121389         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
121390         Reported by Mark D. Baushke <mdb@cvshome.org>.
121392 2004-11-04  Bruno Haible  <bruno@clisp.org>
121394         2004-09-11  Bruno Haible  <bruno@clisp.org>
121395                 * allocsa.valgrind: New file.
121396         2004-02-06  Bruno Haible  <bruno@clisp.org>
121397                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
121398                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
121399                 Reported by Christopher Seip <chris.seip@hp.com>.
121401 2004-11-04  Bruno Haible  <bruno@clisp.org>
121403         * modules/allocsa (Files): Add lib/allocsa.valgrind.
121404         (Makefile.am): Distribute it.
121406 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
121408         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
121409         with errno == ERANGE if the buffer is too small.
121410         Problem reported by Mark D. Baushke.
121412 2004-11-03  Albert Chin  <china@thewrittenword.com>
121413             Paul Eggert  <eggert@cs.ucla.edu>
121415         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
121416         equivalent, substitute $ac_type for equivalent type rather than
121417         blindly using uint32_t *always* which won't work if uint32_t is not
121418         available.  Define _UINT32_T to work around typedef of uint32_t if
121419         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
121420         2.5.1.
121422 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121424         * m4/jm-macros.m4: Sync from coreutils.
121425         (gl_MACROS): Check for mbrlen, for pathchk.
121426         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
121428 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121430         * lib/xreadlink.c (MAXSIZE): New macro.
121431         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
121432         size does not exceed MAXSIZE.  Avoid cast.
121433         As suggested by Mark D. Baushke in
121434         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
121435         if readlink fails with buffer size just under MAXSIZE, try again
121436         with MAXSIZE.
121438 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121440         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
121442 2004-11-02  Derek R. Price  <derek@ximbiot.com>
121443         and  Paul Eggert  <eggert@cs.ucla.edu>
121445         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
121446         (get_date): Overparenthesize to avoid GCC warning.
121448 2004-11-02  Bruno Haible  <bruno@clisp.org>
121450         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
121451         returns void.
121453 2004-11-02  Bruno Haible  <bruno@clisp.org>
121455         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
121456         function returns void.
121458 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
121460         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
121461         fflush_unlocked, flockfile, funlockfile, funlockfile,
121462         fputs_unlocked, putc_unlocked.
121464 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
121466         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121467         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
121468         already declared.
121470 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121472         * modules/getdate (Files): Add doc/getdate.texi.
121473         (Depends-on): Add setenv, xalloc.
121475 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121477         * lib/getdate.y: Add support for TZ="foo" within a date string.
121478         Fix some bugs near time_t boundaries.  Reject dates with
121479         out-of-range components, e.g., "Sept 31".
121480         Include <stdlib.h>, "setenv.h", "xalloc.h".
121481         (ISDIGIT_LOCALE): Remove; unused.
121482         Note that the TZ and time functions used here are not reentrant.
121483         (mktime_ok, get_tz): New functions.
121484         (TZBUFSIZE): New constant.
121485         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
121486         This requires that we sometimes generate our own TZ="XXX..." setting.
121488 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121490         * doc/getdate.texi: New file, from coreutils with modifications for
121491         the new TZ parsing.
121493 2004-10-27  Derek R. Price  <derek@ximbiot.com>
121495         * lib/mktime.c (not_equal_tm): Remove redundant check.
121497 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
121499         * modules/regex (lib_SOURCES): Add regex.c.
121500         Reported by James Youngman in
121501         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
121503 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
121505         * lib/getdate.y: Use Bison 1.875 features, and some minor
121506         code cleanups.  This change does not affect semantics.
121507         Don't include <stdlib.h>; no longer needed.
121508         Don't include unlocked-io.h; only the "#if TEST" code uses
121509         stdio, and performance isn't crucial there.
121510         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
121511         Bison 1.875 features as described below.
121512         All uses of "PC." replaced by "pc->".
121513         (YYSTYPE): Add a forward declaration.
121514         (yylex, yyerror): Use full prototypes in forward decls.
121515         Use "%pure-parser" rather than obsolescent "%pure_parser".
121516         Use %parse-param and %lex-param instead of obsolescent
121517         YYPARSE_PARAM and YYLEX_PARAM.
121518         (meridian_table, month_and_day_table, time_units_table,
121519         relative_time_table, time_zone_table, military_table,
121520         lookup_zone, lookup_word, get_date):
121521         Use NULL instead of 0 where appropriate.
121522         (to_hour): Avoid abort (), to avoid a dependency on
121523         stdlib.h.
121524         (yyerror, yylex): Now accepts parser_control * arg.
121525         (main) [TEST]: Use '\0' rather than 0 for char.
121527 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121529         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
121531 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121533         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
121534         It's now the caller's responsibility to handle the case where
121535         !HAVE_GETPAGESIZE && !defined getpagesize.
121537         * lib/mktime.c (leapyear): Arg is long int, not int.
121539 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
121541         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
121543 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
121545         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
121546         missing.  Problem reported by James Youngman.
121548 2004-10-16  Simon Josefsson  <jas@extundo.com>
121550         * gnulib-tool: Fix comments.  Fix parse problem.
121551         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
121553 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
121555         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
121556         implementation of getopt_long.  Problem reported by Alexander Taler in:
121557         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
121559 2004-10-15  Bruno Haible  <bruno@clisp.org>
121561         * gnulib-tool: Untabify. Initialize supplied_libname.
121562         (func_usage): More homogenous output.
121563         (func_modules_transitive_closure, func_modules_to_filelist,
121564         func_emit_lib_Makefile_am): New functions.
121565         (func_import): New function, extracted from big case statement. Use
121566         func_get_license, func_modules_transitive_closure,
121567         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
121568         opt_lgpl. Don't use test -a, as it's not portable.
121569         (func_create_testdir): Use func_modules_transitive_closure,
121570         func_modules_to_filelist, func_emit_lib_Makefile_am.
121572 2004-10-15  Bruno Haible  <bruno@clisp.org>
121574         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
121576 2004-10-15  Bruno Haible  <bruno@clisp.org>
121578         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
121579         the portions belonging to each module.
121580         Suggested by Derek Robert Price <derek@ximbiot.com>.
121582 2004-10-12  Simon Josefsson  <jas@extundo.com>
121584         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121585         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
121586         to real functions.
121588 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121590         * modules/vsnprintf: New file.
121592 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121594         * m4/vsnprintf.m4: New file.
121596 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121598         * lib/vsnprintf.h: New file.
121599         * lib/vsnprintf.c: New file.
121601 2004-10-11  Bruno Haible  <bruno@clisp.org>
121603         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
121604         vsnprintf.
121606 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
121608         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
121610 2004-10-07  Bruno Haible  <bruno@clisp.org>
121612         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
121613         fits into the provided buffer.
121615 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
121617         * lib/diacrit.c, diacrit.h: Add GPL notice.
121619         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
121620         notice.
121621         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
121622         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
121623         This avoids a potential constant-folding bug.
121625 2004-10-05  Bruno Haible  <bruno@clisp.org>
121627         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
121628         for the declaration of strsep.
121630 2004-10-05  Bruno Haible  <bruno@clisp.org>
121632         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
121634 2004-10-04  Simon Josefsson  <jas@extundo.com>
121636         * modules/memmem: New file.
121637         * tests/test-memmem.c: New file.
121638         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
121640 2004-10-04  Simon Josefsson  <jas@extundo.com>
121642         * m4/memmem.m4: New file.
121644 2004-10-04  Simon Josefsson  <jas@extundo.com>
121646         * lib/memmem.h: New file.
121647         * lib/memmem.c: New file, taken from glibc.
121649 2004-10-04  Simon Josefsson  <jas@extundo.com>
121651         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
121652         '#ifdef USE_UNLOCKED_IO'.
121654 2004-10-04  Simon Josefsson  <jas@extundo.com>
121656         * config/srclist.txt: Add memmem from glibc.
121658 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121660         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
121662         * modules/argmatch, modules/argp, modules/closeout, modules/error,
121663         modules/exclude, modules/getdate, modules/getline,
121664         modules/getndelim2, modules/getpass, modules/getpass-gnu,
121665         modules/getusershell, modules/linebuffer, modules/md5,
121666         modules/mountlist, modules/posixtm, modules/readtokens,
121667         modules/readutmp, modules/regex, modules/sha1,
121668         modules/version-etc, modules/yesno:
121669         Remove dependency on unlocked-io.
121671 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121673         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
121675         * m4/unlocked-io.m4: Add copyright notice.
121676         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
121678 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121680         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
121681         * lib/xmalloc.c (xmemdup): Likewise.
121682         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
121683         XFREE): Remove these long-obsolescent macros.
121684         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
121685         * lib/xstrdup.c: Remove.
121687         * lib/regex.c (re_comp): Cast gettext return value to char *,
121688         Problem reported by Martin Neitzel via Mark D. Baushke.
121690 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121692         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
121693         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
121694         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
121695         regex.c, sha1.c, version-etc.c, yesno.c:
121696         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
121697         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
121698         the includer's responsibility.
121700         Sync from coreutils.
121702         * lib/modechange.c (mode_compile): Don't decrement a pointer that
121703         points to the start of a string, as the C Standard says the
121704         resulting behavior is undefined.
121706         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
121707         simple -> simple_backups, numbered_existing ->
121708         numbered_existing_backups, numbered -> numbered_backups
121709         to avoid shadowing problems.  All uses changed.
121710         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
121711         * lib/backupfile.c (check_extension, numbered_backup):
121712         Rename locals to avoid shadowing 'basename'.
121713         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
121714         once.
121716         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
121717         * lib/.cvsignore: Add getopt.h.
121719 2004-10-04  Bruno Haible  <bruno@clisp.org>
121721         * modules/README: New file.
121722         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
121723         not a module.
121725 2004-10-02  Jim Meyering  <jim@meyering.net>
121727         * lib/dirfd.h, getpagesize.h: Add copyright notice.
121729 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121731         * modules/strsep: New file.
121733 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121735         * m4/strsep.m4: New file.
121737 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121739         * lib/strsep.h: New file.
121740         * lib/strsep.c: New file.
121742 2004-10-01  Simon Josefsson  <jas@extundo.com>
121744         * lib/snprintf.c (snprintf): Handle size==0.
121746 2004-10-01  Simon Josefsson  <jas@extundo.com>
121747             Bruno Haible  <bruno@clisp.org>
121749         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
121750         (snprintf): Declare 'args'.
121752 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
121754         * lib/snprintf.c: Remove comments as to why each header is needed.
121756 2004-10-01  Bruno Haible  <bruno@clisp.org>
121758         * MODULES.html.sh: Add strsep.
121760 2004-09-30  Simon Josefsson  <jas@extundo.com>
121762         * modules/snprintf: New file.
121764 2004-09-30  Simon Josefsson  <jas@extundo.com>
121766         * m4/snprintf.m4: New file.
121768 2004-09-30  Simon Josefsson  <jas@extundo.com>
121770         * lib/snprintf.h, lib/snprintf.c: New files.
121772 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121774         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
121775         (hol_entry_help): Never translate an empty string.
121776         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
121777         * lib/argp.h (OPTION_NO_TRANS): New option.
121779 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121781         * modules/argp (Maintainer): Replace Simon Josefsson
121782         by Sergey Poznyakoff.
121784 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121786         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
121787         changes merged back into glibc.
121789 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
121793 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121795         * lib/xvasprintf.c: Include xalloc.h.
121796         (xvasprintf): Use xalloc_die, not xmalloc_die.
121798 2004-09-29  Bruno Haible  <bruno@clisp.org>
121800         * modules/alloca-opt: New file, derived from modules/alloca.
121801         * modules/allocsa: Depend on alloca-opt instead of alloca.
121802         * modules/setenv: Likewise.
121803         * modules/vasnprintf: Likewise.
121804         * MODULES.html.sh: Add alloca-opt.
121806 2004-09-28  Simon Josefsson  <jas@extundo.com>
121808         * gnulib-tool: New parameter --lgpl, to asseert that modules are
121809         LGPL, and to replace license template from GPL to LGPL.
121811 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121813         * modules/dummy: Change license to LGPL.
121815 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121817         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
121819 2004-09-24  Simon Josefsson  <jas@extundo.com>
121821         * modules/minmax (License): Change from GPL to LGPL.
121823 2004-09-23  Simon Josefsson  <jas@extundo.com>
121825         * gnulib-tool (--import): Typo.
121827 2004-09-23  Simon Josefsson  <jas@extundo.com>
121829         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
121831 2004-09-22  Bruno Haible  <bruno@clisp.org>
121833         * modules/*: Add 'License' field.
121834         * gnulib-tool: Accept --extract-license option.
121835         (func_get_license): New function.
121837 2004-09-21  Bruno Haible  <bruno@clisp.org>
121839         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
121840         Reported by Simon Josefsson.
121842 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121844         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
121845         gl_AC_TYPE_LONG_LONG.
121847 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121849         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
121851 2004-09-18  Simon Josefsson  <jas@extundo.com>
121852         and  Paul Eggert  <eggert@cs.ucla.edu>
121854         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
121855         calls with autoreconf.  Define GL_LIB.
121857 2004-09-14  Karl Berry  <karl@gnu.org>
121859         * config/srclist.txt: unsync setenv.c, sigh.
121861 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121863         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
121864         Problem reported by Bruno Haible in:
121865         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
121867 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121869         * config/srclist.txt: Comment out argp-pvh.c.
121871 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
121873         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
121874         in case some system header has #define'd it.  Problem reported by
121875         Soeren D. Schulze in
121876         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
121878 2004-09-09  Karl Berry  <karl@gnu.org>
121880         * regex.[ch]: delete from the root.  These were supposed to be
121881                 synced with emacs cvs, but this has not happened for about
121882                 a year, and anyway nothing else uses emacs regex.[ch].
121883                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
121884                 lib/regex[.ch] is untouched.
121886 2004-09-09  Bruno Haible  <bruno@clisp.org>
121888         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
121890 2004-09-09  Bruno Haible  <bruno@clisp.org>
121892         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
121893         modifications.
121894         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121896 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121898         * modules/xvasprintf: New file.
121899         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121901 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121903         * lib/xvasprintf.h: New file.
121904         * lib/xvasprintf.c: New file.
121905         * lib/xasprintf.c: New file.
121907 2004-09-08  Bruno Haible  <bruno@clisp.org>
121909         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121911 2004-09-08  Bruno Haible  <bruno@clisp.org>
121913         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121914         length is > INT_MAX.
121915         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121916         more.
121918 2004-09-08  Bruno Haible  <bruno@clisp.org>
121920         * lib/stdint_.h: New file, taken from GNU clisp.
121922 2004-09-08  Bruno Haible  <bruno@clisp.org>
121923             Oskar Liljeblad  <oskar@osk.mine.nu>
121925         * modules/stdint: New file.
121926         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121928 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121930         Import from coreutils.
121931         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121932         strings on unbounded length.  alloca's performance benefits aren't
121933         that important here.
121934         (V_STRDUP): Remove.
121935         (parse_with_separator): New function, with most of the internals
121936         of the old parse_user_spec.  Allow user to omit both user and group,
121937         for compatibility with FreeBSD.
121938         Clone only the user name, not the entire spec.
121939         Do not set *uid, *gid unless entirely successful.
121940         Avoid memory leak in some failing cases.
121941         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121942         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121943         (parse_user_spec): Rewrite to use parse_with_separator.
121945 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121947         * modules/userspec: Don't depend on alloca.
121949 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121951         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121953 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121955         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121956         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121957         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121959 2004-08-16  Simon Josefsson  <jas@extundo.com>
121961         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121962         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121963         Add --dry-run for --import.
121964         Let user provided command line parameters override configure.ac
121965         settings.
121967 2004-08-12  Simon Josefsson  <jas@extundo.com>
121969         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121970         as discussed with Paul Eggert in threads rooted at
121971         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121972         and
121973         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121974         Before, the test was empty, and relied on ELIDE_CODE in source
121975         code.)
121976         (gl_PREREQ_GETOPT): New macro.
121977         (gl_GETOPT): Use them.
121979 2004-08-12  Simon Josefsson  <jas@extundo.com>
121981         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121982         * lib/getopt_.h: Renamed from getopt.h.
121984 2004-08-12  Simon Josefsson  <jas@extundo.com>
121986         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121987         Change default library name from libfoo to libgnu.
121988         Now, if you have a configure.ac that says:
121989                 gl_SOURCE_BASE(gl)
121990                 gl_M4_BASE(gl/m4)
121991                 gl_MODULES(error getopt etcetera)
121992                 gl_INIT
121993         you can import all you need by running:
121994                 ../gnulib/gnulib-tool --import
121996         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121997         (Makefile.am): Rewrite, use logic from argz.
121998         (Include): Use <getopt.h> instead of "getopt.h".
122000 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122002         * modules/argp (Files): Add m4/unlocked-io.m4.
122003         (Depends-on): Add extensions.
122005 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122007         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
122008         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
122009         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
122010         Check for program_invocation_name, program_invocation_short_name,
122011         flockfile, funlockfile, features.h, _getopt_long_only_r.
122013 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122015         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
122016         its complicated substitute.
122017         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
122018         and program_invocation_name.
122019         (__argp_basename) [!_LIBC]: Remove; the only use was
122020         replaced by its body.
122021         (__argp_short_program_name): Change condition from
122022         !defined __argp_short_program_name to
122023         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
122024         to match argp-namefrob.h.
122025         (__argp_failure): Don't assume strerror_r returns char *.
122026         * lib/argp-parse.c (N_): Define unconditionally.
122027         (argp_default_options): Fill out initializers with 0 to avoid
122028         gcc warnings.
122030 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
122032         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
122033         getopt1.c.
122035 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
122037         Merge from coreutils.
122039         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
122041         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
122042         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
122044 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
122046         Merge from coreutils.
122048         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
122049         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
122050         for Reliant Unix 5.43.
122052         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
122053         (union fooround): Use uintmax_t, not long int.
122054         The rest is a merge from libc:
122055         [defined _LIBC]: Include <shlib-compat.h>.
122056         (_obstack) [defined _LIBC]: Remove after 2.3.4.
122058         * lib/settime.c (settime): Recode to avoid warning with
122059         Sun Forte C 6U2.
122061         * lib/strverscmp.c: Convert to UTF-8.
122063 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
122065         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
122066         m4/uintmax_t.m4.
122068 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
122070         * modules/xalloc-die: New file.
122071         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
122073         * modules/md5 (Files): Add m4/uint32_t.m4.
122074         * modules/sha1: Renamed from modules/sha.
122075         (Files):
122076         Rename lib/sha.h to lib/sha1.h.
122077         Rename lib/sha.c to lib/sha1.c.
122078         Rename m4/sha.m4 to m4/sha1.m4.
122079         (lib_SOURCES): Likewise.
122080         (configure.ac): Rename gl_SHA to gl_SHA1.
122081         (Include): sha.h -> sha1.h.
122083 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
122085         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
122086         * m4/sha1.m4: Renamed from sha.m4.
122087         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
122089 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
122091         * lib/obstack.h (obstack_empty_p):
122092         Don't assume that chunk->contents is suitably aligned.
122093         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
122094         Likewise. Problem reported by Benno in
122095         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
122097         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
122098         readable.  This could be improved further but it'd take some work.
122100 2004-08-08  Simon Josefsson  <jas@extundo.com>
122102         * modules/xgethostname (Depends-on): Remove exit and error (not
122103         used).
122105         * modules/getpass-gnu: Add getpass.h.
122106         (Depends-on): Add stdbool.
122107         * modules/getpass: Add getpass.h.
122109 2004-08-08  Simon Josefsson  <jas@extundo.com>
122111         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
122112         Check getpass declaration.
122114 2004-08-08  Simon Josefsson  <jas@extundo.com>
122116         * lib/xgethostname.c: Don't include error.h (not used).
122118         * lib/getpass.h: Add.
122119         * lib/getpass.c: Include getpass.h first.
122121 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
122123         * lib/xalloc-die.c: New file.
122124         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
122125         All uses removed.
122126         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
122127         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
122128         xalloc-die.c.
122129         (_, N_, xalloc_die): Move to xalloc-die.c.
122130         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
122131         so that we needn't mess with xalloc_msg_memory_exhausted.
122133         * lib/sha1.h: Renamed from sha.h.
122134         (SHA1_H): Renamed from _SHA_H.
122135         (sha1_ctx): Renamed from sha_ctx.
122136         (sha1_init_ctx): Renamed from sha_init_ctx.
122137         (sha1_process_block): Renamed from sha_process_block.
122138         (sha1_process_bytes): Renamed from sha_process_bytes.
122139         (sha1_finish_ctx): Renamed from sha_finish_ctx.
122140         (sha1_read_ctx): Renamed from sha_read_ctx.
122141         (sha1_stream): Renamed from sha_stream.
122142         (sha1_buffer): Renamed from sha_buffer.
122143         * lib/sha1.c: Likewise; renamed from sha.c.
122144         Do not include <sys/types.h>.
122145         Include <stddef.h> rather than <stdlib.h>.
122147 2004-08-08  Bruno Haible  <bruno@clisp.org>
122149         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
122150         FILESYSTEM_PREFIX_LEN.
122151         * lib/progreloc.c: Likewise.
122152         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
122154 2004-08-06  Simon Josefsson  <jas@extundo.com>
122156         * modules/progname (Depends-on): Don't depend on stdbool.
122158 2004-08-06  Simon Josefsson  <jas@extundo.com>
122160         * modules/getsubopt: New file.
122161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122162         getsubopt.
122164 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
122166         More merge from coreutils.
122168         * m4/utimens.m4, m4/utimecmp.m4: New files.
122169         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
122170         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
122171         prereq.m4, sha.m4: Import changes from coreutils.
122173 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
122175         More merge from coreutils.
122176         * modules/raise, modules/readtokens0, modules/utimens:
122177         * modules/utimecmp, module/xnanosleep: New files.
122178         * modules/strftime: Add lib/strftime.h.
122179         Change include from <time.h> to "strftime.h".
122180         * modules/yesno: Add lib/yesno.h.
122181         * modules/backupfile: Remove lib/addext.c.
122182         * modules/euidaccess: Add stat-macros.h.
122183         * modules/canonicalize, modules/euidaccess,
122184         modules/filemode, modules/lchown, modules/makepath,
122185         modules/rmdir, modules/stat: Likewise.
122187 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
122189         Merge from tar.
122190         * lib/argp-help.c (make_hol, hol_append): Don't assume that
122191         SIZE_MAX is a valid preprocessor constant.
122192         (__argp_basename): Change from "#ifndef _LIBC"
122193         to "#ifndef __argp_short_program_name", so that
122194         we don't compile these functions for tar.
122196         More merges from coreutils.
122197         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
122198         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
122199         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
122200         * lib/addext.c: Remove; no longer needed.
122201         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
122202         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
122203         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
122204         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
122205         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
122206         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
122207         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
122208         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
122209         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
122210         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122211         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
122212         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
122213         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
122214         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
122215         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
122216         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
122217         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
122218         Import changes from coreutils.
122220 2004-08-05  Simon Josefsson  <jas@extundo.com>
122222         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
122224 2004-08-05  Simon Josefsson  <jas@extundo.com>
122226         * m4/getsubopt.m4: New file.
122228 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
122230         Merge from coreutils.
122232         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
122233         * m4/getcwd-path-max.m4: New files.
122235         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
122236         FILESYSTEM_PREFIX_LEN ->
122237         FILE_SYSTEM_PREFIX_LEN.
122238         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
122239         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
122240         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
122241         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
122243         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
122244         prerequisite modules now handle the DOS stuff.
122245         Don't check for unistd.h.
122247 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
122249         Merge from coreutils.
122251         * lib/.gdb-history: Remove; this doesn't belong here.
122253         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
122254         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
122255         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
122256         * lib/getcwd.c: New files.
122258         * lib/dirname.h: Include <stdbool.h>.
122259         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
122260         for consistency with POSIX terminology.  All uses changed.
122261         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
122262         (strip_trailing_slashes): Use bool for booleans.
122263         * lib/stripslash.c (strip_trailing_slashes): Likewise.
122265         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
122266         sometimes returns a positive errno value even when it succeeds.
122267         (print_errno_message) [!LIBC]: Fall back on strerror if
122268         __strerror_r fails.
122270         * lib/path-concat.c (mempcpy): Don't define if a system header defines
122271         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
122272         (longest_relative_suffix): New function.
122273         (path_concat): Use it.  Assume first argument is not NULL.
122274         Port to DOS.  Omit redundant separators.
122275         Report an error instead of returning NULL.
122276         Use mempcpy instead of memcpy.
122277         (xpath_concat): Remove: not declared or used.
122279         * lib/same.h: Include <stdbool.h>
122280         (same_name): Return bool, not int.
122281         * lib/same.c (same_name): Likewise.
122282         (errno): Don't declare; we assume C89 or better now.
122284         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
122285         if not already defined.
122287         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
122288         * lib/dup-safer.c (errno): Likewise.
122290 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
122292         Merge from coreutils.
122293         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
122294         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
122295         * modules/path-concat: Don't depend on strdup.
122297 2004-08-03  Simon Josefsson  <jas@extundo.com>
122299         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
122300         * lib/progname.h: Don't include stdbool.h.
122302 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
122304         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
122305         * MODULES.html.sh (func_all_modules): Remove fatal.
122307 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
122309         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
122311 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
122313         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
122314         working.
122316 2004-08-02  Simon Josefsson  <jas@extundo.com>
122318         * lib/getsubopt.h: New file, with comments from Bruno Haible.
122319         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
122320         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
122322 2004-08-01  Simon Josefsson  <jas@extundo.com>
122324         * lib/xgetdomainname.c: Include stdlib.h, for free().
122326 2004-07-19  Bruno Haible  <bruno@clisp.org>
122328         * MODULES.html.sh (func_all_modules): Add dummy.
122330 2004-07-16  Simon Josefsson  <jas@extundo.com>
122332         * modules/dummy: New file.
122334 2004-07-16  Simon Josefsson  <jas@extundo.com>
122336         * lib/dummy.c: New file.
122338 2004-07-16  Bruno Haible  <bruno@clisp.org>
122340         * lib/backupfile.h: Add extern "C" for C++.
122341         * lib/closeout.h: Likewise.
122342         * lib/copy-file.h: Likewise.
122343         * lib/findprog.h: Likewise.
122344         * lib/full-write.h: Likewise.
122345         * lib/pathname.h: Likewise.
122346         * lib/progname.h: Likewise.
122347         * lib/stpcpy.h: Likewise.
122348         * lib/stpncpy.h: Likewise.
122349         * lib/strcase.h: Likewise.
122350         * lib/strstr.h: Likewise.
122351         * lib/xalloc.h: Likewise.
122353         * lib/mbswidth.h: Add extern "C" for C++.
122354         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
122356 2004-07-13  Robert Millan  <robertmh@gnu.org>
122358         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
122360 2004-07-09  Simon Josefsson  <jas@extundo.com>
122362         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
122363         failed without this.)
122365 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
122367         * modules/chown (Files): Add lib/fchown-stub.c, since
122368         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
122370 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
122372         * lib/fchown-stub.c: New file.
122374 2004-06-24  Jim Meyering  <jim@meyering.net>
122376         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
122378 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122380         * modules/argz: Omit "#include".
122382         * MODULES.html.sh (func_all_modules): Add calloc, to match
122383         2004-06-01 addition of calloc module.
122385 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122387         * m4/argz.m4: New file, which is autoupdated from libtool.
122389 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122391         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
122392         libtool.
122394 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122396         * config/srclist-update: Don't insist on "USA." before the
122397         close-comment, as libtool omits the period and puts the */ on a
122398         separate line.
122399         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
122400         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
122402 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
122404         * modules/argz: New file.
122405         * MODULES.html.sh (func_all_modules): Add argz.
122407 2004-06-12  Jim Meyering  <jim@meyering.net>
122408         and  Paul Eggert  <eggert@cs.ucla.edu>
122410         * modules/hash (Files): Add lib/xalloc.h.
122411         * modules/pipe (Depends-on): Add wait-process.
122412         * modules/stat (Depends-on): Add xalloc.
122413         * modules/userspec (Files): Add lib/userspec.h.
122414         * modules/xstrto
122416         Upgrade from gettext-0.13.
122417         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
122418         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
122419         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
122421 2004-06-10  Jim Meyering  <jim@meyering.net>
122423         * lib/calloc.c: New file.
122425 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
122427         * lib/getdate.y (yylex): Allow space between sign and number.
122428         Problem reported by Dan Jacobson.
122430 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
122432         Merge from coreutils CVS.
122434         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
122435         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
122436         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
122437         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
122438         xstrtol.m4: Fix copyright date and/or serial number.
122440         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
122441         See if we need an fchown replacement.
122442         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
122443         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
122444         and use the replacement function if we detect either defect.
122446         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
122447         gl_UTIMECMP.
122449 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
122450         and  Jim Meyering  <jim@meyering.net>
122452         Merge from coreutils CVS.
122454         * lib/stat-macros.h: New file, with contents from file-type.h
122455         and coreutils' system.h.
122456         * lib/file-type.c: Include "stat-macros.h".
122457         * lib/file-type.h (file_type): Move all macro definitions to new file,
122458         stat-macros.h.
122460         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
122461         Wrap old code with this conditional.
122462         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
122463         function that does not dereference symlinks.
122464         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
122466         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
122467         dependency problems.
122468         (xreadlink): Accept new arg SIZE, for efficiency.
122469         All decls and uses changed.
122470         * lib/xreadlink.h: Include <stddef.h>, for size_t.
122472         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
122473         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
122475         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
122476         sysexits.h.
122478 2004-06-01  Jim Meyering  <jim@meyering.net>
122480         * m4/calloc.m4: New file.
122482 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
122484         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
122485         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
122486         Also, fix a typo in a diagnostic.
122488 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
122490         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
122491         or AC_FUNC_REALLOC.
122493 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
122495         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
122496         macros to be defined.
122497         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
122498         the allocator returns NULL because the requested size is zero.
122500 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122502         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
122503         var.  Add comment explaining why libc still defines it.  This
122504         merges the following patch from glibc:
122505         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
122507 2004-05-20  Andreas Schwab  <schwab@suse.de>
122509         * m4/free.m4: Replace free if it not known to work, not the other
122510         way round.
122512 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
122514         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
122515         present in glibc since revision 1.1 of this file.
122516         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
122517         obstack_alignment_mask, obstack_alloc, obstack_base,
122518         obstack_blank, obstack_blank_fast, obstack_chunk_size,
122519         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
122520         obstack_grow0, obstack_init, obstack_int_grow,
122521         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
122522         obstack_next_free, obstack_object_size, obstack_ptr_grow,
122523         obstack_ptr_grow_fast, obstack_room): Remove declarations of
122524         nonexistent functions.
122526 2004-05-18  Karl Berry  <karl@gnu.org>
122528         * config/srclist.txt: break link for vasnprintf.c.
122530 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122532         Port obstack to the AS/400, where pointers are 16 bytes wide and
122533         you cannot cast an integer to a valid pointer.  This patch is
122534         currently waiting to be integrated into glibc; see
122535         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
122537         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
122538         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
122539         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
122540         (struct obstack): temp member is now a union of a pointer and
122541         an integer, instead of an integer.  All integer uses changed.
122542         This does not affect the physical layout of struct obstack,
122543         except on hosts (like the AS/400) where the size or alignment of
122544         void * is greater than that of ptrdiff_t.
122545         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
122546         __STDC__)]: Store temporary in pointer member of union, not
122547         integer member.
122548         * lib/obstack.c: Include <stddef.h>, for offsetof.
122549         (struct fooalign): Remove; it doesn't need a name.
122550         (union fooround): Change double to long double, and add void *.
122551         (DEFAULT_ALIGNMENT): Use offsetof to compute.
122552         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
122553         not a macro.  Hence the values are always int; so remove all
122554         casts-to-int in uses.
122556 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122558         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
122559         we can get this patch merged into glibc.
122561 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122562             Paul Eggert  <eggert@cs.ucla.edu>
122564         * m4/argp: Depend on alloca.
122566 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122567             Paul Eggert  <eggert@cs.ucla.edu>
122569         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
122570         freecoding.
122572 2004-05-17  Bruno Haible  <bruno@clisp.org>
122574         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
122575         precision that consists of a '.' followed by an empty digit string.
122576         Patch by Tor Lillqvist <tml@iki.fi>.
122578 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122580         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
122581         for backward compatibility with older code.  We need our own
122582         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
122583         it under some other name, and our alloca.h will define it.
122585 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122586             Derek Price  <derek@ximbiot.com>
122588         * lib/alloca.c: Include <alloca.h>, to get our interface.
122589         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
122590         include <alloca.h> first.  Use C89 prototype for alloca; this
122591         requires including <stddef.h> for size_t.  Use extern "C" if C++.
122592         Use #elif for simplicity, since we can assume C89 now.
122593         Don't try to source the system alloca.h since it will not be found
122594         and to prevent recursively including its replacement.
122595         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
122596         * lib/regex.c: Likewise.
122598 2004-05-16  Derek Price  <derek@ximbiot.com>
122599             Paul Eggert  <eggert@cs.ucla.edu>
122601         getline cleanup.  This changes the getndelim2 API: both order of
122602         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
122603         no delimiter).
122605         * lib/getline.c: Don't include stddef.h or stdio.h, since our
122606         interface does that.
122607         (getline): Always use getdelim, so that we don't have two
122608         copies of this code.
122609         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
122610         if available.
122611         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
122612         (GETNDELIM2_MAXIMUM): New macro.
122613         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
122614         instead of the old practice of delim2==0.  All callers changed.
122615         Return -1 on overflow, instead of returning junk.
122616         Do not set *linesize unless allocation succeeds.
122617         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
122618         that we include sys/types.h.
122619         * lib/getnline.h: Likewise.
122620         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
122621         (getndelim2): Reorder arguments.
122622         * lib/getnline.c (getnline, getndelim):
122623         Don't discard the NMAX argument.
122624         (getnline): Invoke getndelim, to avoid code duplication.
122625         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
122626         of (size_t) -1 by callers of the getnline family.
122628 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122630         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
122631         Check for gettimeofday.
122632         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
122633         Check for settimeofday, stime.
122635 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122637         * lib/nanosleep.c (suspended): Change its type from int to
122638         sig_atomic_t volatile.
122639         (first_call): Make it private to rpl_nanosleep, and have it
122640         be zero initially as that's a bit faster.
122641         (my_usleep): Round up fractional times instead of truncating them,
122642         as this is the usual meaning for 'sleep'.
122644         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
122645         doesn't work.
122646         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
122647         (ENOSYS): Define if not defined.
122648         (settime): Fall back on stime if it exists and settimeofday fails.
122649         But don't bother with fallbacks if a method fails with errno == EPERM.
122651 2004-05-11  Jim Meyering  <jim@meyering.net>
122653         Prior to this change, the save_cwd caller required read access to the
122654         current directory on most systems (ones with the fchdir function).
122656         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
122657         fails, try write-only, and finally, resort to using xgetcwd.
122659 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122661         * lib/obstack.c, obstack.h: Import changes from libc.
122663 2004-04-28  Bruno Haible  <bruno@clisp.org>
122665         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
122666         also implicitly appends .exe to executables.
122667         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
122668         accepts Windows pathnames.
122669         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122670         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122671         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122672         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122673         Reported by Derek Robert Price <derek@ximbiot.com>.
122675 2004-04-21  Karl Berry  <karl@gnu.org>
122677         * config/srclist.txt (localcharset.c): break sync.
122679 2004-04-20  Paul Eggert  <eggert@twinsun.com>
122681         * m4/host-os.m4: Add a copyright notice.
122683 2004-04-20  Jim Meyering  <jim@meyering.net>
122685         Change UTILS_ to gl_ in AC_DEFINE'd names.
122686         Change utils_- and jm_-prefixed variables, too.
122687         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
122688         UTILS_FUNC_MKDIR_TRAILING_SLASH.
122689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
122691         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
122692         Don't emit trailing blanks.
122693         Also rename jm_-prefixed variables to have gl_ prefix.
122695         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
122696         Also rename jm_-prefixed variables to have gl_ prefix.
122698         * m4/jm-macros.m4: Reflect the renamings.
122699         * m4/prereq.m4: Likewise.
122701 2004-04-20  Jim Meyering  <jim@meyering.net>
122703         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
122704         memory.
122706 2004-04-20  Jim Meyering  <jim@meyering.net>
122707             Bruno Haible  <bruno@clisp.org>
122709         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
122710         memory when realloc fails.
122712 2004-04-19  Jim Meyering  <jim@meyering.net>
122714         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
122715         now that readutmp.c may call `free (0)'.
122717 2004-04-19  Bruno Haible  <bruno@clisp.org>
122719         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
122720         * m4/inttypes_h.m4: Likewise.
122721         * m4/stdint_h.m4: Likewise.
122722         * m4/intmax_t.m4: Likewise.
122723         * m4/uintmax_t.m4: Likewise.
122725 2004-04-18  Jim Meyering  <jim@meyering.net>
122727         * m4/prereq.m4: Don't forbid jm_ prefix.
122729         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
122730         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
122731         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
122732         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
122733         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
122734         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
122735         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
122736         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
122737         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
122738         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
122739         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
122740         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
122741         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
122742         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
122743         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
122744         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
122745         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
122746         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
122747         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
122749 2004-04-18  Jim Meyering  <jim@meyering.net>
122751         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
122752         failure, don't leak memory and do call END_UTMP_ENT.
122754 2004-04-16  Jim Meyering  <jim@meyering.net>
122756         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
122757         coreutils' stat program.
122758         (gl_PREREQ): Don't require jm_PREREQ_STAT.
122760 2004-04-11  Paul Eggert  <eggert@twinsun.com>
122762         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
122763         C89.
122764         (CHAR_BIT): Remove, since we assume C89.
122765         Include <stdint.h> if available, as per current Autoconf CVS advice.
122767 2004-03-31  Jim Meyering  <jim@meyering.net>
122769         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
122770         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
122771         * m4/xalloc.m4: Likewise.
122773 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122775         Merge from coreutils.
122777         * m4/inttostr.m4: New file.
122778         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
122779         Require AM_STDBOOL_H and gl_TIMESPEC instead.
122780         Require gl_CLOCK_TIME.
122781         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
122783 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122785         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
122786         not bool, to be more consistent with Unix conventions.
122787         Suggested by Bruno Haible.
122789         Merge from coreutils.
122791         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
122792         * lib/umaxtostr.c: New files.
122794         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
122795         the usual <time.h> dance.
122796         (get_date): Change signature to support fractional time stamps.
122797         All callers changed.
122798         * lib/getdate.y: Include "getdate.h" first, as we can now
122799         assume C89 and don't need to worry about 'const'.
122800         Similarly, include "unlocked-io.h" near start, not in middle.
122801         Include <limits.h>.
122802         (textint.value): Use long int rather than int.
122803         (textint.digits): Use size_t rather than int.
122804         (BILLION, LOG10_BILLION): New constants.
122805         (parser_control): New member rel_ns.  Members day_ordinal,
122806         time_zone, month, day, hour, minutes, rel_year, rel_month,
122807         rel_day, rel_hour, rel_minutes, rel_seconds
122808         are now long int, not int.  Member seconds is now struct timespec,
122809         not int.  New member timespec_seen.  Members dates_seen, days_seen,
122810         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
122811         not int.
122812         (%union.intval): Now long int, not int.
122813         New member timespec.
122814         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
122815         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
122816         (spec): Now is a timespec or an item list.
122817         (timespec, items): New nonterminals.
122818         (time, rel, relunit, number, get_date):
122819         Add support for fractional seconds.
122820         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
122821         (gmtime, localtime, mktime): Remove decls; not needed with C89.
122822         (to_hour): First arg is now long int, not int.
122823         (to_year): Returns long int, not int.
122824         Don't treat year -70 like 70.
122825         (tm_diff): Returns long int, not int.
122826         (lookup_word): Use bool instead of int when appropriate.
122827         (yylex): Use size_t for count, not int.
122828         Detect overflow when parsing large integer constants.
122829         Add support for fractions.
122830         (get_date): Make pointers 'const' if possible.
122831         Use more-portable code to detect integer overflow.
122832         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
122833         Don't use ctime; it's not reliable if the year has >4 digits.
122835         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
122836         This is for compatibility with BSD.
122838         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
122839         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
122840         From coreutils' system.h.
122842         * lib/userspec.c: Don't include "posixver.h".
122843         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
122844         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
122845         compatible extension.  Simplify code by removing a boolean int
122846         that was always nonzero if a string was nonnull.
122848 2004-03-30  Jim Meyering  <jim@meyering.net>
122850         Merge from coreutils.
122852         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
122853         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
122854         on some systems one must include <grp.h> before it.
122855         Reported by Christian Krackowizer.
122857 2004-03-30  Jim Meyering  <jim@meyering.net>
122859         Merge from coreutils.
122861         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
122863         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
122864         an empty input stream.
122866         * lib/readtokens.c: Include <stdbool.h>.
122867         (readtoken): Use `size_t' rather than int/long.
122868         All callers adjusted.
122869         Use `bool' rather than `int' where appropriate.
122870         Use memset rather than an explicit loop.
122871         Use x2nrealloc rather than xrealloc.
122872         Allow the use of `\0' as a delimiter.
122873         (readtokens): Likewise.
122874         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
122876 2004-03-30  Jim Meyering  <jim@meyering.net>
122878         * m4/realloc.m4: Remove file, since now it does no more than
122879         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
122880         the `configure.ac' section of module/realloc.
122881         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
122883 2004-03-30  Bruno Haible  <bruno@clisp.org>
122885         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
122886         nonnull.
122888 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122890         Merge changes to getloadavg.c from coreutils and Emacs.
122892         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
122893         Define to an expression, not to the empty string.
122894         Include cloexec.h and xalloc.h.
122895         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122896         Use set_cloexec_flag rather than rolling our own.
122897         * lib/cloexec.c, lib/cloexec.h: New files.
122899 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122901         * m4/cloexec.m4: New file.
122903 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122905         * lib/getopt.h: Sync with libc CVS.
122907 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122908             Bruno Haible  <bruno@clisp.org>
122910         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122911         mbswidth.
122913 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122914             Bruno Haible  <bruno@clisp.org>
122916         * lib/mbswidth.h: Include <wchar.h> only if
122917         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122918         <wchar.h>.
122919         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122921 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122923         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122924         Sync with libc CVS.
122925         * lib/getopt_int.h: New file, also synced from libc.
122927 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122929         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122930         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122931         Bring back getopt.c, getopt.h, getopt1.c.
122933 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122935         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122936         All uses changed.  Check for sa_sigaction member; this fixes
122937         a bug first reported by Jason Andrade in
122938         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122940 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122942         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122943         '#if' expressions.  Unlike the code it replaces, it does not
122944         depend on (defined _SC_PAGESIZE).  However, it does depend on
122945         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122946         first reported by Jason Andrade in
122947         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122949 2004-02-25  Simon Josefsson  <jas@extundo.com>
122951         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122953 2004-02-25  Simon Josefsson  <jas@extundo.com>
122955         * lib/strdup.h: New file.
122956         * lib/strdup.c: Include it.
122957         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122958         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122960 2004-02-23  Karl Berry  <karl@gnu.org>
122962         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122963         (from fencepost.gnu.org:/gd/gnuorg).
122965 2004-02-23  Karl Berry  <karl@gnu.org>
122967         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122968         * config/srclist.txt: add maintain/standards documents.
122970 2004-02-18  Bruno Haible  <bruno@clisp.org>
122972         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122973         Reported by Derek Robert Price <derek@ximbiot.com>.
122975 2004-02-16  Karl Berry  <karl@gnu.org>
122977         * config/mkinstalldirs, install-sh: update from automake.
122979 2004-02-06  Karl Berry  <karl@gnu.org>
122981         * m4/po.m4: update from gettext 0.14.1.
122983 2004-02-06  Karl Berry  <karl@gnu.org>
122985         * lib/config.charset: update from gettext 0.14.1.
122987 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122989         Add comments and code, prompted by suggestions from Bruno Haible
122990         for sh-quote.
122991         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122992         describing the enum quoting_style values.
122993         * lib/quotearg.c (quotearg_alloc): New function.
122994         (quotearg_buffer_restyled): Treat lone { and } as special.
122995         Treat = as special.  Work around bug with older shells
122996         that "see" a '\' that is really the 2nd byte of a multibyte char.
122997         Quote empty string with shell_quoting_style.
122999 2004-02-03  Bruno Haible  <bruno@clisp.org>
123001         * m4/pipe.m4: New file, from GNU gettext.
123003 2004-02-03  Bruno Haible  <bruno@clisp.org>
123005         * lib/pipe.h: New file, from GNU gettext.
123006         * lib/pipe.c: New file, from GNU gettext.
123008 2004-01-27  Bruno Haible  <bruno@clisp.org>
123010         * m4/execute.m4: New file, from GNU gettext.
123012 2004-01-27  Bruno Haible  <bruno@clisp.org>
123014         * lib/execute.h: New file, from GNU gettext.
123015         * lib/execute.c: New file, from GNU gettext.
123016         * lib/w32spawn.h: New file, from GNU gettext.
123018 2004-01-24  Paul Eggert  <eggert@twinsun.com>
123020         Merge from diffutils.
123022         * lib/file-type.c (file_type): Add typed memory objects.
123023         * lib/file-type.h (S_TYPEISTMO): New macro.
123025         * lib/c-stack.h (c_stack_action): Remove argv argument.
123026         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
123027         (die): Don't calculate message unless segv_action returns.
123028         (get_stack_location, min_address_from_argv, max_address_from_argv,
123029         volatile stack_base, volatile_stack_size): Remove.
123030         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
123031         that every segmentation violation is a stack overflow.  (Ouch!)
123032         See Debian bug 136249 (still outstanding) for more info about why
123033         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
123035 2004-01-24  Paul Eggert  <eggert@twinsun.com>
123037         Exit-status fix from coreutils.
123039         Use exit_failure consistently in place of EXIT_FAILURE,
123040         so that program exit statuses are consistent on failure.
123042         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
123043         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
123044         * lib/argmatch.h: Comment fix to match the above.
123045         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
123046         Now a macro referring to exit_failure, instead of a separate
123047         variable.  Include "exitfail.h" to get it.
123048         * lib/xstrtol.h: Include "exitfail.h".
123049         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
123051         * lib/long-options.c (parse_long_options): Use prototype
123052         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
123053         for clarity.
123055 2004-01-21  Jim Meyering  <jim@meyering.net>
123057         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
123058         so as not to conflict with a different-sized __mktime_internal
123059         function in GNU libc.
123060         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
123061         Problem building statically-linked `ls' reported by Michael Brunnbauer.
123063 2004-01-20  Karl Berry  <karl@gnu.org>
123065         * config/config.guess: update from config.
123067         * config/srclistvars.sh: GNUWWWLICENSES for karl.
123069 2004-01-20  Bruno Haible  <bruno@clisp.org>
123071         Safer stack allocation.
123072         * lib/setenv.c: Include allocsa.h.
123073         (alloca): Remove fallback definition.
123074         (freea): Remove macro.
123075         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
123076         instead of freea.
123078 2004-01-20  Bruno Haible  <bruno@clisp.org>
123080         * m4/eealloc.m4: New file, from GNU gettext.
123082 2004-01-20  Bruno Haible  <bruno@clisp.org>
123084         * m4/allocsa.m4: New file, from GNU gettext.
123086 2004-01-20  Bruno Haible  <bruno@clisp.org>
123088         * lib/xallocsa.h: New file, from GNU gettext.
123089         * lib/xallocsa.c: New file, from GNU gettext.
123091 2004-01-20  Bruno Haible  <bruno@clisp.org>
123093         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
123095 2004-01-20  Bruno Haible  <bruno@clisp.org>
123097         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
123098         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
123099         specially.
123101 2004-01-20  Bruno Haible  <bruno@clisp.org>
123103         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
123104         patch.
123106 2004-01-20  Bruno Haible  <bruno@clisp.org>
123108         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
123110 2004-01-20  Bruno Haible  <bruno@clisp.org>
123112         * lib/eealloc.h: New file.
123114 2004-01-20  Bruno Haible  <bruno@clisp.org>
123116         * lib/binary-io.h: Avoid warnings on Cygwin.
123118 2004-01-20  Bruno Haible  <bruno@clisp.org>
123120         * lib/allocsa.h: New file, from GNU gettext.
123121         * lib/allocsa.c: New file, from GNU gettext.
123123 2004-01-18  Karl Berry  <karl@gnu.org>
123125         * doc/gpl.texi, doc/lgpl.texi: new files.
123127 2004-01-18  Karl Berry  <karl@gnu.org>
123129         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
123130         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
123132 2004-01-15  Paul Eggert  <eggert@twinsun.com>
123134         Merge from coreutils.
123136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
123137         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
123138         (gl_DEFAULT_POSIX2_VERSION): Move
123139         the documentation from 'configure' into 'config.hin',
123140         so that 'configure --help' isn't burdened by it and
123141         we don't have to worry about its formatting there.
123142         Reword the documentation so that it's more succinct
123143         and can be run together into a single paragraph.
123144         * m4/same.m4 (gl_SAME): Check for pathconf.
123146 2004-01-15  Paul Eggert  <eggert@twinsun.com>
123148         Merge from coreutils.
123150         * lib/posixver.c: Include posixver.h.
123152         * lib/same.c: Include <stdbool.h>, <limits.h>.
123153         (_POSIX_NAME_MAX): Define if not defined.
123154         (MIN): New macro.
123155         (same_name): If file names are silently truncated, report
123156         that the file names are the same if they are the same after
123157         the silent truncation.
123159         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
123160         conversion function.
123161         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
123162         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
123163         longer needed.
123165 2004-01-15  Jim Meyering  <jim@meyering.net>
123167         Merge from coreutils.
123169         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
123170         if no library is required.
123171         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
123172         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
123173         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
123174         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
123175         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
123176         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
123177         value, $ac_cv_search_crypt, if it's "none required".
123178         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
123179         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
123180         not gl_FUNC_GETLOADAVG.
123181         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
123182         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
123184 2004-01-15  Jim Meyering  <jim@meyering.net>
123186         Merge from coreutils.
123188         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
123189         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
123190         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
123192         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
123193         optional configure-time default.
123195         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123197         * lib/xreadlink.c (xreadlink): Correct outdated comment.
123199 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
123201         Merge from coreutils.
123203         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
123204         value, $ac_cv_search_nanosleep, if it's "none required".
123206 2004-01-14  Paul Eggert  <eggert@twinsun.com>
123208         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
123209         with like-named macro in fnmatch.c.
123210         (EXT): Use an internal constant instead.
123212         Merge fnmatch patches from glibc.
123213         * lib/fnmatch.c (mbsinit): Remove define.
123214         Add libc_hidden_ver (__fnmatch, fnmatch).
123215         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
123216         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
123218 2004-01-14  Karl Berry  <karl@gnu.org>
123220         * config/install-sh: update from automake.
123222 2004-01-13  Karl Berry  <karl@gnu.org>
123224         * config/install-sh: update from automake.
123226 2004-01-09  Karl Berry  <karl@gnu.org>
123228         * config/install-sh: update from automake.
123230 2004-01-05  Karl Berry  <karl@gnu.org>
123232         * config/config.{sub,guess}: update from config.
123234 2003-12-31  Karl Berry  <karl@gnu.org>
123236         * config/depcomp: update from automake.
123238 2003-12-14  Karl Berry  <karl@gnu.org>
123240         * lib/config.charset: update from gettext-runtime.
123242 2003-12-03  Paul Eggert  <eggert@twinsun.com>
123244         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
123245         Bug reported by Alfred M. Szmidt.
123247 2003-12-03  Bruno Haible  <bruno@clisp.org>
123249         * m4/gettext.m4: Upgrade from gettext-0.13.
123250         * m4/po.m4: Upgrade from gettext-0.13.
123251         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
123252         * m4/intmax.m4: New file, from gettext-0.13.
123253         * m4/printf-posix.m4: New file, from gettext-0.13.
123255 2003-11-29  Karl Berry  <karl@gnu.org>
123257         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
123259 2003-11-25  Paul Eggert  <eggert@twinsun.com>
123260             Bruno Haible  <bruno@clisp.org>
123262         * lib/printf-parse.h: Don't include sys/types.h.
123263         (ARG_NONE): New macro.
123264         (char_directive): Change type of *arg_index fields to size_t.
123265         * lib/printf-parse.c: Don't include sys/types.h.
123266         (SSIZE_MAX): Remove macro.
123267         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
123268         Remove unnecessary overflow check.
123269         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
123270         fields.
123272 2003-11-25  Bruno Haible  <bruno@clisp.org>
123274         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
123276 2003-11-25  Bruno Haible  <bruno@clisp.org>
123278         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
123279         gt_TYPE_SSIZE_T.
123281 2003-11-24  Paul Eggert  <eggert@twinsun.com>
123283         * modules/alloca: Remove dependency on xalloc.
123285 2003-11-24  Paul Eggert  <eggert@twinsun.com>
123287         * lib/alloca.c: Remove dependency on xalloc module.
123288         (xalloc_die): Remove.
123289         (memory_full) [!defined emacs]: New macro.
123290         [!defined emacs]: Don't include xalloc.h.
123291         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
123292         address arithmetic overflows.  Change datatypes a bit to avoid
123293         unnecessary casts.
123295 2003-11-22  Jim Meyering  <jim@meyering.net>
123297         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
123298         s/size/size_t/.
123300 2003-11-21  Karl Berry  <karl@gnu.org>
123302         * config/config.{sub,guess}: update from config.
123304 2003-11-18  Karl Berry  <karl@gnu.org>
123306         * config/config.{sub,guess}: update from config.
123308         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
123310 2003-11-17  Paul Eggert  <eggert@twinsun.com>
123312         * README: Mention that S+T cannot overflow if S is the size of
123313         an existing object and T is sufficiently small.
123315 2003-11-17  Jim Meyering  <jim@meyering.net>
123317         On systems without utime and without a utimes function capable of
123318         dealing with a NULL struct utimbuf* argument, this utime replacement
123319         could -- in unusual circumstances -- leak a file descriptor.
123320         * lib/utime.c: Include <unistd.h> and <errno.h>.
123321         (utime_null): Be sure to close `fd' and to preserve errno.
123322         Reported by Geoff Collyer via Arnold Robbins.
123324 2003-11-17  Bruno Haible  <bruno@clisp.org>
123326         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
123327         (Depends-on): Add xsize.
123329 2003-11-17  Bruno Haible  <bruno@clisp.org>
123331         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
123333 2003-11-17  Bruno Haible  <bruno@clisp.org>
123335         * lib/vasnprintf.c (alloca): Remove fallback definition.
123336         (freea): Remove definition.
123337         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
123338         Reported by Paul Eggert.
123340 2003-11-16  Paul Eggert  <eggert@twinsun.com>
123341             Bruno Haible  <bruno@clisp.org>
123343         Protect against address arithmetic overflow.
123344         * lib/printf-args.h: Include stddef.h.
123345         (arguments): Change type of field 'count' to size_t.
123346         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
123347         'unsigned int' where appropriate.
123348         * lib/printf-parse.h: Include sys/types.h.
123349         (char_directive): Change type of *arg_index fields to ssize_t.
123350         (char_directives): Change type of fields 'count', max_*_length to
123351         size_t.
123352         * lib/printf-parse.c: Include sys/types.h and xsize.h.
123353         (SSIZE_MAX): Define fallback value.
123354         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
123355         instead of 'int' where appropriate. Check a_allocated, d_allocated
123356         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
123357         * lib/vasnprintf.c: Include xsize.h.
123358         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
123359         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
123360         overflow. Avoid wraparound when converting a width or precision from
123361         decimal to binary.
123363 2003-11-16  Bruno Haible  <bruno@clisp.org>
123365         Update from GNU gettext.
123366         * lib/printf-parse.c: Generalize to it can be compiled for wide
123367         strings.
123368         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
123369         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
123370         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
123371         SNPRINTF): New macros.
123372         Don't include <alloca.h> if the file is used inside libintl.
123373         (local_wcslen): New function, for Solaris 2.5.1.
123374         (VASNPRINTF): Use it instead of wcslen.
123376 2003-11-16  Bruno Haible  <bruno@clisp.org>
123378         * lib/xsize.h (xmax): New function.
123379         (xsum, xsum3, xsum4): Declare as "pure" functions.
123381 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123383         * modules/xalloc (Files): Undo latest change, since xalloc.h
123384         no longer needs SIZE_MAX or PTRDIFF_MAX.
123386 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123388         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
123389         gl_PTRDIFF_MAX.
123391 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123393         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
123394         "return", to pacify some unknown compiler.  Problem reported
123395         by Joerg Schilling.
123397 2003-11-12  Paul Eggert  <eggert@twinsun.com>
123399         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
123400         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
123401         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
123402         heuristic is just as accurate as far as we know, and it removes a
123403         dependency on size_max.m4 and ptrdiff_max.m4.
123405 2003-11-11  Bruno Haible  <bruno@clisp.org>
123407         * modules/xsize (Files): Add m4/size_max.m4.
123408         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
123410 2003-11-11  Bruno Haible  <bruno@clisp.org>
123412         * m4/size_max.m4: New file.
123413         * m4/ptrdiff_max.m4: New file.
123414         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
123415         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
123416         (gl_XALLOC): Invoke it.
123418 2003-11-11  Bruno Haible  <bruno@clisp.org>
123420         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
123421         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
123422         defined.
123424 2003-11-10  Paul Eggert  <eggert@twinsun.com>
123426         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
123427         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
123428         rejected some allocations of exactly SIZE_MAX - 2 bytes.
123429         From Bruno Haible.
123430         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
123431         not (size_t) -1, since it's defined here.
123433 2003-11-09  Karl Berry  <karl@gnu.org>
123435         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
123437 2003-11-06  Paul Eggert  <eggert@twinsun.com>
123439         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
123440         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
123441         Reject sizes of exactly SIZE_MAX bytes.
123442         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
123443         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
123445 2003-11-05  Bruno Haible  <bruno@clisp.org>
123447         * lib/xsize.h: Include limits.h, to avoid a possible collision with
123448         SIZE_MAX defined in <limits.h> on Solaris.
123450 2003-11-04  Jim Meyering  <jim@meyering.net>
123452         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
123453         variable names, rather than @VAR@.
123454         * modules/poll: Likewise.
123456 2003-11-04  Bruno Haible  <bruno@clisp.org>
123458         * modules/xsize: New file.
123459         * modules/linebreak: Depend on xsize.
123460         * MODULES.html.sh (func_all_modules): Add xsize.
123462 2003-11-04  Bruno Haible  <bruno@clisp.org>
123464         * m4/xsize.m4: New file.
123466 2003-11-04  Bruno Haible  <bruno@clisp.org>
123468         * lib/xsize.h: New file.
123469         * lib/linebreak.c: Include xsize.h.
123470         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
123471         argument for overflow.
123472         Suggested by Paul Eggert.
123474 2003-11-03  Karl Berry  <karl@gnu.org>
123476         * config/config.{guess,sub}: update from config.
123478 2003-11-03  Jim Meyering  <jim@meyering.net>
123480         * modules/userspec (lib_SOURCES): Add userspec.h.
123481         (Include): Add "userspec.h".
123482         Improve description.
123484 2003-11-03  Jim Meyering  <jim@meyering.net>
123486         * lib/userspec.c: Include "userspec.h".
123487         * lib/userspec.h: New file.
123489 2003-11-03  Bruno Haible  <bruno@clisp.org>
123491         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
123493 2003-11-03  Bruno Haible  <bruno@clisp.org>
123495         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
123496         available, to avoid (extremely rare) race condition.
123497         Suggested by Paul Eggert.
123499 2003-11-02  Karl Berry  <karl@gnu.org>
123501         * config/srclist.txt (vasprintf.c): sync broken, sigh.
123503 2003-10-31  Paul Eggert  <eggert@twinsun.com>
123505         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
123506         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
123507         (read_filesystem_list): Set and use me_type_malloced.
123508         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
123509         whatever the type happens to be), for brevity and consistency.
123510         Check for size calculation overflow on Alphas running OSF/1.
123512 2003-10-31  Jim Meyering  <jim@meyering.net>
123514         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
123516         * lib/linebuffer.c: Include <string.h> for declaration of memset.
123518 2003-10-30  Paul Eggert  <eggert@twinsun.com>
123519             Bruno Haible  <bruno@clisp.org>
123521         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
123522         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
123524 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
123526         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
123527         netbsd*-gnu*.  Suggested by Robert Millan.
123529 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123531         * modules/group-member: Depend on stdbool.
123533 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123535         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
123537 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123539         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
123540         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
123541         after the 'gnu' in these cases.  This fixes some bugs in the
123542         previous change, and is based on suggestions by Robert Millan.
123544 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123546         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
123547         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
123548         no longer needed.
123549         * lib/quotearg.c (quotearg_n_options): Use it.
123550         * lib/group-member.c: Include <stdbool.h>.
123551         (free_group_info): Arg is now const *; don't free arg.
123552         (get_group_info): Now returns bool and accepts struct group_info *,
123553         rather than returning a malloc'ed struct group_info *.
123554         All uses changed.  Check for overflow in internal size calculation.
123556         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
123557         rather than xmalloc/xrealloc.
123558         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
123559         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
123560         conformance bug: the old code used a pointer after freeing the
123561         storage that it addressed.
123562         * lib/hash.c (hash_initialize): Simplify the code by using
123563         xalloc_oversized rather than doing it by hand.
123564         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
123565         the buffer preserved.  Use free and xmalloc instead.
123566         * lib/quotearg.c (quotearg_n_options): Likewise.
123567         Use a simpler test for size overflow.  Don't use xalloc_oversized
123568         because unsigned int might be wider than size_t (!); this suggests
123569         that we should switch from unsigned int to size_t for slot numbers.
123571 2003-10-28  Paul Eggert  <eggert@twinsun.com>
123573         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
123574         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
123575         NetBSD kernels.  Requested by Richard Stallman.
123577 2003-10-27  Paul Eggert  <eggert@twinsun.com>
123579         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
123580         to allocate the returned structure.  Do not allocate a subarray,
123581         as x2nrealloc will do that.
123582         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
123583         instead of xnrealloc.
123584         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
123586 2003-10-27  Bruno Haible  <bruno@clisp.org>
123588         * lib/stdbool_.h: Better support for BeOS.
123590 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123592         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
123593         now uses inline.
123595 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123597         * lib/xalloc.h (xalloc_oversized): New static inline function, for
123598         callers that want to do their own size-overflow checking.  Include
123599         <stdbool.h>, since xalloc_oversized returns bool.
123600         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
123601         to use xalloc_oversized.
123603         Add two functions x2realloc, x2nrealloc, for programs that grow
123604         arrays dynamically by doubling their sizes.
123605         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
123606         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
123607         New functions.
123609         Port to C99 semantics for 'inline' of external functions.
123610         Bug reported by Bruno Haible.
123611         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
123612         with the old contents of xnmalloc.
123613         (xnmalloc, xmalloc): Use it.
123614         (xnrealloc_inline): New static inline function,
123615         with the old contents of xnrealloc.
123616         (xnrealloc, xrealloc): Use it.
123618         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
123619         that.
123621 2003-10-26  Karl Berry  <karl@gnu.org>
123623         * config/srclist.txt (COPYING.DOC): no longer available from
123624         /gd/gnuorg; don't know where the ultimate source is.
123626 2003-10-25  Paul Eggert  <eggert@twinsun.com>
123628         Fix several address-calculation bugs in the hash modules,
123629         plus some minor code cleanup.
123631         * lib/hash.h: Include <stdbool.h>, for bool.
123632         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
123633         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
123634         hash_get_n_entries, hash_get_max_bucket_length,
123635         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
123636         hash_rehash): Use size_t rather than unsigned.
123637         * lib/hash.c (struct hash_table, hash_get_n_buckets,
123638         hash_get_n_buckets_used, hash_get_n_entries,
123639         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
123640         hash_get_entries, hash_do_for_each, hash_string, is_prime,
123641         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
123642         Likewise.
123643         (SIZE_MAX): Define if not defined.
123644         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
123645         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
123646         hash_print):
123647         Use const * when possible.
123648         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
123649         (check_tuning): Fix bug: if tuning parameters were very close to
123650         0 or 1, rounding errors could have caused subscript violations.
123651         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
123652         (hash_initialize): Add 'fail:' label
123653         to free table and return NULL, and use it to simplify code.
123654         Use calloc rather than clearing the storage ourself.
123655         (hash_initialize, hash_rehash): Check for arithmetic overflow in
123656         buffer size calculations.
123657         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
123658         Include <stddef.h>, for size_t.
123659         * lib/hash-pjw.c (hash_pjw): Likewise.
123660         Switch to method described by Bruno Haible.
123661         Include <limits.h>, for CHAR_BIT.
123662         (SIZE_BITS): New macro.
123664 2003-10-23  Paul Eggert  <eggert@twinsun.com>
123666         * m4/getline.m4 (AM_FUNC_GETLINE):
123667         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
123668         hosts.  Problem reported by Derek Robert Price in
123669         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
123670         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
123671         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
123673 2003-10-21  Paul Eggert  <eggert@twinsun.com>
123675         * lib/getndelim2.c (getndelim2): When size calculation overflows,
123676         ceiling the allocation at NMAX bytes rather than silently
123677         discarding input bytes before NMAX is reached.  This makes
123678         a difference only if NMAX exceeds SIZE_MAX / 2.
123680         * lib/obstack.c: Merge from glibc.
123681         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
123682         Add libc_hidden_def (_obstack_newchunk).
123683         (_obstack_free) [! defined _LIBC]: Remove.
123684         [defined _LIBC]: Make a strong alias from obstack_free, rather than
123685         a clone of the function body.
123686         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
123687         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
123689         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
123690         glibc.
123691         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
123692         arg to memcpy.
123694         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
123695         (obstack_ptr_grow_fast, obstack_int_grow_fast):
123696         Don't use lvalue casts, as GCC plans to remove support for them
123697         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
123698         was also present in the non-GCC version, indicating that this
123699         code had always been buggy and had never been widely used.
123700         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
123701         Use the fast variant of each macro, rather than copying the
123702         definiens of the fast variant; that way, we'll be more likely to
123703         catch future bugs in the fast variants.
123705 2003-10-20  Bruno Haible  <bruno@clisp.org>
123707         * modules/wait-process: New file.
123708         * MODULES.html.sh (func_all_modules): Add wait-process.
123710 2003-10-20  Bruno Haible  <bruno@clisp.org>
123712         * m4/wait-process.m4: New file.
123714 2003-10-20  Bruno Haible  <bruno@clisp.org>
123716         * lib/wait-process.h: New file, from GNU gettext.
123717         * lib/wait-process.c: New file, from GNU gettext.
123719 2003-10-19  Jim Meyering  <jim@meyering.net>
123721         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
123722         HPUX 10.20.
123724 2003-10-18  Karl Berry  <karl@gnu.org>
123726         * config/config.guess: update from config.
123728 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123730         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
123731         (getgroups): First arg is int, not size_t.
123732         Don't let 'free' mangle errno.
123734 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123736         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
123738 2003-10-16  Karl Berry  <karl@gnu.org>
123740         * config/config.{guess,sub}: update from config.
123742 2003-10-16  Jim Meyering  <jim@meyering.net>
123744         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
123745         memcpy.
123747 2003-10-15  Paul Eggert  <eggert@twinsun.com>
123749         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
123750         (SIZE_MAX): Remove.
123751         (new_exclude, add_exclude_file): Initial size no longer needs to
123752         be a power of 2.
123753         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
123754         our own address arithmetic overflow checking.
123756         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
123757         (fnmatch): Do not alloca more than 2000 wide characters;
123758         instead, use malloc for large buffers.
123759         Check for address arithmetic overflow, and return -1
123760         with errno set to ENOMEM in that case.
123761         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
123762         (NEW_PATTERN): Do not alloca more than 8000 bytes;
123763         instead, return -1.  Check for address arithmetic overflow.
123765 2003-10-14  Paul Eggert  <eggert@twinsun.com>
123767         Handle invalid suffixes and overflow independently, so that
123768         callers can treat them independently as needed.  Fix some bugs in
123769         suffix handling, e.g., "100k@" was not diagnosed as an invalid
123770         suffix for a human-readable blocksize.  The major caller-visible
123771         change is the addition of a new
123772         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
123773         that both overflow and suffix chars were found.
123775         * lib/human.c (humblock): Don't check separately for invalid suffix
123776         char; that is xstrtoumax's job (now that its bug is fixed).
123777         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
123778         INTMAX_MAX]: New macros.
123779         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
123780         TYPE_MAXIMUM): New macros.
123781         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
123782         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
123783         if overflow occurs, as it's what __strtol does and it's more useful
123784         in practice.
123785         (__xstrtol): If __strtol reports some error other than ERANGE,
123786         reflect it to the caller as LONGINT_INVALID.  If it reports
123787         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
123788         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
123789         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
123790         value.
123791         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
123792         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
123793         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
123794         [defined UINTMAX_MAX]: New macros.
123796 2003-10-14  Bruno Haible  <bruno@clisp.org>
123798         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
123800 2003-10-14  Bruno Haible  <bruno@clisp.org>
123802         * m4/sig_atomic_t: New file, from GNU gettext.
123803         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
123805 2003-10-14  Bruno Haible  <bruno@clisp.org>
123807         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
123808         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
123809         Also use volatile where needed.
123811 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123813         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
123814         Change maintainer from Bruno Haible to 'all'.
123816 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123818         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
123820 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123822         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
123823         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
123824         and define in terms of the other primitives.
123825         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
123826         (SIZE_MAX): Define if not already defined.
123827         (array_size_overflow): New function.
123828         (xalloc_die): Abort instead of exiting if 'error' returns.
123829         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
123830         (xmalloc, xrealloc): Use them.
123831         (xcalloc): Check for address arithmetic overflow.
123832         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
123833         a bit faster than strcpy.
123835 2003-10-10  Simon Josefsson  <jas@extundo.com>
123837         * modules/argp (Depends-on): Add restrict and strcase.
123839 2003-10-10  Simon Josefsson  <jas@extundo.com>
123841         * m4/argp.m4: Add AC_C_INLINE.
123843 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123845         Merge getpass from libc, plus a few fixes.
123847         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
123848         Include <stdbool.h>.
123849         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
123850         __fsetlocking to empty.
123851         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
123852         do include <bits/libc-lock.h>.
123853         Do not include <fcntl.h>; not needed.
123854         [_LIBC]: Include <wchar.h>.
123855         (NOTCANCEL_MODE): New macro.
123856         (flockfile, funlockfile) [_LIBC]: New macros.
123857         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
123858         [!_LIBC]: New macros.
123859         (call_fclose): New function.
123860         (getpass): Use it.  Save tty stream separately; this simplifies the
123861         code and makes it more reliable if stdin happens to equal stdout.
123862         Invoke __fsetlocking on tty.
123863         Handle thread cancellation if needed.
123864         Namespace cleanup (use __tcgetattr, __getline).
123865         Use bool for Booleans.
123866         [USE_IN_LIBIO]: Handle wide streams.
123867         [!_LIBC]: Unconditionally do the fseek, since we don't know what
123868         stream might go where.
123870         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
123871         doesn't have to include <stdio.h> before us.
123872         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
123873         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
123874         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
123875         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
123876         if not declared, so that we can use getpass.c code from libc without
123877         rewriting it.
123878         (flockfile, ftrylockfile, funlockfile): New macros.
123880 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123882         * modules/getpass: Depend on stdbool.
123884 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123886         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
123888 2003-10-07  Karl Berry  <karl@gnu.org>
123890         * config/config.{guess,sub}: update from config.
123892 2003-10-06  Jim Meyering  <jim@meyering.net>
123893             Bruno Haible  <bruno@clisp.org>
123895         This lets translators provide better translations for the
123896         "Written by ..." part of --version output.
123897         * lib/version-etc.h: Include stdarg.h.
123898         (version_etc_copyright): Declare as readonly.
123899         (version_etc): Make this function variadic with a NULL-terminated list
123900         of author name strings.
123901         (version_etc_va): New declaration.
123902         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123903         (version_etc_copyright): Declare as readonly.
123904         (version_etc_va): New function. Provide a different translatable string
123905         for each possible number of authors < 10. Abbreviate when there are 10
123906         authors or more.
123907         (version_etc): Make this function variadic. Call version_etc_va.
123908         Suggestion from Gary V. Vaughan.
123910         * lib/long-options.h (parse_long_options): Change prototype: the
123911         authors string is moved to the end and becomes variadic.
123912         * lib/long-options.c: Include stdarg.h.
123913         (parse_long_options): Make this function variadic, too.
123914         Call version_etc_va, not version_etc.
123916 2003-10-06  Bruno Haible  <bruno@clisp.org>
123918         * modules/version-etc-2: Remove file.
123919         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123921 2003-10-06  Bruno Haible  <bruno@clisp.org>
123923         * modules/fatal-signal: New file.
123924         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123926 2003-10-06  Bruno Haible  <bruno@clisp.org>
123928         * m4/fatal-signal.m4: New file.
123929         * m4/signalblocking.m4: New file, from GNU gettext.
123931 2003-10-06  Bruno Haible  <bruno@clisp.org>
123933         * lib/version-etc-2.h: Remove file.
123934         * lib/version-etc-2.c: Remove file.
123936 2003-10-06  Bruno Haible  <bruno@clisp.org>
123938         * lib/fatal-signal.h: New file, from GNU gettext.
123939         * lib/fatal-signal.c: New file, from GNU gettext.
123941 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123943         * README: Rework advice for preventing empty .o files.
123944         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123945         not <sys/types.h>.
123947 2003-10-04  Karl Berry  <karl@gnu.org>
123949         * lib/argp*: update from libc.
123951 2003-10-04  Karl Berry  <karl@gnu.org>
123953         * config/config.{guess,sub}: update from config.
123955 2003-10-02  Bruno Haible  <bruno@clisp.org>
123957         * modules/lchown (Include): Add lchown.h.
123958         * modules/time_r (Include): Use "..." syntax.
123959         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123961 2003-10-01  Simon Josefsson  <jas@extundo.com>
123963         * MODULES.html.sh (func_all_modules): Move gethostname from section
123964         'based on' to section 'lacking' POSIX:2001.
123966 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123968         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123969         to output mode on the same stream.
123971 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123973         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123974         Fix arg typo in previous patch.
123976 2003-09-28  Jim Meyering  <jim@meyering.net>
123978         * lib/error.c: Correct cpp indentation.
123980 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123982         * modules/free: New file.
123984 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123986         * m4/free.m4: New file.
123988 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123990         * lib/minmax.h (MIN, MAX)
123991         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123992         Omit the special code that used __typeof__, since we worry that
123993         it could be more trouble than it's worth.  See:
123994         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123995         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123997         * lib/free.c: New file.
123999 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
124001         Trivial fixes to Makefile.am parts of module listings.
124002         * modules/strstr: Append strstr.h to lib_SOURCES.
124003         * modules/strcase: Likewise, for strcase.h.
124005 2003-09-27  Karl Berry  <karl@gnu.org>
124007         * config/mkinstalldirs: update from automake.
124009 2003-09-26  Paul Eggert  <eggert@twinsun.com>
124011         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
124012         (error_tail): Do not loop, reallocating temporary buffer, since
124013         the output cannot contain more wide characters than the input
124014         contains bytes, the size must be big enough already.  This avoids
124015         one potential size overflow calculation.  Check for size overflow
124016         when calculating temporary buffer size.  Free temporary buffer
124017         when done, if it was allocated with malloc; this plugs a memory
124018         leak.  Remove casts from void * to pointers, that are no longer
124019         needed now that we're assuming C89 or better.
124021         Merge error changes from glibc.
124023         * lib/error.c, error.h: Update copyright notice header to match glibc.
124024         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
124025         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
124026         Disable cancellation while printing error.
124027         * lib/error.h: Prepend __ to parameter names.
124029 2003-09-26  Jim Meyering  <jim@meyering.net>
124031         * lib/error.c (error_tail): Move some declarations
124032         into inner scope where the local variables are used.
124034 2003-09-26  Bruno Haible  <bruno@clisp.org>
124036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
124037         stpncpy().
124038         Don't define stpncpy through config.h; it's now done through stpncpy.h.
124040 2003-09-26  Bruno Haible  <bruno@clisp.org>
124042         * lib/stpncpy.h (gnu_stpncpy): New declaration.
124043         (stpncpy): Define as alias for gnu_stpncpy.
124044         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
124046 2003-09-25  Simon Josefsson  <jas@extundo.com>
124048         * lib/xgetdomainname.h: New file.
124049         * lib/xgetdomainname.c: New file.
124051 2003-09-25  Simon Josefsson  <jas@extundo.com>
124052             Bruno Haible  <bruno@clisp.org>
124054         * modules/getdomainname: New file.
124055         * modules/xgetdomainname: New file.
124056         * MODULES.html.sh (func_all_modules): Add getdomainname,
124057         xgetdomainname.
124059 2003-09-25  Simon Josefsson  <jas@extundo.com>
124060             Bruno Haible  <bruno@clisp.org>
124062         * m4/getdomainname.m4: New file.
124064 2003-09-25  Simon Josefsson  <jas@extundo.com>
124065             Bruno Haible  <bruno@clisp.org>
124067         * lib/getdomainname.h: New file.
124068         * lib/getdomainname.c: New file.
124070 2003-09-25  Karl Berry  <karl@gnu.org>
124072         * lib/argp-fmtstream.c, argp-help.c: update from libc.
124074 2003-09-25  Karl Berry  <karl@gnu.org>
124076         * config/install-sh: update from automake.
124078 2003-09-25  Bruno Haible  <bruno@clisp.org>
124080         * modules/version-etc-2: New file, from modules/version-etc with
124081         modifications.
124082         * MODULES.html.sh (func_all_modules): Add version-etc-2.
124084 2003-09-25  Bruno Haible  <bruno@clisp.org>
124086         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
124087         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
124089 2003-09-24  Simon Josefsson  <jas@extundo.com>
124091         * modules/xgethostname: Add xgethostname.h.
124093 2003-09-24  Paul Eggert  <eggert@twinsun.com>
124095         * lib/linebuffer.c (freebuffer): Don't free the argument, just
124096         the buffer associated with the argument.  Bug reported by
124097         Simon Josefsson.
124099 2003-09-24  Paul Eggert  <eggert@twinsun.com>
124101         * README: Document assumptions that 'int' is at least 32 bits
124102         wide, that integer arithmetic is 2's complement without overflow,
124103         that there are no holes in integer values, that adding sizes of
124104         two nonoverlapping objects can't overflow, and that all-bits-zero
124105         yields scalar zero.  Fix spelling and capitalization typos.
124107 2003-09-19  Karl Berry  <karl@gnu.org>
124109         * lib/argp.h: update from libc.
124111 2003-09-17  Paul Eggert  <eggert@twinsun.com>
124113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
124114         to avoid spurious warnings like "AC_RUN_IFELSE was called before
124115         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
124117 2003-09-17  Paul Eggert  <eggert@twinsun.com>
124119         * gnulib-tool: Use "test -h", not "test -L", for portability
124120         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
124121         (tags_regexp): Remove, since \| doesn't conform to POSIX.
124122         (sed_extract_prog): Issue s commands one-by-one, rather than
124123         using \| in one s command.
124125 2003-09-16  Paul Eggert  <eggert@twinsun.com>
124127         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
124128         input error, instead of returning NULL the next time we are called
124129         (and therefore losing track of errno).
124131 2003-09-16  Bruno Haible  <bruno@clisp.org>
124133         * gnulib-tool (func_create_testdir): Warn about duplicated
124134         dependencies.
124136 2003-09-15  Paul Eggert  <eggert@twinsun.com>
124138         * modules/argmatch, modules/fatal, modules/obstack,
124139         modules/xalloc, modules/xgethostname: Sort dependencies by
124140         importance, not alphabetically.
124142 2003-09-15  Paul Eggert  <eggert@twinsun.com>
124144         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
124145         fails, so that the caller gets the proper errno.
124147         * lib/readutmp.c (read_utmp): Likewise.
124148         Check for fstat error.  Close stream and free storage
124149         when failing.
124151 2003-09-14  Karl Berry  <karl@gnu.org>
124153         * config/srclist.txt (strdup.c): disable for c89 changes.
124155 2003-09-14  Jim Meyering  <jim@meyering.net>
124157         * lib/getloadavg.c: Correct cpp indentation.
124158         * lib/strdup.c: Likewise.
124159         * lib/vasnprintf.c: Likewise.
124161 2003-09-14  Bruno Haible  <bruno@clisp.org>
124163         * modules/fwriteerror: New file.
124164         * MODULES.html.sh (func_all_modules): Add fwriteerror.
124166 2003-09-14  Bruno Haible  <bruno@clisp.org>
124168         * lib/fwriteerror.h: New file.
124169         * lib/fwriteerror.c: New file.
124171 2003-09-12  Paul Eggert  <eggert@twinsun.com>
124173         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
124174         modules/xgethostname, modules/xalloc: Depend on exit.
124176 2003-09-12  Paul Eggert  <eggert@twinsun.com>
124178         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
124180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
124181         and AC_MINIX, too, so that their extensions are available.
124183         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
124184         This macro has been superseded by gl_BACKUPFILE.
124186         More patches to assume C89 or better.
124188         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
124190         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
124191         unconditionally.
124192         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
124193         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
124194         Include <string.h>, <stdlib.h> unconditionally.
124195         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
124196         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
124197         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
124198         headers or for string.h.
124199         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
124200         or strtoul.
124202         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
124203         headers.
124204         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
124205         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124206         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
124207         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
124208         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124209         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
124210         memcpy, memset.
124211         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
124212         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
124213         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
124214         strtol.
124215         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
124216         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
124217         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
124218         strtoul.
124220 2003-09-12  Paul Eggert  <eggert@twinsun.com>
124222         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
124223         * lib/obstack.c [!defined _LIBC]: Likewise.
124224         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
124225         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
124226         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
124228         More changes to assume C89 or better.
124230         * lib/error.c (error_tail): Assume vprintf.
124232         * lib/argmatch.c (getenv): Remove decl.
124233         * lib/progreloc.c (get_full_program_name): Define via prototype.
124234         * lib/setenv.c (clearenv): Likewise.
124235         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
124236         needed.
124237         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
124238         (malloc, memcpy): Remove decls.
124239         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
124240         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
124241         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
124242         (memcpy): Remove macro.
124243         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
124244         (__P): Remove.  All uses removed.
124245         (PTR): Remove.  All uses changed to void *.
124246         (CHAR_BIT, NULL): Remove.
124247         (spaces, zeros, memset_space, memset_zero)
124248         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
124249         Remove.
124250         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
124251         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
124252         Define with prototype.
124253         Remove now-unnecessary prototype decl.
124254         (extra_args_spec): Assume ANSI C.  All uses changed.
124255         (extra_args_spec_iso): Remove.
124256         (my_strftime, emacs_strftimeu): Define via prototype.
124257         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
124258         unconditionally.
124259         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
124260         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
124261         (strtoul, strtol): Remove decls.
124262         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
124263         LONG_MAX): Remove.
124264         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
124265         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
124266         (LOCALE_PARAM_PROTO): New macro.
124267         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
124268         (INTERNAL (strtol), strtol): Define with a prototype.
124269         (PARAMS): Remove.  All uses removed.
124270         * lib/tempname.c: Include <string.h> unconditionally.
124271         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
124272         * lib/xgethostname.c (main): Define with a prototype.
124273         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
124274         Include <stdlib.h> unconditionally.
124275         (calloc, malloc, realloc, free): Remove decls.
124276         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
124277         Include <stdlib.h> unconditionally.  Sort include file names.
124278         (strtod): Remove.
124279         (xstrtod): Define with a prototype.
124280         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
124281         (strtol, strtoul): Remove decls.
124283 2003-09-11  Paul Eggert  <eggert@twinsun.com>
124285         More patches to assume C89 or better.
124286         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
124287         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
124288         string.h, memchr, STDC_HEADERS.
124290 2003-09-11  Paul Eggert  <eggert@twinsun.com>
124292         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
124293         Include <stdlib.h>, <string.h> unconditionally.
124294         Remove now-unnecessary cast to char *.
124295         * lib/strnlen.c: Include <string.h> unconditionally.
124296         * lib/yesno.c (yesno): Define with a prototype.
124298 2003-09-11  Bruno Haible  <bruno@clisp.org>
124300         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
124302 2003-09-10  Jim Meyering  <jim@meyering.net>
124304         * lib/error.c: Correct indentation of cpp directives.
124306 2003-09-10  Bruno Haible  <bruno@clisp.org>
124308         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
124309         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
124310         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
124311         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
124312         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
124313         <stdlib.h> and <string.h> checks.
124314         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
124315         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
124317 2003-09-10  Bruno Haible  <bruno@clisp.org>
124319         * lib/strcspn.c: Include <string.h> unconditionally.
124320         * lib/strpbrk.c: Include <string.h> unconditionally.
124321         * lib/strstr.c: Include <string.h> unconditionally.
124322         * lib/unicodeio.c: Include <string.h> unconditionally.
124323         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
124324         * lib/unsetenv.c: Likewise.
124325         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
124326         * lib/yesno.c: Include <stdlib.h> unconditionally.
124327         (rpmatch): Add prototype.
124329 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124331         More patches to assume C89 or better.
124332         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
124333         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
124334         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
124335         or for string.h.
124336         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
124337         stdlib.h.
124338         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
124339         C headers.
124340         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
124341         string.h.
124342         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
124343         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
124344         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
124345         or for string.h.
124346         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
124347         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
124348         C headers.
124349         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
124350         memcpy.
124351         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
124352         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
124353         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
124354         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
124355         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
124356         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
124357         string.h, free.
124358         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
124359         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
124360         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
124361         C headers, or for string.h.
124362         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
124363         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
124364         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
124365         headers, memory.h, stdlib.h, string.h, strings.h.
124366         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
124367         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
124368         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
124369         strchr.
124370         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
124371         headers, memory.h, string.h.
124372         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
124373         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
124374         free.
124375         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
124376         headers.
124377         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
124378         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
124379         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
124380         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
124381         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
124383 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124385         More K&R removal.
124387         * lib/acosl.c (main): Use a prototype.
124388         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
124389         tanl.c: Likewise.
124391         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
124393         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
124394         (getopt, etopt_long, getopt_long_only, _getopt_internal)
124395         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
124396         with a prototype.
124397         * lib/getopt.c (const): Remove macro.
124398         Include <string.h> unconditionally.
124399         (my_index): Remove; all uses changed to strchr.
124400         (strlen): Remove decl.
124401         (exchange): Remove forward decl; no longer needed.
124402         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
124403         Define with prototype.
124404         * lib/getopt1.c (const): Remove macro.
124405         (getopt_long, getopt_long_only, main): Define with prototype.
124407         * lib/getugroups.c: Include <string.h> unconditionally.
124409         * lib/getusershell.c: Include <stdlib.h> unconditionally.
124410         (getusershell, setusershell, endusershell, readname, main):
124411         Define with prototypes.
124413         * lib/group-member.c: Include group-member.h first.
124414         Include <stdlib.h> unconditionally.
124416         * lib/hard-locale.c: Include hard-locale.h first.
124417         Include <stdlib.h>, <string.h> unconditionally.
124419         * lib/hash.c (free, malloc): Remove decls.
124420         Include <stdlib.h> unconditionally.
124422         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
124423         (getenv): Do not declare.
124425         * lib/idcache.c: Include <string.h> unconditionally.
124427         * lib/long-options.c: Include long-options.h first, to test interface.
124428         Include <stdlib.h> unconditionally.
124430         * lib/makepath.c: Include makepath.h first, to test interface.
124431         Include <stdlib.h> and <string.h> unconditionally.
124433         * lib/linebuffer.c: Include <stdlib.h>.
124434         (free): Remove decl.
124436         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
124437         stddef.h. rpl_malloc returns void *, not char *.
124438         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
124439         prototype.
124441         * lib/md5.h: Include <limits.h> unconditionally.
124442         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
124443         (__P): Remove; all uses removed.
124444         * lib/md5.c: Include "md5.h" first.
124445         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
124446         md5_buffer, md5_process_bytes, md5_process_block):
124447         Define with prototypes.
124448         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
124449         * lib/sha.c: Include "sha.h" first.
124450         Include <stdlib.h>, <string.h> unconditionally.
124452         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
124453         * lib/memcmp.c (__ptr_t): Likewise.
124454         * lib/memrchr.c (__ptr_t): Likewise.
124455         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
124456         Include <string.h> unconditionally.
124457         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
124458         * lib/memchr.c: Include <stdlib.h> unconditionally.
124459         * lib/memchr.c (LONG_MAX): Remove.
124460         * lib/memrchr.c (LONG_MAX): Likewise.
124461         * lib/memchr.c (__memchr): Define via a prototype.
124462         * lib/memrchr.c (__memrchr): Likewise.
124463         * lib/memcmp.c (__P): Remove, and remove all uses.
124464         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
124465         Remove forward decls; no longer needed.
124466         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
124467         Use types required by C89 in prototype.
124469         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
124470         * lib/savedir.c: Likewise.
124471         * lib/mkdir.c (free): Remove decl.
124472         * lib/rmdir.c (rmdir): Define with a prototype.
124473         * lib/savedir.c: Include savedir.h first, to test interface.
124475         * lib/mktime.c (STDC_HEADERS): Remove.
124476         Include <stdlib.h>, <string.h> unconditionally.
124478         * lib/modechange.c: Include <stdlib.h> unconditionally.
124479         (malloc): Remove decl.
124481         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
124482         (free): Remove decl.
124484         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
124485         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
124486         (This type really should be intptr_t, but that's a C99ism.)
124487         (_obstack_memcpy): Remove: all uses changed to memcpy.
124488         Include <string.h> unconditionally.
124489         (struct obstack): Assume __STDC__ for types of members
124490         chunkfun, freefun, extra_arg.
124491         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
124492         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
124493         obstack_begin, obstack_specify_allocation,
124494         obstack_specify_allocation_with_arg, obstack_chunkfun,
124495         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
124496         Remove unprototyped decls and the macros that use them.
124497         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
124498         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
124499         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
124500         (defined __STDC__ && __STDC__)]:
124501         Remove nonprototyped code.
124502         Include <stdlib.h> unconditionally.
124503         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
124504         _obstack_allocated_p, _obstack_free, obstack_free,
124505         _obstack_memory_used, print_and_abort):
124506         Define using prototypes.
124507         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
124508         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
124509         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
124510         obstack_next_free, obstack_object_size, obstack_room) [0]:
124511         Remove unused, unprototyped code.
124513         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
124515         * lib/physmem.c (physmem_total, physmem_available, main): Define
124516         with prototypes.
124518         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
124519         (main): Define with a prototype.
124521         * lib/posixver.c (getenv): Remove decl.
124523         * lib/putenv.c (malloc): Returns void *, not char *.
124524         Include <string.h> unconditionally.
124525         (strchr, memcpy, NULL): Do not define.
124527         * lib/readtokens.c: Include readtokens.h first, to test interface.
124528         Include <stdlib.h>, <string.h> unconditionally.
124529         (init_tokenbuffer): Define with a prototype.
124531         * lib/regex.c (PARAMS): Remove.  All uses removed.
124532         All uses of _RE_ARGS removed, too.
124533         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124534         unconditionally.
124535         (bzero): Assume memset exists.
124536         (memcmp, memcpy, NULL): Remove.
124537         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
124538         char, or assignments to local vars of type signed char.
124539         (init_syntax_once, PREFIX(extract_number_and_incr),
124540         PREFIX(print_partial_compiled_pattern),
124541         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
124542         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
124543         PREFIX(regex_grow_registers), PREFIX(regex_compile),
124544         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
124545         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
124546         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
124547         wcs_compile_range, byte_compile_range, truncate_wchar,
124548         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
124549         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
124550         count_mbs_length, wcs_re_match_2_internal,
124551         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
124552         PREFIX(alt_match_null_string_p),
124553         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
124554         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
124555         regfree, PREFIX(extract_number)): Define with prototype.  Remove
124556         now-unnecessary declaration, if any.
124557         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
124558         regcomp, regexec):
124559         Remove now-unnecessary casts among pointer types.
124560         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
124562         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
124563         (free): Remove decl.
124565         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
124567         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
124568         (free): Remove decl.
124570         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
124571         * lib/xgetcwd.c: Likewise.
124573         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
124574         (free): Remove decl.
124576         * lib/strchrnul.c (strchrnul): Define with a prototype.
124577         Fix bug: c_in was not converted to char before searching.
124579         The following changes are not K&R related:
124581         * lib/group-member.h: Include <sys/types.h>, so that this file is
124582         self-contained.
124583         * lib/makepath.h: Likewise.
124585         * lib/getusershell.c (readname, default_index, line_size, readname):
124586         Use size_t, not int, for sizes.
124587         (readname): If the size overflows, report an error instead of
124588         looping forever.
124590 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124592         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
124593         libc.
124595 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124597         * README: New section: portability guidelines.
124599 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124601         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
124602         C89 spec.
124604 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124606         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
124608 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124610         Assume C89 or better; remove K&R cruft.
124611         A few of these changes were first proposed by Derek Robert Price
124612         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
124614         * lib/addext.c: Include <string.h> unconditionally.
124615         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
124616         Don't declare getenv or malloc.
124618         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
124619         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
124620         (NULL): Remove.
124621         (find_stack_direction, alloca): Use prototypes.
124623         * lib/atexit.c (atexit): Define using a prototype.
124625         * lib/basename.c, dirname.c, stripslash.c:
124626         Include <string.h> unconditionally.
124628         * lib/bcopy.c: Include <stddef.h>.
124629         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
124631         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
124633         * lib/error.h (error, error_at_line, error_print_progname)
124634         [! (defined (__STDC__) && __STDC__)]: Remove decls.
124635         * lib/error.c: Include error.h first, to check interface.
124636         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124637         (VA_START): Remove; all uses changeed to va_start.
124638         (exit, strerror): Remove decls.
124639         (error_print_progname): Prototype uncondionally.
124640         Don't include <errno.h>; no longer needed.
124641         (private_strerror): Remove.
124642         (error_tail): Always define.
124643         (error, error_at_line): Assume C89 or better; always use prototypes.
124644         * lib/fatal.c: Include "fatal.h" first, to test interface.
124645         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124646         (VA_START): Remove; all uses changed to va_start.
124647         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
124648         this case.
124649         (exit): Remove decl.
124650         (fatal): Prototype unconditionally.  Assume va_start works.
124651         Abort at end, to pacify gcc.
124653         * lib/euidaccess.c (main): Define with a prototype.
124655         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
124657         * lib/exitfail.c: Include <stdlib.h> unconditionally.
124659         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
124660         prototypes.
124661         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
124662         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
124663         (getenv): Remove decl.
124664         (fnmatch): Define using a prototype.
124665         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
124666         (FCT): Define using a prototype.
124668         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
124670         * lib/gethostname.c: Include <stddef.h>.
124671         (gethostname): Define with prototype.  Length is size_t, not int.
124673 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124675         Assume C89 or better; remove K&R cruft.
124676         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
124677         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
124678         string.h, getenv, malloc.
124679         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
124680         headers.
124681         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
124682         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
124683         do not check for strerror.
124684         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
124685         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
124686         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
124687         do not check for doprnt or vprintf.
124688         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
124689         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
124691 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124693         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
124694         getversion.c should have been removed then, but was accidentally
124695         preserved.
124697         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
124698         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
124700 2003-09-08  Karl Berry  <karl@gnu.org>
124702         * config/config.sub, config.guess, srclistvars.sh: update from savannah
124703                 config, forget about prep.
124705         * config/depcomp, missing: update from automake.
124707 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124709         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
124710         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124712 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124714         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
124715         copy_tm_result.  Bug reported by Simon Josefsson in
124716         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124718 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124720         * m4/time_r.m4: New file.
124721         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
124722         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
124723         is. Check for timegm declaration.
124724         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
124725         Do not check for gmtime_r.
124726         Replace mktime if __mktime_internal does not exist and if mktime
124727         hasn't been replaced already.
124729 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124731         * lib/time_r.c, lib/time_r.h: New files.
124733         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
124734         __localtime_r.
124735         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
124736         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
124738         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
124739         __gmtime_r.
124740         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
124741         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
124742         Include <time_r.h>.
124744         * lib/timegm.c: Switch to glibc implementation, with the following
124745         changes:
124746         [defined HAVE_CONFIG_H]: Include <config.h>.
124747         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
124748         (__mktime_internal) [!defined _LIBC]: New decl.
124749         (__gmtime_r) [!defined _LIBC]: New macro and function.
124750         (timegm): Use a prototype, since gnulib assumes C89.
124751         Do not bother declaring tmp to be const, as it's not really usefu.
124752         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
124753         (timegm): Declare only if HAVE_DECL_TIMEGM.
124755 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124757         * MODULES.html.sh (func_all_modules): Add time_r.
124758         * modules/time_r: New file.
124759         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
124760         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
124762 2003-09-03  Paul Eggert  <eggert@twinsun.com>
124764         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
124765         Bug reported by Lute Kamstra in
124766         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
124768         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
124769         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
124770         course with correspondingly smaller numbers for tomorrow and
124771         yesterday.  From Tadayoshi Funaba.  Originally installed into
124772         sh-utils on 1999-08-07, but the patch got lost (I guess during the
124773         coreutils merge?).
124775 2003-08-31  Simon Josefsson  <jas@extundo.com>
124777         * modules/timegm: New file.
124778         * MODULES.html.sh (func_all_modules): Add timegm.
124780 2003-08-31  Simon Josefsson  <jas@extundo.com>
124782         * m4/timegm.m4: New file.
124784 2003-08-31  Simon Josefsson  <jas@extundo.com>
124786         * lib/timegm.h: New file.
124787         * lib/timegm.c: New file.  Based on
124788         wget-1.8.2/src/http.c:mktime_from_utc.
124790 2003-08-31  Karl Berry  <karl@gnu.org>
124792         * lib/argp.h: update from libc.
124794 2003-08-28  Bruno Haible  <bruno@clisp.org>
124796         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
124797         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
124798         followed by '#define fnmatch fnmatch_posix' gives an error.
124800 2003-08-28  Bruno Haible  <bruno@clisp.org>
124802         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
124803         warning on QNX, which defines O_BINARY to 000000.
124805 2003-08-27  Jim Meyering  <jim@meyering.net>
124807         * m4/mkstemp.m4: Require that the system mkstemp be able to create
124808         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
124809         would fail after 32.  Reported by Danny Levinson.  Details here:
124810         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
124812 2003-08-24  Bruno Haible  <bruno@clisp.org>
124814         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
124815         MSVC7 <stdio.h> is included later.
124817 2003-08-22  Simon Josefsson  <jas@extundo.com>
124819         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
124821 2003-08-20  Karl Berry  <karl@gnu.org>
124823         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
124825 2003-08-20  Bruno Haible  <bruno@clisp.org>
124827         * modules/progname: New file.
124828         * MODULES.html.sh (func_all_modules): Add progname.
124830 2003-08-20  Bruno Haible  <bruno@clisp.org>
124832         * lib/progname.h: New file, from GNU gettext.
124833         * lib/progname.c: New file, from GNU gettext.
124834         * lib/progreloc.c: New file, from GNU gettext.
124836 2003-08-19  Jim Meyering  <jim@meyering.net>
124838         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
124839         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
124841 2003-08-19  Bruno Haible  <bruno@clisp.org>
124843         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
124844         more.
124846 2003-08-19  Bruno Haible  <bruno@clisp.org>
124848         * lib/xstrdup.c: Assume <string.h> exists.
124850 2003-08-18  Paul Eggert  <eggert@twinsun.com>
124852         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
124853         in makefile rules.
124855 2003-08-18  Jim Meyering  <jim@meyering.net>
124857         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
124858         * m4/lib-ld.m4: Likewise.
124860 2003-08-18  Jim Meyering  <jim@meyering.net>
124862         * lib/setenv.h: Indent nested cpp directive.
124863         * lib/vasnprintf.c: Remove trailing blanks.
124865 2003-08-17  Simon Josefsson  <jas@extundo.com>
124867         * modules/xstrndup: New file.
124868         * MODULES.html.sh (func_all_modules): Add xstrndup.
124870 2003-08-17  Simon Josefsson  <jas@extundo.com>
124872         * modules/argp: Fix autoconf macro name. Add more dependencies.
124874 2003-08-17  Simon Josefsson  <jas@extundo.com>
124876         * m4/xstrndup.m4: New file.
124878 2003-08-17  Simon Josefsson  <jas@extundo.com>
124880         * m4/argp.m4: New file.
124882 2003-08-17  Simon Josefsson  <jas@extundo.com>
124883             Bruno Haible  <bruno@clisp.org>
124885         * lib/xstrndup.h: New file.
124886         * lib/xstrndup.c: New file.
124888 2003-08-17  Bruno Haible  <bruno@clisp.org>
124890         * modules/strndup (Files, Include): Add lib/strndup.h.
124892 2003-08-17  Bruno Haible  <bruno@clisp.org>
124894         * modules/euidaccess (Files): Add lib/euidaccess.h.
124896 2003-08-17  Bruno Haible  <bruno@clisp.org>
124898         * lib/strndup.h: New file.
124900 2003-08-17  Bruno Haible  <bruno@clisp.org>
124902         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124903         like AC_GNU_SOURCE.
124904         * modules/extensions (configure.ac): Comment out the invocation of
124905         gl_USE_SYSTEM_EXTENSIONS.
124907 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124909         Merges from coreutils, etc.
124910         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124911         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124912         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124913         fixing a typo.
124914         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124915         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124917 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124919         Document merge from coreutils.
124920         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124921         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124922         * modules/utime: Add m4/utimes-null.m4.
124924 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124926         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124927         space, undoing this 2003-08-12 change:
124928         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124930 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124932         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124933         strtoul.c from libc, undoing this 2003-08-12 change:
124934         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124936 2003-08-16  Jim Meyering  <jim@meyering.net>
124938         Merges from coreutils.
124939         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124940         prefix.  Adjust cache variables similarly.  Create 500 rather than
124941         just 300 files, to exercise bug on Darwin6.5, too.
124942         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124943         $missing_dir.
124944         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124945         AM_SYS_POSIX_TERMIOS.
124946         Reported by mkc@mathdogs.com.
124947         Also change use of $am_cv_sys_posix_termios
124948         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124949         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124950         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124951         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124952         in /proc/mounts until it finds one with matching device number.  This
124953         is unnecessary when the FILE argument *is* a mount point.  No stat call
124954         is necessary in that case.  So, disable the statvfs-testing code on
124955         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124956         as RedHat bug# 84846.
124957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124958         to 1MB, so as not to render systems with no stack size limit (e.g.,
124959         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124960         Include <unistd.h>.  On some systems,
124961         it is required for the definition of _SC_PAGESIZE.
124963 2003-08-16  Jim Meyering  <jim@meyering.net>
124965         Merge from coreutils.
124966         * lib/xstrtoimax.c: #else #if -> #elif.
124967         * lib/xstrtoumax.c: Likewise.
124969 2003-08-16  Jim Meyering  <jim@meyering.net>
124971         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124972         * m4/utimes.m4: Removed.
124973         * m4/utimes-null.m4: Renamed from utimes.m4.
124975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124976         to 1MB, so as not to render systems with no stack size limit (e.g.,
124977         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124978         Include <unistd.h>.  On some systems,
124979         it is required for the definition of _SC_PAGESIZE.
124981 2003-08-16  Jim Meyering  <jim@meyering.net>
124982         and Paul Eggert  <eggert@cs.ucla.edu>
124984         Merges from coreutils, etc.
124986         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124987         using the latest version from cvs.  This avoids problems with #line
124988         directives using a vendor (Sun) compiler.
124989         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124990         Don't set GETGROUPS_LIB here; now it's
124991         done via getgroups.m4's wrapper function.
124992         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124993         rather than just in sh-util/configure.in, so that the
124994         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124995         same.
124996         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124997         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124998         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124999         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
125000         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
125001         Remove code that is now done by the newly-required macros.
125002         Append $(EXEEXT) to DF_PROG.
125003         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
125004         Do not invoke or require the following here,
125005         since prereq.m4 or some gnulib .m4 now does this for us:
125006         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
125007         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
125008         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
125009         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
125010         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
125011         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
125012         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
125013         AC_FUNC_OBSTACK.
125014         Do not replace the following functions, as this is now the job
125015         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
125016         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
125017         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
125018         atexit getpass, strdup, getpagesize.
125019         Replace 'raise'.
125020         Do not check for the following functions, as this is now the job
125021         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
125022         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
125023         setregid.
125024         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
125025         Check for sys/sysctl.h.
125026         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
125027         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
125028         of checking for ssize_t ourselves.
125030         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
125031         Require every macro that gnulib/modules/* suggests for us.
125032         (jm_PREREQ_ADDEXT): New macro.
125033         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
125034         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
125036         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
125037         (gl_PHYSMEM): Use it.
125038         Also check for `table' function.
125039         Check for new headers and functions.
125040         Add check for sys/sysmp.h.
125041         With suggestions from Kaveh Ghazi.
125042         Ignore headers that are present but cannot be compiled.  This
125043         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
125044         C 5.4.
125046 2003-08-15  Paul Eggert  <eggert@twinsun.com>
125048         Document merge from coreutils.
125049         * modules/userspec: Depend on posixver.
125050         * modules/strftime: Depend on tzset.
125052 2003-08-15  Paul Eggert  <eggert@twinsun.com>
125054         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
125055         rather than tab, after '#' in shell-script copyright notices.
125056         Suggested by Bruno Haible.
125058 2003-08-15  Paul Eggert  <eggert@twinsun.com>
125060         * config/srclist-update: Use three spaces, rather than tab, after '#'
125061         in shell-script copyright notices.  Suggested by Bruno Haible.
125062         Remove unnecessary parenthesization in regular expression.
125064 2003-08-15  Jim Meyering  <jim@meyering.net>
125066         Merge from coreutils.
125067         * lib/xgethostname.c: Include <stdlib.h>.
125068         (xghostname): Don't exit for anything other than memory-related
125069         failure; just return NULL.
125070         * lib/userspec.c: Include "posixver.h".
125071         (parse_user_spec): Accept `.' as a separator only
125072         in pre-POSIX-200112 mode.
125073         * lib/strtoimax.c: Use #elif rather than #else #if.
125074         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
125075         Remove function, now that we can rely on a working tzset function.
125076         [!_LIBC]: Ensure that the required autoconf test has been run.
125077         [!defined _NL_CURRENT && HAVE_STRFTIME]:
125078         Use underlying_strftime for %r.
125079         * lib/sha.c: Merge in some clean-up and optimization changes from
125080         glibc.
125081         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
125082         Ensure that it is a multiple of 64.
125083         Rearrange loop exit tests so as to avoid performing an
125084         additional fread after encountering an error or EOF.
125085         * lib/realloc.c: Update copyright date.
125087 2003-08-15  Jim Meyering  <jim@meyering.net>
125088         and Paul Eggert  <eggert@twinsun.com>
125090         Merge from coreutils.
125091         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
125092         member but strut utmpx does not.  Needed for AIX 4.3.3.
125093         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
125095 2003-08-15  Jim Meyering  <jim@meyering.net>
125096         and Paul Eggert  <eggert@cs.ucla.edu>
125098         Merges from coreutils, etc.
125099         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
125100         Require gl_FUNC_TZSET_CLOBBER.
125101         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
125102         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
125103         members.
125105 2003-08-14  Paul Eggert  <eggert@twinsun.com>
125107         Help the merge from coreutils.
125108         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
125109         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
125110         * m4/tzset.m4: Use it too.
125112 2003-08-14  Paul Eggert  <eggert@twinsun.com>
125114         * modules/tzset: New file.
125116 2003-08-14  Jim Meyering  <jim@meyering.net>
125118         Merges from coreutils.
125119         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
125120         variable names, rather than @FNMATCH_H@.
125121         * modules/alloca: Likewise for $(ALLOCA_H).
125123         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
125124         the three copies of the literal target, `fnmatch.h'.
125125         * modules/alloca (alloca.h): Likewise.
125127 2003-08-14  Jim Meyering  <jim@meyering.net>
125129         Merge from coreutils.
125130         * m4/tzset.m4: New file.
125131         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
125132         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
125133         otherwise, AIX 5.1 systems would end up using the latter.
125134         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
125135         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
125136         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
125137         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
125139 2003-08-14  Jim Meyering  <jim@meyering.net>
125141         Merge from coreutils.
125142         * lib/obstack.h: Whitespace changes.
125143         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
125144         and xcalloc return values.
125145         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
125146         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
125147         hang on OSF/1 5.1 for DIR on both local and remote file systems.
125148         Reported by (and fix confirmed by) Nelson H. F. Beebe.
125149         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125150         error from mntctl.
125151         Use mntctl's return value to drive the entry-processing loop, since
125152         we can't rely on the value of the vmt_length member in the last
125153         entry.  On some systems doing so could result in exhausting
125154         virtual memory.  Based in part on a patch from Mike Jetzer.
125156 2003-08-14  Jim Meyering  <jim@meyering.net>
125157         and Paul Eggert  <eggert@twinsun.com>
125159         Merges from coreutils, plus other fixes.
125160         * lib/physmem.c: Merge in portability changes from gcc/libiberty
125161         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
125162         for credits and details.  Thanks to Kaveh Ghazi for helping
125163         to keep these files in sync.
125164         (ARRAY_SIZE): Define it.
125165         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
125166         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
125167         (memcasecmp): Don't assume size_t fits in unsigned int.
125168         Remove casts and duplicate code.
125169         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
125170         (memcpy): Remove definition.
125171         Merge in some clean-up and optimization changes from glibc.
125172         [BLOCKSIZE]: Move definition to top of file.
125173         Ensure that it is a multiple of 64.
125174         Rearrange loop exit tests so as to avoid performing an
125175         additional fread after encountering an error or EOF.
125176         * lib/md5.h (md5_uintptr): Define.
125177         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
125178         return to the initial working directory.  Preserve errno
125179         for caller.
125180         * lib/idcache.c: Include "xalloc.h".
125181         (xmalloc, xrealloc): Remove decls.
125182         (getuser): Remove casts no longer required in C89.
125183         * lib/human.c: Include stdio.h, for sprintf.
125184         * lib/group-member.c: Include "xalloc.h".
125185         (xmalloc, xrealloc): Remove decls.
125186         (get_group_info): Remove casts no longer required in C89.
125187         * lib/getusershell.c (readname): Remove casts no longer required in
125188         C89.
125189         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
125190         * lib/getline.c: Whitespace fix, from coreutils.
125192 2003-08-13  Paul Eggert  <eggert@twinsun.com>
125194         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
125195         Check for isascii.
125197         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
125198         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
125199         Undo previous (whitespace-only) change.
125201 2003-08-13  Paul Eggert  <eggert@twinsun.com>
125203         * lib/exclude.c: Include <ctype.h>
125204         (IN_CTYPE_DOMAIN): New macro.
125205         (is_space): New fn.
125206         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
125207         and empty lines.
125209         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
125210         Undo previous (whitespace-only) change.
125212 2003-08-13  Paul Eggert  <eggert@twinsun.com>
125214         * config/srclist-update: Change update back to the old behavior,
125215         leaving whitespace alone.  Use one 'sed' command rather than a
125216         pipeline.
125217         (fixlicense): Now a variable, not a function.
125218         (remove_trailing_blanks): Remove.
125219         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
125220         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
125221         Undo previous (whitespace-only) change.
125223 2003-08-12  Paul Eggert  <eggert@twinsun.com>
125225         Merge from coreutils.
125226         * modules/euidaccess: Add lib_SOURCES, include for new
125227         file euidaccess.h
125229 2003-08-12  Paul Eggert  <eggert@twinsun.com>
125231         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
125232         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
125233         Normalize leading white space and remove trailing white space.
125235         Merge from coreutils
125236         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
125238         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
125239         0.12.1.  These files are now being upgraded automatically by
125240         ../config/srclist-update.
125242 2003-08-12  Paul Eggert  <eggert@twinsun.com>
125244         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
125245         Normalize leading white space and remove trailing white space.
125246         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
125247         notice, as per ../config/srclist-update.
125249         Merge from coreutils.
125250         * lib/euidaccess.h: New file.
125251         * lib/euidaccess.c: Include it.
125252         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
125253         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
125254         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
125256 2003-08-12  Paul Eggert  <eggert@twinsun.com>
125258         * config/srclist-update: Add copyright notice.
125259         (remove_id_lines, remove_trailing_blanks): New constants.
125260         (fixfile): Use them to normalize spacing a bit in copied files.
125261         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
125262         Normalize leading white space and remove trailing white space.
125264         * config/texinfo.tex: Sync with texinfo.
125266         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
125267         strtoul.c from libc, to merge coreutils whitespace changes.
125269         * config/srclist.txt: Get the following m4 files from gettext:
125270         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
125271         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
125272         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
125273         wint_t.m4.
125275 2003-08-12  Karl Berry  <karl@gnu.org>
125277         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
125278         been made.
125280 2003-08-11  Paul Eggert  <eggert@twinsun.com>
125282         * modules/gnu-source, m4/gnu-source.m4:
125283         Remove; we're assuming Autoconf 2.54 or later now.
125284         Suggested by Bruno Haible.
125285         * MODULES.html.sh (func_all_modules): Remove gnu-source.
125287 2003-08-11  Bruno Haible  <bruno@clisp.org>
125289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
125291 2003-08-11  Bruno Haible  <bruno@clisp.org>
125293         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
125294         (vasnprintf): Use it instead of wcslen.
125296 2003-08-11  Bruno Haible  <bruno@clisp.org>
125298         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
125299         value to ensure that _Bool promotes to int. Use #define for _Bool when
125300         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
125302 2003-08-10  Karl Berry  <karl@gnu.org>
125304         * lib/regex.h: update from libc (whitespace fix).
125306 2003-08-09  Paul Eggert  <eggert@twinsun.com>
125308         Merge some files from coreutils.  These changes were
125309         originally made by Jim Meyering.
125310         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
125311         many older Unixes require this.
125312         * lib/alloca.c (alloca): Remove cast to argument of free;
125313         no longer needed in C89.
125314         * lib/alloca_.h, regex.h: Fix white space to match
125315         what GNU indent does.
125317 2003-08-09  Paul Eggert  <eggert@twinsun.com>
125319         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
125320         apparently Emacs's Unicode mode got confused before my 2003-08-05
125321         checkin.
125323 2003-08-08  Paul Eggert  <eggert@twinsun.com>
125325         * m4/extensions.m4: New file.
125326         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
125327         Require gl_USE_SYSTEM_EXTENSIONS.
125328         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
125329         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
125331 2003-08-08  Paul Eggert  <eggert@twinsun.com>
125333         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
125334         * modules/extensions, modules/gnu-source: New files.
125335         * modules/timespec, modules/unlocked-io: Depend on extensions.
125337 2003-08-07  Paul Eggert  <eggert@twinsun.com>
125339         * modules/restrict: New file.
125340         * MODULES.html.sh (func_all_modules): Add restrict.
125341         * modules/regex: Depend on restrict.
125343 2003-08-07  Paul Eggert  <eggert@twinsun.com>
125345         * m4/restrict.m4: New file.
125346         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
125348 2003-08-07  Bruno Haible  <bruno@clisp.org>
125350         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
125351         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
125353 2003-08-07  Bruno Haible  <bruno@clisp.org>
125355         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
125356         makes the module 'getndelim2' compatible with the module 'getline'.
125358 2003-08-05  Paul Eggert  <eggert@twinsun.com>
125360         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
125361         byte with "\201" to avoid glitches when editing that source file
125362         with multi-gnome-terminal.
125364 2003-08-05  Paul Eggert  <eggert@twinsun.com>
125366         * lib/bumpalloc.h: Remove.
125368 2003-08-05  Paul Eggert  <eggert@twinsun.com>
125370         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
125371         * modules/bumpalloc: Remove.
125373 2003-08-04  Paul Eggert  <eggert@twinsun.com>
125375         * lib/getloadavg.c: Change copyright notice and spacing to conform to
125376         GNU coding style.
125378         Merge from coreutils.
125379         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
125380         1. From glibc.
125381         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
125382         from Karl Berry, implemented by Jim Meyering.
125383         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
125384         from Dmitry V. Levin.
125385         Remove anachronistic cast of xrealloc.
125386         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
125387         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
125388         type. Otherwise, it wouldn't compile with at least /bin/cc on
125389         ymp-cray-unicos9.0.2.X.
125390         Combine two mostly-identical uses of alloca into one.
125391         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
125393 2003-08-04  Dave Love  <d.love@dl.ac.uk>
125395         [From Emacs.]
125397         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
125398         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
125399         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
125400         obsolete NLIST_NAME_UNION.
125401         [__GNU__]: Undef BSD and FSCALE.
125402         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
125404 2003-08-03  Paul Eggert  <eggert@twinsun.com>
125406         * lib/stdbool_.h (_Bool): Make it signed char, instead of
125407         an enum type, so that it's guaranteed to promote to int.  See:
125408         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
125410 2003-08-03  Karl Berry  <karl@gnu.org>
125412         * config/depcomp: update from automake.
125414 2003-07-31  Paul Eggert  <eggert@twinsun.com>
125416         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
125417         (strerror): Don't assume that a printable int fits in 14 bytes.
125419 2003-07-31  Bruno Haible  <bruno@clisp.org>
125421         * modules/getpass-gnu: New file.
125422         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
125424 2003-07-31  Bruno Haible  <bruno@clisp.org>
125426         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
125428 2003-07-24  Karl Berry  <karl@gnu.org>
125430         * config/missing: update from automake.
125432 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
125433             Bruno Haible  <bruno@clisp.org>
125435         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
125436         * lib/getline.c (getline, getdelim): Likewise.
125437         Remove _GNU_SOURCE define; now it's defined in config.h through
125438         m4/getline.m4.
125440 2003-07-23  Karl Berry  <karl@gnu.org>
125442         * config/config.sub: update from prep.
125444 2003-07-22  Paul Eggert  <eggert@twinsun.com>
125446         * modules/xalloc (Depends-on): Add exitfail.
125447         * modules/xmemcoll: Likewise.
125449 2003-07-22  Paul Eggert  <eggert@twinsun.com>
125451         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
125452         over-parenthesization in macros.
125454         Sync with coreutils.
125456         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
125457         required by C99.
125459         Use `exit_failure' for xalloc and xmemcoll instead of their own
125460         private exit-failure variables.
125461         * lib/xalloc.h (xalloc_exit_failure): Remove.
125462         * lib/xmalloc.c: Likewise.  Include exitfail.h.
125463         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
125464         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
125465         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
125466         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
125468 2003-07-20  Jim Meyering  <jim@meyering.net>
125470         * modules/closeout (Depends-on): Add exitfail.
125471         Suggestion from Bruno Haible.
125473 2003-07-19  Karl Berry  <karl@gnu.org>
125475         * config/config.sub: update from prep.
125477 2003-07-18  Paul Eggert  <eggert@twinsun.com>
125479         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
125480         Remove.
125481         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
125482         to test that it can stand by itself.  Include "exitfail.h".
125483         Clients should set exit_failure instead.
125484         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
125486 2003-07-18  Bruno Haible  <bruno@clisp.org>
125488         * modules/getndelim2: New file.
125489         * modules/getline: Share files with module getndelim2.
125490         * modules/getnline: Depend on getndelim2 instead of sharing files with
125491         it. Add getnline.c to lib_SOURCES.
125492         * MODULES.html.sh (func_all_modules): Add getndelim2.
125494 2003-07-18  Bruno Haible  <bruno@clisp.org>
125496         * m4/getndelim2.m4: New file.
125497         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
125498         invoke gl_PREREQ_GETNDELIM2.
125499         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
125500         gl_PREREQ_GETNDELIM2.
125501         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
125502         gl_GETNDELIM2.
125504 2003-07-18  Bruno Haible  <bruno@clisp.org>
125506         * lib/getndelim2.h: New file.
125507         * lib/getndelim2.c: Make into a module of its own. Include config.h,
125508         getndelim2.h.
125509         (getndelim2): Make non-static. Change return type to ssize_t.
125510         * lib/getline.h: Change argument names.
125511         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
125512         * lib/getnline.c: Include getndelim2.h.
125514 2003-07-18  Andreas Schwab  <schwab@suse.de>
125516         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
125518 2003-07-17  Karl Berry  <karl@gnu.org>
125520         * config/config.sub: update from prep.
125522 2003-07-17  Bruno Haible  <bruno@clisp.org>
125524         * modules/getnline: New file.
125525         * modules/getline: Add lib/getndelim2.c to source file list.
125526         * MODULES.html.sh (func_all_modules): Add getnline.
125528 2003-07-17  Bruno Haible  <bruno@clisp.org>
125530         * m4/getnline.m4: New file.
125532 2003-07-17  Bruno Haible  <bruno@clisp.org>
125534         * m4/Makefile.am.in: Remove file.
125535         * m4/Makefile.am: Remove file.
125536         * m4/Makefile.in: Remove file.
125538 2003-07-17  Bruno Haible  <bruno@clisp.org>
125540         * lib/getnline.h: New file.
125541         * lib/getnline.c: New file.
125542         * lib/getndelim2.c: New file, extracted from getline.c.
125543         (getndelim2): Renamed from getdelim2, with added nmax argument.
125544         * lib/getline.c: Include getndelim2.c.
125545         (getdelim2): Moved out to getndelim2.c.
125546         (getline, getdelim): Update.
125548 2003-07-17  Bruno Haible  <bruno@clisp.org>
125550         * lib/Makefile.am: Remove file.
125551         * lib/Makefile.in: Remove file.
125553 2003-07-17  Bruno Haible  <bruno@clisp.org>
125555         * configure.in: Remove file.
125556         * Makefile.in: Remove file.
125558 2003-07-17  Bruno Haible  <bruno@clisp.org>
125560         * MODULES.html.sh: Put the </BODY> right before </HTML>.
125562 2003-07-16  Karl Berry  <karl@gnu.org>
125564         * config/srclist-update: was running fixlicense twice, which caused
125565                 texinfo.tex to be nullified for some reason.  Simplify,
125566                 $gplsrc is no longer needed as far as I can see?
125568 2003-07-16  Jim Meyering  <jim@meyering.net>
125570         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
125572 2003-07-15  Paul Eggert  <eggert@twinsun.com>
125574         * config/srclist.txt: Get the following files from gettext-runtime/intl
125575         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
125576         ref-del.sin.  From Bruno Haible.
125577         * config/srclist-update (fixfile): Change grep pattern again, since the
125578         previous fix didn't work (there was another trailing $).  Use
125579         '[$]' to escape the $s.
125581 2003-07-15  Karl Berry  <karl@gnu.org>
125583         * lib/vasnprintf.c: update from gettext.
125585 2003-07-15  Karl Berry  <karl@gnu.org>
125587         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
125588         gets expanded when surrounded by '$'.
125590 2003-07-15  Jim Meyering  <jim@meyering.net>
125592         * modules/save-cwd: Don't depend on error.  From Derek Price.
125594 2003-07-15  Jim Meyering  <jim@meyering.net>
125596         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
125598 2003-07-14  Simon Josefsson  <jas@extundo.com>
125600         * modules/mempcpy: New file.
125601         * MODULES.html.sh (func_all_modules): Add mempcpy.
125603 2003-07-14  Simon Josefsson  <jas@extundo.com>
125605         * m4/mempcpy.m4: New file.
125607 2003-07-14  Simon Josefsson  <jas@extundo.com>
125609         * lib/mempcpy.h: New file.
125610         * lib/mempcpy.c: New file.
125612 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125614         * modules/getdate, modules/posixtm: Depend on mktime.
125616 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125618         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
125619         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
125620         unicodeio.c, unicodeio.h, unlocked-io.h:
125621         Switch from LGPL to GPL.
125623 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125625         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
125626         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
125627         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
125628         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
125629         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
125630         updated automatically by ../config/srclist-update.  This changes
125631         their license from LPGL to GPL.
125633 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125635         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
125636         assumed to refer to the root of the most recent stable gettext version.
125637         * config/srclistvars.sh: Add defaults for eggert.
125638         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
125639         Match "This program" as well as "The program".  This is needed
125640         for gettext.
125642 2003-07-14  Jim Meyering  <jim@meyering.net>
125644         Don't emit diagnostics.  Let callers do that.
125645         * lib/save-cwd.c: Don't include "error.h".
125646         (save_cwd): Don't call error.  Ensure that errno is valid
125647         when returning nonzero.
125649         * lib/save-cwd.h (restore_cwd): Update prototype.
125650         * lib/save-cwd.c (restore_cwd): Remove two parameters.
125651         Simplify.  Don't call error upon failure.  Let callers do that.
125652         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
125653         when auditing is enabled.  But don't bother updating the #if.
125655 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
125657         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
125658         it breaks C++ compilation.
125659         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
125661 2003-07-10  Simon Josefsson  <jas@extundo.com>
125663         * modules/strchrnul (Makefile.am): Add strchrnul.h.
125665 2003-07-10  Jim Meyering  <jim@meyering.net>
125667         * m4/clock_time.m4: Remove trailing blank.
125668         * m4/intmax_t.m4: Likewise.
125670 2003-07-10  Jim Meyering  <jim@meyering.net>
125672         * lib/vasnprintf.c: Remove trailing blanks.
125673         Make cpp indentation consistent.
125675 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125677         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
125678         posixver.c, strftime.c, strnlen.c, strverscmp.c:
125679         Switch from LGPL to GPL.
125681 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125683         * config/srclist.txt: Sort sublists.  Add
125684         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
125685         that differ from gnulib for one reason or another; we'd like this list
125686         to be smaller but for now let's document what we have.
125688 2003-07-08  Paul Eggert  <eggert@twinsun.com>
125690         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
125691         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
125692         and sweeter "eval x=$x".
125693         * config/srclist.txt: Get lib/argp* from glibc.
125695 2003-07-07  Paul Eggert  <eggert@twinsun.com>
125697         * lib/mktime.c: Fix some boundary cases and remove need for floating
125698         point.
125700         Issue a compile-time diagnostic if time_t is floating point, or if
125701         two's complement arithmetic is not in effect, or if arithmetic
125702         right shift does not propagate the sign.  These assumptions were
125703         all in the original code but they weren't checked.
125705         (TIME_T_MIDPOINT, verify): New macros.
125706         (__isleap): Remove; it has integer overflow problems.
125707         (leapyear): New function, without those problems.
125708         (ydhms_tm_diff): Remove; splitting into two parts.
125709         (ydhms_diff): New function, containing the arithmetic part of
125710         the old ydhms_tm_diff function.  Issue a compile-time
125711         diagnostic if we are not using C99 integer division.
125712         Avoid casts when possible.
125713         (guess_time_tm): New function, containing the checking part of
125714         the old ydhms_tm_diff function.  Return the new value, rather than
125715         the difference between it and the old.  Accept a new argument T
125716         so that *T specifies the old value.  Check for overflow in the result.
125718         (__mktime_internal): Use a time_t offset, not a long int offset.
125719         This undoes the 2003-06-04 change, which is no longer needed now
125720         that we have better overflow checking.
125721         (localtime_offset): Likewise.
125723         (__mktime_internal): Avoid harmful overflow on hosts where time_t
125724         and long are 64-bit but int is only 32-bit.
125725         (ydhms_diff): Use long int to store year1 and yday1.
125726         Issue a compile-time diagnostic if long int is not wide enough.
125728         (__mktime_internal): Use long int to store adjusted year and yday.
125729         Use plain C rather than preprocessor commands, if that doesn't
125730         affect efficiency.
125731         Check for overflow (and try to repair) after each probe
125732         rather than checking only at the very end.  This avoids some bugs
125733         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
125734         does not equal GMT offset at maximum time).
125735         Use integer to check for overflow rather than floating point; this
125736         is more portable to non-IEEE hosts, and is a tad faster.
125737         When we detect that we are oscillating between two values,
125738         don't check whether tm_isdst has the requested value, since
125739         we already know the answer.  When tm_isdst has the wrong value,
125740         use a different heuristic to find the right one, based on the
125741         extreme values actually observed in practice in tz2003a,
125742         rather than the (overly optimistic) "previous 3 calendar quarters".
125744         (not_equal_tm, print_tm, check_result): Use "const T" rather than
125745         "T const" to accommodate glibc style.
125746         (check_result): Use less-confusing report format.  "long" -> "long int.
125747         (main): Likewise.
125748         Don't loop if the iteration overflows time_t.
125749         Allow a negative step in the iteration.
125751 2003-07-06  Karl Berry  <karl@gnu.org>
125753         * config/depcomp: update from automake.
125754         * config/config.sub: update from prep.
125756 2003-07-03  Karl Berry  <karl@gnu.org>
125758         * config/config.guess: update from prep.
125760 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125762         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
125763         xreadlink.c now includes it unconditionally.
125765 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125767         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
125768         having it depend on HAVE_SYS_TYPES_H.
125770 2003-07-01  Bruno Haible  <bruno@clisp.org>
125772         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
125773         <sys/types.h> should be sufficient.
125774         Reported by Paul Eggert.
125776 2003-06-26  Karl Berry  <karl@gnu.org>
125778         * config/depcomp: update from automake.
125780 2003-06-26  Bruno Haible  <bruno@clisp.org>
125782         * modules/human: Depend on module stdbool.
125784 2003-06-25  Bruno Haible  <bruno@clisp.org>
125786         * modules/readlink: New file.
125787         * modules/xreadlink: Depend on it.
125788         * MODULES.html.sh (func_all_modules): Add readlink.
125790 2003-06-25  Bruno Haible  <bruno@clisp.org>
125792         * m4/readlink.m4: New file.
125794 2003-06-25  Bruno Haible  <bruno@clisp.org>
125796         * lib/readlink.c: New file.
125798 2003-06-22  Karl Berry  <karl@gnu.org>
125800         * config/srclist.txt: update mkinstalldirs from automake.
125801         * config/mkinstalldirs: update.
125803 2003-06-22  Bruno Haible  <bruno@clisp.org>
125805         Portability to mingw32.
125806         * m4/ssize_t.m4: New file, from GNU gettext.
125807         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
125808         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
125810 2003-06-22  Bruno Haible  <bruno@clisp.org>
125812         * modules/safe-read: Add m4/ssize_t.m4.
125813         * modules/xreadlink: Add m4/ssize_t.m4.
125815 2003-06-20  Bruno Haible  <bruno@clisp.org>
125817         Assume C89, so PARAMS isn't needed.
125818         * lib/unicodeio.h (PARAMS): Remove.
125819         * lib/unicodeio.c: Don't use PARAMS.
125821 2003-06-18  Karl Berry  <karl@gnu.org>
125823         * config/config.{guess,sub}: update from prep.
125825 2003-06-18  Jim Meyering  <jim@meyering.net>
125827         Merge changes from coreutils.
125828         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
125829         Remove explicit declarations of xmalloc and realloc.
125830         Include xalloc.h.
125831         (read_utmp): Remove anachronistic cast of xmalloc.
125833 2003-06-17  Paul Eggert  <eggert@twinsun.com>
125835         Assume C89, so PARAMS isn't needed.
125836         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
125837         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
125838         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
125839         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
125840         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
125841         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
125842         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
125843         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
125844         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
125845         lib/xstrtod.h, lib/xstrtol.h: Likewise.
125846         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
125847         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
125848         no longer needed. Anyway, config.h should always be included before any
125849         other file.
125851 2003-06-11  Simon Josefsson  <jas@extundo.com>
125853         * modules/sysexits: New file.
125854         * MODULES.html.sh (func_all_modules): Add sysexits.
125856 2003-06-11  Simon Josefsson  <jas@extundo.com>
125858         * lib/sysexit_.h: New file.
125860 2003-06-11  Derek Price  <derek@ximbiot.com>
125862         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
125863         necessary.
125865 2003-06-11  Bruno Haible  <bruno@clisp.org>
125867         * m4/sysexits.m4: New file.
125869 2003-06-10  Simon Josefsson  <jas@extundo.com>
125871         * lib/argp.h: New file, from glibc.
125872         * lib/argp-ba.c: New file, from glibc.
125873         * lib/argp-eexst.c: New file, from glibc.
125874         * lib/argp-fmtstream.c: New file, from glibc.
125875         * lib/argp-fmtstream.h: New file, from glibc.
125876         * lib/argp-fs-xinl.c: New file, from glibc.
125877         * lib/argp-help.c: New file, from glibc.
125878         * lib/argp-namefrob.h: New file, from glibc.
125879         * lib/argp-parse.c: New file, from glibc.
125880         * lib/argp-pv.c: New file, from glibc.
125881         * lib/argp-pvh.c: New file, from glibc.
125882         * lib/argp-xinl.c: New file, from glibc.
125884 2003-06-10  Simon Josefsson  <jas@extundo.com>
125886         * modules/strchrnul: New file.
125888 2003-06-10  Simon Josefsson  <jas@extundo.com>
125890         * modules/argp: New file.
125892 2003-06-10  Simon Josefsson  <jas@extundo.com>
125894         * m4/strchrnul.m4: New file.
125896 2003-06-10  Simon Josefsson  <jas@extundo.com>
125898         * lib/strchrnul.h: New file.
125899         * lib/strchrnul.c: New file.
125901 2003-06-10  Bruno Haible  <bruno@clisp.org>
125903         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125905 2003-06-07  Karl Berry  <karl@gnu.org>
125907         * config/config.{guess,sub}: update from prep.
125909 2003-06-07  Jim Meyering  <jim@meyering.net>
125911         * modules/strtod: Use $(...) notation, not @...@ for
125912         AC_REPLACE'd variables.
125913         * modules/localcharset: Likewise.
125915 2003-06-07  Jim Meyering  <jim@meyering.net>
125917         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125918         in place of my name in the copyright comment.
125919         Remove definition and uses of __P.
125921         From coreutils.
125922         * lib/stat.c: Don't declare xmalloc explicitly.
125923         Instead, include "xalloc.h".
125924         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125925         xrealloc, and xcalloc return values.
125926         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125927         Improve comment.
125928         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125930 2003-06-07  Bruno Haible  <bruno@clisp.org>
125932         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125933         avoid AC_CONFIG_LINKS.
125934         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125935         fnmatch.h, to avoid AC_CONFIG_LINKS.
125936         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125938 2003-06-07  Bruno Haible  <bruno@clisp.org>
125940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125941         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125942         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125943         directory.
125944         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125945         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125946         directory.
125948 2003-06-06  Jim Meyering  <jim@meyering.net>
125950         Merge from coreutils.
125951         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125952         Consolidate declarations and initializations of *_base* locals.
125954         Merge from coreutils.
125955         This avoids a core dump on systems without GNU putenv,
125956         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125957         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125958         (unsetenv): New static function, from GNU libc.
125959         (rpl_putenv): Use it.
125961         * lib/modechange.c: Remove trailing blanks.
125963         Merge from coreutils.
125964         * lib/fsusage.c: Remove declaration of statfs.
125965         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125967         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125969 2003-06-06  Jim Meyering  <jim@meyering.net>
125971         * lib/stdbool_.h: Renamed from stdbool.h.in.
125973 2003-06-06  Jim Meyering  <jim@meyering.net>
125974             Bruno Haible  <bruno@clisp.org>
125976         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125977         Adjust Makefile.am snippet not to redirect directly to target.
125978         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125980 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125982         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125983         mismatch, look in future quarters as well as past.  This fixes a
125984         bug when processing fall-backwards gaps immediately after a long
125985         period of daylight-saving time.
125987         * lib/mktime.c: Assume freestanding C89 or better.
125988         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125989         (__P): Remove; not used.
125990         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125991         (mktime, not_equal_tm, print_tm, check_result,
125992         main): Use prototypes.  Use const * where appropriate.
125993         (main): Fix typo in testing code that uncovered by above changes.
125994         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125996 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125998         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125999         locale.h, localeconv.  This merges changes from coreutils.
126001         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
126002         It can be removed after the next Autoconf is released.
126003         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
126004         needed.
126006 2003-06-04  Paul Eggert  <eggert@twinsun.com>
126008         * lib/mktime.c: Fix Debian bug 177940
126009         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
126010         (localtime_offset): Now long int, not time_t, because we want it
126011         to be guaranteed to be signed.  All uses changed.
126012         (__mktime_internal): If overflow would occur when adding offset,
126013         don't add it.
126015         Merge 'human' changes from coreutils.  Rewrite to support
126016         locale-specific notations like thousands separators.
126017         * lib/human.c: Simplify authorship notice.
126018         Include human.h immediately after config.h.
126019         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
126020         <limits.h>: Do not include, since human.h does.
126021         (SIZE_MAX, UINTMAX_MAX): New macros.
126022         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
126023         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
126024         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
126025         (power_letter): Renamed from suffixes.
126026         (generate_suffix_backwards): Remove.
126027         (adjust_value): Now takes int style (because of human.h changes)
126028         and long double value (for greater precision on some platforms).
126029         (group_number): New function.
126030         (human_readable): Use it.  Use integer options, not enum.
126031         Put the options before the sizes in the arg list.
126032         Support all the new options.
126033         The old human_readable function has been removed;
126034         use inttostr.h instead.
126035         (human_readable, default_block_size, humblock):
126036         Use uintmax_t, not int, for block sizes.
126037         (human_readable_inexact, block_size_types): Remove.
126038         (block_size_opts): New constant.
126039         (human_options): Renamed from human_block_size, with new signature
126040         that allows block sizes up to UINTMAX_MAX.  All callers changed.
126041         * lib/human.h: Add copyright and authorship notice.
126042         Include <limits.h> and <stdbool.h> unconditionally.
126043         (PARAMS): Remove.  All uses removed.
126044         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
126045         (enum human_inexact_style): Remove tag; now a nameless enum.
126046         (human_floor, human_ceiling, human_round_to_even): Now have
126047         values 2, 0, 1 rather than -1, 1, 0.
126048         (human_group_digits, human_suppress_point_zero, human_autoscale,
126049         human_base_1024, human_SI, human_B): New constants.
126050         (human_readable_inexact, human_block_size): Remove.
126051         (human_readable): Size args are now uintmax_t, not int.
126052         (human_options): New decl.
126054         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
126055         unnecessary now that we assume C89 or better.  This change
126056         imported from coreutils.
126058         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
126059         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
126060         in the 2003-05-30 sync from glibc.
126062         .h files should stand alone, but we shouldn't include <sys/types.h>
126063         if we can get away with just <stddef.h>.
126065         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
126066         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
126067         rather than <sys/types.h>, as we merely need size_t.
126068         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
126069         to get size_t.
126070         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
126071         Include <stdio.h>, to get FILE.
126072         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
126073         memcasecmp.h has included <stddef.h> and all we need is size_t.
126074         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
126075         our interface, instead of including <sys/types.h>
126077 2003-06-04  Paul Eggert  <eggert@twinsun.com>
126079         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
126080         now, as glibc mktime is buggy on non-glibc systems.
126082 2003-06-03  Karl Berry  <karl@gnu.org>
126084         * config/config.sub: update from prep.
126086 2003-06-02  Paul Eggert  <eggert@twinsun.com>
126088         [from coreutils]
126089         Fix some minor time-related bugs with POSIX time arguments.
126090         Some valid time stamps were being rejected (notably -1, and
126091         time stamps before 1900 on 64-bit hosts).  And some invalid
126092         time stamps were being accepted, e.g. September 31.
126094         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
126095         that we can return (time_t) -1 successfully.
126096         * lib/posixtm.c: Likewise.
126097         [HAVE_STDBOOL_H]: Include <stdbool.h>.
126098         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
126099         (t): Remove static var.
126100         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
126101         of static var.  All uses changed.
126102         (year): Do not reject years before 1900; they can occur with
126103         64-bit time_t.
126104         (posix_time_parse): Do not check for out-of-range components;
126105         that is now the caller's responsibility, since our checks were
126106         only approximations.
126107         (posixtime): Use mktime to check for out-of-range components,
126108         since it knows them exactly.
126109         If mktime returns (time_t) -1, check whether an error actually occurred
126110         by invoking localtime on -1.
126111         (main) [TEST_POSIXTIME]: Check for input data errors, and report
126112         posixtime failures better.
126113         Improve the test data (in comments only).
126115 2003-06-02  Karl Berry  <karl@gnu.org>
126117         * config/mkinstalldirs (version): new variable.
126118         (--version): new option.
126119         (usage): improve message.
126121 2003-05-30  Karl Berry  <karl@gnu.org>
126123         * lib/mktime.c: update from libc.
126125 2003-05-30  Bruno Haible  <bruno@clisp.org>
126127         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
126128         * config/config.rpath: Upgrade to gettext-0.12.1.
126130 2003-05-30  Bruno Haible  <bruno@clisp.org>
126132         * m4/gettext.m4: Upgrade to gettext-0.12.1.
126133         * m4/nls.m4: New file, from gettext-0.12.1.
126134         * m4/po.m4: New file, from gettext-0.12.1.
126135         * m4/progtest.m4: Upgrade to gettext-0.12.1.
126137 2003-05-30  Bruno Haible  <bruno@clisp.org>
126139         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
126140         * lib/localcharset.h: Likewise.
126141         * lib/localcharset.c: Likewise.
126143 2003-05-29  Karl Berry  <karl@gnu.org>
126145         * config/config.rpath: update from gettext.
126147 2003-05-28  Paul Eggert  <eggert@twinsun.com>
126149         Assume the headers required for C89 freestanding compilers.
126150         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
126151         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
126152         * m4/human.m4 (gl_HUMAN): Likewise.
126153         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
126154         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
126155         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126156         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
126157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126158         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
126160 2003-05-28  Paul Eggert  <eggert@twinsun.com>
126162         Assume the headers required for C89 freestanding compilers.
126163         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
126164         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
126165         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
126166         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
126167         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
126168         define, since <limits.h> is guaranteed to do that.
126169         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
126170         * lib/exclude.c: Include <stdbool.h> unconditionally.
126171         * lib/tempname.c: Include <stddef.h> unconditionally.
126172         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
126173         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
126174         <stddef.h> does that.
126175         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
126176         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
126177         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
126178         needed.
126179         * lib/xstrtol.c: Likewise.
126180         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
126181         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
126183         * lib/addext.c (addext): Use assignment rather than cast, to avoid
126184         warnings on some platforms.
126186         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
126187         arbitrarily.
126189 2003-05-26  Jim Meyering  <jim@meyering.net>
126191         Merge in a change from coreutils:
126192         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
126193         that is guaranteed to be `no'.  Use `no_such_member' to indicate
126194         that condition, rather than `-1' which is slightly misleading.
126195         Change the name of the cache variable to have the gl_ prefix.
126196         Prompted by a patch from Richard Dawe for DJGPP.
126198 2003-05-24  Karl Berry  <karl@gnu.org>
126200         * config/config.guess: update from prep.
126202 2003-05-22  Karl Berry  <karl@gnu.org>
126204         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
126206 2003-05-20  Karl Berry  <karl@gnu.org>
126208         * config/config.guess: update from prep.
126210 2003-05-18  Karl Berry  <karl@gnu.org>
126212         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
126213         might actually be set by the user.
126215         * config/depcomp, install-sh, mdate-sh: update from automake.
126217 2003-05-17  Bruno Haible  <bruno@clisp.org>
126219         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
126220         invalid expansion for AC_EGREP_CPP.
126221         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
126222         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
126223         Suggested by Akim Demaille <akim@epita.fr> in
126224         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
126226 2003-05-12  Jim Meyering  <jim@meyering.net>
126228         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
126229         the space-padded-by-default conversion specifiers, %e, %k, %l.
126231 2003-05-12  Bruno Haible  <bruno@clisp.org>
126233         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
126234         the string is longer than 4 KB.
126236 2003-05-11  Karl Berry  <karl@gnu.org>
126238         * config/config.{guess,sub}: update from prep.
126240 2003-05-09  Bruno Haible  <bruno@clisp.org>
126242         * modules/error: Add m4/strerror_r.m4 to file list.
126244 2003-05-03  Bruno Haible  <bruno@clisp.org>
126246         Upgrade to Unicode-4.0.
126247         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
126248         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
126249         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
126250         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
126251         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
126252         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
126253         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
126254         Change width of U+E0100..U+E01EF from 1 to 0.
126256 2003-04-25  Jim Meyering  <jim@meyering.net>
126258         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
126259         of type size_t, not int.
126261 2003-04-25  Bruno Haible  <bruno@clisp.org>
126263         * lib/copy-file.c: Include <stddef.h>, for size_t.
126265 2003-04-21  Paul Eggert  <eggert@twinsun.com>
126267         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
126268         code which expansion is under static control.  Patch imported from
126269         Akim Demaille's patch to Bison; see
126270         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
126272 2003-04-14  Bruno Haible  <bruno@clisp.org>
126274         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
126276 2003-04-11  Jim Meyering  <jim@meyering.net>
126278         Merge changes from Coreutils.
126280         2003-03-22  Jim Meyering  <jim@meyering.net>
126282         * lib/strftime.c (widen): Cast alloca return value to proper type.
126284         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
126286         From GNU libc.
126287         * lib/strftime.c (my_strftime): Handle very large width
126288         specifications for numeric values correctly.  Improve checks for
126289         overflow.
126291         2003-01-19  Jim Meyering  <jim@meyering.net>
126293         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
126294         definitions.
126295         (nl_get_alt_digit) [! defined my_strftime]: Define.
126296         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
126297         _nl_get_alt_digit and _nl_get_walt_digit.
126299         * lib/strftime.c (my_strftime): Merge in locale-related changes from
126300         libc. These changes have no effect outside of _LIBC.
126302 2003-04-10  Bruno Haible  <bruno@clisp.org>
126304         * modules/findprog: New file.
126305         * MODULES.html.sh (func_all_modules): Add it.
126307 2003-04-10  Bruno Haible  <bruno@clisp.org>
126309         * m4/findprog.m4: New file.
126310         * m4/eaccess.m4: New file.
126312 2003-04-10  Bruno Haible  <bruno@clisp.org>
126314         * lib/findprog.h: New file, from GNU gettext.
126315         * lib/findprog.c: New file, from GNU gettext.
126317 2003-04-05  Jim Meyering  <jim@meyering.net>
126319         Merge changes from Coreutils.
126321         * lib/exclude.h (PARAMS): Remove definition and uses.
126322         * lib/exclude.c: Remove uses of `PARAMS'.
126324         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
126325         Add test-cases for DOS filenames. Declare program_name.
126326         (main): Set up program_name.  Patch by Rich Dawe.
126328         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126329         error from mntctl.
126330         Use mntctl's return value to drive the entry-processing loop, since
126331         we can't rely on the value of the vmt_length member in the last
126332         entry.  On some systems doing so could result in exhausting
126333         virtual memory.  Based in part on a patch from Mike Jetzer.
126335 2003-04-04  Bruno Haible  <bruno@clisp.org>
126337         * modules/linebreak: New file.
126338         * MODULES.html.sh (func_all_modules): Add it.
126340 2003-04-04  Bruno Haible  <bruno@clisp.org>
126342         * m4/linebreak.m4: New file.
126344 2003-04-04  Bruno Haible  <bruno@clisp.org>
126346         * lib/linebreak.h: New file, from GNU gettext.
126347         * lib/linebreak.c: New file, from GNU gettext with slight
126348         modifications.
126349         * lib/lbrkprop.h: New file, from GNU gettext.
126351 2003-04-03  Bruno Haible  <bruno@clisp.org>
126353         * modules/utf8-ucs4: New file.
126354         * modules/utf16-ucs4: New file.
126355         * modules/ucs4-utf8: New file.
126356         * modules/ucs4-utf16: New file.
126357         * MODULES.html.sh (func_all_modules): Add them.
126359 2003-04-03  Bruno Haible  <bruno@clisp.org>
126361         * m4/utf-ucs4.m4: New file.
126362         * m4/ucs4-utf.m4: New file.
126364 2003-04-03  Bruno Haible  <bruno@clisp.org>
126366         * lib/utf8-ucs4.h: New file, from GNU gettext.
126367         * lib/utf16-ucs4.h: New file, from GNU gettext.
126368         * lib/ucs4-utf8.h: New file, from GNU gettext.
126369         * lib/ucs4-utf16.h: New file, from GNU gettext.
126371 2003-04-02  Bruno Haible  <bruno@clisp.org>
126373         * modules/binary-io: New file.
126374         * MODULES.html.sh (func_all_modules): Add it.
126376 2003-04-02  Bruno Haible  <bruno@clisp.org>
126378         * lib/binary-io.h: New file, from GNU gettext.
126380 2003-04-01  Bruno Haible  <bruno@clisp.org>
126382         * modules/pathname: New file.
126383         * MODULES.html.sh (func_all_modules): Add it.
126385 2003-04-01  Bruno Haible  <bruno@clisp.org>
126387         * lib/pathname.h: New file, from GNU gettext.
126388         * lib/concatpath.c: New file, from GNU gettext.
126390 2003-03-30  Bruno Haible  <bruno@clisp.org>
126392         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
126394 2003-03-30  Bruno Haible  <bruno@clisp.org>
126396         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
126397         function chown() doesn't exist.
126399 2003-03-28  Bruno Haible  <bruno@clisp.org>
126401         * modules/copy-file: New file.
126402         * MODULES.html.sh (func_all_modules): Add it.
126404 2003-03-28  Bruno Haible  <bruno@clisp.org>
126406         * m4/copy-file.m4: New file.
126408 2003-03-28  Bruno Haible  <bruno@clisp.org>
126410         * lib/copy-file.h: New file, from GNU gettext.
126411         * lib/copy-file.c: New file, from GNU gettext.
126413 2003-03-18  Jim Meyering  <jim@meyering.net>
126415         * lib/quote.c (quote_n): Fix typo in comment.
126417 2003-03-18  Bruno Haible  <bruno@clisp.org>
126419         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
126420         checking.
126421         * m4/onceonly_2_57.m4: Likewise.
126423 2003-03-17  Bruno Haible  <bruno@clisp.org>
126425         * m4/onceonly.m4: Require autoconf 2.54 or newer.
126426         (m4_quote): Remove macro.
126427         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
126429 2003-03-14  Jim Meyering  <jim@meyering.net>
126431         Merge changes from Coreutils.
126432         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
126433         to be const, in order to avoid warnings.
126434         (obstack_room): Likewise.
126435         (obstack_empty_p): Likewise.
126437 2003-03-14  Bruno Haible  <bruno@clisp.org>
126439         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
126440         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
126442 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126444         Merge changes from Bison.
126445         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
126446         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
126447         when compiling Bison 1.875's `bitset bset = obstack_alloc
126448         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
126449         * lib/hash.c: Include <stdbool.h> unconditionally.
126451 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126453         * m4/onceonly.m4 (m4_quote): New macro.
126454         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
126455         Quote AC_FOREACH variable-expansions properly.
126457 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126459         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
126461 2003-03-09  Paul Eggert  <eggert@twinsun.com>
126463         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
126464         Reported by Bruce Becker; see:
126465         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
126467 2003-03-03  Paul Eggert  <eggert@twinsun.com>
126468             Bruno Haible  <bruno@clisp.org>
126470         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
126471         Reported by John Hughes, see
126472         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
126474 2003-02-20  Bruno Haible  <bruno@clisp.org>
126476         * MODULES.html.sh (func_all_modules): Add poll.
126478 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126480         * modules/poll: New file.
126482 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126484         * lib/poll_.h: New file.
126485         * lib/poll.c: New file.
126487 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126489         * m4/poll.m4: New file.
126491 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126493         * modules/mathl: New file.
126495 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126497         * lib/mathl.h: New file.
126498         * lib/acosl.c: New file.
126499         * lib/asinl.c: New file.
126500         * lib/atanl.c: New file.
126501         * lib/ceill.c: New file.
126502         * lib/cosl.c: New file.
126503         * lib/expl.c: New file.
126504         * lib/floorl.c: New file.
126505         * lib/frexpl.c: New file.
126506         * lib/ldexpl.c: New file.
126507         * lib/logl.c: New file.
126508         * lib/sincosl.c: New file.
126509         * lib/sinl.c: New file.
126510         * lib/sqrtl.c: New file.
126511         * lib/tanl.c: New file.
126512         * lib/trigl.c: New file.
126513         * lib/trigl.h: New file.
126515 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126517         * m4/mathl.m4: New file.
126519 2003-02-18  Bruno Haible  <bruno@clisp.org>
126521         * MODULES.html.sh (func_all_modules): Add mathl.
126523 2003-02-17  Bruno Haible  <bruno@clisp.org>
126525         * modules/mkdtemp: New module.
126526         * MODULES.html.sh (func_all_modules): Add it.
126528 2003-02-17  Bruno Haible  <bruno@clisp.org>
126530         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
126532 2003-02-17  Bruno Haible  <bruno@clisp.org>
126534         * lib/mkdtemp.h: New file, from GNU gettext.
126535         * lib/mkdtemp.c: New file, from GNU gettext.
126537 2003-02-02  Jim Meyering  <jim@meyering.net>
126539         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
126540         e.g. glibc-2.2.93.
126542 2003-01-31  Bruno Haible  <bruno@clisp.org>
126544         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
126545         'rpl_rename'.
126546         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
126547         'rpl_strnlen'.
126548         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
126549         'rpl_strtod'.
126550         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
126551         'rpl_utime'.
126553 2003-01-31  Bruno Haible  <bruno@clisp.org>
126555         * lib/rename.c: #undef rename before defining rpl_rename.
126556         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
126558 2003-01-30  Bruno Haible  <bruno@clisp.org>
126560         * modules/vasnprintf, modules/vasprintf: New modules.
126561         * MODULES.html.sh (func_all_modules): Add them.
126563 2003-01-30  Bruno Haible  <bruno@clisp.org>
126565         * m4/signed.m4: New file, from GNU gettext.
126566         * m4/longdouble.m4: New file, from GNU gettext.
126567         * m4/wchar_t.m4: New file, from GNU gettext.
126568         * m4/wint_t.m4: New file, from GNU gettext.
126569         * m4/vasnprintf.m4: New file.
126570         * m4/vasprintf.m4: New file.
126572 2003-01-30  Bruno Haible  <bruno@clisp.org>
126574         * lib/printf-args.h: New file, from GNU gettext.
126575         * lib/printf-args.c: New file, from GNU gettext.
126576         * lib/printf-parse.h: New file, from GNU gettext.
126577         * lib/printf-parse.c: New file, from GNU gettext.
126578         * lib/vasnprintf.h: New file, from GNU gettext.
126579         * lib/vasnprintf.c: New file, from GNU gettext.
126580         * lib/asnprintf.c: New file, from GNU gettext.
126581         * lib/vasprintf.h: New file, from GNU gettext with modifications.
126582         * lib/vasprintf.c: New file, from GNU gettext.
126583         * lib/asprintf.c: New file, from GNU gettext.
126585 2003-01-29  Bruno Haible  <bruno@clisp.org>
126587         * modules/stpncpy: New module.
126588         * MODULES.html.sh (func_all_modules): Add it.
126590 2003-01-29  Bruno Haible  <bruno@clisp.org>
126592         * m4/stpncpy.m4: New file.
126594 2003-01-29  Bruno Haible  <bruno@clisp.org>
126596         * lib/stpncpy.h: New file, from GNU gettext with modifications.
126597         * lib/stpncpy.c: New file, from GNU gettext with modifications.
126599 2003-01-28  Bruno Haible  <bruno@clisp.org>
126601         * modules/c-ctype: New module.
126602         * MODULES.html.sh (func_all_modules): Add it.
126604 2003-01-28  Bruno Haible  <bruno@clisp.org>
126606         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
126607         Paul Eggert.
126608         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
126609         Paul Eggert.
126611 2003-01-27  Bruno Haible  <bruno@clisp.org>
126613         * modules/xsetenv: New module.
126614         * MODULES.html.sh (func_all_modules): Add it.
126616 2003-01-27  Bruno Haible  <bruno@clisp.org>
126618         * lib/xsetenv.h: New file, from GNU gettext.
126619         * lib/xsetenv.c: New file, from GNU gettext.
126621 2003-01-23  Jim Meyering  <jim@meyering.net>
126623         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
126624         from working on systems without dirfd (at least Irix and OSF1/Tru64).
126626 2003-01-23  Bruno Haible  <bruno@clisp.org>
126628         * modules/minmax: New module.
126629         * MODULES.html.sh (func_all_modules): Add it.
126631 2003-01-23  Bruno Haible  <bruno@clisp.org>
126633         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
126634         Eggert.
126636 2003-01-22  Bruno Haible  <bruno@clisp.org>
126638         * modules/exit: New module.
126639         * MODULES.html.sh (func_all_modules): Add it.
126641 2003-01-22  Bruno Haible  <bruno@clisp.org>
126643         * lib/exit.h: New file, from GNU gettext.
126645 2003-01-19  Bruno Haible  <bruno@clisp.org>
126647         * gnulib-tool: Recognize option --extract-maintainer.
126648         (func_get_maintainer): New function.
126649         * modules/*: Add Maintainer entry.
126651 2003-01-16  Jim Meyering  <jim@meyering.net>
126653         * m4/regex.m4: The `regex' struct is both input and output.
126654         Initialize it before each use.  Patch by Tim Waugh.
126656 2003-01-16  Bruno Haible  <bruno@clisp.org>
126658         * MODULES.html.sh: Add a table of contents. Add the module name as
126659         leftmost column. Add hyperlinks.
126661 2003-01-15  Bruno Haible  <bruno@clisp.org>
126663         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
126665 2003-01-15  Bruno Haible  <bruno@clisp.org>
126667         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
126668         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
126669         suffix.
126671 2003-01-15  Bruno Haible  <bruno@clisp.org>
126673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
126675 2003-01-15  Bruno Haible  <bruno@clisp.org>
126677         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
126678         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
126680 2003-01-14  Jim Meyering  <jim@meyering.net>
126682         * lib/same.c (same_name): Tweak a comment.
126684 2003-01-14  Bruno Haible  <bruno@clisp.org>
126686         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
126687         when a string comparison is sufficient.
126689 2003-01-14  Bruno Haible  <bruno@clisp.org>
126691         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
126692         'unsigned int'.
126694 2003-01-14  Bruno Haible  <bruno@clisp.org>
126696         * lib/hash-pjw.c: Add comment about low quality of this function.
126698 2003-01-13  Bruno Haible  <bruno@clisp.org>
126700         * modules/stpcpy: Distribute lib/stpcpy.h.
126701         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
126703 2003-01-13  Bruno Haible  <bruno@clisp.org>
126705         * modules/*: Add a description.
126706         * modules/strpbrk: Fix Makefile.am snippet.
126707         * modules/strtoimax: Fix dependencies.
126708         * modules/strtoumax: Likewise.
126710 2003-01-13  Bruno Haible  <bruno@clisp.org>
126712         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
126713         * modules/alloca (Makefile.am): All object files depend on alloca.h.
126714         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
126716 2003-01-13  Bruno Haible  <bruno@clisp.org>
126718         * gnulib-tool (func_create_testdir): Store config/* files in the main
126719         directory.
126720         * config.rpath: Move to ...
126721         * config/config.rpath: ... here.
126722         * modules/gettext: Contains config/config.rpath, not config.rpath.
126723         * modules/iconv: Likewise.
126725 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126727         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126728         to avoid collisions with libcurses and libreadline.
126730         * m4/getstr.m4: Remove.
126731         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
126733 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126735         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126736         to avoid collisions with libcurses and libreadline.
126738         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
126739         * lib/getstr.h, getstr.c: Remove.
126740         * lib/getline.c: Include "getline.h", to check interface.
126741         Move body of old getstr.c here: this defines MIN_CHUNK and
126742         declares getdelim2, which is renamed from getstr.
126743         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
126745         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
126746         All uses changed.
126747         * lib/linebuffer.h: Likewise.
126748         (readline): Remove backward-compatibility macro.
126750 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126752         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126753         to avoid collisions with libcurses and libreadline.
126754         * getstr: Remove.
126755         * MODULES.html.sh: Remove getstr.
126756         * modules/getline: Depend on unlocked-io, not getstr.
126758 2003-01-12  Jim Meyering  <jim@meyering.net>
126760         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
126762 2003-01-10  Bruno Haible  <bruno@clisp.org>
126764         * modules/alloca: Change Makefile.am requirements. Simplify Include
126765         requirements. Add lib/alloca_.h to file list.
126767 2003-01-10  Bruno Haible  <bruno@clisp.org>
126769         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
126771 2003-01-10  Bruno Haible  <bruno@clisp.org>
126773         * lib/alloca_.h: New file.
126774         * lib/getdate.y: Unconditionally include alloca.h.
126775         * lib/makepath.c: Likewise.
126776         * lib/setenv.c: Likewise.
126777         * lib/userspec.c: Likewise.
126779 2003-01-09  Karl Berry  <karl@gnu.org>
126781         * MODULES.html.sh: include `dirname $0` in PATH, to find
126782         gnulib-tool.
126784 2003-01-09  Bruno Haible  <bruno@clisp.org>
126786         * modules/stdbool: Change configure.ac, Makefile.am requirements.
126787         Simplify Include requirements. Add lib/stdbool.h.in to file list.
126789 2003-01-09  Bruno Haible  <bruno@clisp.org>
126791         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
126793 2003-01-09  Bruno Haible  <bruno@clisp.org>
126795         * lib/stdbool.h.in: New file.
126797 2003-01-09  Bruno Haible  <bruno@clisp.org>
126799         * gnulib-tool (func_all_modules): Ignore files ending in ~.
126800         * MODULES.html.sh: Likewise.
126802 2003-01-08  Jim Meyering  <jim@meyering.net>
126804         * lib/full-write.c: Undefine and define-away `const' after inclusion
126805         of errno.h, not before.  Suggestion from Bruno Haible.
126807 2003-01-08  Bruno Haible  <bruno@clisp.org>
126809         * modules/full-read: Depend on full-write.
126811 2003-01-08  Bruno Haible  <bruno@clisp.org>
126813         * lib/safe-read.c: Include specification header first, to ensure its
126814         selfcontainedness.
126815         * lib/full-write.c: Likewise.
126817 2003-01-07  Jim Meyering  <jim@meyering.net>
126819         * lib/full-write.c: Rework so that it may serve to define full_read,
126820         too.
126821         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
126823 2003-01-07  Bruno Haible  <bruno@clisp.org>
126825         * lib/strtoimax.c: Include <stdint.h> as an alternative to
126826         <inttypes.h>.
126827         * lib/xstrtol.h: Likewise.
126828         * lib/xstrtoimax.c: Likewise.
126829         * lib/xstrtoumax.c: Likewise.
126830         * lib/human.h: Likewise.
126832         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
126833         on systems that have <inttypes.h> but not <stdint.h>.
126835 2003-01-07  Bruno Haible  <bruno@clisp.org>
126837         * MODULES.html.sh: Add copyright notice.
126838         (missed_files): Omit CVS directory entries.
126839         (func_module): Make it work with sed-3.02.
126840         * MODULES.txt: Remove file.
126842 2003-01-06  Jim Meyering  <jim@meyering.net>
126844         * lib/version-etc.c: Update year in translatable copyright string.
126846 2003-01-03  Karl Berry  <karl@gnu.org>
126848         * config/config.{guess,sub}: update from prep.
126850 2003-01-02  Karl Berry  <karl@gnu.org>
126852         * doc/COPYING.DOC: belatedly updated to 1.2.
126854 2003-01-01  Karl Berry  <karl@gnu.org>
126856         * gnulib-tool (func_verify_module): report module name $module in
126857         error message, not $1.
126858         * gnulib-tool (create-testdir): don't complain if destdir couldn't
126859         be created, only if it doesn't exist.
126860         * gnulib-tool (last_checkin_date): don't expand the $Date here.
126862 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126864         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
126866 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126868         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
126869         memcmp if strcoll doesn't work.
126871 2002-12-31  Bruno Haible  <bruno@clisp.org>
126873         * lib/utime.c (utime_null): No need to call ftruncate if the file was
126874         nonempty.
126876 2002-12-31  Bruno Haible  <bruno@clisp.org>
126878         * lib/memcoll.c (STRCOLL): New macro.
126879         (memcoll): Use it.
126881 2002-12-31  Bruno Haible  <bruno@clisp.org>
126883         * lib/localcharset.h: New file.
126884         * lib/localcharset.c: Include it.
126885         * lib/unicodeio.c: Likewise.
126887 2002-12-31  Bruno Haible  <bruno@clisp.org>
126889         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
126890         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
126892 2002-12-31  Bruno Haible  <bruno@clisp.org>
126894         * lib/getline.h: Include <stddef.h>, for size_t.
126896         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126897         * lib/unicodeio.c: Don't include <stddef.h>.
126899 2002-12-31  Bruno Haible  <bruno@clisp.org>
126901         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126902         HAVE_TM_ZONE.
126904 2002-12-24  Karl Berry  <karl@gnu.org>
126906         * config/config.guess: update from prep.
126908 2002-12-24  Bruno Haible  <bruno@clisp.org>
126910         General infrasructure.
126911         * m4/README: Rewritten.
126912         * m4/onceonly.m4: New file.
126913         * m4/onceonly_2_57.m4: New file.
126915         Module atexit.
126916         * m4/atexit.m4: New file.
126918         Module strtod.
126919         * m4/strtod.m4: New file.
126921         Module strtol.
126922         * m4/strtol.m4: New file.
126924         Module strtoul.
126925         * m4/strtoul.m4: New file.
126927         Module memchr.
126928         * m4/memchr.m4: New file.
126930         Module memcmp.
126931         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126932         (jm_FUNC_MEMCMP): Invoke it.
126934         Module memcpy.
126935         * m4/memcpy.m4: New file.
126937         Module memmove.
126938         * m4/memmove.m4: New file.
126940         Module memset.
126941         * m4/memset.m4: New file.
126943         Module strcspn.
126944         * m4/strcspn.m4: New file.
126946         Module strpbrk.
126947         * m4/strpbrk.m4: New file.
126949         Module strstr.
126950         * m4/strstr.m4: New file.
126952         Module strerror.
126953         * m4/strerror.m4: New file.
126955         Module mktime.
126956         * m4/mktime.m4: Renamed from jm-mktime.m4.
126957         (gl_PREREQ_MKTIME): New macro.
126958         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126960         Module malloc.
126961         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126962         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126963         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126965         Module realloc.
126966         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126967         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126968         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126970         Module strftime.
126971         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126972         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126973         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126974         gl_TM_GMTOFF.
126975         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126977         Module xalloc.
126978         * m4/xalloc.m4: New file.
126980         Module alloca.
126981         * m4/alloca.m4: New file.
126983         Module putenv.
126984         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126985         (jm_FUNC_PUTENV): Invoke it.
126987         Module setenv.
126988         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126989         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126990         when invoked twice.
126991         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126992         gt_FUNC_SETENV.
126994         Module memrchr.
126995         * m4/memrchr.m4: New file.
126997         Module stpcpy.
126998         * m4/stpcpy.m4: New file.
127000         Module strcase.
127001         * m4/strcase.m4: New file.
127003         Module strdup.
127004         * m4/strdup.m4: New file.
127006         Module strnlen.
127007         * m4/strnlen.m4: New file.
127009         Module strndup.
127010         * m4/strndup.m4: New file.
127012         Module xstrtod.
127013         * m4/xstrtod.m4: New file.
127015         Module xstrtol.
127016         * m4/xstrtol.m4: New file.
127018         Module getdate.
127019         * m4/getdate.m4: New file.
127021         Module unlocked-io.
127022         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
127023         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
127024         * m4/jm-glibc-io.m4n: Remove file.
127026         Module long-options.
127027         * m4/long-options.m4: New file.
127029         Module md5.
127030         * m4/md5.m4: New file.
127032         Module sha.
127033         * m4/sha.m4: New file.
127035         Module getstr.
127036         * m4/getstr.m4: New file.
127038         Module getline.
127039         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
127040         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
127041         <sys/types.h>, for size_t. Use the function name gnu_getline, not
127042         simply getline. Infoke gl_PREREQ_GETLINE.
127044         Module obstack.
127045         * m4/obstack.m4: New file.
127047         Module hash.
127048         * m4/hash.m4: New file.
127050         Module readtokens.
127051         * m4/readtokens.m4: New file.
127053         Module strverscmp.
127054         * m4/strverscmp.m4: New file.
127056         Module stdbool.
127057         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
127058         OSF/1.
127060         Module strtoll.
127061         * m4/strtoll.m4: New file.
127063         Module strtoull.
127064         * m4/strtoull.m4: New file.
127066         Module strtoimax.
127067         * m4/strtoimax.m4: New file.
127069         Module strtoumax.
127070         * m4/strtoumax.m4: New file.
127072         Module xstrtoimax.
127073         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
127074         jm_AC_PREREQ_XSTRTOIMAX.
127075         Moved the strtol prerequisites to strtol.m4.
127076         Moved the strtoll prerequisites to strtoll.m4.
127077         Moved the strtoimax prerequisites to strtoimax.m4.
127079         Module xstrtoumax.
127080         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
127081         jm_AC_PREREQ_XSTRTOUMAX.
127082         Moved the strtoul prerequisites to strtoul.m4.
127083         Moved the strtoull prerequisites to strtoull.m4.
127084         Moved the strtoumax prerequisites to strtoumax.m4.
127086         Module chown.
127087         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
127088         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
127090         Module dup2.
127091         * m4/dup2.m4: New file.
127093         Module ftruncate.
127094         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
127095         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
127097         Module getgroups.
127098         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
127099         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
127101         Module gettimeofday.
127102         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
127103         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
127104         gl_PREREQ_GETTIMEOFDAY.
127106         Module mkdir.
127107         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
127108         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
127110         Module mkstemp.
127111         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
127112         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
127113         jm_AC_TYPE_UINTMAX_T.
127114         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
127116         Module stat.
127117         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
127118         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
127120         Module lstat.
127121         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
127122         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
127124         Module timespec.
127125         * m4/timespec.m4 (gl_TIMESPEC): New macro.
127126         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
127127         * m4/st_mtim.m4: Indentation.
127129         Module nanosleep.
127130         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
127131         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
127132         gl_PREREQ_NANOSLEEP.
127134         Module regex.
127135         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
127136         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
127137         (gl_REGEX): New macro.
127139         Module rename.
127140         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
127141         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
127143         Module rmdir.
127144         * m4/rmdir.m4: New file.
127146         Module utime.
127147         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
127148         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
127149         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
127151         Module dirname.
127152         * m4/dirname.m4: New file.
127154         Module getopt.
127155         * m4/getopt.m4: New file.
127157         Module unistd-safer.
127158         * m4/unistd-safer.m4: New file.
127160         Module fnmatch.
127161         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
127162         declaration.
127163         (gl_PREREQ_FNMATCH_EXTRA): New macro.
127164         (gl_FUNC_FNMATCH_POSIX): New macro.
127165         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
127166         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
127167         simply fnmatch.
127169         Module exclude.
127170         * m4/exclude.m4: New file.
127172         Module human.
127173         * m4/human.m4: New file.
127175         Module acl.
127176         * m4/acl.m4: Nop.
127178         Module backupfile.
127179         * m4/backupfile.m4: New file.
127180         * m4/d-ino.m4: Indentation.
127182         Module fsusage.
127183         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
127184         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
127185         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
127187         Module dirfd.
127188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
127189         requirements.
127191         Module euidaccess.
127192         * m4/euidaccess.m4: New file.
127194         Module file-type.
127195         * m4/file-type.m4: New file.
127197         Module fileblocks.
127198         * m4/fileblocks.m4: New file.
127200         Module filemode.
127201         * m4/filemode.m4: New file.
127203         Module isdir.
127204         * m4/isdir.m4: New file.
127206         Module lchown.
127207         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
127208         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
127210         Module makepath.
127211         * m4/makepath.m4: New file.
127213         Module modechange.
127214         * m4/modechange.m4: New file.
127216         Module mountlist.
127217         * m4/mountlist.m4: New file.
127218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
127219         Indentation.
127221         Module path-concat.
127222         * m4/path-concat.m4: New file.
127224         Module pathmax.
127225         * m4/pathmax.m4: New file.
127227         Module same.
127228         * m4/same.m4: New file.
127230         Module save-cwd.
127231         * m4/save-cwd.m4: New file.
127233         Module savedir.
127234         * m4/savedir.m4: New file.
127236         Module xgetcwd.
127237         * m4/xgetcwd.m4: New file.
127238         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
127240         Module xreadlink.
127241         * m4/xreadlink.m4: New file.
127243         Module safe-read.
127244         * m4/safe-read.m4: New file.
127246         Module safe-write.
127247         * m4/safe-write.m4: New file.
127249         Module closeout.
127250         * m4/closeout.m4: New file.
127252         Module stdio-safer.
127253         * m4/stdio-safer.m4: New file.
127255         Module getpass.
127256         * m4/getpass.m4: New file.
127258         Module getugroups.
127259         * m4/getugroups.m4: New file.
127261         Module group-member.
127262         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
127263         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
127265         Module idcache.
127266         * m4/idcache.m4: New file.
127268         Module userspec.
127269         * m4/userspec.m4: New file.
127271         Module gettime.
127272         * m4/clock_time.m4: New file.
127273         * m4/gettime.m4: New file.
127275         Module settime.
127276         * m4/settime.m4: New file.
127278         Module posixtm.
127279         * m4/posixtm.m4: New file.
127281         Module gethostname.
127282         * m4/gethostname.m4: New file.
127284         Module canon-host.
127285         * m4/canon-host.m4: New file.
127287         Module gettext.
127288         * m4/codeset.m4: New file, from gettext-0.11.5.
127289         * m4/gettext.m4: New file, from gettext-0.11.5.
127290         * m4/glibc21.m4: New file, from gettext-0.11.5.
127291         * m4/iconv.m4: New file, from gettext-0.11.5.
127292         * m4/intdiv0.m4: New file, from gettext-0.11.5.
127293         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
127294         * m4/inttypes.m4: New file, from gettext-0.11.5.
127295         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
127296         * m4/isc-posix.m4: New file, from gettext-0.11.5.
127297         * m4/lcmessage.m4: New file, from gettext-0.11.5.
127298         * m4/lib-ld.m4: New file, from gettext-0.11.5.
127299         * m4/lib-link.m4: New file, from gettext-0.11.5.
127300         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
127301         * m4/progtest.m4: New file, from gettext-0.11.5.
127302         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
127303         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
127304         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
127306         Module localcharset.
127307         * m4/localcharset.m4: New file.
127309         Module hard-locale.
127310         * m4/hard-locale.m4: New file.
127312         Module mbswidth.
127313         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
127314         onceonly macros.
127315         * m4/mbrtowc.m4: Add comment.
127317         Module memcasecmp.
127318         * m4/memcasecmp.m4: New file.
127320         Module memcoll.
127321         * m4/memcoll.m4: New file.
127323         Module unicodeio.
127324         * m4/unicodeio.m4: New file.
127326         Module rpmatch.
127327         * m4/rpmatch.m4: New file.
127329         Module yesno.
127330         * m4/yesno.m4: New file.
127332         Module exitfail.
127333         * m4/exitfail.m4: New file.
127335         Module c-stack.
127336         * m4/c-stack.m4 (gl_C_STACK): New macro.
127337         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
127339         Module error.
127340         * m4/error.m4 (gl_ERROR): New macro.
127341         (jm_PREREQ_ERROR): Use onceonly macros.
127343         Module fatal.
127344         * m4/fatal.m4: New file.
127346         Module getloadavg.
127347         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
127348         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
127350         Module getpagesize.
127351         * m4/getpagesize.m4: New file.
127353         Module getusershell.
127354         * m4/getusershell.m4: New file.
127356         Module physmem.
127357         * m4/physmem.m4: New file.
127359         Module posixver.
127360         * m4/posixver.m4: New file.
127362         Module quotearg.
127363         * m4/quotearg.m4: New file.
127365         Module quote.
127366         * m4/quote.m4: New file.
127368         Module readutmp.
127369         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
127371         Module sig2str.
127372         * m4/sig2str.m4: New file.
127374         Other.
127375         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
127376         ulonglong.m4.
127377         * m4/intmax_t.m4: New file.
127378         * m4/d-type.m4: Indentation.
127379         * m4/jm-macros.m4: Update.
127380         * m4/prereq.m4 (jm_PREREQ): Update.
127381         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
127382         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
127383         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
127384         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
127385         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
127386         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
127387         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
127388         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
127389         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
127390         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
127391         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
127392         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
127393         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
127394         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
127395         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
127396         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
127397         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
127398         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
127399         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
127401 2002-12-24  Bruno Haible  <bruno@clisp.org>
127403         * MODULES.txt: Update according to m4/ changes.
127405         Module gettext.
127406         * config.rpath: New file, from gettext-0.11.5.
127408         * modules/*: New module descriptions.
127409         * gnulib-tool: New file.
127410         * MODULES.html.sh: New file.
127412 2002-12-21  Karl Berry  <karl@gnu.org>
127414         * doc/fdl.texi: update to version 1.2.
127416 2002-12-19  Karl Berry  <karl@gnu.org>
127418         * config/config.guess: update from prep.
127420 2002-12-18  Bruno Haible  <bruno@clisp.org>
127422         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
127423         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
127425 2002-12-17  Bruno Haible  <bruno@clisp.org>
127427         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
127428         stdlib.h, string.h.
127430 2002-12-17  Bruno Haible  <bruno@clisp.org>
127432         * lib/canon-host.c (strdup): Remove unused declaration.
127434         * lib/fsusage.c: Include full_read.h.
127435         (get_fs_usage): Use full_read instead of safe_read.
127437         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
127439 2002-12-12  Karl Berry  <karl@gnu.org>
127441         * config/config.guess: update from prep.
127443 2002-12-11  Bruno Haible  <bruno@clisp.org>
127445         * m4/setenv.m4: New file, from gettext-0.11.5.
127447 2002-12-11  Bruno Haible  <bruno@clisp.org>
127449         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
127450         not unsetenv().
127451         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
127452         modifications:
127454         2002-12-11  Bruno Haible  <bruno@clisp.org>
127456                 * setenv.c (alloca): Fall back to malloc.
127457                 (freea): New macro.
127458                 (setenv): Use freea() to free memory allocated with alloca().
127460         2002-11-13  Bruno Haible  <bruno@clisp.org>
127462                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
127463                 function declarations.
127464                 * unsetenv.c (unsetenv): Likewise.
127466         2002-03-04  Bruno Haible  <bruno@clisp.org>
127468                 Portability to AIX 4.3.3.
127469                 * unsetenv.c: New file, extracted from setenv.c.
127470                 * setenv.c: Move the unsetenv() function to unsetenv.c.
127472         2001-12-20  Bruno Haible  <bruno@clisp.org>
127474                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
127475                 use malloc instead. For SunOS 4.
127477         2001-12-11  Bruno Haible  <bruno@clisp.org>
127479                 * setenv.c: Declare alloca.
127480                 (compar_fn_t): New typedef.
127481                 (KNOWN_VALUE, STORE_VALUE): Use it.
127483         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
127484         setenv.h.
127486 2002-12-10  Paul Eggert  <eggert@twinsun.com>
127488         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
127489         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
127490         Choose values that are less likely to collide with system fnmatch
127491         options.
127492         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
127493         defined (e.g., a pure POSIX system).
127494         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
127495         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
127497 2002-12-06  Paul Eggert  <eggert@twinsun.com>
127499         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
127500         a pain in practice to deal with generated m4 files.  This change
127501         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
127503         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
127504         and jm-glibc-io.m4, as they are no longer a special case.
127505         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
127506         kludge and the auto-generation stuff.  Check only whether the
127507         functions are declared, not whether they exist, since older hosts
127508         that don't declare the functions can't use the optimization anyway.
127510 2002-12-06  Jim Meyering  <jim@meyering.net>
127512         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
127514         Merge in changes from libc's misc/error.c, in preparation
127515         for the merge of gnulib's changes back into libc.
127517         * lib/error.c (_): Define only if not already defined.
127518         Move definition to follow all #include directives.
127519         Include unlocked-io.h only if !_LIBC.
127520         [_LIBC]: Include <libio/libioP.h>.
127521         [USE_IN_LIBIO]: Include <libio/iolibio.h>
127522         (fflush): Tweak definition to use INTUSE.
127523         (putc): Define.
127525 2002-12-05  Paul Eggert  <eggert@twinsun.com>
127527         * lib/alloca.c [defined emacs]: Include "lisp.h".
127528         (xalloc_die) [defined emacs]: New macro.
127529         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
127530         [! defined emacs]: Include <xalloc.h>.
127531         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
127532         (pointer): Typedef to POINTER_TYPE *.
127533         (malloc): Remove decl; we now always use xmalloc.
127534         (alloca): Use old-style definition, since Emacs needs this.
127535         Check for arithmetic overflow when computing combined size.
127537 2002-12-04  Paul Eggert  <eggert@twinsun.com>
127539         Do not generate unlocked-io.h automatically, since it's easier to
127540         maintain it by hand.
127542         * lib/unlocked-io.h: New file, from GNU diffutils,
127543         but with proper copyright notice and attribution.
127544         * lib/gen-uio: Remove.
127545         * lib/Makefile.am: Add copyright notice.
127546         (libfetish_a_SOURCES): Add unlocked-io.h.
127547         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
127548         (DISTCLEANFILES, io_functions): Remove macros.
127549         (EXTRA_DIST): Remove gen_uio.
127550         (unlocked-io.h): Remove rule.
127552 2002-12-04  Jim Meyering  <jim@meyering.net>
127554         Reflect the fact that stat.c and lstat.c are no longer generated.
127555         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
127556         (DISTCLEANFILES): Likewise.
127557         (EXTRA_DIST): Likewise.
127558         (all_local): Don't depend on stat.c or lstat.c.
127559         (stat.c, lstat.c): Remove rules.
127560         (EXTRA_DIST): Remove xstat.in.
127562         * lib/xstat.in: Remove file.  Contents moved into stat.c.
127563         * lib/stat.c: New file.  Contents mostly from xstat.in.
127564         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
127565         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
127567         * lib/safe-read.c: Rework so that it may serve to define safe_write,
127568         too.
127569         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
127571 2002-12-03  Jim Meyering  <jim@meyering.net>
127573         * lib/safe-read.c, safe-write.c: Change variable names and comments,
127574         but not semantics, to minimize the differences between these two files.
127575         (safe_read): Change comment to mention SAFE_READ_ERROR.
127577         * lib/safe-read.c (IS_EINTR): Define.
127578         (safe_read): Use IS_EINTR in place of in-function cpp directives.
127580 2002-12-02  Jim Meyering  <jim@meyering.net>
127582         * lib/safe-read.c (EINTR): Define.
127583         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
127584         (INT_MAX): Provide fallback.
127585         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
127587         * lib/safe-read.h (SAFE_READ_ERROR): Define.
127589 2002-12-02  Bruno Haible  <bruno@clisp.org>
127591         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
127592         Define, taken from safe-read.c.
127593         (INT_MAX): Provide fallback.
127594         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
127595         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
127597         * lib/safe-read.c (EINTR): Remove definition.
127598         (safe_read): Don't use EINTR if it is absent.
127600 2002-12-01  Jim Meyering  <jim@meyering.net>
127602         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
127603         zero.
127604         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
127606 2002-11-27  Paul Eggert  <eggert@twinsun.com>
127608         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
127609         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
127610         with `if (! (value < limit)) abort ();', for readability.
127612 2002-11-26  Karl Berry  <karl@gnu.org>
127614         * lib/strdup.c: copy from libc again, with jim's ok.
127615         * lib/.cppi-disable: re-add strdup.c
127617 2002-11-25  Karl Berry  <karl@gnu.org>
127619         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
127620         instead of "strtol.c".
127622 2002-11-25  Karl Berry  <karl@gnu.org>
127624         * config/install-sh: update from automake for variable quoting, $0 in
127625         error msgs, etc.
127627         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
127628         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
127629         entry.
127631 2002-11-25  Jim Meyering  <jim@meyering.net>
127633         * lib/mktime.c: Sync from libc, now that it has the latest fix.
127635 2002-11-24  Karl Berry  <karl@gnu.org>
127637         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
127638         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
127640 2002-11-24  Jim Meyering  <jim@meyering.net>
127642         Update from coreutils:
127644         * lib/mktime.c: Merge in changes from libc.
127646         Avoid a link-time failure on some Linux systems.
127647         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
127648         (otherwise).
127649         (__mon_yday): Declare with the STATIC attribute.
127650         (__mktime_internal): Likewise.
127651         Based on a report from Greg Schafer.
127653 2002-11-23  Jim Meyering  <jim@meyering.net>
127655         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
127656         Use `unsigned', not `int', as type of index.
127658         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
127660         * lib/fsusage.c: Remove unneeded parentheses around operands of
127661         `defined'.
127663 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127665         * lib/quotearg.h: Allow multiple inclusion by surrounding with
127666         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
127667         so that we can be included first.
127668         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
127669         * lib/quotearg.c: Include quotearg.h immediately after config.h.
127670         No need to include stddef.h or sys/types.h any more.
127671         Surround local include files with "", not "<>".
127672         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
127673         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
127674         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
127675         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
127676         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
127677         (ISPRINT): Remove; no longer needed now that we assume C89.
127679         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
127680         Preserve errno.
127682         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
127683         quotearg_char): Use SIZE_MAX rather than
127684         (size_t) -1 when we are talking about "infinity".
127686         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
127688 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127690         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
127691         hint that one should use `if (! x) abort ();' rather than `assert
127692         (x);', and anyway it's one less thing to worry about configuring.
127693         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
127694         hash_rehash, hash_insert): Use abort rather than assert.
127696 2002-11-22  Bruno Haible  <bruno@clisp.org>
127698         * lib/safe-read.h: Assume C89. Add comments.
127699         (safe_read): Change return type to size_t.
127700         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
127701         byte counts > SSIZE_MAX correctly.
127702         * lib/safe-write.h: New file.
127703         * lib/safe-write.c: New file.
127704         * lib/full-read.h: New file.
127705         * lib/full-read.c: New file.
127706         * lib/full-write.h: Assume C89. Add comments.
127707         * lib/full-write.c: Include safe-write.h.
127708         (full_write): Rewritten to use safe_write.
127709         Suggested by Jim Meyering and Paul Eggert.
127711 2002-11-21  Jim Meyering  <jim@meyering.net>
127713         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
127715         Merge in changes from the coreutils.
127717         2002-09-25  Paul Eggert  <eggert@twinsun.com>
127718         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
127719         <stdint.h>.
127720         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
127721         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
127722         int.  Work more efficiently if X is the same width as uintmax_t.
127723         Do not compare X to -1, to avoid bogus compiler warning.
127724         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
127725         Don't assume that f_frsize and f_bsize are the same type.
127727         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
127728         warning on FreeBSD.
127730         * lib/makepath.c (make_path): Restore umask *before* creating the final
127731         component.
127732         (make_path): Minor reformatting.
127734         * lib/xmalloc.c: Adjust to work with new autoconf macros,
127735         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
127736         HAVE_MALLOC/HAVE_REALLOC.
127738         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
127739         dummy ones.  At least on GNU/Linux systems, `auto' means something
127740         else.
127741         From Michael Stone.
127743 2002-11-21  Bruno Haible  <bruno@clisp.org>
127745         Remove case insensitive option matching.
127746         * lib/argmatch.h (argcasematch): Remove declaration.
127747         (ARGCASEMATCH): Remove macro.
127748         (__xargmatch_internal): Remove case_sensitive argument.
127749         (XARGMATCH): Update.
127750         (XARGCASEMATCH): Remove macro.
127751         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
127752         case_sensitive argument.
127753         (argcasematch): Remove function.
127754         (__xargmatch_internal): Remove case_sensitive argument.
127755         (main): Use XARGMATCH instead of XARGCASEMATCH.
127757         * lib/xmalloc.c: Change compile-time error message. Add comment about
127758         required autoconf version.
127760 2002-11-20  Paul Eggert  <eggert@twinsun.com>
127762         Merge argmatch cleanups from Bison.  Assume C89.
127764         * lib/argmatch.c: Include config.h here, not in argmatch.h.
127765         Include stdlib.h, for EXIT_FAILURE.
127766         Always include <string.h>, since we assume C89.
127767         (EXIT_FAILURE): Remove pre-C89 bug workaround.
127768         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
127769         Include <stddef.h> instead, since it's all we need for size_t.
127770         (PARAMS): Remove.  All uses removed.
127771         (ARRAY_CARDINALITY): Do not bother to #undef.
127772         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
127773         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127774         Remove unnecessary parentheses.
127775         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127776         Insert necessary parentheses.
127777         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
127778         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
127780 2002-11-19  Bruno Haible  <bruno@clisp.org>
127782         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
127783         * lib/mbswidth.h: Include <stddef.h>, for size_t.
127785         * lib/mbswidth.h (PARAMS): Remove macro.
127786         (mbswidth, mbsnwidth): Use ANSI C function declarations.
127787         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
127789         * lib/gcd.h (PARAMS): Remove macro.
127790         (gcd): Use ANSI C function declarations.
127791         * lib/gcd.c (gcd): Likewise.
127793 2002-11-15  Bruno Haible  <bruno@clisp.org>
127795         * lib/strcspn.c: Include <stddef.h>.
127796         (strcspn): Use ANSI C function declaration. Change return type to
127797         size_t. Use NULL.
127798         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
127799         (strpbrk): Use NULL.
127800         * lib/strpbrk.h (PARAMS): Remove macro.
127801         (strpbrk): Use ANSI C function declaration.
127802         * lib/strstr.c: Don't include <sys/types.h>.
127803         * lib/strstr.h (PARAMS): Remove macro.
127804         (strstr): Use ANSI C function declarations.
127806 2002-11-14  Karl Berry  <karl@gnu.org>
127808         * config/mkinstalldirs: `do' on separate line, instead of
127809         `for var; do'.
127811 2002-11-06  Bruno Haible  <bruno@clisp.org>
127813         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
127814         * lib/gcd.c (gcd): Likewise.
127816 2002-11-05  Bruno Haible  <bruno@clisp.org>
127818         * lib/gcd.h: New file, from gettext-0.11.5.
127819         * lib/gcd.c: New file, from gettext-0.11.5.
127821 2002-11-05  Bruno Haible  <bruno@clisp.org>
127823         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127824         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127825         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127826         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127828         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
127829         <libintl.h>.
127830         * lib/makepath.c: Include gettext.h instead of <locale.h> and
127831         <libintl.h>.
127833         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
127834         * lib/human.c: Include gettext.h instead of <libintl.h>.
127835         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
127836         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
127837         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
127838         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
127839         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
127840         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
127841         (textdomain): Remove definition.
127842         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
127844         * lib/long-options.c: Remove include of <libintl.h> and definition of
127845         _.
127846         * lib/same.c: Remove include of <libintl.h> and definition of _.
127848 2002-11-04  Owen Taylor  <otaylor@redhat.com>
127850         * lib/config.charset: A few additions for Solaris.
127852 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127854         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
127855         * lib/localcharset.c (locale_charset): Declare as extern "C".
127857 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127859         * lib/config.charset: msdos in uk_UA uses CP1125.
127861 2002-11-04  Bruno Haible  <bruno@clisp.org>
127863         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
127864         * lib/strcase.h: New file, from GNU gettext-0.11.5.
127865         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
127866         * lib/strstr.h: New file, from GNU gettext-0.11.5.
127867         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
127869 2002-11-04  Bruno Haible  <bruno@clisp.org>
127871         * lib/localcharset.c (locale_charset): Don't return an empty string.
127873 2002-11-04  Bruno Haible  <bruno@clisp.org>
127875         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
127876         aliases.
127878 2002-11-04  Bruno Haible  <bruno@clisp.org>
127880         * lib/config.charset: Update for newest glibc. Add canonical names
127881         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
127883 2002-11-04  Bruno Haible  <bruno@clisp.org>
127885         * lib/config.charset: Add support for NetBSD.
127887 2002-11-04  Bruno Haible  <bruno@clisp.org>
127889         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
127891 2002-11-01  Bruno Haible  <bruno@clisp.org>
127893         * configure.in: Add AC_CONFIG_AUX_DIR call.
127894         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127895         test/Makefile.
127896         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127898 2002-09-28  Karl Berry  <karl@gnu.org>
127900         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127901         installed automake until the next release, since changes have been
127902         made.
127904 2002-09-25  Karl Berry  <karl@gnu.org>
127906         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127907         * lib/getopt*: copy from libc/posix.
127908         * lib/gettext.h: copy from gettext.
127909         * lib/.cppi-disable: add strdup.c, gettext.h.
127911 2002-09-25  Karl Berry  <karl@gnu.org>
127913         * config/srclist.txt: enable gettext.h check.
127914         * config/config.{guess,sub}: update from prep.
127915         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127916                 from automake 1.6.3.
127917         See srclist*.
127919 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127921         * regex.c (PATFETCH): Remove the translating fetch.
127922         (PATFETCH_RAW): Rename to PATFETCH.
127923         (set_image_of_range): New fun.
127924         (SET_RANGE_TABLE_WORK_AREA): Use it.
127925         (regex_compile): Don't translate the pattern chars so eagerly.
127926         Only do it when inserting an `exactn' bytecode or when handling
127927         a char-range.
127928         (mutually_exclusive_p): Avoid empty statement.
127930 2002-07-06  Jim Meyering  <meyering@lucent.com>
127932         * m4/README: Don't mention Makefile.am.in.
127933         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127935 2002-07-01  Jim Meyering  <meyering@lucent.com>
127937         * lib/c-stack.c: Include sys/time.h.
127938         From Volker Borchert.
127940 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127942         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127944 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127946         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127947         New macro.  Use it uniformly instead of
127948         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127949         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127950         reported by Vin Shelton.
127952 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127954         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127955         Do not assume SA_SIGINFO behavior.
127956         Bug reported by Jim Meyering on NetBSD 1.5.2.
127958 2002-06-22  Jim Meyering  <meyering@lucent.com>
127960         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127964         now that configure.ac uses AC_GNU_SOURCE.
127965         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127966         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127968         Update to latest tools.  Suggestions from Paul Eggert.
127969         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127970         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127971         * m4/fnmatch.m4: Likewise.
127972         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127973         to AC_HEADER_STDBOOL
127975 2002-06-22  Jim Meyering  <meyering@lucent.com>
127977         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127978         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127980 2002-06-22  Jim Meyering  <meyering@lucent.com>
127982         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127984         * lib/exitfail.c, exitfail.h: Likewise.
127985         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127987         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127988         of fnmatch.h.
127989         (EXTRA_DIST): Add fnmatch_loop.c.
127990         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127992         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127993         * lib/fnmatch.c: Update from diffutils-2.8.2.
127994         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127995         * lib/fnmatch.h: Remove file.
127997 2002-06-21  Jim Meyering  <meyering@lucent.com>
127999         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
128000         * m4/mbrtowc.m4: Likewise.
128002         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
128003         * m4/mbswidth.m4: Reflect name change:
128004         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
128005         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128007         * m4/lib-link.m4: Update from gettext-0.11.2.
128008         * m4/gettext.m4: Likewise.
128010         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
128011         From Alfred M. Szmidt.
128013 2002-06-18  Paul Eggert  <eggert@twinsun.com>
128015         * lib/file-type.h: Report an error if neither S_ISREG nor
128016         S_IFREG is defined, instead of using a test specific to glibc
128017         2.2.  This should be safe, since POSIX requires S_ISREG and
128018         Unix Version 7 had S_IFREG.  We don't need to check for
128019         <sys/types.h> since we don't use any symbols that it defines.
128021 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
128023         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
128024         $@-t, so that each temporary file name is unique and valid in the first
128025         8 characters, for operation under DOS.
128027 2002-06-15  Paul Eggert  <eggert@twinsun.com>
128029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
128031 2002-06-15  Jim Meyering  <meyering@lucent.com>
128033         Work even with DJGPP 2.03, which lacks support for symlinks.
128034         From Richard Dawe.
128035         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
128036         is defined.
128037         * lib/lchown.c (S_ISLNK): Likewise.
128039 2002-06-15  Jim Meyering  <meyering@lucent.com>
128041         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
128042         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
128043         have been included before this file.
128045 2002-06-14  Jim Meyering  <meyering@lucent.com>
128047         * lib/file-type.h: Use the version from diffutils-2.8.2.
128048         * lib/file-type.c: Likewise.
128050 2002-06-07  Jim Meyering  <meyering@lucent.com>
128052         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
128053         They're needed at least for NetBSD 1.5.2.
128054         ($statxfs_includes): Include those same headers.
128055         ($statxfs_includes): Include sys/vfs.h if available.
128056         ($statxfs_includes): Likewise for sys/statvfs.h.
128057         Check for the following members in both structs statfs and statvfs:
128058         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
128060 2002-06-01  Jim Meyering  <meyering@lucent.com>
128062         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
128063         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
128065 2002-05-28  Jim Meyering  <meyering@lucent.com>
128067         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
128068         Reported by Volker Borchert.
128070 2002-05-27  Jim Meyering  <meyering@lucent.com>
128072         Fix a problem seen only on nonconforming systems whereby ls.c's
128073         use of localtime, and then of gettimeofday would cause trouble:
128074         the localtime call used to initialize rpl_gettimeofday's save
128075         mechanism would clobber ls's current local time information so
128076         that in any long listing the first file would always be listed
128077         with date 1970-01-01.  Analysis by Volker Borchert.
128079         * lib/gettimeofday.c (localtime): Undefine.
128080         (rpl_localtime): New function.
128082 2002-05-27  Jim Meyering  <meyering@lucent.com>
128084         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
128085         localtime.
128087         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
128088         use the replacement function; it wouldn't resolve at link time.
128089         Reported by Volker Borchert.
128091 2002-05-22  Jim Meyering  <meyering@lucent.com>
128093         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
128094         file-type.h.
128095         * lib/file-type.h: New file.
128096         * lib/file-type.c (file_type): New file/function.  Extracted from
128097         diffutils.
128099 2002-04-30  Jim Meyering  <meyering@lucent.com>
128101         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
128103 2002-04-29  Paul Eggert  <eggert@twinsun.com>
128105         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
128107 2002-04-29  Paul Eggert  <eggert@twinsun.com>
128109         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
128110         Do not check for alloca.h (no longer used) or stdbool.h (was never
128111         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
128113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
128115         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
128117 2002-04-29  Jim Meyering  <meyering@lucent.com>
128119         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
128120         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
128121         Use AC_FUNC_STRNLEN here instead.
128123         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
128124         With autoconf-2.53a, it's part of AC_PROG_CC.
128126 2002-04-28  Paul Eggert  <eggert@twinsun.com>
128128         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
128129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
128131 2002-04-28  Paul Eggert  <eggert@twinsun.com>
128133         * lib/sig2str.h, lib/sig2str.c: New files.
128134         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
128136 2002-04-28  Paul Eggert  <eggert@twinsun.com>
128138         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
128139         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
128140         of 127, since 64 is the largest conceivable number for ancient
128141         nonstandard hosts.
128142         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
128144 2002-04-28  Jim Meyering  <meyering@lucent.com>
128146         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
128148 2002-04-24  Jim Meyering  <meyering@lucent.com>
128150         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
128151         (jm_PREREQ): Use it.
128153         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
128154         mach/mach.h fcntl.h.
128155         Check for this function: setlocale.
128157 2002-04-24  Jim Meyering  <meyering@lucent.com>
128159         * lib/gettext.h: New file, from Gettext.
128160         * lib/Makefile.am (INCLUDES): Remove -I../intl.
128161         (libfetish_a_SOURCES): Add gettext.h.
128163 2002-04-16  Jim Meyering  <meyering@lucent.com>
128165         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
128166         ut_pid, ut_id, ut_exit.
128168 2002-04-16  Jim Meyering  <meyering@lucent.com>
128170         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
128171         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
128172         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
128174 2002-04-12  Jim Meyering  <meyering@lucent.com>
128176         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
128177         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
128178         existence of the getmntinfo function.  Needed for Darwin 5.3.
128180         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
128181         This is necessary at least on Darwin 5.3.
128183         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
128184         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
128185         strnlen.o in the library, and that makes some versions of ranlib
128186         object.
128188 2002-04-12  Jim Meyering  <meyering@lucent.com>
128190         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
128192 2002-04-09  Jim Meyering  <meyering@lucent.com>
128194         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
128195         to be more precise.  Rather than saying we're checking whether the
128196         function `works', say what we're testing.
128197         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
128198         Reported by Bruno Haible.
128200 2002-03-10  Jim Meyering  <meyering@lucent.com>
128202         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
128203         Suggestion from Santiago Vila.
128205 2002-03-08  Jim Meyering  <meyering@lucent.com>
128207         * lib/rename.c: Mention that this wrapper is needed also on
128208         mips-dec-ultrix4.4 systems.
128210 2002-03-02  Jim Meyering  <meyering@lucent.com>
128212         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
128213         not HAVE_CLOCK_SETTIME.
128215 2002-02-27  Paul Eggert  <eggert@twinsun.com>
128217         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
128218         Check for clock_settime.
128220 2002-02-27  Paul Eggert  <eggert@twinsun.com>
128222         * lib/nanosleep.h: Rename to....
128223         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
128225         * lib/gettime.c: New file.
128226         * lib/settime.c: New file.
128227         * lib/stime.c: Remove.
128229         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
128230         timespec.h.  Remove nanosleep.h.
128232 2002-02-25  Paul Eggert  <eggert@twinsun.com>
128234         * m4/acl.m4: New file.
128235         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
128236         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
128238 2002-02-25  Paul Eggert  <eggert@twinsun.com>
128240         * lib/acl.c, lib/acl.h: New files.
128241         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
128243 2002-02-24  Jim Meyering  <meyering@lucent.com>
128245         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
128246         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
128247         cause trouble.  Reported by Nelson Beebe.
128249 2002-02-23  Paul Eggert  <eggert@twinsun.com>
128251         * lib/path-concat.c (xpath_concat): Reorder code to pacify
128252         compilers that don't know that xalloc_die never returns.
128254 2002-02-20  Jim Meyering  <meyering@lucent.com>
128256         * lib/getdate.c: Regenerate using bison-1.33.
128258 2002-02-17  Jim Meyering  <meyering@lucent.com>
128260         * config/config.guess (main): Don't use `head -1'; it's no longer
128261         portable. Use `sed 1q' instead.
128263 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
128265         * m4/codeset.m4: Upgrade to gettext-0.11.
128266         * m4/gettext.m4: Upgrade to gettext-0.11.
128267         * m4/glibc21.m4: Upgrade to gettext-0.11.
128268         * m4/iconv.m4: Upgrade to gettext-0.11.
128269         * m4/isc-posix.m4: Upgrade to gettext-0.11.
128270         * m4/lcmessage.m4: Upgrade to gettext-0.11.
128271         * m4/lib-ld.m4: New file, from gettext-0.11.
128272         * m4/lib-link.m4: New file, from gettext-0.11.
128273         * m4/lib-prefix.m4: New file, from gettext-0.11.
128274         * m4/progtest.m4: Upgrade to gettext-0.11.
128276 2002-02-15  Paul Eggert  <eggert@twinsun.com>
128278         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
128279         (jm_PREREQ): Use it.
128281 2002-02-15  Paul Eggert  <eggert@twinsun.com>
128283         * lib/posixver.c, lib/posixver.h: New files.
128284         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
128286 2002-02-02  Paul Eggert  <eggert@twinsun.com>
128287             Bruno Haible  <bruno@clisp.org>
128289         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
128290         (fwrite_success_callback): New declaration.
128291         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
128292         print_unicode_char. Call failure callback instead of error.
128293         (fwrite_success_callback): New function.
128294         (exit_failure_callback): New function.
128295         (fallback_failure_callback): New function.
128296         (print_unicode_char): Call unicode_to_mb.
128298 2002-01-26  Jim Meyering  <meyering@lucent.com>
128300         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
128301         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
128303 2002-01-26  Jim Meyering  <meyering@lucent.com>
128305         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
128307 2002-01-22  Paul Eggert  <eggert@twinsun.com>
128309         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
128311 2002-01-22  Jim Meyering  <meyering@lucent.com>
128313         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
128314         Otherwise, some versions of automake would omit the rule that makes
128315         Makefile from Makefile.in.
128317 2002-01-21  Paul Eggert  <eggert@twinsun.com>
128319         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
128320         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
128321         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
128322         (memcoll): Set errno to zero if there is no error.
128324         * lib/quotearg.c (quotearg_buffer_restyled):
128325         Fix bug with quoting buffers containing NUL when backslashing escapes.
128326         This bug was exposed by the other changes in this patch.
128327         (quotearg_n_options): New arg ARGSIZE.
128328         All callers changed.
128329         (quoting_options_from_style): New function.
128330         (quotearg_n_style): Use it.
128331         (quotearg_n_style_mem): New function.
128333         * lib/quotearg.h (quotearg_n_style_mem): New function.
128335 2002-01-19  Jim Meyering  <meyering@lucent.com>
128337         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
128338         Remove useless quotes: DF_PROG="df".
128339         * m4/strnlen.m4: New file.
128341 2002-01-16  Paul Eggert  <eggert@twinsun.com>
128343         * lib/backupfile.c (ISDIGIT): Comment fix.
128344         * lib/getdate.y (ISDIGIT): Likewise.
128345         * lib/posixtm.c (ISDIGIT, year): Likewise.
128346         * lib/strverscmp.c (ISDIGIT): Likewise.
128347         * lib/userspec.c (ISDIGIT): Likewise.
128349 2002-01-16  Jim Meyering  <meyering@lucent.com>
128351         * lib/getdate.y: Add three semicolons, each just before a closing
128352         brace. Bison (as of version 1.31) no longer papers over that mistake.
128354 2002-01-05  Jim Meyering  <meyering@lucent.com>
128356         * lib/version-etc.c (version_etc_copyright): Update copyright year.
128358 2001-12-19  Paul Eggert  <eggert@twinsun.com>
128360         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
128361         not silently exit merely because the output buffer happens to
128362         have nothing pending.
128364 2001-12-18  Paul Eggert  <eggert@twinsun.com>
128366         See the big note in ../ChangeLog.
128367         * lib/human.c (suffixes): Prefer K to k for 1024.
128368         (generate_suffix_backwards): New function.
128369         (human_readable_inexact): Use it.
128370         * lib/xstrtol.c (__xstrtol): If there is no number but there
128371         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
128372         Accept 'K' as well as 'k'.
128374 2001-12-15  Jim Meyering  <meyering@lucent.com>
128376         * lib/regex.h (__restrict_arr): Update from libc.
128378         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
128379         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
128380         (STREQ): Define.
128382 2001-12-14  Jim Meyering  <meyering@lucent.com>
128384         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
128385         Suggestion from Bruno Haible.
128387 2001-12-10  Jim Meyering  <meyering@lucent.com>
128389         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
128390         xrealloc, Instead, include "xalloc.h".
128391         (initbuffer): Don't cast xmalloc return value to char*.
128392         (readline): Reword comment.
128393         Don't cast xrealloc return value to char*
128394         Return NULL, not 0.
128396 2001-12-09  Jim Meyering  <meyering@lucent.com>
128398         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
128399         about `signed and unsigned type in conditional expression'.
128400         * lib/posixtm.c (posix_time_parse): Likewise.
128402         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
128404         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
128405         to avoid a pedantic warning.
128407         * lib/getstr.c: Don't include assert.h.
128408         (getstr): Remove warning-evoking assertions.
128409         Return -1 if offset parameter is out of bounds.
128410         Change the type of a local from int to size_t.
128412         * lib/strftime.c (my_strftime_localtime_r): Include this function
128413         definition in the `#if ! HAVE_TM_GMTOFF' block.
128415         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
128416         Include xalloc.h instead.
128418 2001-12-02  Jim Meyering  <meyering@lucent.com>
128420         * lib/tempname.c: Don't declare getenv, thus reverting the change of
128421         2001-11-18.  It's no longer necessary, now that stdlib.h is always
128422         included.
128424         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
128425         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
128427 2001-11-30  Akim Demaille  <akim@epita.fr>
128429         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
128430         before being defined.
128432 2001-11-27  Paul Eggert  <eggert@twinsun.com>
128434         * lib/quotearg.h (quotearg_n, quotearg_n_style):
128435         First arg is int, not unsigned.
128436         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
128437         (SIZE_MAX, UINT_MAX): New macros.
128438         (quotearg_n_options): Abort if N is negative.
128439         Avoid overflow check on hosts where size_t is 64 bits and int
128440         is 32 bits, as overflow is impossible there.
128441         Fix off-by-one typo that caused unnecessary reallocation.
128443 2001-11-27  Jim Meyering  <meyering@lucent.com>
128445         * lib/tempname.c: Merge with version from libc.
128446         * lib/regex.c: Likewise.
128448         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
128449         systems for which STDC_HEADERS is 0, it was not included, resulting in
128450         a warning about an integer-to-pointer conversion problem with getenv.
128451         Reported by Volker Borchert.
128453 2001-11-26  Jim Meyering  <meyering@lucent.com>
128455         * lib/gtod.h: Remove file.
128456         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
128457         * lib/gettimeofday.c: Don't include gtod.h.
128458         (GTOD_init): Remove function.
128459         (rpl_gettimeofday): Do its job here instead, rather than aborting.
128460         Suggestion from Volker Borchert.
128462 2001-11-23  Jim Meyering  <meyering@lucent.com>
128464         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
128465         it.
128466         * lib/hash.c (struct hash_table): Define it here instead.
128468 2001-11-22  Jim Meyering  <meyering@lucent.com>
128470         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
128472 2001-11-20  Jim Meyering  <meyering@lucent.com>
128474         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
128475         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
128477 2001-11-19  Jim Meyering  <meyering@lucent.com>
128479         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
128480         directory.  Use "conftestXXXXXX" as the template.
128481         Suggestion from Paul Eggert.
128483         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
128484         immediately, so the test doesn't mistakenly hit the max-open-files
128485         limit.
128487 2001-11-18  Paul Eggert  <eggert@twinsun.com>
128489         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
128490         (TEMPORARIES): New macro.
128491         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
128492         removes an artificial limitation (e.g. HP-UX 10.20, where
128493         TMP_MAX is 17576).
128495 2001-11-18  Jim Meyering  <meyering@lucent.com>
128497         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
128499 2001-11-18  Jim Meyering  <meyering@lucent.com>
128501         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
128502         on SunOS 4.
128504         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
128505         files will be created before anything else.
128507 2001-11-17  Paul Eggert  <eggert@twinsun.com>
128509         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
128510         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
128512 2001-11-17  Jim Meyering  <meyering@lucent.com>
128514         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
128515         Prompted by a report from Bob Proulx.
128517         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
128518         Instead, require UTILS_FUNC_MKSTEMP.
128520 2001-11-17  Jim Meyering  <meyering@lucent.com>
128522         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
128523         Now, that's done as part of AC_FUNC_STRTOD.
128525 2001-11-17  Jim Meyering  <meyering@lucent.com>
128527         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
128528         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
128529         rather than group writable.  Patch by Juan F. Codagnone.
128531         * lib/readtokens.c: Remove explicit declarations of xmalloc and
128532         xrealloc, Instead, include "xalloc.h".
128534         * lib/mountlist.c: Include unlocked-io.h after all system headers.
128535         Remove explicit declarations of xmalloc, xrealloc,
128536         and xstrdup.  Instead, include "xalloc.h".
128538         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
128539         unlocked-io.h.
128540         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
128541         Likewise.
128542         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
128544         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
128545         Reported by Padraig Brady.
128547         * lib/mkstemp.c: #undef mkstemp.
128548         Include config.h.
128549         (rpl_mkstemp): Rename from mkstemp.
128550         Protoize.
128552 2001-11-16  Jim Meyering  <meyering@lucent.com>
128554         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
128555         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
128556         determine the amount of total physical memory, use pstat_getstatic.
128557         HPUX-11 doesn't define _SC_PHYS_PAGES.
128558         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
128559         If sysconf couldn't be used to determine the amount of available
128560         physical memory, use both pstat_getstatic and pstat_getdynamic.
128561         Based on a patch from Bob Proulx.
128563 2001-11-10  Jim Meyering  <meyering@lucent.com>
128565         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
128566         (jm_PREREQ): Use it.
128568 2001-11-09  Jim Meyering  <meyering@lucent.com>
128570         * m4/jm-macros.m4: Require autoconf-2.52f.
128571         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
128572         Use these AC_-prefixed names, not the AM_-prefixed ones.
128574         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
128576 2001-11-05  Jim Meyering  <meyering@lucent.com>
128578         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
128580 2001-11-04  Jim Meyering  <meyering@lucent.com>
128582         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
128583         $DEFS.
128585 2001-11-03  Jim Meyering  <meyering@lucent.com>
128587         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
128588         of AC_DEFUN.
128590         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
128591         know the name of the variable in the macro definition.
128593 2001-11-03  Jim Meyering  <meyering@lucent.com>
128595         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
128596         in argmatch_to_argument call.
128598         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
128599         argument.
128601         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
128602         e.g., a fault due to an attempt to free a NULL pointer.
128604 2001-11-01  Jim Meyering  <meyering@lucent.com>
128606         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
128607         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
128609 2001-11-01  Jim Meyering  <meyering@lucent.com>
128611         * lib/dirfd.c, lib/dirfd.h: New files.
128612         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
128614         * lib/hash.c (hash_print) [TESTING]: Clean up.
128616 2001-10-22  Paul Eggert  <eggert@twinsun.com>
128618         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
128619         to avoid a warning if -Wall.
128621 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
128623         * README: New file
128624         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
128625         (per RMS's instructions, this is now the canonical source)
128626         * lgpl/, gpl/: New directories.
128628 2001-10-21  Paul Eggert  <eggert@twinsun.com>
128630         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
128632 2001-10-21  Jim Meyering  <meyering@lucent.com>
128634         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
128635         this code would end up calling gettext even in packages built
128636         with --disable-nls.
128637         * lib/getopt.c (_): Likewise.
128638         * lib/regex.c (_): Likewise.
128640 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128642         * m4/error.m4 (jm_PREREQ_ERROR):
128643         Do not invoke AC_CHECK_FUNCS with strerror_r, as
128644         AC_FUNC_STRERROR_R does that.
128645         Check for strerror declaration.
128647         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
128648         are supposed to have them these days.
128649         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
128650         Merge changes from latest Autoconf CVS.
128651         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
128652         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
128653         POSIX decided to standardize on the int flavor of strerror_r.
128655 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128657         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
128658         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
128659         Use strerror_r that is only a macro, even if it is not a function.
128660         (strerror): Check for HAVE_DECL_STRERROR before declaring.
128661         (private_strerror): Use prototypes, not old-style function definition.
128662         (print_errno_message): New function.
128663         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
128664         char*-flavored one.
128665         (error_tail, error, error_at_line): Use it.
128667 2001-10-11  Jim Meyering  <meyering@lucent.com>
128669         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
128670         and quote_n (1, ... to avoid clobbering a buffer.
128672 2001-10-05  Jim Meyering  <meyering@lucent.com>
128674         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
128675         hash-pjw.h.
128676         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
128677         * lib/hash-pjw.h: New file.
128679 2001-09-30  Jim Meyering  <meyering@lucent.com>
128681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
128682         `struct fsstat' has the `f_fstypename' member.
128683         Use that to define FS_TYPE, which is now used to make
128684         the getfsstat link test tighter.
128686 2001-09-30  Jim Meyering  <meyering@lucent.com>
128688         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
128689         Include <sys/ucred.h>, for Apple Darwin.
128690         Include sys/mount.h and sys/fs_types.h only if available.
128691         (FS_TYPE): Define.
128692         (read_filesystem_list): Use FS_TYPE.
128694 2001-09-29  Paul Eggert  <eggert@twinsun.com>
128696         * lib/exclude.c (excluded_filename): 0 -> false, since it's
128697         a boolean context.
128699 2001-09-29  Jim Meyering  <meyering@lucent.com>
128701         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128702         [one-argument getmntent function]): Include stdio.h before mntent.h.
128703         SunOS 4.1.x needs it for the declaration of `FILE'.
128704         Patch by Volker Borchert.
128706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128707         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
128708         sys/fs_types.h, and make the link-test for getfsstat guard #include
128709         directives with appropriate #if HAVE_*_H tests so that we can
128710         detect getfsstat on Apple Darwin1.3.7 systems.
128711         Reported by Nelson Beebe.
128712         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
128714 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128716         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128717         #defines strtoimax.  Also treat the other strto* functions
128718         like strtoimax.
128720         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128721         Check for strtoul and strtoumax,
128722         as those declarations are made even in the signed case.
128723         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
128724         Likewise, for strtol and strtoimax.
128726 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128728         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128729         #defines strtoimax.  Also treat the other strto* functions
128730         like strtoimax.
128732         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
128733         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
128734         (strtoimax, strtoumax): Do not declare if already defined as a macro.
128736 2001-09-26  Jim Meyering  <meyering@lucent.com>
128738         Most macros in unlocked-io.h had the wrong number of arguments.
128739         * lib/gen-uio: New script.
128740         (USE_UNLOCKED_IO): Define to 1 if not already defined.
128741         * lib/unlocked-io.hin: Remove file.
128742         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
128743         rather than trying to embed it here.
128744         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
128745         Reported by Padraig Brady.
128747 2001-09-25  Volker Borchert  <bt@teknon.de>
128749         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
128750         `result'.
128752 2001-09-24  Jim Meyering  <meyering@lucent.com>
128754         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
128756 2001-09-23  Jim Meyering  <meyering@lucent.com>
128758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
128759         instead of the mere test for existence of mntent.h.  The latter
128760         would get a false-positive on AIX 3.4 systems.
128761         In the outer getmntent if-block, don't die if neither of the getmntent
128762         tests succeeds.  Instead, just fall through and continue with the
128763         remaining tests.
128765 2001-09-23  Jim Meyering  <meyering@lucent.com>
128767         * lib/mountlist.c: Remove useless parentheses in #if directives.
128768         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
128769         the deprecated MOUNTED symbol is no longer defined in mntent.h.
128771 2001-09-22  Jim Meyering  <meyering@lucent.com>
128773         * m4/gettext.m4: New file.  From gettext.
128774         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
128775         * m4/progtest.m4: Likewise
128776         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
128777         * m4/glibc21.m4: Likewise.
128779         * m4/libintl.m4: Remove.  No longer used.
128781 2001-09-22  Jim Meyering  <meyering@lucent.com>
128783         * lib/localcharset.c: Update from latest gettext.
128784         * lib/config.charset: Likewise.
128786 2001-09-20  Jim Meyering  <meyering@lucent.com>
128788         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
128789         strtoimax.
128790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
128791         strtoumax.
128793 2001-09-20  Jim Meyering  <meyering@lucent.com>
128795         * lib/xstrtol.c (strtoimax): Guard declaration with
128796         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
128797         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
128798         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
128799         (strtoumax): Likewise, for completeness (it wasn't necessary).
128801 2001-09-17  Paul Eggert  <eggert@twinsun.com>
128803         * lib/strtoimax.c (HAVE_LONG_LONG):
128804         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
128805         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
128806         to work around bug in IBM C compiler.
128808 2001-09-17  Jim Meyering  <meyering@lucent.com>
128810         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
128811         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
128812         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
128813         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
128814         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
128815         whenever the right hand side need not be expanded by the shell.
128817 2001-09-16  Paul Eggert  <eggert@twinsun.com>
128819         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
128820         library.  It's not correct, as some older glibcs are buggy.
128821         fnmatch wasn't fixed until glibc 2.2.
128823         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
128824         special shell magic here.
128826 2001-09-16  Jim Meyering  <meyering@lucent.com>
128828         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
128829         * m4/jm-macros.m4: Require it.
128831 2001-09-16  Jim Meyering  <meyering@lucent.com>
128833         * lib/mkdir.c: New file.
128835 2001-09-15  Jim Meyering  <meyering@lucent.com>
128837         * m4/jm-macros.m4: Check for help2man.
128839 2001-09-11  Jim Meyering  <meyering@lucent.com>
128841         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
128842         The body, by Paul Eggert, was moved here from configure.in.
128843         * m4/jm-macros.m4: Require UTILS_HOST_OS.
128845 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128847         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
128848         (jm_PREREQ): Use it.
128850 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128852         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
128853         Use ssize_t, not int, to store result of readlink.
128854         Check for ssize_t overflow as well as size_t overflow,
128855         as POSIX says the result of readlink is implementation-defined
128856         when ssize_t overflows.
128857         Remove unnecessary cast to char*.
128858         Use free+malloc instead of realloc, as the storage doesn't need
128859         to be preserved and it's clearer and can be more efficient that way.
128860         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
128861         * lib/xreadlink.h (xreadlink): Update prototype.
128863 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128865         * lib/xgetcwd.c: Revert some of the previous change; intead,
128866         fix the HAVE_GETCWD_NULL code to behave more like the
128867         !HAVE_GETCWD_NULL code used to.
128869         Include "xalloc.h".
128870         (xgetcwd): Do not return NULL when memory is exhausted; instead,
128871         invoke xalloc_die.
128873 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128875         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
128876         sys/param.h, as pathmax.h includes them.
128878 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128880         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
128881         (jm_PREREQ_XGETCWD): New macro.
128883         * m4/getcwd.m4: New file.
128885 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128887         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
128888         like the HAVE_GETCWD_NULL code.
128889         Include pathmax.h if not HAVE_GETCWD.
128890         Do not include xalloc.h.
128891         (INITIAL_BUFFER_SIZE): New symbol.
128892         Do not use xmalloc / xrealloc, since the caller is responsible for
128893         handling errors.  Preserve errno around `free' during failure.
128894         Do not overrun buffer when using getwd.
128896 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128898         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128899         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128900         getcwd (NULL, 0).
128902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128904         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128905         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128906         spotted by Jim Meyering.
128908 2001-09-03  Jim Meyering  <meyering@lucent.com>
128910         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128911         failure.
128913 2001-09-02  Jim Meyering  <meyering@lucent.com>
128915         * lib/error.c: Update from GNU libc.
128917 2001-09-01  Jim Meyering  <meyering@lucent.com>
128919         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128920         Used by df.
128922 2001-09-01  Jim Meyering  <meyering@lucent.com>
128924         * lib/xreadlink.c: New file.
128925         * lib/xreadlink.h: New file.
128926         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128927         xreadlink.h.
128929         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128930         doesn't conflict with sparc Solaris 7's definition in
128931         /usr/include/sys/int_types.h.
128933         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128934         files.
128935         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128936         and strncasecmp as r-values.  Unixware didn't have declarations.
128938 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128940         * lib/xstrtol.h: Add copyright notice.
128941         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128942         LONGINT_INVALID_SUFFIX_CHAR.
128944 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128946         * lib/xstrtol.c (strtoimax): New decl.
128948 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128950         * lib/xgetcwd.c: Don't include pathmax.h.
128951         Include stdlib.h and unistd.h if available.
128952         Include xalloc.h.
128953         (xmalloc, xstrdup, free): Remove decls.
128954         (xgetcwd): Don't assume sizes fit in unsigned.
128955         Check for overflow when computing sizes.
128956         Simplify reallocation code.
128958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128960         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128961         a directory's st_size can have an arbitrary value, so the old
128962         usage could waste an arbitrary amount of memory.  All uses
128963         changed.
128964         * lib/savedir.h: Update prototype.
128966 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128968         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128970         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128971         old strtoimax.c.
128973         Also, make the following further changes to make this file's
128974         configuration more similar to that of strtol.c:
128975         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128976         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128977         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128978         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128979         changed to signed values.
128981         And make the following changes as well:
128982         Fix copyright notice, as 1999 was missing.
128983         (verify): New macro.
128984         (strtoimax): Check sizes at compile-time, not run-time.
128985         Prefer strtol to strtoll if both work.
128986         (main): Remove; it was not that useful and was a pain to maintain.
128988         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128990 2001-08-31  Jim Meyering  <meyering@lucent.com>
128992         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128993         Use an initial, malloc'd, buffer of length 128 rather than
128994         a statically allocated one of length 1024.
128996 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128998         Simplify code, partly by assuming autoconf 2.52 semantics.
129000         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
129002         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
129003         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
129004         All uses removed.
129005         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
129006         Move AC_REQUIRE to next-to-top level, to avoid confusion.
129007         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
129008         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
129009         jm_AC_HEADER_INTTYPES_H.
129010         * m4/jm-macros.m4 (jm_MACROS): Likewise.
129012         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
129014         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
129015         Quote first arg of AC_DEFUN.
129016         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
129017         since they are needed to parse the include file even if we need
129018         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
129019         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
129020         but with opposite signedness.
129022 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129024         Merge 'exclude' changes from tar 1.13.22.
129025         This fixes one or two unlikely storage allocation overflow bugs,
129026         but doesn't change user-visible behavior otherwise.
129028 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129030         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
129031         (jm_PREREQ_EXCLUDE): New macro.
129033 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129035         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
129036         tm to be declared.
129038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129040         * lib/hash.c: Remove '2001' from copyright notice.
129042 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129044         * lib/full-write.h: New file.
129045         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
129046         * lib/full-write.c: Correct credits, as cccp.c no longer
129047         exists and anyway it was so heavily changed from the old cccp
129048         code as to be unrecognizable.  Include full-write.h.
129049         (full_write): Return size_t, with short writes meaning failure.
129050         All callers changed.  This fixes a bug with large buffers
129051         on 64-bit hosts.
129052         * lib/utime.c: Include full-write.h.
129054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129056         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
129057         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
129058         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
129059         Include if available.
129060         (<xalloc.h>): Include
129061         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
129062         (verify): New macro.  Use it to verify that EXCLUDE macros do not
129063         collide with FNM macros.
129064         (struct patopts): New struct.
129065         (struct exclude): Use it, as exclude patterns now come with options.
129066         (new_exclude): Support above changes.
129067         (new_exclude, add_exclude_file):
129068         Initial size must now be a power of two to simplify overflow checking.
129069         (free_exclude, fnmatch_no_wildcards): New function.
129070         (excluded_filename): No longer requires options arg, as the options
129071         are determined by add_exclude.  Now returns bool, not int.
129072         (excluded_filename, add_exclude):
129073         Add support for the fancy new exclusion options.
129074         (add_exclude, add_exclude_file): Now takes int options arg.
129075         Check for arithmetic overflow when computing sizes.
129076         (add_exclude_file): xrealloc might modify errno, so don't
129077         realloc until after errno might be used.
129079         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
129080         New macros.
129081         (free_exclude): New decl.
129082         (add_exclude, add_exclude_file): Now takes int options arg.
129083         (excluded_filename): No longer requires options arg, as the options
129084         are determined by add_exclude.  Now returns bool, not int.
129086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
129088         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
129090 2001-08-27  Jim Meyering  <meyering@lucent.com>
129092         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
129094         * lib/version-etc.c (N_): Remove definition.
129095         Revert most of last change.
129096         Instead, simply don't mark the `Copyright...' string for translation.
129097         Based on advice from Paul Eggert.
129099         * lib/strtoxmax.c: Tweak comment.
129101 2001-08-26  Jim Meyering  <meyering@lucent.com>
129103         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
129105         * m4/xstrtoimax.m4: New file.
129106         * m4/xstrtoumax.m4: Add comments explaining why we
129107         AC_REPLACE_FUNCS(strtol).
129109 2001-08-26  Jim Meyering  <meyering@lucent.com>
129111         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
129112         of copyright with `%s' so translators don't get an untranslated
129113         message in 2002.
129114         (COPYRIGHT_YEAR): Define.
129115         (version_etc): Use fprintf rather than fputs.
129116         Suggestion from Ulrich Drepper.
129118         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
129120         * lib/strtoll.c: New file, from GNU libc.
129121         * lib/xstrtoimax.c: New file.
129123         * lib/xstrtol.h: Add xstrtoimax.
129124         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
129125         * lib/strtoimax.c: New file.  Likewise, but first define
129126         STRTOUXMAX_SIGNED.
129128         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
129129         ...
129130         * lib/strtoxmax.c: ... then renamed to this.
129132 2001-08-18  Paul Eggert  <eggert@twinsun.com>
129134         * m4/inttypes.m4: Add AC_PREREQ(2.13).
129135         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
129136         (jm_AC_TYPE_INTMAX_T): New macro.
129137         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
129139         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
129141         * m4/longlong.m4: Renamed from ulonglong.m4.
129142         * m4/inttypes.m4: Renamed from inttypes_h.m4.
129143         * m4/uintmax_t.m4: Removed.
129145 2001-08-13  Paul Eggert  <eggert@twinsun.com>
129147         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
129148         Port to Solaris 8, where 'sed' requires a space after the 'r'
129149         command, and where sh dislikes "$/".  Clean up the spacing a bit.
129150         Redirect output to $tmp just once.
129152 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
129154         * lib/addext.c (<errno.h>): Include.
129155         (errno): Declare if not defined.
129156         (addext): Work correctly when pathconf returns -1 and leaves
129157         errno alone because there is no limit.  Also, work even if
129158         pathconf returns a value greater than SIZE_MAX.
129160 2001-08-12  Jim Meyering  <meyering@lucent.com>
129162         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
129163         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
129164         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
129165         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
129166         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
129167         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
129168         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
129169         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
129170         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
129171         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
129172         utime.m4, utimes.m4, xstrtoumax.m4:
129173         Quote the first argument in each use of AC_DEFUN.
129175 2001-08-12  Jim Meyering  <meyering@lucent.com>
129177         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
129178         Simply `return getcwd (NULL, 0);'.
129179         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
129180         Use 1300 as initial value for length, not PATH_MAX.
129182         * lib/pathmax.h: Clean up cpp syntax.
129184 2001-08-12  Jim Meyering  <meyering@lucent.com>
129186         * lib/gettimeofday.c: New file.
129187         * lib/gtod.h: New file.
129188         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
129190 2001-08-05  Jim Meyering  <meyering@lucent.com>
129192         * m4/jm-macros.m4: Require autoconf-2.52.
129194 2001-08-04  Jim Meyering  <meyering@lucent.com>
129196         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
129197         stmt, to get in sync with glibc.
129199 2001-08-03  Paul Eggert  <eggert@twinsun.com>
129201         The following changes are from gettext 0.10.39 as maintained by
129202         Bruno Haible.
129204         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
129205         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
129206         with inverted sense.  All uses changed.
129208         * lib/mbswidth.c: Don't include <limits.h>.
129209         Include <stdlib.h> and <string.h> unconditionally.
129210         (iswcntrl, mbsinit, ISCNTRL): New macros.
129211         (mbsnwidth): Use K&R style function declarations.
129212         Don't bother checking for MB_LEN_MAX == 1, since the compiler
129213         can optimize it when MB_CUR_MAX == 1.
129214         The width of control characters is zero, not 1.
129216 2001-08-03  Paul Eggert  <eggert@twinsun.com>
129218         The following changes are from gettext 0.10.39 as maintained by
129219         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
129221         * m4/codeset.m4: Upgrade to serial AM1.
129222         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
129223         all uses changed.  Quote first arg of AC_DEFUN.
129224         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
129226         * m4/iconv.m4: Upgrade to serial AM2.
129227         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
129228         Add --with-libconv-prefix.
129229         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
129230         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
129231         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
129232         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
129233         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
129235         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
129236         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
129237         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
129238         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
129239         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
129240         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
129241         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
129242         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
129243         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
129245         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
129246         string.h any more.
129248         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
129249         not the default value.
129251         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
129252         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
129253         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
129254         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
129255         Also check for iswcntrl, used for wcwidth fallback.
129256         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
129257         to Autoconf 2.13.
129259 2001-08-03  Jim Meyering  <meyering@lucent.com>
129261         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
129262         as it was in the original.  Reported by Paul Eggert.
129264 2001-07-16  Jim Meyering  <meyering@lucent.com>
129266         * m4/gettimeofday.m4: New file.
129267         Prompted by a report from Bernhard Baehr.
129269 2001-07-15  Jim Meyering  <meyering@lucent.com>
129271         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
129272         stuff. Now it's in ../Makefile.cfg.
129274 2001-07-15  Jim Meyering  <meyering@lucent.com>
129276         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
129277         (BUILT_SOURCES): Add unlocked-io.h.
129278         (io_functions): Define.
129279         (unlocked-io.h): New rule.
129280         (DISTCLEANFILES): Add unlocked-io.h.
129281         (all-local): Depend on unlocked-io.h, to ensure it is created.
129283         * lib/unlocked-io.hin: New file
129285         * lib/regex.c: Update from glibc.
129287 2001-07-05  Jim Meyering  <meyering@lucent.com>
129289         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
129290         recommendation.
129291         (libfetish_a_SOURCES): Put all .h files here instead.
129292         Remove a thus-exposed (better checks in automake) duplicate and
129293         two unnecessary .h files.
129295 2001-07-04  Jim Meyering  <meyering@lucent.com>
129297         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
129298         that generates jm-glibc-io.m4 so that it doesn't trigger any make
129299         distcheck failure.
129301 2001-07-02  Jim Meyering  <meyering@lucent.com>
129303         The following changes were prompted by suggestions from Bruno Haible.
129305         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
129306         is now generated.
129307         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
129308         definition of EXTRA_DIST.
129309         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
129310         ensure that the generated file is created/updated whenever the list
129311         of $(unlocked_functions) is changed.
129312         (jm-glibc-io.m4): New rule.
129313         (unlocked-io.h): New rule -- currently unused.
129315 2001-06-24  Jim Meyering  <meyering@lucent.com>
129317         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
129318         unmatched right bracket, rather than kludging it with an extra,
129319         falsely-matching quote in a comment.  Patch by Akim Demaille.
129321 2001-06-11  Jim Meyering  <meyering@lucent.com>
129323         * lib/regex.c: Update from GNU libc.
129325 2001-05-27  Jim Meyering  <meyering@lucent.com>
129327         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
129328         Check for ut_type in struct utmp.
129330 2001-05-27  Jim Meyering  <meyering@lucent.com>
129332         * lib/readutmp.h (UT_TYPE): Define.
129334 2001-05-24  Jim Meyering  <meyering@lucent.com>
129336         * lib/argmatch.c: Include "quote.h".
129337         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
129338         quote function.  Reported by Göran Uddeborg.
129340 2001-05-22  Jim Meyering  <meyering@lucent.com>
129342         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
129343         now that we use the package-supplied version unconditionally.
129344         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
129346 2001-05-21  Jim Meyering  <meyering@lucent.com>
129348         * m4/regex.m4: Change a couple backticks to single quotes to avoid
129349         shell syntax errors.
129351 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
129353         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
129355 2001-05-20  Paul Eggert  <eggert@twinsun.com>
129357         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
129358         Don't bother to check library strftime, since
129359         we'll be using our own my_strftime function anyway.
129360         Define my_strftime instead of strftime.
129362 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
129364         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
129365         which is not yet declared.
129367 2001-05-15  Jim Meyering  <meyering@lucent.com>
129369         * m4/regex.m4: Use proper quoting so brackets appear in the test
129370         program.
129371         Reported by, and with help from, Bruno Haible.
129373 2001-05-13  Jim Meyering  <meyering@lucent.com>
129375         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
129376         undefined.
129378 2001-05-11  Paul Eggert  <eggert@twinsun.com>
129380         dirname code cleanup.  base_name now behaves more compatibly
129381         with POSIX basename when given file names that have trailing
129382         slashes, and similarly for dir_name.  Add new primitives
129383         base_len and dir_len.  Put the directory-name-related decls
129384         into dirname.h.
129386         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
129387         * lib/backupfile.c (base_name): Likewise.
129388         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
129389         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
129390         * lib/makepath.c (strip_trailing_slashes): Likewise.
129391         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
129392         ISSLASH): Likewise.
129393         * lib/rename.c (strip_trailing_slashes): Likewise.
129394         * lib/same.c (base_name): Likewise.
129395         * lib/stripslash.c (ISSLASH): Likewise.
129397         * lib/addext.c: Include <dirname.h> after size_t is defined.
129398         * lib/backupfile.c: Likewise.
129400         * lib/addext.c (addext): Use base_len to trim redundant
129401         trailing slashes instead of doing it ourselves.
129402         But do not trim the last slash if it is not redundant.
129404         * lib/backupfile.c (find_backup_file_name,
129405         max_backup_version): Use base_len instead of rolling it ourselves.
129406         Handle the case of "" and (on DOS) "C:" correctly.
129408         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
129409         needed. Include <string.h>, <dirname.h>.
129410         (base_name): Allow file names ending in slashes, other than names
129411         that are all slashes.  In this case, return the basename followed
129412         by the slashes.  This is more general, and can be used in places
129413         where the original base_name purposely had an assertion failure.
129414         (base_len): New function.
129416         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
129417         Do not include <assert.h>; no longer needed.
129418         Include xalloc.h.
129419         (memrchr): Remove decl.
129420         (dir_name_r): Remove.
129421         (dir_len): Renamed from dirlen.  All callers changed.
129422         Rewrite in terms of base_name, for simplicity and consistency.
129423         (dir_name): Never return NULL.  All callers changed.
129424         Do not include <stdlib.h> in test program; no longer needed.
129425         return 0; is fine for test program.
129427         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
129428         New macros.
129429         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
129431         * lib/path-concat.c (path_concat): Use base_len to compute
129432         base length, not strlen; this means we cannot rely on memcpy
129433         to null-terminate.
129435         * lib/same.c (STREQ): Remove.
129436         (same_name): Handle the case where the basename ends in trailing '/'.
129438         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
129439         a slash was stripped.  Do not strip the last slash after a
129440         file system prefix.
129442 2001-05-11  Paul Eggert  <eggert@twinsun.com>
129444         * lib/Makefile.am (libfetish_a_SOURCES):
129445         Add strftime.c, since we now compile it on all hosts.
129447         * lib/strftime.c (my_strftime):
129448         Define to nstrftime if emacs, but only if my_strftime is not defined.
129449         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
129450         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
129451         Add one more extra argument: a nanoseconds value.
129452         All uses changed.
129453         (ns): New macro.
129454         (my_strftime function): Add %N format.
129455         (emacs_strftimeu): Renamed from emacs_strftime,
129456         with extra ut argument.
129458 2001-05-09  Paul Eggert  <eggert@twinsun.com>
129460         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
129462 2001-04-21  Jim Meyering  <meyering@lucent.com>
129464         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
129465         doesn't interfere.
129467 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
129469         * m4/ftruncate.m4: Check for chsize.
129470         Link with ftruncate.o unconditionally if ftruncate is missing.
129471         This was required when cross-compiling to i586-mingw32msvc.
129473 2001-04-08  Jim Meyering  <meyering@lucent.com>
129475         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
129476         recomputed; that's necessary when the offset spans a DST transition.
129477         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
129479 2001-04-02  Jim Meyering  <meyering@lucent.com>
129481         * lib/regex.h, regex.c: Update from GNU libc.
129483 2001-03-24  Jim Meyering  <meyering@lucent.com>
129485         * m4/jm-macros.m4: Require autoconf-2.49d.
129487 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
129489         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
129491 2001-03-19  Paul Eggert  <eggert@twinsun.com>
129493         * lib/version-etc.c (version_etc_copyright): Update to 2001.
129495 2001-03-17  Jim Meyering  <meyering@lucent.com>
129497         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
129498         now that the version in autoconf is equivalent.
129499         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
129501         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
129502         Suggestion from Akim Demaille.
129504         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
129505         (jm_PREREQ_TEMPNAME): New function.
129507 2001-03-16  Paul Eggert  <eggert@twinsun.com>
129509         * lib/tempname.c (uint64_t): Define to uintmax_t if
129510         not defined, and if UINT64_MAX is not defined.
129511         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
129512         Reported by John David Anglin.
129514 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
129516         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
129517         resolve alias if codeset is empty.
129518         * lib/config.charset (BeOS): Use wildcard syntax.
129520 2001-03-13  Jim Meyering  <meyering@lucent.com>
129522         * lib/path-concat.c (path_concat)
129523         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
129524         concatenating e.g., `C:' and `foo'.
129525         From Bruno Haible.
129527 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129529         * lib/localcharset.c (locale_charset): Don't use
129530         setlocale(LC_CTYPE,NULL). Don't return NULL.
129531         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
129533 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129535         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
129536         support for DOS/DJGPP.
129538 2001-03-01  Paul Eggert  <eggert@twinsun.com>
129540         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
129541         lacks mkstemp.  Compile our own tempname.c if we compile our own
129542         mkstemp.c, as mkstemp relies on tempname.
129544 2001-03-01  Jim Meyering  <meyering@lucent.com>
129546         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
129547         AH_VERBATIM really does output its argument verbatim.
129549 2001-02-28  Paul Eggert  <eggert@twinsun.com>
129551         * lib/Makefile.am (libfetish_a_SOURCES):
129552         Add dup-safer.c, fopen-safer.c.
129553         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
129555         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
129556         * lib/unistd-safer.h: New files.
129558 2001-02-25  Paul Eggert  <eggert@twinsun.com>
129560         The mkstemp replacement is taken from glibc 2.2.2, with some
129561         portability fixes for use outside glibc, as follows:
129563         * lib/tempname.c (struct_stat64): New macro.
129564         (direxists, __gen_tempname): Use it.
129565         This avoids a portability problem with Solaris 8.
129567         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
129568         (<stddef.h>, <stdint.h>, <string.h>):
129569         Include only if STDC_HEADERS || _LIBC.
129570         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
129571         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
129572         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
129573         (__set_errno): Define this macro if <errno.h> doesn't.
129574         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
129575         Define these macros if <stdio.h> doesn't.
129576         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
129577         Define these macros if <sys/stat.h>
129578         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
129579         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
129580         __xstat64): Define if not _LIBC.
129581         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
129582         (__gen_tempname): Invoke gettimeofday only if
129583         HAVE_GETTIMEOFDAY || _LIBC;
129584         otherwise, fall back on plain "time".
129585         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
129587         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
129589         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
129591 2001-02-18  Paul Eggert  <eggert@twinsun.com>
129593         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
129595 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129597         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
129598         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
129599         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
129600         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129602 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129604         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
129605         Remove workaround macros for hosts that have mbrtowc but not
129606         mbstate_t, as we now insist on proper declarations for both
129607         before using mbrtowc.
129609 2001-02-17  Jim Meyering  <meyering@lucent.com>
129611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
129612         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
129613         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
129614         UnixWare 7.1.1.
129616         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
129617         rather than AC_CACHE_VAL.
129619 2001-02-17  Jim Meyering  <meyering@lucent.com>
129621         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
129622         around included file name.
129624         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
129626         * lib/strftime.c: Update from GNU libc (the only changes were to
129627         comments).
129629 2001-02-17  Jim Meyering  <meyering@lucent.com>
129631         * lib/regex.c: Update from libc.
129633 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
129635         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
129636         clash.
129638 2001-02-16  Paul Eggert  <eggert@twinsun.com>
129640         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
129641         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
129642         Reported by Mark Hounschell via Paul Eggert.
129644 2001-02-07  Jim Meyering  <meyering@lucent.com>
129646         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
129648 2001-02-05  Jim Meyering  <meyering@lucent.com>
129650         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
129651         it includes the patch required for `large file' support with at least
129652         HP-UX's 10.20 /bin/cc.
129654 2001-02-03  Jim Meyering  <meyering@lucent.com>
129656         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
129657         AS_IF, now that it works once again (mysteriously).
129658         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129660 2001-01-30  Jim Meyering  <meyering@lucent.com>
129662         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
129663         * m4/chown.m4: Rename conftestchown to conftest.chown.
129664         * m4/rename.m4: s/conftestdir/conftest.d1/ and
129665         s/conftestdir2/conftest.d2/.
129666         * m4/utimes.m4: s/conftestdata/conftest.data/
129667         Inspired by Pavel Roskin's change in autoconf.
129669 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
129671         * lib/config.charset: Update for FreeBSD 4.2.
129673 2001-01-27  Jim Meyering  <meyering@lucent.com>
129675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
129676         a use of AS_IF.
129677         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129679 2001-01-26  Jim Meyering  <meyering@lucent.com>
129681         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
129682         quotearg.c includes it.
129684 2001-01-26  Jim Meyering  <meyering@lucent.com>
129686         * lib/quotearg.c: Include stddef.h.
129687         * lib/quote.c: Include stddef.h.
129688         Reported by Axel Kittenberger.
129690         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
129691         line in double quotes so that it evokes a better diagnostic.
129692         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
129693         Reported by Axel Kittenberger.
129695 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
129697         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
129698         as if it was a `charset'.
129700 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129702         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
129703         has const.
129705 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129707         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
129708         to avoid a warning.  Add back 'const' to inptr.
129710 2001-01-20  Jim Meyering  <meyering@lucent.com>
129712         Be sure that headers are checked before used in code compiled
129713         for the type checks.
129714         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
129715         In place of that, invoke jm_CHECK_ALL_TYPES.
129716         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
129717         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
129718         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
129719         The check for ssize_t was mistakenly run before the test for unistd.h.
129721         The configure-time check for stdbool.h was missing.
129722         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
129723         (jm_PREREQ_HASH): New function.
129725 2001-01-17  Jim Meyering  <meyering@lucent.com>
129727         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
129728         for autoconf-2.49c.
129729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
129731 2001-01-16  Jim Meyering  <meyering@lucent.com>
129733         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
129734         From Bruno Haible.
129736 2001-01-14  Jim Meyering  <meyering@lucent.com>
129738         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
129739         foo and bar.  Create conftestdir/ in the script, not in the C code.
129740         Remove directories in the script, not in the C code.
129741         Remove conftestdir{,2} before trying to create the directory.
129742         Make the entire configure script fail if the mkdir fails.
129744 2001-01-14  Jim Meyering  <meyering@lucent.com>
129746         * lib/rename.c: New file.  From Volker Borchert.
129747         Include stdlib.h, string.h or strings.h, and xalloc.h.
129748         Use strip_trailing_slashes rather than open-coding it.
129750 2001-01-03  Paul Eggert  <eggert@twinsun.com>
129752         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
129754 2001-01-03  Jim Meyering  <meyering@lucent.com>
129756         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
129757         of local `inptr' to avoid warning with some system declarations of
129758         iconv.
129760 2001-01-02  Volker Borchert  <bt@teknon.de>
129762         * m4/rename.m4: New file.
129763         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
129765 2001-01-01  Jim Meyering  <meyering@lucent.com>
129767         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
129768         even on systems with utmpx.h.  It's necessary for the declaration of
129769         utmp's ut_user member.  Reported by Andreas Jaeger.
129771         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
129772         available. They are required for the declarations of getgrgid and
129773         getpwuid resp.
129774         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
129775         Reported by Andreas Jaeger.
129777 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
129779         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
129780         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
129781         so `make install' also works in VPATH builds.
129783 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
129785         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
129786         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
129787         can be used in subdirectories.
129789 2000-12-29  Paul Eggert  <eggert@twinsun.com>
129791         * lib/modechange.c: Do not assume that mode_t uses the
129792         traditional octal encoding.  E.g. "chmod 1 FOO" should set
129793         the other-execute bit of FOO even if S_IXOTH != 1.
129795         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
129796         WOTH, XOTH, ALLM): New macros.
129797         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
129798          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
129799         Use them.
129800         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
129801         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
129802         (mode_compile):
129803         No need to use uintmax_t; unsigned long is long enough.
129804         Don't bother to get suffix since we don't use it.
129806 2000-12-26  Jim Meyering  <meyering@lucent.com>
129808         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
129809         better with autoheader.
129811 2000-12-24  Jim Meyering  <meyering@lucent.com>
129813         * lib/hash.c (is_prime): Return explicit boolean values.
129814         (hash_get_first): Return NULL to appease Irix5.6's 89.
129815         Reported by Nelson Beebe.
129817 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
129819         * lib/localcharset.c (locale_charset): Add support for Win32.
129821 2000-12-18  Paul Eggert  <eggert@twinsun.com>
129823         * lib/physmem.h, lib/physmem.c: New files.
129825         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
129826         (noinst_HEADERS): Add physmem.h.
129828         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
129829         't' for compatibility with Solaris 8 sort.
129831 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
129833         * lib/config.charset: Add support for BeOS.
129835 2000-12-17  Jim Meyering  <meyering@lucent.com>
129837         * m4/dos.m4 (jm_AC_DOS): New file and macro.
129838         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
129840 2000-12-16  Jim Meyering  <meyering@lucent.com>
129842         This bug had a serious impact on chown: `chown N:M FILE' (for integer
129843         N and M) would have treated it like `chown N:N FILE'.
129845         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
129847 2000-12-16  Jim Meyering  <meyering@lucent.com>
129849         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
129850         SHELLS_FILE to a file name that's useful on djgpp systems.
129851         Include stdlib.h.
129852         (ADDITIONAL_DEFAULT_SHELLS): Define.
129853         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
129854         Based mostly on a patch from Prashant TR.
129856 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
129858         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
129859         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
129860         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
129862 2000-12-08  Andreas Schwab  <schwab@suse.de>
129864         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
129865         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
129867 2000-12-07  Jim Meyering  <meyering@lucent.com>
129869         * lib/stripslash.c (ISSLASH): Define.
129870         (strip_trailing_slashes): Use ISSLASH rather than comparing against
129871         `/'.
129872         From Prashant TR.
129874         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
129875         (dir_name_r): Declare this function as static.
129876         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
129877         manifest itself on a name containing a mix of slashes and
129878         backslashes.
129879         Make this function work with names starting with a DOS-style
129880         drive letter and colon prefix.
129881         (dir_name): Append `.' if necessary.
129882         Based mostly on patches from Prashant TR and Eli Zaretskii.
129884         * lib/dirname.h (dir_name_r): Remove prototype.
129886 2000-12-06  Paul Eggert  <eggert@twinsun.com>
129888         * m4/off_t-format.m4: Remove this file.
129889         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
129891 2000-12-06  Jim Meyering  <meyering@lucent.com>
129893         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
129894         replacement strtoull, we may well need the replacement strtoul, too.
129895         Check for declarations of strtoul and strtoull.
129896         Check for strtol.  Mainly as a cue to cause automake to include
129897         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129898         Check for limits.h -- strtol.c needs it.
129900 2000-12-05  Jim Meyering  <meyering@lucent.com>
129902         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129904 2000-12-04  Jim Meyering  <meyering@lucent.com>
129906         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129907         Also include memory.h, stdlib.h, unistd.h if appropriate.
129908         Reported by Andreas Jaeger (conflicting declaration of malloc).
129910 2000-12-02  Jim Meyering  <meyering@lucent.com>
129912         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129913         * m4/jm-macros.m4 (jm_MACROS): require it.
129915 2000-12-02  Jim Meyering  <meyering@lucent.com>
129917         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129919 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129921         * lib/memrchr.c: Include <config.h> before any system include file.
129923 2000-11-30  Jim Meyering  <meyering@lucent.com>
129925         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129927 2000-11-30  Jim Meyering  <meyering@lucent.com>
129929         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129931 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129933         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129935 2000-11-26  Jim Meyering  <meyering@lucent.com>
129937         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129939 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129941         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129942         size of (size_t) -1; it's not portable.
129944 2000-11-17  Jim Meyering  <meyering@lucent.com>
129946         * lib/strstr.c: Update from GNU libc.
129948 2000-11-17  Akim Demaille  <akim@epita.fr>
129950         * lib/obstack.h: Formatting changes.
129951         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129952         prevent type checking.
129953         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129954         cast the value to (void *): assigning a `foo *' to a `void *'
129955         variable is valid.
129956         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129958 2000-11-16  Jim Meyering  <meyering@lucent.com>
129960         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129962 2000-11-11  Jim Meyering  <meyering@lucent.com>
129964         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129966 2000-11-10  Jim Meyering  <meyering@lucent.com>
129968         * lib/obstack.h: Update from GNU libc.
129969         * lib/obstack.c: Likewise.
129971 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129973         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129975 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129977         * lib/getusershell.c (setusershell): Use rewind rather than
129978         fseek/fseeko, to avoid configuration hassles with fseeko.
129979         Don't bother opening SHELLS_FILE if shellstream is NULL;
129980         it's not necessary.
129982 2000-11-05  Jim Meyering  <meyering@lucent.com>
129984         * lib/makepath.h (make_dir): Declare.
129985         * lib/makepath.c (make_dir): Remove `static' attribute.
129986         Tweak a comment.
129988 2000-11-04  Jim Meyering  <meyering@lucent.com>
129990         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129992 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129994         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129995         last one in a bucket, advance to the next bucket.
129997 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129999         * lib/fnmatch.c: Do not comment out all the code if we are using
130000         the GNU C library, because in some cases we are replacing buggy
130001         code in the GNU C library itself.
130003 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
130005         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
130006         (regex_compile): Catch bogus \(\1\).
130008 2000-10-30  Paul Eggert  <eggert@twinsun.com>
130010         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
130011         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
130012         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
130014 2000-10-30  Paul Eggert  <eggert@twinsun.com>
130016         * lib/error.h, getline.h, modechange.h:
130017         Remove "2000" from Copyright line, as the file hasn't been
130018         changed this year other than in the copyright notice.
130020         * lib/xalloc.h: Add "2000" to Copyright line, as this file
130021         was changed this year.
130023 2000-10-29  Jim Meyering  <meyering@lucent.com>
130025         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
130026         renaming.
130027         * m4/ls-mntd-fs.m4: Likewise
130029 2000-10-29  Jim Meyering  <meyering@lucent.com>
130031         * lib/xstat.in: Fix grammar in comment.
130033 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
130035         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
130036         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
130037         doesn't define __restrict_arr.
130039 2000-10-28  Jim Meyering  <meyering@lucent.com>
130041         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
130042         (jm_PREREQ_MEMCHR): New function.
130044 2000-10-28  Jim Meyering  <meyering@lucent.com>
130046         * lib/memchr.c: Update from libc.
130047         Adjust for portability:
130048         [HAVE_STDLIB_H]: Include stdlib.h.
130049         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
130050         Undef __memchr, too.
130051         [!weak_alias]: Define __memchr to memchr.
130053         * lib/regex.c: Update from libc.
130054         * lib/regex.h: Likewise.
130055         * lib/getopt1.c: Likewise.
130056         * lib/memcmp.c: Likewise.
130058         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
130059         Avoid using fseek, when possible -- it's broken by design.
130060         Patch by Ulrich Drepper.
130062 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
130064         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
130065         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
130066         Giving in to popular pressure to shut up the compiler with casts.
130068 2000-10-26  Jim Meyering  <meyering@lucent.com>
130070         * lib/strftime.c: Update from libc.
130072 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
130074         * regex.c: More `unsigned char' -> `re_char' changes.
130075         Also change several `int' into `re_wchar_t'.
130076         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
130077         (PUSH_FAILURE_POINTER): Don't cast any more.
130078         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
130079         We want GCC to complain, since this piece of code makes
130080         re_match non-reentrant, which *should* be fixed.
130081         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
130082         (EXTEND_BUFFER): Use RETALLOC.
130083         (SET_LIST_BIT): Don't cast.
130084         (re_wchar_t): New type.
130085         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
130086         that those two functions will always properly return.
130087         (IMMEDIATE_QUIT_CHECK): Cast to void.
130088         (analyse_first): Use recursion rather than an explicit stack.
130089         (re_compile_fastmap): Can't fail anymore.
130090         (re_search_2): Don't check re_compile_fastmap for failure.
130091         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
130092         Now also sets the new value (passed in a new argument).
130093         (re_match_2_internal): Use it.
130094         Also, use a new var `reg' of type size_t when looping through regs
130095         rather than reuse the inappropriate `mcnt'.
130097 2000-10-25  Jim Meyering  <meyering@lucent.com>
130099         * lib/obstack.c: Update from libc.
130101 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
130103         * regex.c (regex_compile): Change the way of handling a range from
130104         a char less than 256 to a char not less than 256.
130106 2000-10-24  Andrew Innes  <andrewi@gnu.org>
130108         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
130109         NT-Emacs only.
130110         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
130111         so that re_search functions only quit when callers expect them to.
130113 2000-10-23  Jim Meyering  <meyering@lucent.com>
130115         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
130116         wrong.  That set_locale call must not have any side effects.
130117         From Paul Eggert.
130119 2000-10-22  Jim Meyering  <meyering@lucent.com>
130121         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
130122         [CYCLIC]: Remove now-unused definition.
130124         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
130125         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
130126         Suggestion from Ulrich Drepper.
130128 2000-10-21  Jim Meyering  <meyering@lucent.com>
130130         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
130131         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
130132         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
130134 2000-10-21  Jim Meyering  <meyering@lucent.com>
130136         * lib/dirname.c (memrchr): Declare if necessary.
130137         (dir_name): Remove the restriction that there be no
130138         trailing slashes.  Now, this code skips past them, effectively
130139         ignoring them.
130140         [TEST_DIRNAME] (main): New unit tests.
130142         * lib/memrchr.c: New file from GNU libc.
130143         Undef __memrchr, too.
130144         [!weak_alias]: Define __memrchr to memrchr.
130145         Guard weak_alias use with `#ifdef weak_alias'.
130147 2000-10-21  Jim Meyering  <meyering@lucent.com>
130149         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
130150         (dir_name): Use dir_name_r.
130151         * lib/dirname.h (dir_name_r): Declare it.
130153 2000-10-17  Jim Meyering  <meyering@lucent.com>
130155         * lib/quote.h (PARAMS): Define and use.
130156         Reported by Akim Demaille.
130158         * lib/getopt.c: Update from libc.
130160 2000-10-16  Jim Meyering  <meyering@lucent.com>
130162         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
130163         setlocale.
130164         From Jan Fedak.
130166 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
130168         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
130170 2000-09-25  Jim Meyering  <meyering@lucent.com>
130172         * lib/md5.h (rol): Define (from GnuPG).
130174         * lib/sha.c: Give credit (GnuPG) where due.
130175         (M): Use rol rather than open-coding it.
130176         Add a FIXME comment.
130178 2000-09-21  Jim Meyering  <meyering@lucent.com>
130180         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
130181         Reported by Michael Stone.
130183 2000-09-20  Jim Meyering  <meyering@lucent.com>
130185         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
130186         (noinst_HEADERS): Add sha.h.
130187         Based on code from Scott G. Miller and from GnuPG.
130189 2000-09-18  Jim Meyering  <meyering@lucent.com>
130191         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
130192         LIBS. Otherwise, everyone ends up linking with -lelf for some
130193         configurations.
130194         Reported by Mike Stone.
130196 2000-09-15  Jim Meyering  <meyering@lucent.com>
130198         * lib/regex.c: Update from libc.
130200 2000-09-10  Jim Meyering  <meyering@lucent.com>
130202         * lib/getopt.c (_getopt_internal): Update from glibc.
130204 2000-09-09  Jim Meyering  <meyering@lucent.com>
130206         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
130207         think it should be used as a general replacement for isascii.
130208         * lib/fnmatch.c: Likewise.
130209         * lib/mbswidth.c: Likewise
130210         * lib/regex.c: Likewise.
130212         Don't use atoi.
130213         * lib/userspec.c: Include sys/param.h and limits.h.
130214         Include xstrtol.h.
130215         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130216         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
130217         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
130218         UID, GID.  Check range.
130220 2000-09-06  Jim Meyering  <meyering@lucent.com>
130222         * lib/getopt.c (_getopt_internal): Update from glibc.
130224 2000-08-30  Jim Meyering  <meyering@lucent.com>
130226         * lib/strftime.c: Merge in changes from GNU libc.
130228 2000-08-26  Jim Meyering  <meyering@lucent.com>
130230         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
130231         * m4/fpending.m4: New file.
130233 2000-08-26  Jim Meyering  <meyering@lucent.com>
130235         * lib/closeout.c: Include "__fpending.h".
130236         (close_stdout_status): Return right away if there's nothing to flush.
130238         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
130239         * lib/__fpending.c: New file.
130240         * lib/__fpending.h: New file.
130242 2000-08-20  Jim Meyering  <meyering@lucent.com>
130244         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
130245         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
130246         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
130248 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
130250         Improve fileutils installation on systems where running
130251         programs (like install) can't be unlinked.
130252         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
130253         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
130255 2000-08-07  Paul Eggert  <eggert@twinsun.com>
130257         Standardize on "memory exhausted" instead of "Memory exhausted"
130258         or "virtual memory exhausted".
130259         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
130260         "virtual memory exhausted".
130261         * lib/same.c (same_name): Invoke xalloc_die instead of printing
130262         our own message.
130263         * lib/userspec.c (parse_user_spec): Likewise.
130264         * lib/bumpalloc.h: comment fix
130265         * lib/same.c, userspec.c: Include xalloc.h.
130267         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
130268         not char *const and pointing to a constant array.
130269         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
130270         (xrealloc): Comment fix.
130272         * lib/userspec.c (parse_user_spec):
130273         Don't translate a message until just before returning,
130274         to avoid unnecessary translation.
130276 2000-08-07  Jim Meyering  <meyering@lucent.com>
130278         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
130279         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
130280         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
130281         getgroups.c, gethostname.c, getopt.h, group-member.c,
130282         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
130283         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
130284         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
130285         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
130286         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
130287         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
130288         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
130289         yesno.c: Back out Copyright date changes for each file with no change
130290         this year.  This eases coordination with other programs using the same
130291         source code modules.  From Paul Eggert.
130293 2000-08-06  Paul Eggert  <eggert@twinsun.com>
130295         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
130296         not char, for compatibility with glibc 2.1.3 strftime.c.
130298 2000-08-03  Greg McGary  <greg@mcgary.org>
130300         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
130301         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
130302         (EXTEND_BUFFER): Use them.
130304 2000-08-01  Jim Meyering  <meyering@lucent.com>
130306         * lib/dirname.c (ISSLASH): Define.
130307         (BACKSLASH_IS_PATH_SEPARATOR): Define.
130308         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
130309         both `\' and `/' may be use as path separators.
130310         Based on a patch from Prashant TR.
130312 2000-07-31  Paul Eggert  <eggert@twinsun.com>
130314         * lib/quotearg.c (quotearg_n_options): Don't make the initial
130315         slot vector a constant, since it might get modified.
130317 2000-07-31  Jim Meyering  <meyering@lucent.com>
130319         * lib/xmalloc.c: Use `virtual memory exhausted', not
130320         `Memory exhausted'.
130321         * lib/obstack.c (print_and_abort): Likewise.
130323 2000-07-30  Paul Eggert  <eggert@twinsun.com>
130325         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
130326         buffer, so that the caller can always quote one small
130327         component of a "memory exhausted" message in slot 0.
130328         From a suggestion by Jim Meyering.
130330 2000-07-30  Jim Meyering  <meyering@lucent.com>
130332         * lib/makepath.c (make_path): Quote the other instance, too.
130334         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
130335         (STATIC_BUF_SIZE): Define.
130336         (quotearg_n_options): Use only statically allocated storage when
130337         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
130338         than STATIC_BUF_SIZE.
130340 2000-07-29  Jim Meyering  <meyering@lucent.com>
130342         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
130343         * lib/dirname.c (dir_name): Likewise.
130345         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
130346         `/'.
130348         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
130349         (dir_name): Assert that there are no trailing slashes.
130351 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
130353         * lib/mbswidth.h (mbswidth): Add a flags argument.
130354         (mbswidth): New declaration.
130355         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
130356         * lib/mbswidth.c (mbswidth): Add a flags argument.
130357         (mbsnwidth): New function.
130359 2000-07-24  Jim Meyering  <meyering@lucent.com>
130361         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
130363 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130365         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
130367 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130369         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
130370         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
130371         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
130372         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
130373         invoke multibyte primitives.
130375 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130377         * lib/quotearg.c:
130378         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
130379         so that mbstate_t is always defined.
130381         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
130382         be 1 in at least one GCC installation, and this configuration
130383         error is likely to be common.  Ignoring MB_LEN_MAX hurts
130384         performance on hosts that have mbrtowc but have only unibyte
130385         locales, but I assume these hosts are rare.
130387 2000-07-23  Paul Eggert  <eggert@twinsun.com>
130389         * lib/mbswidth.c (_XOPEN_SOURCE):
130390         Don't define; this causes problems on Solaris 7.
130391         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
130393 2000-07-23  Jim Meyering  <meyering@lucent.com>
130395         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
130396         too: getgrgid, getpwuid, getuid.
130398 2000-07-23  Jim Meyering  <meyering@lucent.com>
130400         * lib/basename.c (base_name): Add an assertion.
130402 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
130404         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
130405         shadow its mbsinit function.
130407 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
130409         * lib/mbswidth.h: New file.
130410         * lib/mbswidth.c: New file.
130411         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
130412         (noinst_HEADERS): Add mbswidth.h.
130414 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
130416         * lib/config.charset: Add support for FreeBSD. Improve support for
130417         HP-UX and IRIX 6.
130419 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
130421         * m4/mbswidth.m4: New file.
130422         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
130424 2000-07-15  Jim Meyering  <meyering@lucent.com>
130426         * lib/makepath.c: Include quote.h.
130427         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
130428         corresponding argument in a `quote (...)' call.
130429         Give better diagnostics.
130431         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
130432         (noinst_HEADERS): Add quote.h.
130434         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
130435         from tar's src/misc.c.
130436         * lib/quote.h: New file.  Prototypes for same.
130438 2000-07-14  Paul Eggert  <eggert@twinsun.com>
130440         From a suggestion by Bruno Haible.
130441         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
130442         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
130443         to decide whether to define the BeOS workaround macro;
130444         this adjusts to the change to AC_MBSTATE_T.
130446 2000-07-14  Jim Meyering  <meyering@lucent.com>
130448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
130449         jm_AC_TYPE_UINTMAX_T.
130451 2000-07-13  Paul Eggert  <eggert@twinsun.com>
130453         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
130455         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
130456         quotearg_buffer_restyled): Add support for
130457         clocale_quoting_style.  Undo previous change to
130458         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
130459         and "{RIGHT QUOTATION MARK}" msgids.
130461 2000-07-10  Paul Eggert  <eggert@twinsun.com>
130463         From a suggestion by Bruno Haible.
130464         * m4/mbstate_t.m4 (AC_MBSTATE_T):
130465         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
130466         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
130467         and mbstate_t, to a single-part test that simply defines mbstate_t.
130468         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
130469         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
130471 2000-07-10  Jim Meyering  <meyering@lucent.com>
130473         * m4/strerror_r.m4: Mirror the correction made in autoconf.
130475         * m4/gnu-source.m4: Output to confdefs.h directly.
130476         Suggestion from Akim Demaille.
130478 2000-07-09  Paul Eggert  <eggert@twinsun.com>
130480         The old behavior of quoting `like this' doesn't look good with
130481         newer, ISO-style fonts.  See:
130482         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
130484         Instead, quote "like this" by default.  Let the translator
130485         tailor the locale-specific quoting behavior by providing
130486         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
130488         * lib/quotearg.c (N_): New macro.
130489         (gettext_default): New function.
130490         (quotearg_buffer_restyled): Use
130491         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
130492         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
130494 2000-07-09  Jim Meyering  <meyering@lucent.com>
130496         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
130497         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
130499         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
130500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
130502 2000-07-09  Jim Meyering  <meyering@lucent.com>
130504         * lib/Most files: Update copyright dates to include 2000.
130506 2000-07-08  Jim Meyering  <meyering@lucent.com>
130508         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
130509         if not defined.
130510         (xgethostname): Remove now-unnecessary #ifdef.
130511         Move declaration of `err' into loop where it's used.
130513 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130514         and Bruno Haible  <haible@clisp.cons.org>
130516         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
130517         only if the test for an object-type mbstate_t fails.  This
130518         prevents us from mistakenly reporting that mbstate_t is a
130519         system object type after we "#define mbstate_t int" to work
130520         around its lack.
130522 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130523         and Bruno Haible  <haible@clisp.cons.org>
130525         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
130527 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130529         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
130530         to strerror_r.
130531         Include <ctype.h> for use of isalpha.
130533 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130535         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
130536         by allocating a larger buffer. Test the gethostname return value for
130537         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
130538         returns an error and ENAMETOOLONG isn't defined.
130540 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130542         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
130543         dimension.
130545 2000-07-04  Jim Meyering  <meyering@lucent.com>
130547         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
130548         of the deprecated AC_CHECKING.
130550 2000-07-04  Jim Meyering  <meyering@lucent.com>
130552         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
130553         Reported by Bruno Haible.
130555 2000-07-04  Jim Meyering  <meyering@lucent.com>
130557         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
130558         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
130559         lacks mbrtowc.
130561 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130563         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
130564         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
130566 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130567         and Bruno Haible  <haible@clisp.cons.org>
130569         * lib/quotearg.c (mbrtowc):
130570         Assign to *pwc, and return 1 only if result is nonzero.
130571         (iswprint): Use ISPRINT when substituting our own mbrtowc.
130573 2000-07-03  Jim Meyering  <meyering@lucent.com>
130575         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
130577 2000-07-03  Jim Meyering  <meyering@lucent.com>
130579         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
130580         This is necessary to get a definition of e.g., UTMP_FILE on
130581         HP-UX 10.20.
130582         From Bob Proulx.
130584 2000-07-02  Jim Meyering  <meyering@lucent.com>
130586         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
130588         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
130589         AC_LIBOBJ(function_name).
130590         * m4/chown.m4: Likewise.
130591         * m4/fnmatch.m4: Likewise.
130592         * m4/ftruncate.m4: Likewise.
130593         * m4/getgroups.m4: Likewise.
130594         * m4/getline.m4: Likewise.
130595         * m4/group-member.m4: Likewise.
130596         * m4/jm-macros.m4: Likewise.
130597         * m4/lstat.m4: Likewise.
130598         * m4/malloc.m4: Likewise.
130599         * m4/memcmp.m4: Likewise.
130600         * m4/nanosleep.m4: Likewise.
130601         * m4/putenv.m4: Likewise.
130602         * m4/realloc.m4: Likewise.
130603         * m4/regex.m4: Likewise.
130604         * m4/stat.m4: Likewise.
130605         * m4/strftime.m4: Likewise.
130607 2000-07-02  Jim Meyering  <meyering@lucent.com>
130609         * lib/quotearg.c (mbstate_t): Don't define here.
130611 2000-07-02  Jim Meyering  <meyering@lucent.com>
130613         * lib/nanosleep.c (SIGCONT): Define if not already defined.
130615 2000-07-01  Jim Meyering  <meyering@lucent.com>
130617         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
130619 2000-07-01  Jim Meyering  <meyering@lucent.com>
130621         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
130622         problem.
130624 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
130627         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
130629 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130631         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
130632         per change in ../m4/ls-mntd-fs.m4.
130633         (read_filesystem_list): Ignore symbolic links.
130635 2000-06-29  Jim Meyering  <meyering@lucent.com>
130637         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
130638         for declaration of strcmp.
130640         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
130642         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
130643         Avoid warning by casting result to `char *' to remove `const'.
130645 2000-06-28  Jim Meyering  <meyering@lucent.com>
130647         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
130648         included by quotearg.c, for which we perform this test.  From
130649         Bruno Haible.
130651 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130653         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
130654         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
130655         <utmpx.h> exists, put readutmp.o into LIBOBJS.
130657 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130659         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
130661 2000-06-26  Paul Eggert  <eggert@twinsun.com>
130663         savedir now sets errno on failure and invokes xmalloc to get memory.
130664         Fix a couple of other minor bugs while we're at it.
130666         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
130667         (NAMLEN): Remove macro.
130668         (malloc, realloc): Remove decls.
130669         (stpcpy): Likewise.
130670         ("xalloc.h"): Include.
130671         (NAME_SIZE_DEFAULT): New macro.
130672         (savedir): Use xmalloc / xrealloc to allocate memory.
130673         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
130674         Skip "" directory entries.
130675         Use strlen to calculate directory entry length, since the old method
130676         is rarely used these days and isn't worth supporting.
130677         Don't use a pointer after freeing it.
130678         Check for integer overflow when calculating allocation size.
130679         Use memcpy to copy entries, instead of stpcpy.
130680         Set errno properly when returning NULL.
130681         Check for readdir error.
130683 2000-06-26  Jim Meyering  <meyering@lucent.com>
130685         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
130687 2000-06-25  Jim Meyering  <meyering@lucent.com>
130689         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
130690         Linux header bug when _XOPEN_SOURCE is defined to 500.
130692 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130694         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
130695         deficiency.
130697 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130699         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
130700         Include xalloc.h.
130701         Don't include <stdlib.h>.  Don't declare malloc, realloc.
130703 2000-06-24  Jim Meyering  <meyering@lucent.com>
130705         * m4/strerror_r.m4: Revive this file -- to try out an experimental
130706         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
130707         for which strerror does return char*, but which lacks a conveniently
130708         accessible declaration of the function.  If the compile-test says
130709         strerror_r doesn't work, then resort to a `run'-test that works on
130710         BeOS and segfaults on DEC Unix.
130712 2000-06-24  Jim Meyering  <meyering@lucent.com>
130714         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
130716 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130718         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
130719         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
130721 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130723         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
130724         (mbrtowc, mbstate_t): Define substitutes if
130725         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
130726         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
130727         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
130729 2000-06-23  Jim Meyering  <meyering@lucent.com>
130731         * m4/afs.m4: Add missing AC_MSG_RESULT.
130732         Reported by Bruno Haible.
130734         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
130735         Suggestion from Bruno Haible.
130737 2000-06-23  Jim Meyering  <meyering@lucent.com>
130739         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
130741 2000-06-21  Jim Meyering  <meyering@lucent.com>
130743         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
130745 2000-06-21  Jim Meyering  <meyering@lucent.com>
130747         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
130748         (noinst_HEADERS): Add getstr.h.
130750         * lib/getline.c (getstr): Move into a separate file.
130751         * lib/getstr.c (getstr): New file, extracted from getline.c, with
130752         the following changes: new parameter, delim2; both delim[12]
130753         parameters have type `int', not `char'.  The latter would lose
130754         with 8-bit delimiters.
130755         * lib/getstr.h: New file.
130757 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130759         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
130760         than 1024, return a memory chunk of least possible size, instead
130761         of size PATH_MAX + 2. In the loop, increment the size proportionally.
130762         Use free/xmalloc instead of xrealloc to avoid copying for very long
130763         paths.
130765 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130767         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
130768         the empty string.
130770 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130772         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
130773         address, not strdup.  Include <stdlib.h> and don't declare free().
130775 2000-06-19  Jim Meyering  <meyering@lucent.com>
130777         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
130779 2000-06-18  Jim Meyering  <meyering@lucent.com>
130781         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
130783         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
130784         `checking whether...' message to be consistent with that of the
130785         lstat test.
130787 2000-06-18  Jim Meyering  <meyering@lucent.com>
130789         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
130790         Besides, these days every porting target provides a mkdir function.
130792         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
130793         needed. (this snippet comes from src/system.h).
130795 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
130797         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
130799 2000-06-15  Paul Eggert  <eggert@twinsun.com>
130801         * lib/human.c (adjust_value): New function.
130802         (human_readable_inexact): Apply rounding style even when
130803         printing approximate values.
130805 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130807         * lib/human.c (human_readable_inexact): Allow an input block
130808         size that is not a multiple of the output block size, and vice versa.
130809         Reported by Piergiorgio Sartor.
130811 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130813         * lib/getdate.y (get_date): Apply relative times after time
130814         zone indicator, not before.  Reported by Todd A. Jacobs.
130816 2000-06-13  Jim Meyering  <meyering@lucent.com>
130818         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
130820         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
130822 2000-06-12  Paul Eggert  <eggert@twinsun.com>
130824         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
130826 2000-06-12  Jim Meyering  <meyering@lucent.com>
130828         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
130829         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
130830         optional argument.
130831         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
130832         the optional argument, `lib'.
130834 2000-06-08  Jim Meyering  <meyering@lucent.com>
130836         * m4/largefile.m4: Remove file (now that it's part of autoconf).
130838 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130840         Rewrite largefile configuration so that we don't need to run
130841         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
130842         AC_CANONICAL_HOST in configure.in -- jmm]
130844         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
130845         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
130846         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
130847         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
130848         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
130849         All uses changed.
130850         Instead of inspecting the output of getconf, try to compile the
130851         test program without and with the macro definition.
130852         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
130853         for getconf.  Instead, check for the needed flags by compiling
130854         test programs.
130856 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130858         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
130860 2000-06-04  Jim Meyering  <meyering@lucent.com>
130862         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
130863         SunOS 4.1.4 for which gid_t is an unsigned type.
130865 2000-06-03  Jim Meyering  <meyering@lucent.com>
130867         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
130868         now that autoconf requires that.
130870         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
130871         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
130872         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
130874 2000-06-03  Jim Meyering  <meyering@lucent.com>
130876         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
130878 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130880         * m4/glibc21.m4: New file.
130881         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
130883 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130885         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
130886         newer, don't install charset.alias.
130887         * lib/config.charset: Change the Linux/glibc rules so they become empty
130888         on glibc-2.1 or newer.
130890 2000-06-02  Jim Meyering  <meyering@lucent.com>
130892         * lib/mountlist.c: Back out last change.  Instead, do this...
130893         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
130894         me_dummy member using the same `ignore'-testing code.
130895         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130896         fs_type strings.
130897         From Mark D. Roth.
130899 2000-05-29  Jim Meyering  <meyering@lucent.com>
130901         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130902         mounts with the `ignore' attribute.  Based on a patch from
130903         Mark D. Roth.
130905 2000-05-28  Jim Meyering  <meyering@lucent.com>
130907         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130908         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130909         * m4/stat.m4: Likewise.
130910         * m4/lstat.m4: Likewise.
130911         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130913         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130914         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130916 2000-05-26  Jim Meyering  <meyering@lucent.com>
130918         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130920 2000-05-24  Jim Meyering  <meyering@lucent.com>
130922         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130923         autoconf requires that.
130924         * m4/lib-check.m4: Likewise.
130925         * m4/jm-macros.m4: Likewise.
130926         * m4/strftime.m4: Likewise.
130928         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130929         AC_CHECK_DECLS, now that autoconf requires that.
130931 2000-05-22  Jim Meyering  <meyering@lucent.com>
130933         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130934         * m4/lstat.m4: Likewise.
130936 2000-05-22  Jim Meyering  <meyering@lucent.com>
130938         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130940 2000-05-20  Jim Meyering  <meyering@lucent.com>
130942         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130943         (jm_PREREQ): Use it.
130945 2000-05-18  Jim Meyering  <meyering@lucent.com>
130947         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130948         back, too, since it may have been modified by allocate_entry.
130949         (hash_delete): Rewrite to use neither the assignment operator
130950         nor the comma operator in an if-expression.
130952 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130954         * lib/closeout.c:
130955         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130956         Remove; no longer needed.
130957         "quotearg.h": Add include.
130958         (file_name): Do not bother to explicitly initialize to NULL; it's less
130959         efficient on some hosts.
130960         (close_stdout_status): Remove test as to whether stdout was already
130961         closed; it breaks for the case "echo x | sort >&-".
130962         Quote file name colons.
130963         Do not assume that _("write error") lacks format strings.
130965 2000-05-15  Jim Meyering  <meyering@lucent.com>
130967         * lib/version-etc.c (version_etc_copyright): Update the copyright
130968         string used in all --version output.
130970 2000-05-14  Jim Meyering  <meyering@lucent.com>
130972         * lib/closeout.c (close_stdout_set_file_name): New function.
130973         (close_stdout_status): Use new file-scoped global.
130974         Return right away if fstat says the stdout file descriptor is invalid.
130975         * lib/closeout.h (close_stdout_set_file_name): Declare.
130977 2000-05-10  Jim Meyering  <meyering@lucent.com>
130979         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130980         (close_stdout_set_status): New function.
130981         * lib/closeout.h (close_stdout_set_status): Declare.
130983 2000-05-09  Jim Meyering  <meyering@lucent.com>
130985         * m4/gettext.m4: Rename this...
130986         * m4/libintl.m4: ...to this.
130988 2000-05-08  Jim Meyering  <meyering@lucent.com>
130990         * lib/long-options.c: Don't include closeout.h.
130991         (parse_long_options): Don't call close_stdout for --version.
130993 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130995         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130996         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130997         2.1.3 bug.  This avoids a clash when files like regex.c define
130998         _GNU_SOURCE.
131000 2000-05-06  Jim Meyering  <meyering@lucent.com>
131002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
131003         (AC_REPLACE_FUNCS): Add strnlen.
131005         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
131006         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
131008         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
131009         AC_SEARCH_LIBS call for nanosleep.
131010         (LIB_NANOSLEEP): Set and AC_SUBST.
131012 2000-05-06  Jim Meyering  <meyering@lucent.com>
131014         * lib/strnlen.c: Undefine __strnlen and strnlen.
131015         [!weak_alias]: Define __strnlen to strnlen.
131017         * lib/atexit.c: New file, from libiberty.
131019 2000-05-06  Jim Meyering  <meyering@lucent.com>
131021         * lib/closeout.c (close_stdout_status): Also check for errors on the
131022         stderr stream.
131024 2000-05-05  Jim Meyering  <meyering@lucent.com>
131026         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
131027         AC_SEARCH_LIBS call for clock_gettime.
131028         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
131030         * m4/search-libs.m4: Update from autoconf.
131032         su doesn't work on Solaris 2.6.
131033         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
131034         <shadow.h>.  Reported by Dragos Harabor.
131036 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
131038         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
131039         memcpy instead of xmalloc, xrealloc, path_concat.
131040         (locale_charset): Treat empty environment variables as absent.
131041         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
131043 2000-05-04  Jim Meyering  <meyering@lucent.com>
131045         * lib/getopt.c: Update from glibc.
131046         * lib/obstack.c: Likewise.
131047         * lib/obstack.h: Likewise.
131048         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
131049         file
131051         * lib/regex.h: Likewise.
131052         * lib/strndup.c: Likewise.
131053         * lib/strnlen.c: New file, from glibc.
131055 2000-05-03  Jim Meyering  <meyering@lucent.com>
131057         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
131059 2000-05-02  Paul Eggert  <eggert@twinsun.com>
131061         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
131062         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
131063         compile-time test, rather than inspecting host and OS, to
131064         decide whether to define _LARGEFILE_SOURCE.
131066 2000-05-01  Jim Meyering  <meyering@lucent.com>
131068         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
131070         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
131071         Based on a patch from Bruno Haible.
131073 2000-05-01  Jim Meyering  <meyering@lucent.com>
131075         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
131077 2000-04-29  Jim Meyering  <meyering@lucent.com>
131079         * lib/path-concat.c: Declare strdup only if it's not defined.
131080         * lib/canon-host.c: Likewise.
131082 2000-04-28  Jim Meyering  <meyering@lucent.com>
131084         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
131085         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
131086         is included first, then limits.h is included by locale.h by libintl.h.
131087         From John David Anglin.
131089 2000-04-25  Jim Meyering  <meyering@lucent.com>
131091         * lib/makepath.c (S_IRWXUGO): Define.
131092         (make_path): Always perform explicit chmod if MODE specifies any
131093         of the `special' permission bits.  Prompted by a bug report against
131094         install from Mate Wierdl and Joost van Baal.
131096 2000-04-18  Jim Meyering  <meyering@lucent.com>
131098         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
131099         (jm_PREREQ): Use it.
131101 2000-04-18  Jim Meyering  <meyering@lucent.com>
131103         * lib/README: New file.
131105         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
131106         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
131108 2000-04-17  Jim Meyering  <meyering@lucent.com>
131110         Get it right :-)
131111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
131112         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
131113         Suggestion from Akim Demaille.
131115 2000-04-17  Jim Meyering  <meyering@lucent.com>
131117         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
131118         the definition of it to rpl_strftime also defined-away the system's
131119         declaration.
131121 2000-04-15  Jim Meyering  <meyering@lucent.com>
131123         Use `C' to denote so-called `contiguous' files, the same way
131124         that tar does.
131125         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
131126         (ftypelet): Use S_ISCTG.
131127         From Michael Deutschmann.
131129 2000-04-14  Jim Meyering  <meyering@lucent.com>
131131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
131132         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
131133         clobbered.
131135 2000-04-14  Jim Meyering  <meyering@lucent.com>
131137         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
131139 2000-04-13  Jim Meyering  <meyering@lucent.com>
131141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
131142         AH_VERBATIM to insert required #ifndef into config.h.in.
131143         Suggestion from Akim Demaille.
131145 2000-04-12  Jim Meyering  <meyering@lucent.com>
131147         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
131148         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
131149         Christian Krackowizer.
131151         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
131152         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
131153         (AC_SYS_LARGEFILE): Require.
131154         (AM_C_PROTOTYPES): Require.
131156 2000-04-08  Jim Meyering  <meyering@lucent.com>
131158         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
131159         names don't conflict.  Reported by Eli Zaretskii.
131161 2000-04-07  Jim Meyering  <meyering@lucent.com>
131163         * lib/putenv.c: Move inclusion of errno.h so it follows that of
131164         sys/types.h, to work around system header problems on AIX 3.2.5.
131165         From Bruno Haible.
131167 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
131169         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
131170         bug.  Deal with the different error behavior of Irix iconv.
131172 2000-04-05  Paul Eggert  <eggert@twinsun.com>
131174         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
131175         IRIX if the installer said otherwise.
131177 2000-04-05  Jim Meyering  <meyering@lucent.com>
131179         Portability tweaks required for ultrix4.3.
131180         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
131181         (jm_CHECK_DECLS): Add getutent to the list of functions.
131182         (_jm_DECL_HEADERS): Add utmpx.h.
131183         From John David Anglin.
131185         * m4/strftime.m4: Back out the 2000-04-02 change.
131186         Instead of that change, simply undefine putenv in the test program.
131188 2000-04-05  Jim Meyering  <meyering@lucent.com>
131190         Portability tweaks required for ultrix4.3.
131191         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
131192         getutent.
131193         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
131194         * lib/canon-host.c: Declare strdup.
131195         * lib/path-concat.c: Likewise.
131196         From John David Anglin.
131198 2000-04-04  Jim Meyering  <meyering@lucent.com>
131200         Be more DOS 8.3-friendly.
131201         * lib/ref-add.sin: Renamed from ref-add.sed.in.
131202         * lib/ref-del.sin: Renamed from ref-del.sed.in.
131203         * lib/Makefile.am: Reflect renaming.
131204         Reported by Eli Zaretskii.
131206         Use a temporary file name that won't clash with `charset.alias'
131207         in the DOS 8.3 name space.
131208         * lib/Makefile.am (charset_tmp): Define.
131209         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
131210         (uninstall-local): Likewise.
131211         Reported by Eli Zaretskii.
131213 2000-04-03  Jim Meyering  <meyering@lucent.com>
131215         * m4/gettext.m4: Fix typo in comment.
131217         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
131218         textutils/configure.in).  Suggestion from Paul Eggert.
131219         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
131221 2000-04-02  Paul Eggert  <eggert@twinsun.com>
131223         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
131224         variable in the shell rather than using putenv, which isn't
131225         portable.  This avoids the configure-time inter-test dependency
131226         on the potentially-renamed putenv function.
131228 2000-03-30  Paul Eggert  <eggert@twinsun.com>
131230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
131231         before checking struct stat.st_blksize, so that
131232         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
131234 2000-03-29  Paul Eggert  <eggert@twinsun.com>
131236         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
131237         since strftime.c uses HAVE_STRFTIME to decide whether to use
131238         the underlying strftime.
131240 2000-03-29  Paul Eggert  <eggert@twinsun.com>
131242         * lib/time/strftime.c (my_strftime): Make sure we call the system
131243         strftime, not ourselves, when invoking the underlying strftime.
131245 2000-03-24  Jim Meyering  <meyering@lucent.com>
131247         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
131248         (charset_alias): Define.
131249         (install-exec-local): Factor out common code.
131250         (uninstall-local): Split lines longer than 80.
131251         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
131252         (SUFFIXES): Define.
131253         (.sed.in.sed): New rule.  Don't redirect directly to $@.
131254         (CLEANFILES): Add ref-add.sed and ref-del.sed.
131256 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
131258         * lib/config.charset: Output a line containing "Packages using this
131259         file".
131260         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
131261         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
131262         ref-del.sed): New rules.
131264 2000-03-17  Jim Meyering  <meyering@lucent.com>
131266         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
131267         Otherwise, include <strings.h>
131269 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
131271         * lib/unicodeio.c (utf8_wctomb): New function.
131272         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
131273         format instead of in UCS-4 with platform dependent endianness.
131275 2000-03-10  Jim Meyering  <meyering@lucent.com>
131277         * m4/lib-check.m4: Look for getspnam in -lgen, too.
131278         From Marco Franzen.
131280 2000-03-07  Paul Eggert  <eggert@twinsun.com>
131282         * lib/savedir.c (savedir): Work even if directory size is
131283         negative; this can happen with some screwy NFS configurations.
131285 2000-03-06  Jim Meyering  <meyering@lucent.com>
131287         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
131288         if it's NULL (because we ran out of memory).  From Bruno Haible.
131290 2000-03-05  Jim Meyering  <meyering@lucent.com>
131292         * lib/localcharset.c ("path-concat.h"): Include.
131293         (get_charset_aliases): Use path_concat instead of ANSI string
131294         concatenation.
131296         * lib/unicodeio.h (PARAMS): Define.
131297         Use it to guard prototype.
131299 2000-03-04  Jim Meyering  <meyering@lucent.com>
131301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
131302         for lib/localcharset.c.
131304 2000-03-04  Jim Meyering  <meyering@lucent.com>
131306         * lib/Makefile.am (install-exec-local): Create $(libdir) before
131307         installing into it.
131308         (uninstall-local): Uncomment this rule so `make distcheck' works
131309         once again.
131311         * lib/unicodeio.c (<errno.h>): Include it.
131312         (errno): Declare if not defined.
131314         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
131316         * lib/config.charset: New version, incorporating remarks from a linux
131317         i18n mailing list.  From Bruno Haible.
131319 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
131321         * m4/codeset.m4: New file.
131322         * m4/iconv.m4: New file.
131323         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
131325 2000-03-03  Jim Meyering  <meyering@lucent.com>
131327         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
131329 2000-03-02  Jim Meyering  <meyering@lucent.com>
131331         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
131332         the messages come out on separate lines.
131334         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
131335         rather than jm_CHECK_DECLARATIONS.
131336         * m4/decl.m4: Remove now-unused file.
131338         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
131339         geteuid.
131341 2000-03-02  Jim Meyering  <meyering@lucent.com>
131343         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
131345 2000-03-01  Jim Meyering  <meyering@lucent.com>
131347         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
131348         * lib/unicodeio.c: Likewise.
131350 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
131352         * lib/config.charset: New file.
131353         * lib/localcharset.c: New file.
131354         * lib/unicodeio.h, lib/unicodeio.c: New files.
131355         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
131356         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
131357         (noinst_HEADERS): Add unicodeio.h.
131358         (all-local, install-exec-local, charset.alias): New targets.
131360 2000-02-28  Paul Eggert  <eggert@twinsun.com>
131362         * lib/quotearg.c (ALERT_CHAR): New macro.
131363         (quotearg_buffer_restyled): Use it.
131365 2000-02-27  Jim Meyering  <meyering@lucent.com>
131367         * m4/check-decl.m4: Add getenv to the list.
131369 2000-02-27  Jim Meyering  <meyering@lucent.com>
131371         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
131372         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
131374         * lib/backupfile.c: Guard inclusion of stdlib.h with
131375         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
131376         Declare malloc if needed.
131378         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
131379         `#ifndef HAVE_DECL..'
131380         now that autoconf always defines the HAVE_DECL_ symbols.
131381         * lib/human.c: Likewise.
131382         * lib/same.c: Likewise.
131383         * lib/strtoumax.c: Likewise.
131385         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
131386         declaration check was not run.
131387         * lib/hash.c: Likewise.
131388         * lib/human.c: Likewise.
131389         * lib/same.c: Likewise.
131390         * lib/strtoumax.c: Likewise.
131392         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
131393         `.', then first look up the entire `.'-containing string as a login
131394         name.
131396 2000-02-23  Jim Meyering  <meyering@lucent.com>
131398         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
131399         in place of my hack.
131401 2000-02-18  Paul Eggert  <eggert@twinsun.com>
131403         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
131404         (textint): New typedef.
131405         (parser_control): Member year changed from int to textint.
131406         All uses changed.
131407         (YYSTYPE): Removed; replaced by %union with int and textint members.
131408         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
131409         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
131410         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
131411         (tSNUMBER, tUNUMBER): Now of type <textintval>.
131412         (date, number, to_year): Use width of number in digits, not its value,
131413         to determine whether it's a 2-digit year, or a 2-digit time.
131414         (yylex): Store number of digits of numeric tokens.
131415         Reported by John Kendall.
131417         (parser_control): Changed from struct parser_control to typedef (for
131418         consistency).  All uses changed.
131420         (tID): Removed; not used.
131421         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
131423 2000-02-14  Paul Eggert  <eggert@twinsun.com>
131425         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
131426         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
131428 2000-02-12  Jim Meyering  <meyering@lucent.com>
131430         * lib/userspec.c (ISDIGIT): Define it.
131431         (isdigit): Remove definition.
131432         (is_number): Use ISDIGIT, not isdigit.
131433         <libintl.h>: Include.
131434         (_ and N_): Define.
131435         (parse_user_spec): Mark translatable strings.
131437 2000-02-10  Jim Meyering  <meyering@lucent.com>
131439         With these changes, nanosleep.[ch] are finally enough like the other
131440         lib/* replacement files to compile on a few more losing systems.
131442         * lib/nanosleep.h: Don't include config.h.
131443         Remove prototype from declaration of nanosleep.
131444         (PARAMS): Remove now-unneeded definition.
131445         * lib/nanosleep.c: #undef nanosleep.
131446         (rpl_nanosleep): Rename from nanosleep.
131448 2000-02-10  Jim Meyering  <meyering@lucent.com>
131450         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
131451         gnu_nanosleep to rpl_nanosleep.
131453 2000-02-09  Jim Meyering  <meyering@lucent.com>
131455         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
131456         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
131458 2000-02-08  Akim Demaille  <akim@epita.fr>
131460         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
131461         `[' and `]' and remove uses of `changequote'.
131462         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
131463         (AC_SYS_LARGEFILE): Likewise.
131464         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
131465         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
131466         of changequote.
131467         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
131468         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
131469         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
131470         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
131472 2000-02-05  Jim Meyering  <meyering@lucent.com>
131474         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
131475         Remove explicit use of AC_HEADER_TIME.  It is required by
131476         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
131477         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
131478         in autoconf whereby the expansion of the latter ended up preceding
131479         the expansion of its prerequisite, AC_HEADER_TIME.
131480         Reported by Volker Borchert.
131482 2000-02-03  Jim Meyering  <meyering@lucent.com>
131484         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
131486 2000-02-03  Jim Meyering  <meyering@lucent.com>
131488         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
131489         rather than with `#if HAVE_UTMPNAME'.
131491 2000-02-02  Jim Meyering  <meyering@lucent.com>
131493         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
131494         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
131495         Reported by Eli Zaretskii.
131497 2000-02-01  Jim Meyering  <meyering@lucent.com>
131499         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
131501 2000-01-31  Jim Meyering  <meyering@lucent.com>
131503         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
131504         functions.  Add the time.h and sys/time.h headers along with the
131505         AC_REQUIRE'ment of AC_HEADER_TIME.
131507 2000-01-31  Jim Meyering  <meyering@lucent.com>
131509         * lib/nanosleep.h (nanosleep): Guard declaration with
131510         `#if ! HAVE_DECL_NANOSLEEP'.
131511         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
131512         the declaration in that vendor's sys/timers.h.
131513         Reported by Christian Krackowizer.
131515         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
131516         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
131517         (ISPRINT): Likewise.
131518         Reported by Tom Tromey.
131520 2000-01-30  Jim Meyering  <meyering@lucent.com>
131522         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
131524         * m4/prereq.m4 (utmp_includes): Define.
131525         Check for ut_user and ut_name members in both struct utmpx
131526         and struct utmp.
131528 2000-01-30  Jim Meyering  <meyering@lucent.com>
131530         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
131531         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
131532         header files where only utmpx.ut_user is declared.
131534         * lib/readutmp.h (UT_USER): Define.
131536 2000-01-29  Jim Meyering  <meyering@lucent.com>
131538         * m4/lib-check.m4: New file containing library-related checks from
131539         fileutils and sh-utils (textutils had none).
131541 2000-01-28  Jim Meyering  <meyering@lucent.com>
131543         * m4/perl.m4: Change format of warning message to look more like that
131544         from the missing script.  Suggestion from François Pinard.
131546 2000-01-25  Jim Meyering  <meyering@lucent.com>
131548         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
131549         well as time.h in the compile check.
131550         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
131551         Fix typo in cross-compiling case: s/yes/no/.
131553 2000-01-23  Jim Meyering  <meyering@lucent.com>
131555         * m4/jm-macros.m4: Move df-related tests here from
131556         fileutils/configure.in
131558         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
131559         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
131561         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
131562         s/space/ac_fsusage_space/.
131563         (jm_FILE_SYSTEM_USAGE): Take two parameters.
131565         * m4/ftruncate.m4: New file (derived from part of
131566         fileutils/configure.in).
131567         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
131568         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
131570         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
131571         AC_SUBST these here, rather than just in sh-util/configure.in, so
131572         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
131573         all the same.
131574         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
131575         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
131576         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
131577         (AC_SUBST(POW_LIBM)): Likewise.
131578         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
131580 2000-01-23  Jim Meyering  <meyering@lucent.com>
131582         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
131583         obstack.c.
131585 2000-01-22  Jim Meyering  <meyering@lucent.com>
131587         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
131589         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
131591         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
131592         configure.in
131593         (AC_CHECK_HEADERS): Likewise for sh-utils.
131594         (AC_CHECK_HEADERS): Likewise for textutils.
131595         Merge the three lists of headers.
131597         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
131598         from fileutils' configure.in.
131600         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
131601         code. Moved tests into their own function (_jm_DECL_HEADERS) in
131602         check-decl.m4.
131604         * m4/check-decl.m4: Use #if rather than #ifdef.
131605         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
131606         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
131607         (_jm_DECL_HEADERS): Define new function.
131608         (jm_CHECK_DECLARATIONS): Require it.
131610 2000-01-22  Jim Meyering  <meyering@lucent.com>
131612         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
131613         [! HAVE_DECL_STRTOULL]: Declare strtoull.
131614         Required for some AIX systems.  Reported by Christian Krackowizer.
131615         [TESTING] (main): New function.
131617         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
131618         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
131619         letters.
131621         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
131622         iswprint.
131624         * lib/strverscmp.c (ISDIGIT): Define.
131625         (strverscmp): Use ISDIGIT, not isdigit.
131627 2000-01-19  Jim Meyering  <meyering@lucent.com>
131629         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
131630         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
131631         defines `struct timespec' in <sys/time.h>
131633         * m4/c-bs-a.m4: Remove uses of changequote altogether.
131634         Thanks to Akim for explaining.
131636 2000-01-17  Paul Eggert  <eggert@twinsun.com>
131638         * lib/nanosleep.c (nanosleep):
131639         Don't use SA_INTERRUPT to decide whether to call sigaction, as
131640         POSIX.1 doesn't require SA_INTERRUPT and some systems
131641         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
131642         it's been part of POSIX.1 since day 1 (in 1988).
131644 2000-01-17  Jim Meyering  <meyering@lucent.com>
131646         * lib/interlock: Remove unused file.  Reported by François Pinard.
131648 2000-01-16  Paul Eggert  <eggert@twinsun.com>
131650         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
131651         alert, backslash, formfeed, and vertical tab unnecessarily in
131652         shell quoting style.
131654 2000-01-16  Jim Meyering  <meyering@lucent.com>
131656         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
131657         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
131658         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
131659         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
131661 2000-01-16  Jim Meyering  <meyering@lucent.com>
131663         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
131664         because the latter didn't work.
131666 2000-01-15  Jim Meyering  <meyering@lucent.com>
131668         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
131669         (AC_REPLACE_FUNCS): Add memcpy and memset.
131670         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
131671         Add strpbrk.
131672         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
131674 2000-01-12  Jim Meyering  <meyering@lucent.com>
131676         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
131677         (jm_PREREQ): Use it.
131678         (jm_PREREQ_READUTMP): New macro.
131679         (jm_PREREQ): Use it.
131681 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131683         Quote multibyte characters correctly.
131684         * m4/c-bs-a.m4: New file.
131685         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
131686         (jm_PREREQ): Use it.
131688 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131690         * m4/uintmax_t.m4: Port to autoconf 2.13.
131692 2000-01-08  Jim Meyering  <meyering@ascend.com>
131694         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
131695         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
131697 2000-01-04  Jim Meyering  <meyering@ascend.com>
131699         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
131700         jm_STRUCT_DIRENT_D_TYPE.
131701         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
131702         jm_STRUCT_DIRENT_D_INO.
131703         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
131704         jm_STRUCT_UTIMBUF.
131705         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
131706         renamings.
131707         * m4/utime.m4: Likewise.
131709         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
131710         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
131712 2000-01-03  Paul Eggert  <eggert@twinsun.com>
131714         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
131715         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
131717 2000-01-02  Jim Meyering  <meyering@ascend.com>
131719         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
131720         remember if this is necessary.
131722 1999-12-26  Jim Meyering  <meyering@ascend.com>
131724         * m4/jm-macros.m4: Use it here.
131725         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
131727 1999-12-23  Jim Meyering  <meyering@ascend.com>
131729         * m4/jm-macros.m4: Check for clock_gettime (moved from
131730         fileutils/configure.in)
131731         Check for gettimeofday.
131733 1999-12-20  Jim Meyering  <meyering@ascend.com>
131735         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
131736         autoconf-2.14a-1999-12-20.
131738 1999-12-19  Jim Meyering  <meyering@ascend.com>
131740         * m4/lstat-slash.m4: New file.
131741         * m4/jm-macros.m4: Use the new macro:
131742         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
131744 1999-12-07  Jim Meyering  <meyering@ascend.com>
131746         * m4/perl.m4: Require that File::Compare be available, too.
131747         Too many systems seem to lack it.
131749         * m4/strftime.m4: Add checks for most of the cpp macros tested in
131750         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
131752 1999-11-18  Paul Eggert  <eggert@twinsun.com>
131754         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
131755         problem with the QNX 4.25 shell, which doesn't propagate exit
131756         status of failed commands inside shell assignments.
131758 1999-11-17  Jim Meyering  <meyering@ascend.com>
131760         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
131762 1999-11-07  Jim Meyering  <meyering@ascend.com>
131764         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
131766 1999-11-06  Jim Meyering  <meyering@ascend.com>
131768         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
131769         * m4/jm-macros.m4 (jm_MACROS): Use it here.
131771 1999-11-05  Jim Meyering  <meyering@ascend.com>
131773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
131774         configure.in of textutils, fileutils, and sh-utils into this one
131775         (shared between those packages) file.
131776         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
131777         AC_STRUCT_ST_BLKSIZE.
131779 1999-11-03  Jim Meyering  <meyering@ascend.com>
131781         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
131782         of AC_CHECK_TYPE checks includes unistd.h.
131783         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
131784         Suggestion from Akim Demaille.
131786 1999-10-30  Jim Meyering  <meyering@ascend.com>
131788         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
131789         m4-quoted string.
131790         * m4/ls-mntd-fs.m4: Likewise.
131791         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
131792         * m4/jm-winsz1.m4: Likewise.
131794         * m4/const.m4: Remove file, since the fix made it into the experimental
131795         version of autoconf.
131796         * m4/mktime.m4: Likewise.
131798         * m4/check-type.m4: Remove file, now that the latest version of
131799         AC_CHECK_TYPE takes a third arg to specify additional #includes.
131801         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
131802         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
131803         AC_CHECK_TYPE.
131805 1999-10-04  Jim Meyering  <meyering@ascend.com>
131807         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
131809 1999-09-22  Paul Eggert  <eggert@twinsun.com>
131811         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
131812         2.95.1 bug with HP-UX 10.20.
131814 1999-09-17  Jim Meyering  <meyering@ascend.com>
131816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
131817         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
131818         due to missing strdup (against sh-utils-2.0).
131820 1999-08-29  Jim Meyering  <meyering@ascend.com>
131822         * m4/jm-macros.m4: Require jm_BISON.
131823         * m4/bison.m4: New file.
131825 1999-08-17  Paul Eggert  <eggert@twinsun.com>
131827         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
131828         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
131830 1999-08-05  Jim Meyering  <meyering@ascend.com>
131832         * m4/getline.m4: Rename test file from conftestdata to conftest.data
131833         to avoid conflicts with `conftest' on 8+3 filesystems.
131834         Suggestion from Eli Zaretskii.
131836 1999-08-04  Jim Meyering  <meyering@ascend.com>
131838         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
131839         fileutils and sh-utils (textutils's getline test was inadequate).
131840         (AM_FUNC_GETLINE): Run this test.
131841         (AC_CHECK_FUNCS): Check for getdelim.
131842         Reported by Bob Proulx.
131844 1999-08-02  Jim Meyering  <meyering@ascend.com>
131846         * m4/jm-macros.m4: Add a comment.
131848 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131850         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
131851         <inttypes.h> defines strtoumax as a macro (and not as a
131852         function).
131854 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131856         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
131857         that we can shift, multiply and divide unsigned long long
131858         values; Ultrix cc can't do it.
131860 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131862         * m4/mktime.m4: New file, which is a preview of what should appear
131863         in the next public autoconf release.
131865 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131867         * m4/lfs.m4: Remove this file.
131868         * m4/largefile.m4: New file.  It contains the old contents of
131869         lfs.m4, except that all names with prefix AC_LFS have been
131870         changed to use the prefix AC_SYS_LARGEFILE instead, to be
131871         compatible with future autoconf versions.  Also, some minor m4
131872         quoting problems have been fixed.
131874 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131876         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
131877         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
131878         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
131879         and simplify the shell code.
131881 1999-08-01  Jim Meyering  <meyering@ascend.com>
131883         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
131884         m4.
131886 1999-07-20  Jim Meyering  <meyering@ascend.com>
131888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
131890 1999-07-15  Jim Meyering  <meyering@ascend.com>
131892         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
131894 1999-05-22  Jim Meyering  <meyering@ascend.com>
131896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131898 1999-05-20  Jim Meyering  <meyering@ascend.com>
131900         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131901         Add a colon after each `then' in case $4 is empty.
131903 1999-05-16  Jim Meyering  <meyering@ascend.com>
131905         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131907 1999-05-10  Jim Meyering  <meyering@ascend.com>
131909         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131911         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131912         AC_FUNC_MKTIME.
131914 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131916         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131918 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131920         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131921         not CPPFLAGS, so that linking works correctly in IRIX.
131923 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131925         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131927 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131929         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131930         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131932         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131933         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131935         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131937 1999-04-20  Jim Meyering  <meyering@ascend.com>
131939         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131940         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131941         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131943 1999-04-18  Jim Meyering  <meyering@ascend.com>
131945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131946         * m4/jm-macros.m4: Use it.
131948 1999-04-06  Jim Meyering  <meyering@ascend.com>
131950         * m4/strftime.m4: Remove test for %f.
131952 1999-03-29  Jim Meyering  <meyering@ascend.com>
131954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131955         superset of the AC_TYPE_* checks in the textutils, fileutils,
131956         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131957         AC_TYPE_PID_T.
131959 1999-03-28  Jim Meyering  <meyering@ascend.com>
131961         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131962         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131963         replaced e.g., in the *.sh files of the sh-utils.
131965 1999-03-20  Jim Meyering  <meyering@ascend.com>
131967         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131968         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131969         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131971 1999-03-19  Jim Meyering  <meyering@ascend.com>
131973         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131975 1999-03-12  Jim Meyering  <meyering@ascend.com>
131977         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131979 1999-03-07  Jim Meyering  <meyering@ascend.com>
131981         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131982         declared.
131984 1999-02-17  Jim Meyering  <meyering@ascend.com>
131986         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131987         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131989 1999-02-07  Jim Meyering  <meyering@ascend.com>
131991         * m4/group-member.m4: New file -- extracted from sh-utils'
131992         configure.in.
131994         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131995         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131997 1999-02-06  Jim Meyering  <meyering@ascend.com>
131999         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
132000         * m4/fnmatch.m4: Likewise.
132001         * m4/getgroups.m4: Likewise.
132002         * m4/lstat.m4: Likewise.
132003         * m4/malloc.m4: Likewise.
132004         * m4/putenv.m4: Likewise.
132005         * m4/realloc.m4: Likewise.
132006         * m4/regex.m4: Likewise.
132007         * m4/stat.m4: Likewise.
132008         * m4/strftime.m4: Likewise.
132009         Suggestion from Alain Magloire.
132011         * m4/chown.m4: Use `.$ac_objext', not `.o'.
132012         * m4/fnmatch.m4: Likewise.
132013         * m4/getgroups.m4: Likewise.
132014         * m4/getline.m4: Likewise.
132015         * m4/lstat.m4: Likewise.
132016         * m4/malloc.m4: Likewise.
132017         * m4/memcmp.m4: Likewise.
132018         * m4/putenv.m4: Likewise.
132019         * m4/realloc.m4: Likewise.
132020         * m4/regex.m4: Likewise.
132021         * m4/stat.m4: Likewise.
132022         * m4/strftime.m4: Likewise.
132023         Suggestion from Alain Magloire.
132025         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
132026         an argument.
132028         * m4/regex.m4: Add a run-time Test for proper operation of
132029         re_compile_pattern.
132031 1999-01-31  Jim Meyering  <meyering@ascend.com>
132033         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
132035 1999-01-30  Jim Meyering  <meyering@ascend.com>
132037         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
132039         * m4/jm-mktime.m4: Make this a wrapper around the official
132040         AM_FUNC_MKTIME rather than my private copy, now that the official one
132041         is up to date.
132042         * m4/mktime.m4: Remove file.
132044         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
132045         * m4/uptime.m4: Likewise.
132046         * m4/uintmax_t.m4: Likewise.
132048 1999-01-28  Jim Meyering  <meyering@ascend.com>
132050         * m4/jm-macros.m4: Use jm_AFS.
132051         * m4/afs.m4: New file (from fileutils' configure.in).
132053         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
132054         * m4/chown.m4: Likewise.
132055         * m4/d-ino.m4: Likewise.
132056         * m4/d-type.m4: Likewise.
132057         * m4/fnmatch.m4: Likewise.
132058         * m4/getgroups.m4: Likewise.
132059         * m4/gettext.m4: Likewise.
132060         * m4/jm-mktime.m4: Likewise.
132061         * m4/jm-winsz2.m4: Likewise.
132062         * m4/lcmessage.m4: Likewise.
132063         * m4/ls-mntd-fs.m4: Likewise.
132064         * m4/malloc.m4: Likewise.
132065         * m4/memcmp.m4: Likewise.
132066         * m4/putenv.m4: Likewise.
132067         * m4/realloc.m4: Likewise.
132068         * m4/st_mtim.m4: Likewise.
132069         * m4/strftime.m4: Likewise.
132071 1999-01-16  Jim Meyering  <meyering@ascend.com>
132073         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
132074         (ARGMATCH_DIE_DECL): Define.
132076 1999-01-12  Jim Meyering  <meyering@ascend.com>
132078         * m4/Makefile.am.in: Rewrite to avoid using fmt.
132079         Reported by Lars Hecking.
132081 1999-01-10  Jim Meyering  <meyering@ascend.com>
132083         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
132084         gross kludge.
132085         * m4/inttypes_h.m4: Likewise.
132086         * m4/lstat.m4: Likewise.
132087         * m4/malloc.m4: Likewise.
132088         * m4/readdir.m4: Likewise.
132089         * m4/realloc.m4: Likewise.
132090         * m4/st_dm_mode.m4: Likewise.
132091         * m4/stat.m4: Likewise.
132092         * m4/utimbuf.m4: Likewise.
132093         * m4/utimes.m4: Likewise.
132095         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
132096         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
132097         comments in config.h.in are meaningful.
132099         * m4/jm-macros.m4: Require autoconf-2.13 here.
132101         * m4/regex.m4: By default, don't use the included regex.c on systems
132102         with glibc 2.  Suggestion from Uli Drepper.
132104 1999-01-02  Jim Meyering  <meyering@ascend.com>
132106         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
132108 1998-12-18  Jim Meyering  <meyering@ascend.com>
132110         * m4/Makefile.am.in (Makefile.am): Simplify rule.
132111         Based on a suggestion from Lars Hecking.
132113 1998-11-16  Paul Eggert  <eggert@twinsun.com>
132115         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
132117 1998-11-16  Jim Meyering  <meyering@ascend.com>
132119         * m4/lfs.m4: Double-quote the `uname...` expression.
132121 1998-11-14  Jim Meyering  <meyering@ascend.com>
132123         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
132124         * m4/stat.m4: Likewise.
132126 1998-11-03  Jim Meyering  <meyering@ascend.com>
132128         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
132129         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
132131 1998-10-18  Jim Meyering  <meyering@ascend.com>
132133         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
132135 1998-10-17  Jim Meyering  <meyering@ascend.com>
132137         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
132138         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
132139         calls for those previously hard-coded headers.  Instead, take a new
132140         parameter.
132141         (jm_CHECK_DECLARATIONS): Reflect interface change.
132142         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
132143         (jm_CHECK_DECL_LOCALTIME_R): New macro.
132145         * m4/mktime.m4: Test for spring-forward gap before long-running test.
132147 1998-10-14  Jim Meyering  <meyering@ascend.com>
132149         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
132150         instead of "TZ=America/Vancouver".  From Paul Eggert.
132152 1998-10-11  Jim Meyering  <meyering@ascend.com>
132154         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
132155         This adds a test for a recently added compatibility fix for mktime.c.
132156         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
132158 1998-09-27  Jim Meyering  <meyering@ascend.com>
132160         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
132162         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
132163         ../configure.in, including a change from Gordon Matzigkeit to allow
132164         cross-compiling for the Hurd.
132166         * m4/glibc.m4: New file/macro to test for the GNU C Library
132167         versions 1 and 2.  From Gordon Matzigkeit.
132168         Indent.
132170 1998-09-21  Jim Meyering  <meyering@ascend.com>
132172         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
132174 1998-08-18  Paul Eggert  <eggert@twinsun.com>
132176         Port nanosecond-resolution times to UnixWare 2.1.2 and
132177         pedantic Solaris 2.6.
132179         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
132180         AC_STRUCT_ST_MTIM.
132181         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
132182         Generate name of ns member, instead of just 1 or undef.
132183         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
132185 1998-08-15  Jim Meyering  <meyering@ascend.com>
132187         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
132188         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
132189         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
132190         instead of jm_TYPE_SSIZE_T.
132192 1998-08-12  Jim Meyering  <meyering@ascend.com>
132194         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
132196 1998-08-02  Jim Meyering  <meyering@ascend.com>
132198         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
132199         in acconfig.h manually.
132201 1998-07-31  Paul Eggert  <eggert@twinsun.com>
132203         * m4/st_mtim.m4: New file.
132205 1998-07-28  Jim Meyering  <meyering@ascend.com>
132207         * m4/utimes.m4: Undef stat.
132209 1998-07-25  Jim Meyering  <meyering@ascend.com>
132211         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
132212         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
132214 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
132216         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
132217         uid and gid actually remain unchanged.
132219 1998-07-07  Jim Meyering  <meyering@ascend.com>
132221         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
132223 1998-07-04  Jim Meyering  <meyering@ascend.com>
132225         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
132226         to prove that this macro can be used in packages without regex.c.
132228 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
132230         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
132231         is to be used.
132233 1998-07-03  Jim Meyering  <meyering@ascend.com>
132235         * m4/gettext.m4: Add -lintl if it's found to be necessary.
132237         * m4/gettext.m4: New file -- from gettext-0.10.35.
132238         * m4/lcmessage.m4: Likewise.
132239         * m4/progtest.m4: Likewise.
132241         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
132242         * m4/jm-macros.m4: Require the new macro.
132244 1998-06-29  Jim Meyering  <meyering@ascend.com>
132246         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
132247         for the definition of NGROUPS (used in a system header included
132248         by sys/mount.h).
132250 1998-06-28  Jim Meyering  <meyering@ascend.com>
132252         * m4/ls-mntd-fs.m4: New file.
132253         * m4/fstypename.m4: New file.
132255         * m4/jm-macros.m4: Require the new macro.
132256         * m4/jm-glibc-io.m4: New file.
132258 1998-05-19  Jim Meyering  <meyering@ascend.com>
132260         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
132261         * m4/lchown.m4: New file.
132263         * m4/Makefile.am.in: New file.
132264         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
132266 1998-05-14  Jim Meyering  <meyering@ascend.com>
132268         * m4/Makefile.am (EXTRA_DIST): Add them.
132269         * m4/jm-macros.m4: New file.
132270         * m4/utimbuf.m4: New file.
132272 1998-05-12  Jim Meyering  <meyering@ascend.com>
132274         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
132276 1998-05-11  Jim Meyering  <meyering@ascend.com>
132278         * m4/isc-posix.m4: New file.
132280 1998-05-10  Jim Meyering  <meyering@ascend.com>
132282         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
132284 1998-05-09  Jim Meyering  <meyering@ascend.com>
132286         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
132287         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
132288         with automake.
132290         * m4/ssize_t.m4: New file.
132291         * m4/mktime.m4: Remove file -- the new automake has this now.
132293 1998-04-26  Jim Meyering  <meyering@ascend.com>
132295         * m4/assert.m4: New file.
132296         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
132298 1998-04-05  Jim Meyering  <meyering@ascend.com>
132300         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
132301         (jm_PREREQ): Use it here.
132303 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
132305         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
132306         in acconfig.h.
132308 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
132310         * m4/prereq.m4: New file.
132311         * m4/error.m4: New file.
132312         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
132314 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
132316         * m4/getline.m4: Don't set am_cv_func_working_getline before the
132317         cache-check for the same variable -- that defeated the purpose of
132318         the test; the test program was never run.  This was a problem only
132319         on systems with losing getline functions -- HP-UX 10.20 is one.
132320         Reported by Bjorn Helgaas.
132322 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
132324         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
132326 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
132328         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
132330         * m4/const.m4: New file.  Use an initializer in this declaration
132331         typedef int charset[2]; const charset x;
132332         Reported by Bob Glickstein.
132334 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
132336         * m4/chown.m4: Fix reversed types on -1 args to chown.
132337         From Kaveh Ghazi.
132339 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
132341         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
132342         Add lseek and memchr.
132344         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
132345         T.E.Dickey <dickey@clark.net> said that some older preprocessors
132346         have a 20-character limit on names.
132348 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
132350         * m4/inttypes_h.m4: New file.
132351         * m4/uintmax_t.m4: New file.
132352         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
132355         -----
132357         Local Variables:
132358         coding: utf-8
132359         End:
132361         Copyright (C) 1997-2020 Free Software Foundation, Inc.
132363         Copying and distribution of this file, with or without
132364         modification, are permitted provided the copyright notice
132365         and this notice are preserved.